Skip to content

settings: query.rate_limit_write is overlaid per home scope, so an owner's override does not reach the other keys of the tenant #597

Backlog

Description

@GottZ

whoami.rate_limit_write (since v5.95.0) reports query.rate_limit_write after the settings overlay of the key's home scope. An override an owner sets on their own scope therefore does not reach keys whose home scope is another scope of the same tenant — for example the member keys keyset-provision creates, each homed in its own scope.

Found by running the Hermes plugin ctx_checkpoint against a server built from #595: the plugin plans its checkpoint chain under the reported limit, and a limit the owner lowered for the tenant was not the one the group keys saw (go/internal/handler/middleware.go, RequestTenantScope returns the key's home scope).

docs/api.md describes the behaviour as it is since #595. Open question for this issue: should a write budget be settable per tenant (one override reaching every key of the tenant), and if so, which overlay wins when both a tenant-wide and a home-scope override exist?

Not measured: how many installations set query.rate_limit_write per scope today.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions