Skip to content

RANGER-5543:Ranger KMS GCP always try to create master key irrespective of its existence#910

Open
bhaveshamre wants to merge 1 commit intoapache:masterfrom
bhaveshamre:RANGER-5543
Open

RANGER-5543:Ranger KMS GCP always try to create master key irrespective of its existence#910
bhaveshamre wants to merge 1 commit intoapache:masterfrom
bhaveshamre:RANGER-5543

Conversation

@bhaveshamre
Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Added missing dependencies (guava, failureaccess, protobuf-java)
Fixed unnecessary master key creation by introducing masterKeyExists()
Implemented role-based logic:
Owner → creates key only if not exists
Viewer → only checks existence, no creation

How was this patch tested?

Built successfully using mvn clean compile package install. Manual testing was performed across multiple scenarios: when using the Owner role with a new key, the key was created successfully; with an existing key, no creation was attempted. For the Viewer role, the system correctly performed only existence checks for an existing key without attempting creation, and for a new key, no creation was attempted, resulting in a permission denied error as expected.

@dhavalshah9131 dhavalshah9131 marked this pull request as ready for review April 9, 2026 13:46
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.

1 participant