Skip to content

[CU-86baqy91f] Remove deprecated X-Admin-Only-Action header (send only X-Global-Namespace)#182

Merged
mpanik merged 1 commit into
mainfrom
remove-x-admin-only-action-header-CU-86baqy91f
Jul 20, 2026
Merged

[CU-86baqy91f] Remove deprecated X-Admin-Only-Action header (send only X-Global-Namespace)#182
mpanik merged 1 commit into
mainfrom
remove-x-admin-only-action-header-CU-86baqy91f

Conversation

@mpanik

@mpanik mpanik commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Why

The CLI's dual-header (CU-86baju3x7) sent both X-Global-Namespace and the legacy X-Admin-Only-Action so it worked against workbench services on either side of the header refactor. Fine-grained enforcement is now on everywhere and workflow-service no longer reads the legacy header (Phase 3 — workflow-service #167), so the backward-compat leg is dead. CLI analog of the services' Phase 3. (CU-86baqy91f)

What

  • workflow/client.py: _GLOBAL_NAMESPACE_HEADERS{'X-Global-Namespace': 'true'} (drop X-Admin-Only-Action). The 15 global/admin workflow ops that .update(_GLOBAL_NAMESPACE_HEADERS) now send only X-Global-Namespace.
  • test_workflow_client_admin_header.py: drop the dual-header assertion and the legacy-absence assertion.

Zero X-Admin-Only-Action references remain in the repo (code + tests).

Testing

ruff check clean; the 13 header unit tests pass. The e2e criterion (a global workflow op against alpha with fine-grained enforcement ON) runs in CI.

Sequencing: safe to ship — the prerequisite CU-86baqpzv7 (enforcement enabled everywhere; services ignore the legacy header) is complete.

…y X-Global-Namespace)

The dual-header (CU-86baju3x7) sent both X-Global-Namespace and the legacy
X-Admin-Only-Action so the CLI worked against workbench services on either side
of the header refactor. Fine-grained enforcement is now on everywhere and
workflow-service no longer reads the legacy header (Phase 3), so the
backward-compat leg is dead. Drop it so global/admin workflow ops send only
X-Global-Namespace.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
11124 6673 60% 30% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
dnastack/client/workbench/workflow/client.py 62% 🟢
TOTAL 62% 🟢

updated for commit: d58439d by action🐍

@mpanik
mpanik merged commit 524ad38 into main Jul 20, 2026
6 checks passed
@mpanik
mpanik deleted the remove-x-admin-only-action-header-CU-86baqy91f branch July 20, 2026 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants