Skip to content

RANGER-5619: Keyadmin user unable to perform test connection for cm_k…#1024

Merged
pradeepagrawal8184 merged 1 commit into
apache:masterfrom
vyommani:RANGER-5619
Jun 17, 2026
Merged

RANGER-5619: Keyadmin user unable to perform test connection for cm_k…#1024
pradeepagrawal8184 merged 1 commit into
apache:masterfrom
vyommani:RANGER-5619

Conversation

@vyommani

Copy link
Copy Markdown
Contributor

…ms service

What changes were proposed in this pull request?

Added explicit role check in ServiceREST.validateConfig():

ROLE_SYS_ADMIN --> allowed for all services
ROLE_KEY_ADMIN --> allowed for KMS services only
All other roles --> FORBIDDEN

Initial fix caused a regression where KeyAdmin users were unable to test connection for cm_kms service. Fixed by allowing ROLE_KEY_ADMIN access for KMS service types only, verified via service definition implementation class name.

How was this patch tested?

added a new test

@pradeepagrawal8184 pradeepagrawal8184 merged commit c804fc3 into apache:master Jun 17, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants