Skip to content

fix(security): vault leases listing and --renew do nothing: the lease registry has no producer and lives for one process #1373

Closed

Description

@dan-petty

Out of scope in #709 and not yet filed.

Nothing outside security/vault_lease.py calls LeaseRegistry.track( or track_auth(. The registry is a module global in commands/vault.py (get_lease_registry), so it lives for one process. In a one-shot CLI, devops vault leases always lists nothing and --renew always renews 0 leases. Only --revoke <id> does real work.

In a long-lived process (the MCP server), the first registry is kept together with the token it was built with. A later devops vault login or logout does not reach it.

Proposed: decide whether leases need a producer (dynamic-secret reads that register their lease) and a persistent store, or whether listing and --renew should be removed until one exists. Either way, rebuild the registry when the broker's token changes.


Found on 2026-10-08 while implementing #709. Filed directly with no priority; the roadmap service's intake sets Priority, Value and Effort.

Activity

  1. added
    type/bug
    scope/security
    source/agent
    on Oct 8, 2026
  2. dan-petty-bot commented on Oct 8, 2026

    @dan-petty-bot
    Collaborator

    Intake placed this item to the backlog: at intake only a critical fix goes into a release; a release start pulls Ready items in, P0 features first.

    • Priority: P2-Medium. A security-adjacent management command silently does nothing, but core vault operations (login, read, revoke) still work, so it is not a critical outage.
    • Value: Medium. Lease listing and renewal are useful operational tools for managing dynamic secrets, but they are secondary to the core read/revoke workflow that still functions.
    • Effort: Medium. Requires either wiring a producer into dynamic-secret reads plus a persistent store, or removing the dead commands, and additionally rebuilding the registry on token change in the long-lived server path.
  3. dan-petty commented on Oct 8, 2026

    @dan-petty
    OwnerAuthor

    Linked: #1332, which moves this lease registry (commands/vault.py:63-77) into security/vault_lease.py; whichever lands second follows the other. Found by the 2026-10-08 backlog review.

  4. changed the title [-]fix(security): `vault leases` listing and `--renew` do nothing: the lease registry has no producer and lives for one process[/-] [+]fix(security): vault leases listing and --renew do nothing: the lease registry has no producer and lives for one process[/+] on Oct 26, 2026
  5. added a commit that references this issue on Oct 26, 2026
    07cb8b0
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

    scope/securitysource/agenttype/bug

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions