Skip to content

Add columns to worker_oauth to track last key rotation date and key expiry date #573

Open

Description

@MoralCode

the worker_oauth table (which is used for storing keys on instances where there are more than one of them) should ideally have columns to track key dates related to the keys, such as:

  • When they were last rotated (this can probably also account for when they were added/last updated too)
  • When they expire (nullable, some platforms allow no expiry, and some may mandate that theres an expiry date)
    - When they were first added (dubiously useful and hard to retroactively add as a mandatory field)

Having these dates would be useful to display in the UI (as part of #55) and might be helpful for reminding instance owners if some of their keys are up for expiry soon (or if they want a reminder to rotate them periodically)

Currently, if this information is desired to be stored, it can be shoved into the name field (using it more like a comments field)

Activity

  1. added
    database
    security
    on Nov 16, 2026
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

    databasesecurity

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions