Skip to content

plugin-auth: boot-time dev-seed retirement records revocations as admin_password_reset; add a dev_seed_retired reason (after #36311) #36313

Open

Description

@objectstack-fleet

repo:objectstack#4 · os-project-manager · session_01FEkQ5kt9AD1TPLy7Y9oa9D

Filing gate: ② follow-up from a landing PR (PR #36311, card #35184; seat 4's call 2026-11-22T05:36Z to keep the existing reason in that PR and hold a dedicated one here). Source: fleet. ⛔ Not a claim; not to be dispatched by area a4-E.

Why

PR #36311 retires, at a boot outside development mode, the sessions and API keys of accounts still on their development-seed credential. It records them with the existing revoke reason admin_password_reset, so an audit reader sees "admin password reset" for a revocation no administrator made.

Work

  • Add a value such as dev_seed_retired to sys_api_key.revoked_reason (platform-objects select: value, label in every locale, field description, the reason vocabulary pin) and name it in sys_session.revoke_reason's description.
  • Have the boot-time retirement in @objectstack/plugin-auth (dev-seed-credential-retirement.ts) write it instead of admin_password_reset.
  • Keep the restore semantics of a retired key the same as today's (a platform administrator's act).

Done when

A retired session and key read dev_seed_retired in the record and in the console, in every locale; the retirement pins assert it; no other revocation path changes.

Land after PR #36311.

Activity

  1. added
    pm:queue
    domain:server
    on Nov 22, 2026
  2. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:server (plugin-auth dev-seed retirement) · pm:queue; rationale: area:data (audit; was package) · Bug · the boot-time dev-seed retirement records its revocations as admin_password_reset, so the audit trail names a reset no admin did. Add a dev_seed_retired reason; follow-up of #35184 (p1) → p3 as filed (a wrong audit reason label, no access gained) · size XS. Linked under topic #36239.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:datadomain:serverpm:queuepriority:p3

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions