-
Notifications
You must be signed in to change notification settings - Fork 93
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
[BUG] - Prevent SMTP realm settings from being wiped by terraform #2180
Comments
@costrouc @dcmcand Here's what I've found and recommendations: TL;DR - short term solution to ignore_changes to the entire keycloak_realm is probably the way to go (and safer than it sounds). Might need to revisit when we talk about applying optional higher security configurations The necessary realm settings get wiped because they're managed by the keycloak_realm release in the TF provider https://registry.terraform.io/providers/mrparkers/keycloak/latest/docs/resources/realm
FYI in addition to the SMTP settings block, there's also a verify_email flag that needs to be set to true. (Nebari doesn't have an option for this either, which makes sense... if SMTP settings can't be reliably configured, then requiring users to verify email (via an outgoing Keycloak email, of course) is a dead end Here's some options. My recommendation for the <2 week release is option 1 since easiest but open to discuss
DECISIONS:
THOUGHTS:
DECISIONS:
|
Would be nice if whatever solution comes of this isn't exclusive to the SMTP settings. There are several realm level settings I've tried to adjust in the past that have this same issue, such as brute force detection, various login options, token expiration, etc.... Realm themes seem to be the only thing I've tried that survive a deployment after having been set manually and I can't tell if that's a feature or a bug of the Terraform provider. |
Describe the bug
Currently it is not possible to set keycloak realm settings without a redeploy wiping settings.
Expected behavior
Don't wipe keycloak user set realm settings
OS and architecture in which you are running Nebari
linux
How to Reproduce the problem?
Redeploy nebari
Command output
No response
Versions and dependencies used.
No response
Compute environment
None
Integrations
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: