Skip to content
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

NEOS-1616: [MIGRATION] Adds RBAC engine #2935

Merged
merged 26 commits into from
Dec 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
b238965
Adds initial rbac casbin logic and policy init
nickzelei Nov 13, 2024
b6d8ed4
casbin updates
nickzelei Nov 13, 2024
7b3aca3
tweaks
nickzelei Nov 13, 2024
40fdcd7
adds comments
nickzelei Nov 13, 2024
75fe106
regenerate after rebase
nickzelei Dec 10, 2024
6a4489f
regen mockery
nickzelei Dec 10, 2024
dcc9bff
Regenerate rbac casbin migration
nickzelei Dec 10, 2024
e625b57
Adds some comments
nickzelei Dec 10, 2024
cc5773a
updated connection service to use new enforce scheme
nickzelei Dec 11, 2024
0050f6d
updates connection data service
nickzelei Dec 11, 2024
3249e24
fixes conndata unit tests
nickzelei Dec 11, 2024
11fff75
updates anon svc and jobs svc to use new userdata client
nickzelei Dec 11, 2024
0e0676c
removes unused client
nickzelei Dec 11, 2024
2ed2760
updates users, transformers services
nickzelei Dec 12, 2024
eb4c754
updates remaining services with rbac
nickzelei Dec 13, 2024
d477c94
wires up integration tests, adds roles during account creation
nickzelei Dec 13, 2024
88894b4
Adds rbac integration tests
nickzelei Dec 13, 2024
ff7beb2
fixes casbin call
nickzelei Dec 13, 2024
c86698e
Gets metrics tests working again
nickzelei Dec 13, 2024
a54f93c
Gets api key tests working again
nickzelei Dec 13, 2024
b6d1a8d
removes cache
nickzelei Dec 13, 2024
9620290
adds upsert for user policies
nickzelei Dec 13, 2024
33f8168
Adds another test that verifies cross account access is not allowed
nickzelei Dec 13, 2024
0459bf3
refactors policy file, adds missing policy removal fn
nickzelei Dec 13, 2024
e7cf463
removes unused module
nickzelei Dec 13, 2024
7e5a080
adds test ensuring no user crossover
nickzelei Dec 14, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .mockery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,3 +116,7 @@ packages:
AnalyzeInterface:
AnonymizeInterface:
EntityInterface:
github.com/nucleuscloud/neosync/backend/internal/userdata:
interfaces:
Interface:
EntityEnforcer:
119 changes: 119 additions & 0 deletions backend/gen/go/db/mock_Querier.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions backend/gen/go/db/models.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions backend/gen/go/db/querier.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

59 changes: 56 additions & 3 deletions backend/gen/go/db/users.sql.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading