-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Description This adds sso support by integrating with keycloak using SAML protocol. Also refactored the IDAM related zarf variables to helm values. ## Related Issue Fixes #49 Depends on defenseunicorns/uds-core#328 ## Type of change - [ ] Bug fix (non-breaking change which fixes an issue) - [x] New feature (non-breaking change which adds functionality) - [ ] Other (security config, docs update, etc) ## Checklist before merging - [ ] Test, docs, adr added or updated as needed - [ ] [Contributor Guide Steps](https://github.com/defenseunicorns/uds-package-sonarqube/blob/main/CONTRIBUTING.md#developer-workflow) followed
- Loading branch information
Showing
6 changed files
with
61 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# This secret will be used if sso is disabled, instead of the templated one in uds-package.yaml. | ||
# Sonarqube needs to mount the secret and creating it this way avoids creating an unnecessary | ||
# client in the keycloak realm and unnecessary secret data in the cluster. | ||
{{- if not .Values.sso.enabled }} | ||
|
||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: {{ .Values.sso.secretName }} | ||
namespace: {{ .Release.Namespace }} | ||
type: "Opaque" | ||
stringData: | ||
secret.properties: | | ||
sonar.auth.saml.enabled: {{ .Values.sso.enabled }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
domain: "###ZARF_VAR_DOMAIN###" | ||
sso: | ||
enabled: true | ||
secretName: sonarqube-sso | ||
saml: | ||
providerName: Keycloak # This is displayed on the SonarQube landing screen ("Log in with <providerName>") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters