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

rpc,tenantcapabilities: add cross-tenant reads to 'all' capabilities #130102

Merged
merged 1 commit into from
Sep 5, 2024

Conversation

dt
Copy link
Member

@dt dt commented Sep 4, 2024

The allow-all capability check now also allows 'cross tenant reads', which are defined as read requests made by a non-system tenant to spans not contained by its tenant span. This is added to the capability authorizer API, but is not a defined capability and cannot be granted to tenants; it is only implicitly granted to tenants that are implicitly understood to have 'all' capabilities, such as in shared service.

Release note: none.
Epic: none.

@dt dt requested review from a team as code owners September 4, 2024 18:25
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@dt dt force-pushed the allow-reads branch 2 times, most recently from b3cd869 to c59ec2c Compare September 4, 2024 23:29
The allow-all capability check now also allows 'cross tenant reads', which are defined as read
requests made by a non-system tenant to spans not contained by its tenant span. This is added to
the capability authorizer API, but is not a defined capability and cannot be granted to tenants; it
is only implicitly granted to tenants that are implicitly understood to have 'all' capabilities,
such as in shared service.

Release note: none.
Epic: none.
Copy link
Collaborator

@fqazi fqazi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 6 of 6 files at r1, 1 of 1 files at r2, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @msbutler and @stevendanna)

@dt
Copy link
Member Author

dt commented Sep 5, 2024

TFTR!

bors r+

@craig craig bot merged commit ebc4816 into cockroachdb:master Sep 5, 2024
23 checks passed
@dt dt deleted the allow-reads branch September 25, 2024 20:35
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.

4 participants