Update Keycloak Hosting Integration to work with Azure Container Apps #8476
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Per #6004, deploying a container provisioned via the Keycloak integration won't start in Azure Container Apps (ACA).
ACA will try to activate it, but it continuously fails.
The container reports this in the logs:
Key material not provided to setup HTTPS. Please configure your keys/certificates or start the server in development mode.
This PR includes a basic starting point for changes required to get Keycloak working in Azure Container Apps (see #6004).
This may need to be altered to add local dev case to continue to use default local dev port of 8080 via http and only include these additional env vars when deploying to azure container apps or if passed port is 8443. Open to making additional changes based on review and suggestions, but wanted to show bare minimum to get it working and be able to support ACA SSL.
Fixes # 6004
Checklist
<remarks />
and<code />
elements on your triple slash comments?breaking-change
template):doc-idea
template):