-
Notifications
You must be signed in to change notification settings - Fork 291
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
instead of using protobuf.Any, we use protobuf.Struct that better maps a map[string]any we move away from the concept of caveat digest and will reference them by name. Anonymous caveats will have a globally-unique name that may likely be the result of performing a digest of the signature and payload we replace "caveat logic" with "caveat expression" we also change the term "predefined variables" with "caveat context" to refer to the state persisted alongside the tuple. these are variables that will be injected at caveat evaluation time as a minor inconvenience the relationship.RelationTuple method now has to return an error, propagated from the call to structpb.NewStruct. That led to changes in all callsites using it.
- Loading branch information
1 parent
9f0d6b6
commit 4edd111
Showing
9 changed files
with
568 additions
and
559 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.