Fix perpetual redirect_uri drift on oauth2 providers #5
Reference in New Issue
Block a user
Delete Branch "benvin/fix-redirect-uri-type"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
Every
planshowedauthentik_provider_oauth2.this["grafana"]being updated in-place, replacing theallowed_redirect_urisentry with an identical-looking one — and it never converged (re-appeared after every apply):The provider schema types
allowed_redirect_urisaslist(map(string)), and the API always stores aredirect_uri_typekey on each entry. The module only setmatching_mode+url, so the state map (3 keys) never matched the config map (2 keys).Change
Add
redirect_uri_typeto theredirect_urisobject, defaulting to"authorization". No per-provider config change needed (grafana/argocd inherit the default).Validation
terragrunt run --all plannow reports **"No changes. Your infrastructure matches the configuration."`