mirror of
https://github.com/ghndrx/authentik-terraform.git
synced 2026-02-10 06:44:58 +00:00
feat: Add custom MFA authentication flow with configurable enforcement
- Add authentication-flow.tf with complete MFA auth flow: - Identification -> Password -> MFA validation -> Session stages - Brute-force reputation policy binding - Evaluates policies on plan for user context - Add configuration variables: - enable_mfa_flow: Toggle custom MFA flow (default: false) - mfa_enforcement: skip/configure/deny (default: configure) - Fix existing issues: - rbac-groups.tf: parent -> parents (list) - source-google.tf: Use variables instead of deprecated sops - Google source now conditional (created only if credentials provided) - Update README: - Document MFA enforcement levels - Add authentication-flow.tf to file structure - Explain Option 1 (Terraform) vs Option 2 (manual UI) for MFA setup Security: Custom flow includes brute-force protection policy bound at flow level, not just stage level.
This commit is contained in:
3
main.tf
3
main.tf
@@ -58,7 +58,8 @@ resource "authentik_brand" "main" {
|
||||
branding_logo = "/static/dist/assets/icons/icon_left_brand.svg"
|
||||
branding_favicon = "/static/dist/assets/icons/icon.png"
|
||||
|
||||
flow_authentication = data.authentik_flow.default_authentication.id
|
||||
# Use MFA auth flow if enabled, otherwise default
|
||||
flow_authentication = var.enable_mfa_flow ? authentik_flow.mfa_authentication.uuid : data.authentik_flow.default_authentication.id
|
||||
flow_invalidation = data.authentik_flow.default_invalidation.id
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user