-
Notifications
You must be signed in to change notification settings - Fork 330
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
Realm import does not include security defenses headers #218
Comments
I saw that as well, i have added those fields in pr #215, should work once that PR is merged. |
Ah okey great. Thanks for the update as well 👍 |
Hey @adresan #215 was merged, Can you check if if this now works for you? |
Seems not to work. The security defenses headers are still comple empty in the statefile after a realm import.
|
Strange. |
Mhh yes, strange. Their should be no connection between a import of a realm and the defined attributes/variables inside the keycloak_realm resource. If you left security_defenses complete from your .tf file, he should still import the security_defenses inside the statefile if their are set in a keycloak realm - like he does with the smtp settings. But even if i define it with the example from the doc., he still not import it. I tryed it with the release version and also with a build from source. No difference. |
First of all I have to correct and excuse myself, The change I did #215 Is a change on data_source_keycloak_realm and that has no influence on keycloak realm resource import. Again my excuses for the confusion |
Really no problem. I keep this issue open. If you or somebody else could fix this, i can test it again. |
I think I had a related issue: I imported the realm, and some time later I changed via Terraform the passwordPolicy. Although the execution plan showed only the passwordPolicy change, after applying, it wiped out all my customizations under Security Defenses (which was not present on the TF file). |
During i write documentation for the security defenses headers of the keycloak_realm resource (#130), i notice that a terraform import does not write any informations from the
headers
andbrute_force_detection
block in the terraform statefile. Its seems all settings of thesecurity_defenses
are ignored at a terraform import. Creating and updating a realm with the settings works fine.I cant fix this by myself, because my go-debugger does not work inside the WSL until the WSL2 release.
The text was updated successfully, but these errors were encountered: