Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multitenant: add AdminMerge capability #98517

Merged
merged 2 commits into from
Mar 15, 2023
Merged

multitenant: add AdminMerge capability #98517

merged 2 commits into from
Mar 15, 2023

Conversation

ecwall
Copy link
Contributor

@ecwall ecwall commented Mar 13, 2023

Fixes #95138

AdminMerge is currently only called by the system tenant even though it is
named similarly to other Admin* functions so it does not need its own
capability for now.

This changes its required capability from noCapCheckNeeded to onlySystemTenant
to prevent secondary tenants from calling it.

Release note: None

@cockroach-teamcity
Copy link
Member

This change is Reviewable

ecwall added 2 commits March 15, 2023 15:34
Sort reqMethodToCap keys alphabetically for ease of reading.

Release note: None
Fixes #95138

AdminMerge is currently only called by the system tenant even though it is
named similarly to other Admin* functions so it does not need its own
capability for now.

This changes its required capability from noCapCheckNeeded to onlySystemTenant
to prevent secondary tenants from calling it.

Release note: None
@blathers-crl
Copy link

blathers-crl bot commented Mar 15, 2023

It looks like your PR touches production code but doesn't add or edit any test code. Did you consider adding tests to your PR?

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

@ecwall ecwall marked this pull request as ready for review March 15, 2023 19:44
@ecwall ecwall requested a review from a team as a code owner March 15, 2023 19:44
@ecwall ecwall requested review from rafiss, knz and arulajmani March 15, 2023 19:44
@ecwall
Copy link
Contributor Author

ecwall commented Mar 15, 2023

bors r=knz

@craig
Copy link
Contributor

craig bot commented Mar 15, 2023

Build succeeded:

@craig craig bot merged commit 3016744 into cockroachdb:master Mar 15, 2023
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.

tenantcapabilities: add capabilities for Admin operations
3 participants