Skip to content

feat: coordinated rotation safeguards and dependency readiness (foundation) - #3182

Draft
Thomas Jung (jung-thomas) wants to merge 3 commits into
DEVfrom
feat/credential-coordinated-rotation
Draft

Thomas Jung (jung-thomas) wants to merge 3 commits into
DEVfrom
feat/credential-coordinated-rotation

Conversation

@jung-thomas

Copy link
Copy Markdown
Contributor

Status: foundation only — operational use remains blocked

Continues #3178/#3179 under the maintainer's stricter requirement: updated and verified everywhere before using the tool for another real rotation. This is a draft implementation PR, not a complete propagation engine, production readiness claim, or deployment request.

Implemented

  • Fail-closed real-CI CLI apply/resume/retire gate before provider access. Legacy CI-only confirmations cannot bypass it. Read-only plans, isolated canaries, and explicit rollback of existing runs remain available; old completed records are not upgraded.
  • Admin direct credential set/rotate/clear rejects with 409 before Credential Store access or timestamp mutation, including unknown aliases or credential kinds relabeled as configuration. Known configuration set/clear remains authorized with read-back/cache handling but no rotation stamp. Metadata/config edits and existing authorized read-only paths remain available. Breaking safety change: no uncoordinated credential provisioning/repair bypass is introduced; a separate audited operation must be approved/designed if needed.
  • Strict metadata-only dependency manifests: provider, concrete destination/consumer instances, tracking targets, ownership/approval/continuity, duplicate/ref/date validation, and immutable public scope digest (not a credential hash).
  • npm run credentials:readiness -- --manifest FILE [--observation FILE] [--check]: read-only file-based scope comparison, sanitized errors and explicit missing capabilities/acceptance. Observations are supplied planning snapshots, not authenticated live discovery. scopeReady is metadata agreement only; operationalReady stays false.
  • OpenSpec proposal/design/spec/tasks (7/28 tasks complete) and current-state operator documentation, including exact limitations and test isolation recovery.

Still required

Authenticated source/live dependency correlation, full resumable coordinator, store/provider adapters, instance/CI identity and drain proofs, environment-guarded HANA reconciliation, partial-write/rollback/forward recovery, and separately approved isolated DEV acceptance. Missing owners/consumers/adapters must keep real mutation blocked; there is no force/readiness override flag. No new deployment was performed for this increment.

Verification

  • Ten scoped unit files: 232 passed, 1 platform-specific symlink test skipped. Final focused three-file rerun: 67 passed.
  • Includes real in-memory AdminService authorization, metadata edits, configuration read-back, gate-before-access, strict manifest/readiness and isolated/legacy state-machine regressions.
  • Syntax, structural diff review, whitespace checks, strict OpenSpec validation and redacted Gitleaks checks across all 19 changed/new files passed.
  • CAP docs checked. CDS lookup still encounters the existing duplicate DeveloperService.get_my_tutorials; scoped definitions inspected after lookup failure. No CDS schema/auth annotations changed.
  • Scoped CDS lint attempted but unavailable because ESLint is not installed; no passing lint claim.
  • No coordinated live acceptance or authenticated Admin browser regression claimed.

Test-isolation incident (resolved; retained in runbook)

An initial CLI entry-point regression inherited authenticated workstation access before its external seams were stubbed. It created two coordination keys and dispatched a read-only mapping proof. Checkpoint showed no replacement credential, CI secret write, cutover or retirement. The test owner was confirmed stopped; cleanup checked exact resource/run/invocation ownership and baseline, removed only the two test-owned keys, verified the original five bindings unchanged, and retained a rolled-back checkpoint. The generated proof artifact was deleted without reading it (zero artifacts remain); the workflow metadata audit record is retained. Entry-point tests now stub both external CLI and HTTP, and no further live rehearsal is authorized by this PR.

This incident reinforces why both gate-before-access and isolation are required; it is not presented as an approved live rotation rehearsal.

@jung-thomas
Thomas Jung (jung-thomas) changed the base branch from main to DEV November 30, 2026 01:45
@jung-thomas

Copy link
Copy Markdown
Contributor Author

Confirmed DEV-first workflow: this development PR targets DEV and remains draft. The feature branch now includes current origin/DEV via a non-destructive merge; no history rewrite or DEV-only changes discarded. AGENTS.md, CLAUDE.md and the implementation plan now require feature branches from origin/DEV, feature PRs to DEV, deployment/testing from fresh DEV using deploy-watcher, and only then a separate DEV-to-main promotion PR before approved production deployment. Scoped regression after alignment: 232 passed, 1 skipped; strict OpenSpec validation and diff/secret checks passed. No merge, deployment, or operational credential rotation was performed as part of this correction.

This branch has not been deployed

No deployments
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.

1 participant