Skip to content

[P2] Clean up expired OAuth states and connection credentials #54

Description

@michielbdejong

Recorded during review of main at a1eb305ccfa2f3fc8ddede4875765cf1b099bd2b. This issue records a finding only; no implementation changes were made or requested.

Finding

oauth_states and connection_codes retrieval deletes only a matching unexpired row. Expired or abandoned records have no cleanup path and can accumulate indefinitely. Handoffs and consumed challenges have cleanup logic, so the retention behavior is inconsistent.

Evidence

Desired outcome

Add expiry cleanup and suitable indexes for these tables. Verify abandoned and expired rows are eventually removed without deleting live records.

No activity

Activity on this issue will appear here.

Activity

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