Skip to content

Commit a421edc

Browse files
committed
fix(templates): sync env vars with config.go definitions
- Add DB_LOG_LEVEL, CLIENT_CREDENTIALS_TOKEN_EXPIRATION, and STATIC_CACHE_MAX_AGE env vars missing from the Helm chart - Remove unused *_RATE_LIMIT_BURST env vars not read by the app
1 parent 4e5bfcb commit a421edc

2 files changed

Lines changed: 23 additions & 10 deletions

File tree

templates/configmap.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ data:
2121
DB_MAX_IDLE_CONNS: {{ .Values.dbPool.maxIdleConns | quote }}
2222
DB_CONN_MAX_LIFETIME: {{ .Values.dbPool.connMaxLifetime | quote }}
2323
DB_CONN_MAX_IDLE_TIME: {{ .Values.dbPool.connMaxIdleTime | quote }}
24+
DB_LOG_LEVEL: {{ .Values.dbPool.logLevel | quote }}
2425

2526
# JWT (non-sensitive)
2627
JWT_SIGNING_ALGORITHM: {{ .Values.jwt.signingAlgorithm | quote }}
@@ -59,15 +60,10 @@ data:
5960
RATE_LIMIT_STORE: {{ .Values.rateLimit.store | quote }}
6061
RATE_LIMIT_CLEANUP_INTERVAL: {{ .Values.rateLimit.cleanupInterval | quote }}
6162
LOGIN_RATE_LIMIT: {{ .Values.rateLimit.login | quote }}
62-
LOGIN_RATE_LIMIT_BURST: {{ .Values.rateLimit.loginBurst | quote }}
6363
DEVICE_CODE_RATE_LIMIT: {{ .Values.rateLimit.deviceCode | quote }}
64-
DEVICE_CODE_RATE_LIMIT_BURST: {{ .Values.rateLimit.deviceCodeBurst | quote }}
6564
TOKEN_RATE_LIMIT: {{ .Values.rateLimit.token | quote }}
66-
TOKEN_RATE_LIMIT_BURST: {{ .Values.rateLimit.tokenBurst | quote }}
6765
DEVICE_VERIFY_RATE_LIMIT: {{ .Values.rateLimit.deviceVerify | quote }}
68-
DEVICE_VERIFY_RATE_LIMIT_BURST: {{ .Values.rateLimit.deviceVerifyBurst | quote }}
6966
INTROSPECT_RATE_LIMIT: {{ .Values.rateLimit.introspect | quote }}
70-
INTROSPECT_RATE_LIMIT_BURST: {{ .Values.rateLimit.introspectBurst | quote }}
7167

7268
# Redis
7369
{{- if include "authgate.redisAvailable" . }}
@@ -157,6 +153,9 @@ data:
157153
ENABLE_TOKEN_ROTATION: {{ .Values.refreshToken.rotation | quote }}
158154
REFRESH_TOKEN_EXPIRATION: {{ .Values.refreshToken.expiration | quote }}
159155

156+
# Client Credentials Flow
157+
CLIENT_CREDENTIALS_TOKEN_EXPIRATION: {{ .Values.clientCredentials.tokenExpiration | quote }}
158+
160159
# Authorization Code Flow
161160
AUTH_CODE_EXPIRATION: {{ .Values.authCode.expiration | quote }}
162161
PKCE_REQUIRED: {{ .Values.authCode.pkceRequired | quote }}
@@ -166,6 +165,9 @@ data:
166165
ENABLE_DYNAMIC_CLIENT_REGISTRATION: {{ .Values.dynamicClientRegistration.enabled | quote }}
167166
DYNAMIC_CLIENT_REGISTRATION_RATE_LIMIT: {{ .Values.dynamicClientRegistration.rateLimit | quote }}
168167

168+
# Static File Caching
169+
STATIC_CACHE_MAX_AGE: {{ .Values.staticCache.maxAge | quote }}
170+
169171
# CORS
170172
CORS_ENABLED: {{ .Values.cors.enabled | quote }}
171173
{{- if .Values.cors.enabled }}

values.yaml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ dbPool:
4848
maxIdleConns: 10
4949
connMaxLifetime: "5m"
5050
connMaxIdleTime: "10m"
51+
# -- GORM log level: "silent", "error", "warn", "info"
52+
logLevel: "warn"
5153

5254
# ============================================================
5355
# Secrets
@@ -146,15 +148,10 @@ rateLimit:
146148
store: "memory"
147149
cleanupInterval: "5m"
148150
login: 5
149-
loginBurst: 2
150151
deviceCode: 10
151-
deviceCodeBurst: 3
152152
token: 20
153-
tokenBurst: 5
154153
deviceVerify: 10
155-
deviceVerifyBurst: 3
156154
introspect: 20
157-
introspectBurst: 5
158155

159156
# ============================================================
160157
# Audit Logging
@@ -281,6 +278,13 @@ refreshToken:
281278
rotation: false
282279
expiration: "720h"
283280

281+
# ============================================================
282+
# Client Credentials Flow (RFC 6749 §4.4)
283+
# ============================================================
284+
clientCredentials:
285+
# -- Access token lifetime for client_credentials grant
286+
tokenExpiration: "1h"
287+
284288
# ============================================================
285289
# Authorization Code Flow
286290
# ============================================================
@@ -304,6 +308,13 @@ expiredTokenCleanup:
304308
enabled: false
305309
interval: "1h"
306310

311+
# ============================================================
312+
# Static File Caching
313+
# ============================================================
314+
staticCache:
315+
# -- Cache-Control max-age for non-hashed static files (0 disables)
316+
maxAge: "24h"
317+
307318
# ============================================================
308319
# CORS
309320
# ============================================================

0 commit comments

Comments
 (0)