Skip to content

ticket provider: sweep expired-unspent tickets + per-vault mint cap (from #611 review) #612

Description

@unforced

InProcessAttachmentTicketProvider has no sweep of expired-unspent tickets and no mint cap — an authenticated caller mass-minting without spending grows the process-wide Map until restart (mild memory pressure on multi-vault bun hosts). Fix direction per the reviewer: a periodic setInterval sweep dropping expiresAt < now, or a soft live-ticket cap per vault. Low sev (restart bounds it; TTL ≤30min); the cloud DO mirror needs its own storage story anyway.

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