Skip to content

[v2] dns: add AllProjects support to zones.List via X-Auth-All-Projects header - #3802

Merged
kayrus merged 1 commit into
v2from
bp-v2-2782e25
Jun 18, 2026
Merged

kayrus merged 1 commit into
v2from
bp-v2-2782e25

Conversation

@gophercloud-backport-bot

Copy link
Copy Markdown

Backport: #3801

Fixes #3800

Links to the line numbers/files in the OpenStack source code that support the code in this PR:

https://opendev.org/openstack/designate/src/commit/12a5256eb51a22acc414fe7082f857355c736d5a/designate/api/middleware.py#L62-L72

@github-actions github-actions Bot added edit:dns This PR updates dns code v2 This PR targets v2 semver:minor Backwards-compatible change labels Jun 18, 2026
@coveralls

coveralls commented Jun 18, 2026 •

Copy link
Copy Markdown

Coverage Status

coverage: 63.824% (+0.03%) from 63.798% — bp-v2-2782e25 into v2

Add ListOptsHeadersBuilder optional interface and AllProjects/SudoTenantID
fields to ListOpts, allowing admin users to enumerate zones across all
projects via X-Auth-All-Projects header, and to impersonate a tenant via
X-Auth-Sudo-Tenant-ID header. List() uses a type assertion to remain
backward compatible with existing ListOptsBuilder implementations.

Functional tests require admin credentials via clients.RequireAdmin.

Signed-off-by: abhijith-darshan <[email protected]>
@kayrus
kayrus merged commit 4e9d09a into v2 Jun 18, 2026
19 checks passed
@kayrus
kayrus deleted the bp-v2-2782e25 branch June 18, 2026 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

edit:dns This PR updates dns code semver:minor Backwards-compatible change v2 This PR targets v2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants