b6e9b6b6b92d446b42d654a58b022b7276175270
OAuth2 providers with no signing_key fall back to HS256, which RS256-only RP clients (argocd confirmed, and the rest) reject with "unexpected signature algorithm HS256; expected [RS256]", breaking OIDC login. - Add data.authentik_certificate_key_pair.signing, resolving the estate's RSA keypair by name (var.oauth2_signing_key_name, default the built-in "authentik Self-signed Certificate"). - Default every provider's signing_key to that keypair via coalesce, so all providers sign with RS256 while keeping the per-yaml signing_key override. Claude-Session: https://claude.ai/code/session_015ur3i7D2azsMAWTSVABApv
terraform-authentik
Terraform configuration for managing the Authentik identity provider at identity.unkin.net.
Managed Resources
- Groups — roles and group hierarchy (users are invited manually)
- SAML providers — SAML application integrations
- OAuth2/OIDC providers — OAuth2 and OpenID Connect integrations
- LDAP providers — LDAP provider and outpost configuration
- Applications — application definitions linked to providers
Configuration
Resources are defined as YAML files under config/:
config/
├── groups/ # Group definitions
├── providers_saml/ # SAML provider definitions
├── providers_oauth2/ # OAuth2/OIDC provider definitions
└── providers_ldap/ # LDAP provider definitions
Usage
make plan # init + plan
make apply # init + plan + apply
make format # format all .tf and .hcl files
Authentication
Set VAULT_ROLEID for local AppRole auth, or VAULT_AUTH_METHOD=kubernetes for CI.
Description
Languages
HCL
94.3%
Makefile
5.7%