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

feat: Make token issuer validation optional #1096

Open
wants to merge 1 commit into
base: 1.9.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion install/kubernetes/microcks/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ data:
spring.security.oauth2.client.registration.keycloak.scope=openid,profile
spring.security.oauth2.client.provider.keycloak.issuer-uri=${KEYCLOAK_URL}/realms/${keycloak.realm}
spring.security.oauth2.client.provider.keycloak.user-name-attribute=preferred_username
{{- if .Values.keycloak.validateIssuerUri }}
spring.security.oauth2.resourceserver.jwt.issuer-uri=${sso.public-url}/realms/${keycloak.realm}
{{- end }}
{{- if hasKey .Values.keycloak "privateUrl" }}
spring.security.oauth2.resourceserver.jwt.jwk-set-uri=${KEYCLOAK_URL}/realms/${keycloak.realm}/protocol/openid-connect/certs
{{- end }}
Expand Down Expand Up @@ -489,7 +491,7 @@ data:
{{- if .Values.features.async.kafka.authentication.saslLoginCallbackHandlerClass }}
%kube.kafka.sasl.login.callback.handler.class={{ .Values.features.async.kafka.authentication.saslLoginCallbackHandlerClass }}
{{- end }}

%kube.mp.messaging.incoming.microcks-services-updates.security.protocol=SASL_SSL
{{- if .Values.features.async.kafka.authentication.truststoreSecretRef }}
%kube.mp.messaging.incoming.microcks-services-updates.ssl.truststore.location=/deployments/config/kafka/truststore/{{ .Values.features.async.kafka.authentication.truststoreSecretRef.storeKey }}
Expand Down
1 change: 1 addition & 0 deletions install/kubernetes/microcks/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ keycloak:
# If you use an older external Keycloak instance, url must include the '/auth' path
url: keycloak-microcks.192.168.99.100.nip.io
#privateUrl: http://microcks-keycloak.microcks.svc.cluster.local:8080
validateIssuerUri: true
#ingressSecretRef: my-secret-for-keycloak-ingress
#ingressAnnotations:
#cert-manager.io/issuer: my-cert-issuer
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/main/resources/config/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ spring.security.oauth2.client.registration.keycloak.authorization-grant-type=aut
spring.security.oauth2.client.registration.keycloak.scope=openid,profile
spring.security.oauth2.client.provider.keycloak.issuer-uri=${KEYCLOAK_URL:http://localhost:8180}/realms/${keycloak.realm}
spring.security.oauth2.client.provider.keycloak.user-name-attribute=preferred_username
spring.security.oauth2.resourceserver.jwt.issuer-uri=${KEYCLOAK_URL:http://localhost:8180}/realms/${keycloak.realm}
#spring.security.oauth2.resourceserver.jwt.issuer-uri=${KEYCLOAK_URL:http://localhost:8180}/realms/${keycloak.realm}

# Keycloak adapter configuration properties
keycloak.enabled=${KEYCLOAK_ENABLED:true}
Expand Down
Loading