generated from cloudoperators/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 2
feat(openfga): add creating, updating, and deleting OpenFGA event handlers #934
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
Draft
maxwellL21
wants to merge
52
commits into
main
Choose a base branch
from
origin/MaxLuong/issue-842/create_user_resource_relationship
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.
Draft
Changes from 28 commits
Commits
Show all changes
52 commits
Select commit
Hold shift + click to select a range
57b8412
Add authorization handler for openfga
maxwellL21 d4ddc65
fix(authz): Remove authorization handler, implement interface
maxwellL21 94d1fe7
feat(authorization): add basic tests to authz methods
maxwellL21 fbad848
feat(openfga): implemented openfga store & model creation from model β¦
BlakePatterson 618732c
feat(openfga): updated authz interface and implementation and wrote uβ¦
BlakePatterson 51a2a57
chore: merged changes from main and resolved conflicts
BlakePatterson b46d63a
feat(openfga): Add create user resource relationships, and testing
maxwellL21 32ad80c
fix(openfga): refactored variables, Added duplicate check for tuples
maxwellL21 d7679c7
feat(authz): various updates to authz setup and added handler contextβ¦
BlakePatterson a75884e
feat(authz): added doc on openfga implementation
BlakePatterson a9fb3e4
feat(openfga): merge changes from parent, Add basic update functionality
maxwellL21 146a509
feat(openfga): removed old placeholder and updated openfga env variables
BlakePatterson 39dc896
chore: updating with changes from main
BlakePatterson 34daeea
chore: added license header
BlakePatterson 1a47c11
fix(openfga): merge additional changes from parent branch
maxwellL21 7eb6e91
fix(openfga): add basic delete and create tuple functionality
maxwellL21 d01576e
fix(openfga): app tests should pass when no authz is enabled
maxwellL21 a9e481f
feat(openfga): add delete functionality to openfga tuples
maxwellL21 3ffe7cc
fix(openfga): finish create function for openfga tuples
maxwellL21 4a44a65
Merge branch 'main' into origin/MaxLuong/issue-842/create_user_resourβ¦
maxwellL21 c514bc1
feat(openfga): create update openfga tuple event handlers, update docβ¦
maxwellL21 0c1cbf3
feat(openfga): add DeleteUser handler, add test
maxwellL21 becb6ee
Merge branch 'main' into origin/MaxLuong/issue-842/create_user_resourβ¦
maxwellL21 546289f
fix(openfga): fix failing user test
maxwellL21 c69d50b
chore(openfga): update go.sum
maxwellL21 aff82c3
fix(openfga): update failing tests
maxwellL21 00ea8b5
fix(openfga): fix component handler testing
maxwellL21 79dbf44
fix(openfga): update component handler test
maxwellL21 864a73e
fix: updated no authz check permission to return true
BlakePatterson 27bf3c3
fix: updated auth config in app test suite and removed unnecessary lines
BlakePatterson 2a1f273
fix: added openfga service and config to test suite gh action
BlakePatterson 1f16483
fix: fixed openfga model file paths in app tests
BlakePatterson 7a5dcaf
fix: removed unused default prio and reponame variables
BlakePatterson 1bbc575
fix: fixed error with removed issue repo name and default prio fieldsβ¦
BlakePatterson 44fa1fa
fix: removed unfitting conditionals from authz unit tests
BlakePatterson 50c9979
fix: updated link to auth model in docs
BlakePatterson a15738d
fix: added better error messages for auth event handlers
BlakePatterson 8850709
fix: removed unnecessary loop
BlakePatterson edcc03f
fix: turn objectid and userid into function
maxwellL21 3aff582
fix: updated authz event handlers to source user id from proper context
BlakePatterson 2b357d9
fix(openfga): Refactor inline declarations, loops, and string conversβ¦
maxwellL21 e1c126a
fix: moved openfga test config setup to common function
BlakePatterson d6834ff
fix: added missing error handling to auth events
BlakePatterson 2ab8b34
fix: added more precise checks for delete auth event tests
BlakePatterson aa57c9c
fix: added checks to prevent unnecessary updates in ci auth update event
BlakePatterson 33304bb
fix: rewrote add multiple relations function in auth to perform bulk β¦
BlakePatterson 247b118
fix: reforganized/formatted auth implementation and added comments
BlakePatterson ecf1d8b
fix(openfga): refactor for clarity, additional helper functions and eβ¦
maxwellL21 825a483
fix(openfga): update helper functions
maxwellL21 ff4acda
fix: rewrote authz listRelations and updated/fixed various auth events
BlakePatterson 93f6279
fix(openfga): improve logging clarity
maxwellL21 f68d5d8
fix(openfga): Added comments for clarity
maxwellL21 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,7 @@ | ||
| { | ||
| "go.testEnvFile": "${workspaceFolder}/.testenv-devcontainer", | ||
| "ginkgotools.ginkgoPath": "go run github.com/onsi/ginkgo/v2/ginkgo" | ||
| "ginkgotools.ginkgoPath": "go run github.com/onsi/ginkgo/v2/ginkgo", | ||
| "go.delveConfig": { | ||
| "showGlobalVariables": true, | ||
| }, | ||
| } |
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.