Repository navigation
Conversation
…h strategy
`zed permission check`, `check-bulk`, `lookup-resources` and
`lookup-subjects` accept --dispatch-strategy, a secondary dispatch CEL
expression such as "prefer_secondary(['tiger'], duration('50ms'))".
zed sends it in the io.spicedb.dispatchstrategy header, and SpiceDB uses
it instead of its configured strategy for the request and every
dispatch it causes.
SpiceDB must run with --experimental-dispatch-secondary-allow-strategy-override;
otherwise, or for an invalid expression, the request fails with
InvalidArgument.
Refs DATA-1133
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
Refs DATA-1133
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
--dispatch-strategytozed permission check,bulk,lookup-resourcesandlookup-subjects:zed sends the expression in the
io.spicedb.dispatchstrategyheader (requestmeta.WithDispatchStrategy). SpiceDB then uses it instead of its configured secondary dispatch strategy, for the request and every dispatch it causes. That lets you try a strategy on one query without changing the cluster's configuration.SpiceDB must run with
--experimental-dispatch-secondary-allow-strategy-override(authzed/spicedb#3538). Otherwise, or for an invalid expression, the request fails withInvalidArgument. When the flag is unset, zed sends no header.Before merging
go.modpins authzed-go to the commit of feat(requestmeta): add the dispatch strategy override header authzed-go#437. Bump it to a released version once that merges.Refs DATA-1133
🤖 Generated with Claude Code