Add several minutes of default leeway to reduce issues with time mis-alignment

Created on 14 March 2024, 11 months ago
Updated 14 August 2024, 6 months ago

Problem/Motivation

In our use of the JWT library, we are not configuring any leeway in the NBF or IAT time checking.

Steps to reproduce

If you JWT is generated 1 sec in advance of the server time, it will be rejected.

Proposed resolution

Add a default leeway, maybe configurable as a service parameter

Looks like 5 minutes should be a reasonable choice - the default in Kerberos and the limit in the Windows system

https://web.mit.edu/kerberos/krb5-1.5/krb5-1.5.4/doc/krb5-admin/Clock-Sk...
https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windo...(v=ws.11)

Remaining tasks

Add code and tests

User interface changes

n/a

API changes

n/a

Data model changes

n/a

✨ Feature request
Status

Needs review

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States pwolanin

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024