agent/admin-identity-ui-or-cli #5

Open
opened 2026-05-09 23:23:05 +02:00 by codex · 2 comments
Collaborator

Parent: #2
Wave: 1 Maintainer Foundation
Depends on: #4

Summary

Provide an operator-safe way to create, rotate, pause/revoke, and inspect machine identities.

Scope

  • Start with CLI or protected admin-only UI, whichever is smallest and safest.
  • Support create identity, create/rotate credential, pause/revoke, inspect scopes/expiry/last-used/recent audit.
  • Avoid exposing raw credential values after creation.

Non-goals

  • No broad admin console.
  • No production credential issuance without Piotr approval.
  • No Infisical sync unless split into a separate issue.

Acceptance

  • Normal token lifecycle no longer requires direct SQL.
  • Revoked credentials stop authenticating.
  • Audit clearly records management actions.

Tests / smoke

  • Unit/API tests for lifecycle transitions.
  • Manual smoke in local/dev only.

Rollback

  • git revert <PR-commit> if no migration; migration PR must include rollback notes.

Owner gates

  • Any credential created for production is a hard stop.
Parent: #2 Wave: 1 Maintainer Foundation Depends on: #4 ## Summary Provide an operator-safe way to create, rotate, pause/revoke, and inspect machine identities. ## Scope - Start with CLI or protected admin-only UI, whichever is smallest and safest. - Support create identity, create/rotate credential, pause/revoke, inspect scopes/expiry/last-used/recent audit. - Avoid exposing raw credential values after creation. ## Non-goals - No broad admin console. - No production credential issuance without Piotr approval. - No Infisical sync unless split into a separate issue. ## Acceptance - Normal token lifecycle no longer requires direct SQL. - Revoked credentials stop authenticating. - Audit clearly records management actions. ## Tests / smoke - Unit/API tests for lifecycle transitions. - Manual smoke in local/dev only. ## Rollback - `git revert <PR-commit>` if no migration; migration PR must include rollback notes. ## Owner gates - Any credential created for production is a hard stop.
Author
Collaborator

Implemented in stacked PR #29: #29

Notes:

  • Base branch is codex/agent-machine-identities because this depends on #28.
  • Adds pnpm agent:identity maintainer CLI for create, rotate, pause, revoke, and inspect.
  • Mutations require --confirm, support --dry-run, verify workspace:manage, and write setup-mode audit events without storing raw tokens.
  • No production identity or credential was created.
Implemented in stacked PR #29: https://git.pdurlej.com/pdurlej/kan-ductor/pulls/29 Notes: - Base branch is `codex/agent-machine-identities` because this depends on #28. - Adds `pnpm agent:identity` maintainer CLI for create, rotate, pause, revoke, and inspect. - Mutations require `--confirm`, support `--dry-run`, verify `workspace:manage`, and write setup-mode audit events without storing raw tokens. - No production identity or credential was created.
Collaborator

{
"confidence": 5,
"effort_hint": "medium",
"escalation": {
"kind": "operator",
"reason": "Machine identity lifecycle controls affect credential issuance and production access boundaries."
},
"evidence_refs": [
{
"note": "Issue adds operator-safe machine identity lifecycle management for Kan-ductor.",
"type": "forgejo",
"value": "issue-title-body-labels-and-target-snapshot"
},
{
"note": "Scope covers create, rotate, pause, revoke, inspect scopes, expiry, last-used, and recent audit.",
"type": "forgejo",
"value": "issue-body-scope"
},
{
"note": "Owner gates state production credential creation is a hard stop requiring approval.",
"type": "forgejo",
"value": "issue-body-owner-gates"
}
],
"impact": 5,
"judge_actor": {
"name": "iskra",
"runtime": "openclaw"
},
"judged_at": "2026-06-08T01:12:00Z",
"labels_to_apply": [
"judge/p1",
"judge/operator-needed"
],
"piotr_fit": "high",
"priority": "p1",
"rationale_summary": "This is P1 operator-shaped security work because machine identity lifecycle controls are foundational but production credential issuance must stay owner-gated.",
"reach": 5,
"recommended_next_action": "operator_needed",
"rerun_reason": "no_prior_judgment",
"schema": "openclaw.judge.v0",
"target": {
"kind": "issue",
"number": 5,
"repo": "pdurlej/kan-ductor"
},
"target_snapshot": {
"body_hash": "sha256:b1bb2d8bf0d3f892ee4559ec532a682cdb3d7f40392bfe2bf6a8aa9fff089a34",
"commit_count": null,
"evidence_hash": "sha256:1cbd5ac4c8a9a7d0524eec9052db219e483fe8ffc9261b965cfc2301e65fff08",
"head_sha": null,
"labels": [],
"labels_hash": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"state": "open",
"title_hash": "sha256:b5e71698762dede07ac91c09742609a61525525ec0ea8384229ce35374d01931",
"updated_at": "2026-05-28T01:20:39+02:00"
},
"top_caveat": "Do not expose raw credentials after creation or issue production credentials without explicit owner approval."
}

<!-- openclaw.judge.v0 --> { "confidence": 5, "effort_hint": "medium", "escalation": { "kind": "operator", "reason": "Machine identity lifecycle controls affect credential issuance and production access boundaries." }, "evidence_refs": [ { "note": "Issue adds operator-safe machine identity lifecycle management for Kan-ductor.", "type": "forgejo", "value": "issue-title-body-labels-and-target-snapshot" }, { "note": "Scope covers create, rotate, pause, revoke, inspect scopes, expiry, last-used, and recent audit.", "type": "forgejo", "value": "issue-body-scope" }, { "note": "Owner gates state production credential creation is a hard stop requiring approval.", "type": "forgejo", "value": "issue-body-owner-gates" } ], "impact": 5, "judge_actor": { "name": "iskra", "runtime": "openclaw" }, "judged_at": "2026-06-08T01:12:00Z", "labels_to_apply": [ "judge/p1", "judge/operator-needed" ], "piotr_fit": "high", "priority": "p1", "rationale_summary": "This is P1 operator-shaped security work because machine identity lifecycle controls are foundational but production credential issuance must stay owner-gated.", "reach": 5, "recommended_next_action": "operator_needed", "rerun_reason": "no_prior_judgment", "schema": "openclaw.judge.v0", "target": { "kind": "issue", "number": 5, "repo": "pdurlej/kan-ductor" }, "target_snapshot": { "body_hash": "sha256:b1bb2d8bf0d3f892ee4559ec532a682cdb3d7f40392bfe2bf6a8aa9fff089a34", "commit_count": null, "evidence_hash": "sha256:1cbd5ac4c8a9a7d0524eec9052db219e483fe8ffc9261b965cfc2301e65fff08", "head_sha": null, "labels": [], "labels_hash": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "state": "open", "title_hash": "sha256:b5e71698762dede07ac91c09742609a61525525ec0ea8384229ce35374d01931", "updated_at": "2026-05-28T01:20:39+02:00" }, "top_caveat": "Do not expose raw credentials after creation or issue production credentials without explicit owner approval." } <!-- /openclaw.judge.v0 -->
Sign in to join this conversation.
No labels
3plus3-followup
agent/claude-code
agent/codex
agent/hermes
agent/iskra
agent/ollama
agent/patchwarden
analytics
api
cockpit
dependency/blocked
dependency/blocks-others
dependency/cross-repo
dependency/needs-confirmation
docs
domain:agents
domain:ci
domain:docs
domain:forgejo
domain:infra
domain:memory
domain:runtime
domain:signal
domain:ux
flow/architecture
flow/blocked
flow/deployed
flow/done
flow/implementation
flow/intake
flow/maintained
flow/observed
flow/ready
flow/refining
flow/retired
flow/review
gemini-flash
judge/codex-candidate
judge/hermes-candidate
judge/low-confidence
judge/needs-refinement
judge/operator-needed
judge/p0
judge/p1
judge/p2
judge/p3
judge/park
judge/patchwarden-candidate
judge/stale-priority
kind/adr
kind/bug
kind/chore
kind/feature
kind/infra
kind/ops
kind/refactor
kind/research
leviathan
mcp
merge/auto
merge/manual
merge/manual-dependency-conflict
merge/manual-failing-tests
merge/manual-merge-conflict
merge/manual-missing-review
merge/manual-operator-preference
merge/manual-red-zone
merge/manual-security-sensitive
merge/manual-unclear-scope
merge/manual-unknown
mode:operator-only
mode:patchwarden-iskra-approved
mode:safe-auto
observed/erroring
observed/needs-followup
observed/pending
observed/retire-candidate
observed/unused
observed/used
ops
priority:p0
priority:p1
priority:p2
priority:p3
review:claude-reviewed
review:codex-reviewed
review:dziadek-reviewed
review:needs-human
safety
safety:external-write
safety:no-prod-mutation
safety:prod-impact
safety:secret-touch
scout
security
size/large
size/medium
size/small
size/tiny
size/unknown
small-task
source/adr
source/agent-generated
source/manual
source/operator-chat
source/voice-note
status:blocked
status:codex-ready
status:merged:pending-evidence
status:needs-evidence
status:operator-needed
status:parked
tests
tier:0-platform-substrate
tier:1-iskra-value-layer
tier:2-tools-products-modules
type:bug
type:chore
type:docs
type:feat
type:policy
type:research
ui
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pdurlej/kan-ductor#5
No description provided.