Skip to content

Sliding renewal can extend a session past absolute_timeout #164

Description

@allen0099

Part of #117.

With absolute_timeout set, a sliding renewal can push expires_at, and with it the JWT exp and the backend TTL, past created_at + absolute_timeout. The session is rejected at the cap on the next read. Until then, the token and the stored record claim a longer life than the configuration allows.

Proposal

Clamp the renewed expires_at, and the TTL derived from it, to created_at + absolute_timeout. Add a regression test.

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

    bugSomething isn't workingsessionSession management subsystem

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions