-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(abac-assertions): add context to assertion #112
Draft
jon-whit
wants to merge
15
commits into
main
Choose a base branch
from
add-context-to-assertion
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
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
* feat: add `condition` to RelationReference * feat: add `Condition` definition * feat: add `conditions` to AuthorizationModel * update swagger * feat: add `conditions` to WriteAuthorizationModelRequest * feat: add `context` fields to query requests * use an enum for condition param type names * add feat branch to review workflow * stick to enum conventions * suppress diffs from generated files * regenerate * add missing type name * proposed validation as starting point * add ipaddress type * tweaks * update validation for Condition.name * refactor: change Assertion TupleKey to CheckRequestTupleKey * feat: adding condition for tuple key (#94) * feat: adding condition for tuple key * remove redundant validation --------- Co-authored-by: Jonathan Whitaker <[email protected]> Co-authored-by: Adrian Tam <[email protected]>
* re-order fields on TupleKey * mark fields as required where applicable
Co-authored-by: José Padilla <[email protected]>
) Bumps [golang.org/x/net](https://github.com/golang/net) from 0.12.0 to 0.17.0. - [Commits](golang/net@v0.12.0...v0.17.0) --- updated-dependencies: - dependency-name: golang.org/x/net dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
jon-whit
changed the title
Add context to assertion
feat(abac-assertions): add context to assertion
Nov 1, 2023
miparnisari
approved these changes
Nov 30, 2023
miparnisari
requested changes
Nov 30, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you update the docs?
api/openfga/v1/openfga_service.proto
Lines 514 to 519 in 7f9be45
description: | |
"The ReadAssertions API will return, for a given authorization model id, " | |
"all the assertions stored for it. An assertion is an object that contains a " | |
"tuple key, and the expectation of whether a call to the Check API of that tuple key " | |
"will return true or false. " | |
}; |
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.
Description
Add context to Assertions for ABAC support.
References
Review Checklist
main