Skip to content

dns: add AllProjects support to zones.List via X-Auth-All-Projects header - #3801

Merged
kayrus merged 1 commit into
gophercloud:mainfrom
abhijith-darshan:feat/dns-zones-all-projects-header
Jun 18, 2026
Merged

kayrus merged 1 commit into
gophercloud:mainfrom
abhijith-darshan:feat/dns-zones-all-projects-header

Conversation

@abhijith-darshan

@abhijith-darshan abhijith-darshan commented Jun 17, 2026 •

Copy link
Copy Markdown
Contributor

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 the edit:dns This PR updates dns code label Jun 17, 2026
Comment thread openstack/dns/v2/zones/requests.go Outdated
@coveralls

coveralls commented Jun 17, 2026 •

Copy link
Copy Markdown

Coverage Status

coverage: 63.545% (+0.03%) from 63.519% — abhijith-darshan:feat/dns-zones-all-projects-header into gophercloud:main

Comment thread openstack/dns/v2/zones/requests.go
@abhijith-darshan
abhijith-darshan requested a review from kayrus June 17, 2026 16:30
@kayrus

kayrus commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

All good, but could you also add functional tests running under admin account (see clients.RequireAdmin(t))?

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 added this pull request to the merge queue Jun 18, 2026
Merged via the queue into gophercloud:main with commit 0126b13 Jun 18, 2026
64 checks passed
@abhijith-darshan
abhijith-darshan deleted the feat/dns-zones-all-projects-header branch June 18, 2026 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-v2 This PR will be backported to v2 edit:dns This PR updates dns code semver:minor Backwards-compatible change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DNS: support X-Auth-All-Projects header in zones.List

3 participants