-
-
Notifications
You must be signed in to change notification settings - Fork 46
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
Enabling Direct Communication Between API and Dex Services Inside Kubernetes Clusters #773
Comments
Hello @Bart-vanDongen The value that is being used when deploying the helm chart is I could try to use Line 69 in 843b3bf
I will do some test and update this issue, thank you for the suggestion. |
I did some test @Bart-vanDongen And it looks like the token issuer should match to the parameter that we send to the api/registry configuration, if the values does not match you get the following error: java.lang.IllegalStateException: The Issuer "https://5556-azbuilder-terrakube-qctju4md51d.ws-us110.gitpod.io/dex" provided in the configuration did not match the requested issuer "http://localhost:5556/dex"
at org.springframework.util.Assert.state(Assert.java:97) ~[spring-core-5.3.31.jar:5.3.31]
at org.springframework.security.oauth2.jwt.JwtDecoderProviderConfigurationUtils.validateIssuer(JwtDecoderProviderConfigurationUtils.java:84) ~[spring-security-oauth2-jose-5.7.11.jar:5.7.11] The reason is this validation in spring security |
Hi @alfespa17. Thank you for quickly looking into this. See github issue in spring-security/oauth here they are talking about the same setup: This is the github issue where they added the option to set authorization-uri and token-uri property instead of the issuer-uri property. |
This could work, I will do some test, thank you for the suggestion |
Hello @Bart-vanDongen I checked the proposed solution using spring-projects/spring-security#10309 We are using spring-boot-security 2.7.18 which include spring-security 5.7.11 https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-security/2.7.18 So we will have to update spring-boot to version 3, I was planning to do that next month so I will leave this issue open until I complete the migration for now |
By the way I will move the issue to the main repository |
I have been testing the above suggestion using spring security but it does not work, there is an open issue related to that configuration here |
When configuring terrakube, there might be scenarios where you need the API service and the Dex authentication services to establish direct communication. This setup is particularly beneficial when operating in environments protected by IP whitelisting or behind Web Application Firewalls (WAF).
To facilitate this, an additional configuration parameter can be introduced to support internal communication between these services. Should this parameter be absent in the Helm configuration, the system should revert to using the default URI settings for connectivity. This ensures seamless interaction between services without routing traffic outside of the Kubernetes cluster.
example:
The text was updated successfully, but these errors were encountered: