-
Notifications
You must be signed in to change notification settings - Fork 10
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
MODELIX-1042 authorization for workspaces #1190
Conversation
1c1cd96
to
8b69523
Compare
Test Results 188 files 188 suites 31m 42s ⏱️ Results for commit 817f454. ♻️ This comment has been updated with latest results. |
JVM coverage report
|
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.
detekt found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.
f63e3ef
to
c6ab4b7
Compare
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.
I am troubled with the decision that "a user can grant his own permission to other users".
To me, it seems unconventional and not a good security practice.
But maybe I am missing some crucial step in reasoning about this decision, that you could explain.
Their other annotations are minor and mostly concerned with clean up and resource usage.
authorization/src/main/kotlin/org/modelix/authorization/AuthorizationConfig.kt
Show resolved
Hide resolved
authorization/src/main/kotlin/org/modelix/authorization/AuthorizationConfig.kt
Show resolved
Hide resolved
authorization/src/main/kotlin/org/modelix/authorization/AuthorizationConfig.kt
Show resolved
Hide resolved
authorization/src/main/kotlin/org/modelix/authorization/AuthorizationConfig.kt
Show resolved
Hide resolved
authorization/src/main/kotlin/org/modelix/authorization/AuthorizationConfig.kt
Show resolved
Hide resolved
authorization/src/main/kotlin/org/modelix/authorization/PermissionManagementPage.kt
Show resolved
Hide resolved
authorization/src/main/kotlin/org/modelix/authorization/PermissionManagementPage.kt
Outdated
Show resolved
Hide resolved
authorization/src/main/kotlin/org/modelix/authorization/PermissionManagementPage.kt
Show resolved
Hide resolved
authorization/src/main/kotlin/org/modelix/authorization/PermissionManagementPage.kt
Outdated
Show resolved
Hide resolved
authorization/src/main/kotlin/org/modelix/authorization/PermissionManagementPage.kt
Show resolved
Hide resolved
authorization/src/main/kotlin/org/modelix/authorization/PermissionManagementPage.kt
Outdated
Show resolved
Hide resolved
authorization/src/main/kotlin/org/modelix/authorization/AuthorizationPlugin.kt
Show resolved
Hide resolved
authorization/src/main/kotlin/org/modelix/authorization/AuthorizationConfig.kt
Show resolved
Hide resolved
authorization/src/main/kotlin/org/modelix/authorization/AuthorizationConfig.kt
Show resolved
Hide resolved
authorization/src/main/kotlin/org/modelix/authorization/AuthorizationConfig.kt
Show resolved
Hide resolved
authorization/src/main/kotlin/org/modelix/authorization/AuthorizationPlugin.kt
Outdated
Show resolved
Hide resolved
authorization/src/main/kotlin/org/modelix/authorization/AuthorizationPlugin.kt
Outdated
Show resolved
Hide resolved
…to Keycloak checks
87a047a
to
74ef1d4
Compare
fix MODELIX-1018
Identity tokens don't contain any permissions. The permissions are then loaded based on the user ID and roles.
74ef1d4
to
0c04276
Compare
At `/permissions/manage` users can grant permissions to other users based on the user ID from the JWT identity token. The data is persisted to the file specified in the environment variable `MODELIX_ACCESS_CONTROL_FILE`.
When a user is assigned the role modelix-admin in keycloak then he should have admin permissions on the model-server.
RemoteJWKSet already caches keys from remote URLs, but all instances of key sources weren't reused.
03dcb35
to
64053df
Compare
f2d2afb
to
85a72b3
Compare
…ssions The previous behavior of allowing to grant your own permission to others might be too risky. It's hardcoded to
85a72b3
to
817f454
Compare
🎉 This PR is included in version 10.2.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This is the result of replacing the keycloak based authorization in modelix.workspaces with our own authorization library.