Repository navigation
[DSIP-104][ApiServer][UI] Introduce project-scoped authorization - #18718
Open
ruanwenjun wants to merge 4 commits into
Open
ruanwenjun wants to merge 4 commits into
ruanwenjun wants to merge 4 commits into
Conversation
Comment on lines
+78
to
+79
| if (!resourceAuthorizationDao.isAuthorized(projectCode, ProjectResourceType.DATASOURCE, | ||
| datasourceId.toString())) { |
| putMsg(result, Status.SUCCESS); | ||
|
|
||
| return result; | ||
| if (loginUser.getId() == userId) { |
| namespaceUser.setUpdateTime(now); | ||
| k8sNamespaceUserMapper.insert(namespaceUser); | ||
| Arrays.stream(projectIds.split(Constants.COMMA)).distinct().forEach(projectId -> { | ||
| Project project = projectDao.queryDetailById(Integer.parseInt(projectId)); |
This branch has not been deployed
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
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.
Was this PR generated or assisted by AI?
YES. The implementation, UI, schema upgrades, tests and documentation were generated or assisted by AI.
Purpose of the pull request
Implements DSIP-104: users receive explicit operation permissions within a project, and shared resources are granted to projects. Project operations require the relevant permission and resource grants.
Closes #17923.
flowchart LR U[User] -->|Project operation permissions| P[Project] R[Shared resources] -->|Resource-use grants| P P --> C{Permission AND resource grant} C --> A[Allow project operation]Brief change log
Resource grant revocation does not recheck existing running/queued instances, scheduled triggers or automatic retries, and does not disable existing schedules.
Verify this pull request
Local validation:
The initial CI documentation link check failed while parsing the existing
lychee.toml(include_fragments = falseis incompatible with the CI lychee version). That configuration is unchanged by this PR.Pull Request Notice
Pull Request Notice