Commit fb59935
committed
chart: surface April 2026 security hardening flags
Adds the new CLI flags introduced by the April 2026 authorizer security
batch (https://github.com/authorizerdev/authorizer PRs #582–#590) so
operators can configure them through values.yaml instead of having to
edit the deployment template directly.
values.yaml — new fields under authorizer:
- trusted_proxies (default null) — comma-separated CIDRs of reverse
proxies whose X-Forwarded-For will be honoured. The new authorizer
binary defaults to "trust nothing" so per-IP rate limiting and audit
logs key on RemoteAddr; operators behind an ingress controller,
nginx, or Cloudflare must set this explicitly. See
https://docs.authorizer.dev/core/security#trusted-proxies
- refresh_token_expires_in (default null → 30 days in the binary) —
refresh-token lifetime in seconds. Previously hardcoded.
- enable_hsts (default false) — opt in to HSTS. Only enable behind TLS.
- disable_csp (default false) — escape hatch for the default CSP.
- graphql_max_complexity / graphql_max_depth / graphql_max_aliases /
graphql_max_body_bytes — GraphQL query DoS limits, all configurable
with safe defaults that match the binary defaults (300 / 15 / 30 /
1 MiB).
Also documents in the admin_secret comment that the field is now
required and non-empty: the authorizer binary refuses to start when
--admin-secret is empty as of the same release. Operators upgrading
from a chart that left admin_secret null will see a startup failure
unless they set it.
templates/deployment.yaml:
- Add the new --trusted-proxies / --refresh-token-expires-in /
--enable-hsts / --disable-csp / --graphql-max-* CLI flags to the
sh -c args block, alongside the existing security flags. Defaults
in the args block match the values.yaml defaults so the chart can
be installed with no extra configuration.
- Add the corresponding env entries beneath the SMTP block.
GRAPHQL_MAX_BODY_BYTES is rendered through int64 + toString to
avoid the float-conversion bug where 1048576 ends up as
"1.048576e+06" in the rendered manifest.
helm lint and helm template both pass; the new env vars render as
expected in the dry-run output.1 parent 8d28a45 commit fb59935
2 files changed
Lines changed: 72 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
81 | 89 | | |
82 | 90 | | |
83 | 91 | | |
| |||
346 | 354 | | |
347 | 355 | | |
348 | 356 | | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
349 | 380 | | |
350 | 381 | | |
351 | 382 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
140 | | - | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
141 | 145 | | |
142 | 146 | | |
143 | 147 | | |
| |||
181 | 185 | | |
182 | 186 | | |
183 | 187 | | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
0 commit comments