Skip to content

Request: Add response header with remaining validity of the API key #1

@buczek

Description

@buczek

As far as I can see, there currently is no way to programmatically get the validity period or the remaining validity time of an API key. The web GUI at https://saia.gwdg.de/dashboard is designed for interactive usage.

I'd like to trigger an alarm if API keys used in production threaten to expire.

I don't fully understand your setup and the kong sources don't seem to be published(?) . I assume that kong is the component that verifies the keys from a database and adds, for example, the "x-ratelimit", "ratelimit" and "x-kong" headers. If so, it might be quite simple to add another header with that information for the key used in the request.

I think a header with the remaining time would be more robust than an absolute time, because it avoids errors and complications with delta time calculations on the client side.

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