-
Notifications
You must be signed in to change notification settings - Fork 4
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: Add fine-grained permission system using scopes #2087
Draft
MoritzWeber0
wants to merge
2
commits into
main
Choose a base branch
from
fine-grained-permissions
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
The generated OpenAPI client is not up to date with the latest changes in the OpenAPI specification. |
API Changelog 4.15.1.dev19+g824f0463GET /api/v1/permissions
POST /api/v1/users/current/tokens
|
This comment has been minimized.
This comment has been minimized.
MoritzWeber0
force-pushed
the
fine-grained-permissions
branch
2 times, most recently
from
December 13, 2024 10:08
d57e373
to
4c2c2e9
Compare
MoritzWeber0
force-pushed
the
get-username
branch
3 times, most recently
from
December 13, 2024 12:03
0ee0e03
to
4be8ae3
Compare
Instead of the unflexible roles and project roles, introduce a fine-grained permission system. For OpenID / frontend authentication, the role concept is still in place and will be expended with customizable roles in the future. During creation of personal access tokens, the user can select the permissions that the token should have. This replaces the full-access of personal access tokens. Existing access tokens will receive all permissions that the user has access to during migration. The permission system will be matched the current role and the behaviour will not change; it's not a breaking change. This is also the basis for mapping of OAuth scopes.
MoritzWeber0
force-pushed
the
fine-grained-permissions
branch
from
December 13, 2024 16:27
4c2c2e9
to
9ce3867
Compare
Quality Gate passedIssues Measures |
A Storybook preview is available for commit 824f046. |
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.
Instead of the inflexible roles and project roles, introduce a fine-grained permission system.
For OpenID / frontend authentication, the role concept is still in place and will be expended with customizable roles in the future.
During creation of personal access tokens, the user can select the permissions that the token should have. This replaces the full-access of personal access tokens. Existing access tokens will receive all permissions that the user has access to during migration.
The permission system will be matched the current role and the behaviour will not change; it's not a breaking change.
This is also the basis for mapping of OAuth scopes.
Open tasks: