fix: assign roles to owner instead of operator#5191
fix: assign roles to owner instead of operator#5191nobodyiam merged 1 commit intoapolloconfig:masterfrom Lin-1997:Lin-1997-patch-1
Conversation
Signed-off-by: Lin-1997 <1204878199@qq.com>
|
Important Review skippedAuto reviews are limited to specific labels. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the WalkthroughThe changes enhance role assignment logic in the application creation process, ensuring that roles like "MODIFY_NAMESPACE" and "RELEASE_NAMESPACE" are accurately assigned to the application's owner rather than a default operator. This refinement addresses issues with improper permission granting when an application is created, leading to a more precise and secure role management system. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant Application
participant RoleService
User->>Application: Create Application (Owner: B)
Application->>RoleService: Assign Roles (Owner: B)
RoleService-->>Application: Assign "MODIFY_NAMESPACE" and "RELEASE_NAMESPACE" to B
Application-->>User: Confirm Role Assignment
Assessment against linked issues
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
|
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
There was a problem hiding this comment.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/spi/defaultimpl/DefaultRoleInitializationService.java (1 hunks)
Additional comments not posted (2)
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/spi/defaultimpl/DefaultRoleInitializationService.java (2)
86-86: LGTM! Role assignment now uses the application's owner.The change correctly assigns the MODIFY_NAMESPACE role to the application's owner.
89-89: LGTM! Role assignment now uses the application's owner.The change correctly assigns the RELEASE_NAMESPACE role to the application's owner.
|
I have read the CLA Document and I hereby sign the CLA |
What's the purpose of this PR
when creating an application, assign roles to owner instead of operator
Which issue(s) this PR fixes:
Fixes #5181
Brief changelog
XXXXX
Follow this checklist to help us incorporate your contribution quickly and easily:
mvn clean testto make sure this pull request doesn't break anything.CHANGESlog.Summary by CodeRabbit