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

Unable to set hostname-strict-https=false #193

Closed
RHatDev opened this issue Apr 17, 2024 · 2 comments · Fixed by #195
Closed

Unable to set hostname-strict-https=false #193

RHatDev opened this issue Apr 17, 2024 · 2 comments · Fixed by #195

Comments

@RHatDev
Copy link

RHatDev commented Apr 17, 2024

SUMMARY

I am try to deploy middleware_automation.keycloak.keycloak_quarkus with the following playbook:

---
- name: Playbook for Keycloak Hosts
  hosts: all
  vars:
    keycloak_quarkus_proxy_mode: edge
    keycloak_quarkus_http_enabled: true
    keycloak_quarkus_hostname_strict: false
   keycloak_quarkus_hostname_strict_backchannel: false
    
    keycloak_quarkus_admin_pass: "remembertochangeme"
    keycloak_quarkus_configure_firewalld: true
  roles:
    - middleware_automation.keycloak.keycloak_quarkus

But when I try to connect using HTTP, its admin page keeps blank with a loading animation. To make it work I have to manually put hostname-strict-https=false and restart the keycloak service.

Therefore, I am requesting to add hostname-strict-https to the role variables.

ISSUE TYPE
  • Add role variable hostname-strict-https = false | true [default]
@InfoSec812
Copy link
Contributor

@rpelisse I will try to take a look at this tomorrow and see if I can submit a pull request.

@InfoSec812
Copy link
Contributor

@rpelisse Would it be better if I were to create a new option for a dict of additional configuration options so that more uncommon configuration options could be used without needing a specific variable for each item? Looking something like:

keycloak_additional_options:
   hostname-strict-https: true
   some-other-option: foo
   extremely-uncommon-option: bar

And those options would be appended to the end of the generated keycloak.conf?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants