-
Notifications
You must be signed in to change notification settings - Fork 0
Description
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.