Skip to content

Ability to set auth_jwt_leeway in policy resource #6827

@anderius

Description

@anderius

Overview

When configuring a JWT Policy, the ability to set the "Leeway" is very valuable, as it ensures that JWTs that:

  1. Are close to being expired, or
  2. Have been created recently, and is close to the nbf (Not Before) claim, can still be processed.

This is a mechanism to account for potential clock skews.

Acceptance Criteria

  • Allow the auth_jwt_leeway directive to be configured when deploying a jwt style policy

Additional Context

Currently, we must use snippets to configure auth_jwt_leeway (see https://nginx.org/en/docs/http/ngx_http_auth_jwt_module.html#auth_jwt_leeway).

It would be very nice if that was configurable directly in the policy resource (see https://docs.nginx.com/nginx-ingress-controller/configuration/policy-resource/#jwt-using-jwks-from-remote-location).

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/securityIssues related to security capabilities or concernsproposalAn issue that proposes a feature requestready for refinementAn issue that was triaged and it is ready to be refined

    Projects

    Status

    Prioritized backlog

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions