KeyCloak - Allow selection of Http/Https Schemes for the URL's this is for running KeyCloak on HTTPs #8064
Labels
area-app-model
Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication
Is there an existing issue for this?
Describe the bug
Please assist in updating the code in the method: public static IResourceBuilder AddKeycloak(
We are required to run keycloak on HTTPs endpoints and the code is hardcoded to add HTTP endpoints
if we do not change the scheme, health checks fail and then the code does not run correctly.
.........
Expected Behavior
When adding KeyCloak, the developer is able to select HTTP or HTTPS schemes.
I've attached the sample changes I made to the class, and have tested it is working as expected.
NB.
I am using the RunWithHttpsDevCertificate for the Development Certs and for Production I am using a custom wildcard signed certificate
https://github.com/dotnet/aspire-samples/blob/b741f5e78a86539bc9ab12cd7f4a5afea7aa54c4/samples/Keycloak/Keycloak.AppHost/KeycloakExtensions.cs
KeycloakResourceBuilderExtensions.txt
Steps To Reproduce
No response
Exceptions (if any)
ACI is giving some challenges with running KeyCloak on HTTPS with custom certificates, it seems like the Controller cannot connect to the Application Ports on port 8443, and giving the generic upstream error message. To work around this for now we are running the deployed environment on HTTP, and use ACI to convert it to HTTPS, we set the KC_HOSTNAME parameter to the full URL https://your.domain.name/admin all works well.
our other apps using back channel are using HTTPS, going out of the container environment and then back in via the HTTPS port until we can resolve running KeyCloke on ACI with HTTPS configuration.
.NET Version info
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: