This is an automated email from the ASF dual-hosted git repository.

sbp pushed a commit to branch sbp
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-releases.git


The following commit(s) were added to refs/heads/sbp by this push:
     new f197ca3  Reduce the duration of JWTs from 90 minutes to 30 minutes
f197ca3 is described below

commit f197ca347a5b1f78ca16f14e0a0ae1c026fc7212
Author: Sean B. Palmer <[email protected]>
AuthorDate: Fri Feb 6 20:20:50 2026 +0000

    Reduce the duration of JWTs from 90 minutes to 30 minutes
---
 atr/jwtoken.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/atr/jwtoken.py b/atr/jwtoken.py
index b88b20b..5034d95 100644
--- a/atr/jwtoken.py
+++ b/atr/jwtoken.py
@@ -34,6 +34,7 @@ import atr.util as util
 _ALGORITHM: Final[str] = "HS256"
 _ATR_JWT_AUDIENCE: Final[str] = "atr-api-pat-test-v1"
 _ATR_JWT_ISSUER: Final[str] = f"https://{config.get().APP_HOST}/"
+_ATR_JWT_TTL: Final[int] = 30 * 60
 _GITHUB_OIDC_AUDIENCE: Final[str] = "atr-test-v1"
 _GITHUB_OIDC_EXPECTED: Final[dict[str, str]] = {
     "enterprise": "the-asf",
@@ -48,7 +49,7 @@ if TYPE_CHECKING:
     from collections.abc import Awaitable, Callable, Coroutine
 
 
-def issue(uid: str, *, ttl: int = 90 * 60) -> str:
+def issue(uid: str, *, ttl: int = _ATR_JWT_TTL) -> str:
     now = datetime.datetime.now(tz=datetime.UTC)
     payload = {
         "sub": uid,


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to