Skip to content

Check the calling principal against the topology owner in uploadNewCredentials - #9001

Merged
rzo1 merged 1 commit into
masterfrom
fix/nimbus-credentials-owner-check
Aug 24, 2026
Merged

Check the calling principal against the topology owner in uploadNewCredentials#9001
rzo1 merged 1 commit into
masterfrom
fix/nimbus-credentials-owner-check

Conversation

@rzo1

@rzo1 rzo1 commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

The owner check read its expected value from credentials.get_topoOwner(), i.e. from data the caller supplied, and never compared it to the caller own principal. The exception text ("is expected to be owned by X but is actually owned by Y") shows a caller-equals-owner binding was intended.

The expected owner is now derived from the authenticated principal. Extends NimbusTest.

Behaviour change: storm upload-credentials -u <owner> <topology> run by anyone other than the owner now fails, including members of the topology topology.users / topology.groups and nimbus.admins. Please say if you would rather keep an admin exemption.

@rzo1 rzo1 added this to the 3.1.0 milestone Aug 22, 2026
@rzo1 rzo1 self-assigned this Aug 22, 2026
@rzo1
rzo1 force-pushed the fix/nimbus-credentials-owner-check branch from 1489679 to 67a36d3 Compare August 24, 2026 08:16
@rzo1
rzo1 merged commit 5ebe6e7 into master Aug 24, 2026
7 checks passed
@rzo1
rzo1 deleted the fix/nimbus-credentials-owner-check branch August 24, 2026 08:52
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.

2 participants