Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding fields to ignore within keycloak_realm #2200

Merged
merged 3 commits into from
Jan 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,48 @@ resource "keycloak_realm" "main" {
web_authn_passwordless_policy {
}

lifecycle {
ignore_changes = [
# We want user to have control over attributes we are not managing
# If attribute is added above remove it from this list
# https://registry.terraform.io/providers/mrparkers/keycloak/latest/docs/resources/realm
attributes,
registration_allowed,
registration_email_as_username,
edit_username_allowed,
reset_password_allowed,
remember_me,
verify_email,
login_with_email_allowed,
login_theme,
account_theme,
admin_theme,
email_theme,
sso_session_idle_timeout,
sso_session_max_lifespan,
sso_session_idle_timeout_remember_me,
sso_session_max_lifespan_remember_me,
offline_session_idle_timeout,
offline_session_max_lifespan,
access_token_lifespan,
access_token_lifespan_for_implicit_flow,
access_code_lifespan,
access_code_lifespan_login,
access_code_lifespan_user_action,
action_token_generated_by_user_lifespan,
action_token_generated_by_admin_lifespan,
oauth2_device_code_lifespan,
oauth2_device_polling_interval,
smtp_server,
internationalization,
security_defenses,
password_policy,
otp_policy,
default_default_client_scopes,
default_optional_client_scopes,
]
}

}

resource "keycloak_group" "groups" {
Expand Down
Loading