Skip to content

Store operator gaps: reassign audit events, operator attribution, CLI event delivery, targets in explain/review, range filters #875

Closed

Description

@jimhoyd

Gaps found while implementing #866 and #867 (PR to follow). All were observed in the implementation; none has been designed yet.

  1. reassign doesn't audit record moves. When it moves records in an owned collection that declares audit: true, it records no audit event. Only membership moves are recorded. This behaviour predates the Membership follow-ups: members CLI, audited membership changes, reassign, enum filter validation, requester visibility #866 work.
  2. Operator changes are attributed to the literal operator. The CLI can't know which person ran it. Consider an explicit --actor or an operator identity source.
  3. CLI audit events wait for a running server. Events written by the operator CLI reach the audit log only while a server with audit is running and draining the outbox.
  4. Other commands still report extensions as conditional. Without a host file, explain, context, review and manifest don't use the installed descriptors' declared targets. validate/capabilities without --host-file should use descriptors' declared targets #867 covered only validate and capabilities.
  5. Filters don't check field limits. A filter value outside a field's minimum/maximum or length limits still returns an empty page instead of a 400. enum values are now checked.

Related: #866, #867.

Activity

  1. jimhoyd commented on Sep 29, 2026

    @jimhoyd
    CollaboratorAuthor

    Items 1, 2, 4 and 5 are in #885. Options for item 3 (CLI audit events are delivered only while a server drains):

    • A. urlcode-store audit-drain: a one-shot delivery using audit's idempotent drain against the operator's audit database.
    • B. The CLI reports undelivered events for the collections it touched, and warns when nothing has drained recently. This needs a small last-drain timestamp.
    • C. A signal that wakes a running drain immediately.

    Recommended: B now, and A if offline maintenance windows appear. A running server already delivers within about a second.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions