Skip to content

sql: validate constraints when secondary tenants set zone configs #69199

@arulajmani

Description

@arulajmani

Is your feature request related to a problem? Please describe.

Currently, we only validate constraints when the host tenant sets zone configurations. This constraint validation includes locality constraints as well as other constraints (such as disk type). This validation requires access to node descriptors, queried using the node status server, which secondary tenants don't have access to.

Secondary tenants do, however, have access to a region server (which gives them access to localities). We should use this to validate localities specified in the constraints fields instead.

We should disallow any other forms of constraint setting via zone configs (such as disk type). Secondary tenants aren't allowed to view this information and therefore should not be using it in their constraints.

Metadata

Metadata

Assignees

Labels

C-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions