authentik: declare grant types on new OIDC providers; forge-host = client_credentials #57

Merged
founder merged 1 commit from authentik/grant-types into main 2026-08-16 11:28:23 +00:00
Owner

Follow-up to #55: Authentik 2026.5 creates OIDC providers with NO allowed grant types unless the API payload sets them, so the new forge-host provider rejected client_credentials (Invalid grant_type for provider, DB grant_types = {}). The sync gains an optional grantTypes spec field (silent specs leave stored values untouched); forge-host declares client_credentials only. Also: google-wif-credentials.timer uses OnActiveSec instead of OnBootSec so switch-to-configuration can never run it inside the activation window (deploy run 17212 went red on that).

Follow-up to #55: Authentik 2026.5 creates OIDC providers with NO allowed grant types unless the API payload sets them, so the new forge-host provider rejected client_credentials (`Invalid grant_type for provider`, DB grant_types = {}). The sync gains an optional `grantTypes` spec field (silent specs leave stored values untouched); forge-host declares client_credentials only. Also: google-wif-credentials.timer uses OnActiveSec instead of OnBootSec so switch-to-configuration can never run it inside the activation window (deploy run 17212 went red on that).
authentik: declare grant types on new OIDC providers; forge-host = client_credentials
Some checks failed
Release: If Needed / Check (Release Needed) (push) Has been cancelled
Deploy: API / Deploy (API) (push) Has been cancelled
Deploy: Web / Deploy (Web) (push) Has been cancelled
b70b9a5ccd
The forge-host provider from #55 answered every client-credentials request
with invalid_grant: Authentik 2026.5 stores allowed grant types per
provider and the sync's POST payload never set them, so the new provider was
created with none (log: "Invalid grant_type for provider"; DB grant_types =
{}). Providers that predate the field kept the full legacy set on
migration, which is why cloud-signing/namespace/azure-signing work.

- Scripts/authentik-sync-oidc-applications.sh: optional `grantTypes` in the
  provider spec -> `grant_types` in the payload; specs that stay silent
  leave stored values untouched (PATCH without the key).
- nixos/keystore-forge.nix: forge-host declares grantTypes =
  [ "client_credentials" ] (least privilege for a machine identity).
- google-wif-credentials.timer: OnActiveSec=5m instead of OnBootSec=3m. A
  timer that switch-to-configuration starts after boot with OnBootSec in
  the past elapses immediately and runs the service inside the activation
  window; deploy run 17212 went red on exactly that (the service failed on
  the grant-type bug before the Authentik app had even synced).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
founder deleted branch authentik/grant-types 2026-08-16 11:28:23 +00:00
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
key-store/key.store!57
No description provided.