diff --git a/charts/rocketgraph/Chart.yaml b/charts/rocketgraph/Chart.yaml index 7f1ddd0..760f9bb 100644 --- a/charts/rocketgraph/Chart.yaml +++ b/charts/rocketgraph/Chart.yaml @@ -2,5 +2,5 @@ apiVersion: v2 name: rocketgraph description: Rocketgraph Mission Control with xGT icon: https://rocketgraph.com/wp-content/uploads/2025/02/R-logo-color.png -version: 0.5.0 +version: 0.5.1 appVersion: "2.7.0" diff --git a/charts/rocketgraph/README.md b/charts/rocketgraph/README.md index 27837ad..33aefaa 100644 --- a/charts/rocketgraph/README.md +++ b/charts/rocketgraph/README.md @@ -165,6 +165,9 @@ By default, the chart generates configuration in a ConfigMap, mounts license/TLS ```yaml xgt: hostname: demo-xgt-prod + auth: + pam: + enabled: false # The supplied example configuration uses OpenShift OAuth. files: existingClaim: xgt-files subPath: xgt-prod @@ -820,6 +823,29 @@ The test release's Mission Control can connect to all three endpoints. Set its ` `missionControl.enabled=false` suppresses frontend/backend workloads and their resources, but does not disable MongoDB automatically. xGT-only releases still honor `backend.oidc.caCertExistingSecret` or `backend.oidc.caCert` for the shared OIDC CA mount. All normal `xgt.*` settings continue to apply. +### PAM and Basic Authentication Policy + +The standard XGT images use `pam_permit.so`, which accepts arbitrary usernames and passwords. Configuring OIDC, Kerberos, or certificate authentication in XGT does not disable that independent PAM login path. Restrict it for deployments that require token authentication: + +```yaml +xgt: + auth: + pam: + enabled: false +``` + +The chart mounts a read-only `pam_deny.so` policy at `/etc/pam.d/xgtd`. It blocks all authentication paths that use PAM: basic/password login (including LDAP/SSSD), custom PKI, and trusted-proxy login. The independent token authentication path remains available. This requires no root startup command and works with `restricted-v2`, existing configuration ConfigMaps, and files PVCs. It does not disable independently configured Kerberos or standard PKI authentication. + +The default `true` preserves the image's or administrator's PAM policy. An omitted setting or `null` also preserves that policy. The chart does not infer authentication policy from OIDC settings, existing configuration ConfigMaps, files PVCs, or custom commands, arguments, environment variables, or mounts. Set `false` explicitly for deployments that require token authentication. + +The setting is named `pam` because the rejecting policy applies to every PAM-based method; it cannot disable only username/password login while retaining custom PKI or trusted-proxy login. Replace the preliminary `xgt.auth.basic.enabled` name with `xgt.auth.pam.enabled`; the old name is rejected by values validation. + +With `xgt.auth.pam.enabled: true`, configure and review the active PAM policy; preserving it does **not** make `pam_permit.so` secure. For direct LDAP, `xgt.ldap.enabled` starts the image's SSSD integration and changes PAM to `pam_sss.so`; it requires PAM to remain enabled. When reusing host SSSD, supply the appropriate PAM configuration as well as the sockets. If both OIDC and PAM are intentionally allowed, ensure PAM validates credentials instead of using `pam_permit.so`. + +When PAM is preserved, an administrator-managed policy can use an extra volume named `xgt-pam`; the chart reserves that name only when it mounts its own rejecting policy. With PAM blocked, extra mounts cannot replace `/etc/pam.d/xgtd` or a parent directory. Mount paths are normalized for collision checks, so alternate spellings such as `/etc//pam.d` do not bypass the restriction. + +If you used the preliminary automatic policy, set `xgt.auth.pam.enabled: false` before upgrading to retain PAM rejection; `null` no longer selects a policy automatically. Helm changes to this setting roll the XGT pod. For token-only deployments, verify that the intended token login succeeds and that `xgt.BasicAuth("xgtd", "")` is rejected; authentication and TLS are separate requirements. + ### LDAP Authentication xGT supports LDAP authentication via PAM/SSSD. When enabled, the chart mounts an SSSD @@ -944,11 +970,13 @@ and `MC_OIDC_*` configuration names for both integrations. To enable OIDC login, set `backend.env.XGT_AUTH_TYPES` and configure `xgt.extraConfig.security.oidc`. The backend discovers the issuer, client ID, and scopes from xGT when the issuer or client ID is unset. Supply confidential-client secrets and private CA certificates separately. Override the client ID when Mission Control has its own client; override `frontendUrl` only when the derived public URL is wrong. +Set `xgt.auth.pam.enabled: false` to reject the container's independent PAM/basic login path. Choosing `XGT_AUTH_TYPES` changes Mission Control's login choices; it does not restrict direct Python connections. See [PAM and Basic Authentication Policy](#pam-and-basic-authentication-policy). + See the [OIDC configuration guide](../../doc/oidc_configuration.md) for how the redirect URI is derived, the full environment-variable reference, and the security allowlists (`MC_XGT_ALLOWED_HOSTS`, `MC_OIDC_ALLOWED_ORIGINS`) — that guide includes Kubernetes and OpenShift examples, such as the wildcard patterns needed for StatefulSet pod hostnames and cluster subdomains. #### Keycloak -For screenshots, token mappers, Python login scripts and optional LDAP/CA setup, follow [Keycloak Setup for xGT](../../doc/keycloak_setup/README.md). Its Helm examples require chart **0.5.0**; the [Mission Control page](../../doc/keycloak_setup/mission_control.md) includes the client registration, Secret, values and Route manifests. +For screenshots, token mappers, Python login scripts and optional LDAP/CA setup, follow [Keycloak Setup for xGT](../../doc/keycloak_setup/README.md). Its Helm examples require chart **0.5.1**; the [Mission Control page](../../doc/keycloak_setup/mission_control.md) includes the client registration, Secret, values and Route manifests. Register a confidential client named `mission-control` with Standard flow enabled and callback `https://mc.example.com/api/login/oidc/callback`. Store its secret in `mission-control-oidc` under key `MC_OIDC_CLIENT_SECRET`. Keep the Python browser client `xgtd-client` public with PKCE `S256` and callback `http://127.0.0.1:8765/callback`. Mission Control 2.7.0 does not send PKCE, so do not require it on the confidential client. @@ -962,6 +990,9 @@ backend: existingSecret: mission-control-oidc xgt: + auth: + pam: + enabled: false extraConfig: security.oidc: validation_mode: jwt @@ -1000,6 +1031,9 @@ backend: frontendUrl: https://mc.apps.cluster.example.com xgt: + auth: + pam: + enabled: false extraConfig: security.oidc: issuer: https://oauth-openshift.apps.cluster.example.com @@ -1270,6 +1304,7 @@ The Ingress routes to the frontend service on port 80. The ingress controller te | Parameter | Description | Default | |-----------------------------|--------------------------------------|----------------| | `xgt.enabled` | Deploy xGT as part of the release | `true` | +| `xgt.auth.pam.enabled` | `false`: block all PAM-based login (password/LDAP, custom PKI, trusted proxy); `true`, omitted, or `null`: preserve the image/admin PAM policy without automatic detection | `true` | | `xgt.hostname` | Fixed container OS hostname for licensing; does not change the pod or Service name | `""` | | `xgt.oidc.caCert` | Inline CA PEM for xGT OIDC HTTPS requests; creates an xGT CA Secret | `""` | | `xgt.oidc.caCertExistingSecret` | Existing xGT OIDC CA Secret; preferred over inline CA. Uses legacy backend CA settings if both xGT sources are empty | `""` | diff --git a/charts/rocketgraph/examples/xgt_existing_files.yaml b/charts/rocketgraph/examples/xgt_existing_files.yaml index 944e660..0ed72e2 100644 --- a/charts/rocketgraph/examples/xgt_existing_files.yaml +++ b/charts/rocketgraph/examples/xgt_existing_files.yaml @@ -12,6 +12,9 @@ openshift: fips: enabled: true xgt: + auth: + pam: + enabled: false # The supplied example configuration uses OpenShift OAuth. hostname: demo-xgt-prod image: tag: 2.7.1 diff --git a/charts/rocketgraph/examples/xgt_files_separate_data.yaml b/charts/rocketgraph/examples/xgt_files_separate_data.yaml index 88adf05..75fcee7 100644 --- a/charts/rocketgraph/examples/xgt_files_separate_data.yaml +++ b/charts/rocketgraph/examples/xgt_files_separate_data.yaml @@ -12,6 +12,9 @@ openshift: fips: enabled: true xgt: + auth: + pam: + enabled: false # The supplied example configuration uses OpenShift OAuth. hostname: demo-xgt-prod image: tag: 2.7.1 diff --git a/charts/rocketgraph/examples/xgt_openshift_restricted.yaml b/charts/rocketgraph/examples/xgt_openshift_restricted.yaml index 0709411..83214d5 100644 --- a/charts/rocketgraph/examples/xgt_openshift_restricted.yaml +++ b/charts/rocketgraph/examples/xgt_openshift_restricted.yaml @@ -10,6 +10,9 @@ openshift: fips: enabled: true xgt: + auth: + pam: + enabled: false hostname: demo-xgt-test image: tag: 2.7.1 diff --git a/charts/rocketgraph/templates/NOTES.txt b/charts/rocketgraph/templates/NOTES.txt index c49f2a5..da07c54 100644 --- a/charts/rocketgraph/templates/NOTES.txt +++ b/charts/rocketgraph/templates/NOTES.txt @@ -39,6 +39,11 @@ WARNING: Mission Control is disabled but MongoDB is still enabled. Set mongodb.e {{ if .Values.xgt.enabled }} xGT Service: {{ include "rocketgraph.fullname.xgt" . }}:{{ .Values.xgt.port }} +{{- if eq (include "rocketgraph.xgtPamAuthEnabled" .) "true" }} +WARNING: xGT PAM authentication preserves the image/admin PAM policy. Standard images use pam_permit.so and accept arbitrary credentials. Set xgt.auth.pam.enabled=false for token authentication, or configure PAM to validate users. +{{- else }} +xGT PAM authentication: BLOCKED. This includes password/LDAP, custom PKI, and trusted-proxy login. Independent authentication mechanisms require their own server configuration. +{{- end }} {{- with .Values.xgt.hostname }} xGT container hostname: {{ . }} (the pod name is generated by the Deployment). {{- end }} diff --git a/charts/rocketgraph/templates/_helpers.tpl b/charts/rocketgraph/templates/_helpers.tpl index 45fcd08..b836346 100644 --- a/charts/rocketgraph/templates/_helpers.tpl +++ b/charts/rocketgraph/templates/_helpers.tpl @@ -121,6 +121,17 @@ Backend OIDC CA cert secret name {{- .Values.backend.oidc.caCertExistingSecret | default (printf "%s-backend-oidc-ca" .Release.Name) }} {{- end }} +{{/* Only an explicit false installs the chart's rejecting PAM policy. */}} +{{- define "rocketgraph.xgtPamAuthEnabled" -}} +{{- $auth := .Values.xgt.auth | default dict -}} +{{- $pam := $auth.pam | default dict -}} +{{- if kindIs "bool" $pam.enabled -}} + {{- $pam.enabled -}} +{{- else -}} + true +{{- end -}} +{{- end -}} + {{/* xGT owns its OIDC CA; backend settings remain a legacy fallback. */}} {{- define "rocketgraph.xgtOidcCa" -}} {{- $oidc := .Values.xgt.oidc | default dict -}} diff --git a/charts/rocketgraph/templates/_validation.tpl b/charts/rocketgraph/templates/_validation.tpl index 16c4e23..9c6f0f3 100644 --- a/charts/rocketgraph/templates/_validation.tpl +++ b/charts/rocketgraph/templates/_validation.tpl @@ -53,6 +53,10 @@ Call via: {{- include "rocketgraph.validate" . }} {{- end }} {{- if .Values.xgt.enabled }} +{{- $pamAuth := eq (include "rocketgraph.xgtPamAuthEnabled" .) "true" }} +{{- if and (not $pamAuth) .Values.xgt.ldap.enabled }} + {{- fail "PAM/SSSD LDAP requires xgt.auth.pam.enabled=true; disable xgt.ldap.enabled for token-only authentication" }} +{{- end }} {{- if .Values.xgt.files.existingClaim }} {{- if or .Values.xgt.config.existingConfigMap .Values.xgt.config.grouplabelCsv .Values.xgt.config.labelCsv .Values.xgt.config.proxyList .Values.xgt.extraConfig }} {{- fail "xgt.files.existingClaim uses configuration files on the PVC; remove xgt.config overrides and xgt.extraConfig and edit the PVC files instead" }} @@ -68,6 +72,7 @@ Call via: {{- include "rocketgraph.validate" . }} {{- fail "xgt.files.subPath requires xgt.files.existingClaim" }} {{- end }} {{- $volumeNames := list "xgt-config" "xgt-data" "xgt-log" "xgt-tls" "xgt-license" "sssd-config" "oidc-ca-cert" "xgt-files" }} +{{- if not $pamAuth }}{{- $volumeNames = append $volumeNames "xgt-pam" }}{{- end }} {{- range .Values.xgt.extraVolumes }} {{- if or (not .name) (has .name $volumeNames) }}{{- fail "xgt.extraVolumes names must be unique and must not replace chart volume names" }}{{- end }} {{- $volumeNames = append $volumeNames .name }} @@ -83,8 +88,12 @@ Call via: {{- include "rocketgraph.validate" . }} {{- if .Values.xgt.config.proxyList }}{{- $mountPaths = append $mountPaths "/conf/proxy_list" }}{{- end }} {{- end }} {{- range .Values.xgt.extraVolumeMounts }} - {{- if or (not .mountPath) (has .mountPath $mountPaths) }}{{- fail "xgt.extraVolumeMounts must use unique mount paths and must not replace chart mounts" }}{{- end }} - {{- $mountPaths = append $mountPaths .mountPath }} + {{- $mountPath := clean (.mountPath | default "") }} + {{- if and (not $pamAuth) (has $mountPath (list "/" "/etc" "/etc/pam.d" "/etc/pam.d/xgtd")) }} + {{- fail "xgt.extraVolumeMounts must not replace /etc/pam.d/xgtd or a parent directory when PAM authentication is blocked" }} + {{- end }} + {{- if or (not .mountPath) (has $mountPath $mountPaths) }}{{- fail "xgt.extraVolumeMounts must use unique mount paths and must not replace chart mounts" }}{{- end }} + {{- $mountPaths = append $mountPaths $mountPath }} {{- end }} {{- end }} diff --git a/charts/rocketgraph/templates/xgt-deployment.yaml b/charts/rocketgraph/templates/xgt-deployment.yaml index 93967a4..54bcb19 100644 --- a/charts/rocketgraph/templates/xgt-deployment.yaml +++ b/charts/rocketgraph/templates/xgt-deployment.yaml @@ -1,6 +1,7 @@ {{- if .Values.xgt.enabled }} {{- $tlsKeys := include "rocketgraph.xgtTlsKeys" . | fromYaml }} {{- $oidcCa := include "rocketgraph.xgtOidcCa" . | fromYaml }} +{{- $pamAuth := eq (include "rocketgraph.xgtPamAuthEnabled" .) "true" }} {{- $restricted := and .Values.openshift.enabled (eq .Values.openshift.scc "restricted-v2") }} {{- $files := .Values.xgt.files.existingClaim }} {{- $direct := or $restricted $files }} @@ -25,6 +26,9 @@ spec: app: xgt app.kubernetes.io/instance: {{ .Release.Name }} annotations: + {{- if not $pamAuth }} + checksum/pam: {{ include (print $.Template.BasePath "/xgt-pam-configmap.yaml") . | sha256sum }} + {{- end }} {{- if not (or $files .Values.xgt.config.existingConfigMap) }} checksum/config: {{ include (print $.Template.BasePath "/xgt-configmap.yaml") . | sha256sum }} {{- end }} @@ -186,6 +190,12 @@ spec: subPath: {{ $oidcCa.key | quote }} readOnly: true {{- end }} + {{- if not $pamAuth }} + - name: xgt-pam + mountPath: /etc/pam.d/xgtd + subPath: xgtd + readOnly: true + {{- end }} {{- with .Values.xgt.extraVolumeMounts }} {{- toYaml . | nindent 12 }} {{- end }} @@ -203,6 +213,12 @@ spec: {{- end }} restartPolicy: Always volumes: + {{- if not $pamAuth }} + - name: xgt-pam + configMap: + name: {{ include "rocketgraph.fullname.xgt" . }}-pam + defaultMode: 0444 + {{- end }} {{- if $files }} - name: xgt-files persistentVolumeClaim: diff --git a/charts/rocketgraph/templates/xgt-pam-configmap.yaml b/charts/rocketgraph/templates/xgt-pam-configmap.yaml new file mode 100644 index 0000000..79e789c --- /dev/null +++ b/charts/rocketgraph/templates/xgt-pam-configmap.yaml @@ -0,0 +1,15 @@ +{{- if and .Values.xgt.enabled (ne (include "rocketgraph.xgtPamAuthEnabled" .) "true") }} +apiVersion: v1 +kind: ConfigMap +metadata: + name: {{ include "rocketgraph.fullname.xgt" . }}-pam + labels: + app: xgt + {{- include "rocketgraph.labels" . | nindent 4 }} +data: + xgtd: | + # Token authentication is independent of the PAM login path. + auth requisite pam_deny.so + account requisite pam_deny.so + session requisite pam_deny.so +{{- end }} diff --git a/charts/rocketgraph/tests/snapshots/default.yaml b/charts/rocketgraph/tests/snapshots/default.yaml index 949b609..2a9614c 100644 --- a/charts/rocketgraph/tests/snapshots/default.yaml +++ b/charts/rocketgraph/tests/snapshots/default.yaml @@ -5,7 +5,7 @@ kind: NetworkPolicy metadata: name: test-release-frontend labels: - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -31,7 +31,7 @@ kind: NetworkPolicy metadata: name: test-release-backend labels: - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -60,7 +60,7 @@ kind: NetworkPolicy metadata: name: test-release-xgt labels: - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -84,7 +84,7 @@ kind: NetworkPolicy metadata: name: test-release-mongodb labels: - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -121,7 +121,7 @@ metadata: name: test-release-xgt-config labels: app: xgt - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -177,7 +177,7 @@ metadata: name: test-release-mongodb-data labels: app: mongodb - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -197,7 +197,7 @@ metadata: name: test-release-xgt-data labels: app: xgt - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -217,7 +217,7 @@ metadata: name: test-release-xgt-log labels: app: xgt - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -237,7 +237,7 @@ metadata: name: test-release-backend labels: app: backend - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -261,7 +261,7 @@ metadata: name: test-release-frontend labels: app: frontend - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -287,7 +287,7 @@ metadata: name: test-release-mongodb labels: app: mongodb - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -310,7 +310,7 @@ metadata: name: test-release-xgt labels: app: xgt - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -334,7 +334,7 @@ metadata: name: test-release-backend labels: app: backend - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -413,7 +413,7 @@ metadata: name: test-release-frontend labels: app: frontend - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -473,7 +473,7 @@ metadata: name: test-release-mongodb labels: app: mongodb - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -546,7 +546,7 @@ metadata: name: test-release-xgt labels: app: xgt - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -565,7 +565,7 @@ spec: app: xgt app.kubernetes.io/instance: test-release annotations: - checksum/config: 6bb7e1d27b1c13562f26a8f28a0e3045f6859565b4a2b1bc6208f724212614af + checksum/config: e7988daa3df7e5009b4bb441c4cfc757b0a4608f49751284e6a96710b4d1a834 spec: containers: - name: xgt diff --git a/charts/rocketgraph/tests/snapshots/external-mongodb.yaml b/charts/rocketgraph/tests/snapshots/external-mongodb.yaml index 41e7dab..ab1db1f 100644 --- a/charts/rocketgraph/tests/snapshots/external-mongodb.yaml +++ b/charts/rocketgraph/tests/snapshots/external-mongodb.yaml @@ -5,7 +5,7 @@ kind: NetworkPolicy metadata: name: test-release-frontend labels: - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -31,7 +31,7 @@ kind: NetworkPolicy metadata: name: test-release-backend labels: - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -60,7 +60,7 @@ kind: NetworkPolicy metadata: name: test-release-xgt labels: - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -85,7 +85,7 @@ metadata: name: test-release-xgt-config labels: app: xgt - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -141,7 +141,7 @@ metadata: name: test-release-xgt-data labels: app: xgt - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -161,7 +161,7 @@ metadata: name: test-release-xgt-log labels: app: xgt - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -181,7 +181,7 @@ metadata: name: test-release-backend labels: app: backend - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -205,7 +205,7 @@ metadata: name: test-release-frontend labels: app: frontend - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -231,7 +231,7 @@ metadata: name: test-release-xgt labels: app: xgt - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -255,7 +255,7 @@ metadata: name: test-release-backend labels: app: backend - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -334,7 +334,7 @@ metadata: name: test-release-frontend labels: app: frontend - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -394,7 +394,7 @@ metadata: name: test-release-xgt labels: app: xgt - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -413,7 +413,7 @@ spec: app: xgt app.kubernetes.io/instance: test-release annotations: - checksum/config: 6bb7e1d27b1c13562f26a8f28a0e3045f6859565b4a2b1bc6208f724212614af + checksum/config: e7988daa3df7e5009b4bb441c4cfc757b0a4608f49751284e6a96710b4d1a834 spec: containers: - name: xgt diff --git a/charts/rocketgraph/tests/snapshots/external-xgt.yaml b/charts/rocketgraph/tests/snapshots/external-xgt.yaml index 8b5e45a..b4f76e3 100644 --- a/charts/rocketgraph/tests/snapshots/external-xgt.yaml +++ b/charts/rocketgraph/tests/snapshots/external-xgt.yaml @@ -5,7 +5,7 @@ kind: NetworkPolicy metadata: name: test-release-frontend labels: - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -31,7 +31,7 @@ kind: NetworkPolicy metadata: name: test-release-backend labels: - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -60,7 +60,7 @@ kind: NetworkPolicy metadata: name: test-release-mongodb labels: - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -97,7 +97,7 @@ metadata: name: test-release-mongodb-data labels: app: mongodb - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -117,7 +117,7 @@ metadata: name: test-release-backend labels: app: backend - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -141,7 +141,7 @@ metadata: name: test-release-frontend labels: app: frontend - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -167,7 +167,7 @@ metadata: name: test-release-mongodb labels: app: mongodb - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -190,7 +190,7 @@ metadata: name: test-release-backend labels: app: backend - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -269,7 +269,7 @@ metadata: name: test-release-frontend labels: app: frontend - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -329,7 +329,7 @@ metadata: name: test-release-mongodb labels: app: mongodb - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm diff --git a/charts/rocketgraph/tests/snapshots/ldap.yaml b/charts/rocketgraph/tests/snapshots/ldap.yaml index a3e8ee7..9bf7715 100644 --- a/charts/rocketgraph/tests/snapshots/ldap.yaml +++ b/charts/rocketgraph/tests/snapshots/ldap.yaml @@ -5,7 +5,7 @@ kind: NetworkPolicy metadata: name: test-release-frontend labels: - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -31,7 +31,7 @@ kind: NetworkPolicy metadata: name: test-release-backend labels: - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -60,7 +60,7 @@ kind: NetworkPolicy metadata: name: test-release-xgt labels: - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -84,7 +84,7 @@ kind: NetworkPolicy metadata: name: test-release-mongodb labels: - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -121,7 +121,7 @@ metadata: name: test-release-xgt-ldap labels: app: xgt - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -152,7 +152,7 @@ metadata: name: test-release-xgt-config labels: app: xgt - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -208,7 +208,7 @@ metadata: name: test-release-mongodb-data labels: app: mongodb - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -228,7 +228,7 @@ metadata: name: test-release-xgt-data labels: app: xgt - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -248,7 +248,7 @@ metadata: name: test-release-xgt-log labels: app: xgt - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -268,7 +268,7 @@ metadata: name: test-release-backend labels: app: backend - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -292,7 +292,7 @@ metadata: name: test-release-frontend labels: app: frontend - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -318,7 +318,7 @@ metadata: name: test-release-mongodb labels: app: mongodb - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -341,7 +341,7 @@ metadata: name: test-release-xgt labels: app: xgt - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -365,7 +365,7 @@ metadata: name: test-release-backend labels: app: backend - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -444,7 +444,7 @@ metadata: name: test-release-frontend labels: app: frontend - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -504,7 +504,7 @@ metadata: name: test-release-mongodb labels: app: mongodb - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -577,7 +577,7 @@ metadata: name: test-release-xgt labels: app: xgt - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -596,7 +596,7 @@ spec: app: xgt app.kubernetes.io/instance: test-release annotations: - checksum/config: 6bb7e1d27b1c13562f26a8f28a0e3045f6859565b4a2b1bc6208f724212614af + checksum/config: e7988daa3df7e5009b4bb441c4cfc757b0a4608f49751284e6a96710b4d1a834 spec: containers: - name: xgt diff --git a/charts/rocketgraph/tests/snapshots/openshift.yaml b/charts/rocketgraph/tests/snapshots/openshift.yaml index c6c496a..5fc1485 100644 --- a/charts/rocketgraph/tests/snapshots/openshift.yaml +++ b/charts/rocketgraph/tests/snapshots/openshift.yaml @@ -5,7 +5,7 @@ kind: NetworkPolicy metadata: name: test-release-frontend labels: - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -31,7 +31,7 @@ kind: NetworkPolicy metadata: name: test-release-backend labels: - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -60,7 +60,7 @@ kind: NetworkPolicy metadata: name: test-release-xgt labels: - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -84,7 +84,7 @@ kind: NetworkPolicy metadata: name: test-release-mongodb labels: - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -120,7 +120,7 @@ kind: ServiceAccount metadata: name: test-release-rocketgraph labels: - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -134,7 +134,7 @@ metadata: name: test-release-xgt-config labels: app: xgt - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -190,7 +190,7 @@ metadata: name: test-release-mongodb-data labels: app: mongodb - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -210,7 +210,7 @@ metadata: name: test-release-xgt-data labels: app: xgt - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -230,7 +230,7 @@ metadata: name: test-release-xgt-log labels: app: xgt - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -249,7 +249,7 @@ kind: ClusterRoleBinding metadata: name: test-release-rocketgraph-anyuid-default labels: - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -271,7 +271,7 @@ metadata: name: test-release-backend labels: app: backend - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -295,7 +295,7 @@ metadata: name: test-release-frontend labels: app: frontend - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -321,7 +321,7 @@ metadata: name: test-release-mongodb labels: app: mongodb - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -344,7 +344,7 @@ metadata: name: test-release-xgt labels: app: xgt - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -368,7 +368,7 @@ metadata: name: test-release-backend labels: app: backend - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -448,7 +448,7 @@ metadata: name: test-release-frontend labels: app: frontend - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -509,7 +509,7 @@ metadata: name: test-release-mongodb labels: app: mongodb - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -583,7 +583,7 @@ metadata: name: test-release-xgt labels: app: xgt - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -602,7 +602,7 @@ spec: app: xgt app.kubernetes.io/instance: test-release annotations: - checksum/config: 6bb7e1d27b1c13562f26a8f28a0e3045f6859565b4a2b1bc6208f724212614af + checksum/config: e7988daa3df7e5009b4bb441c4cfc757b0a4608f49751284e6a96710b4d1a834 spec: serviceAccountName: test-release-rocketgraph containers: diff --git a/charts/rocketgraph/tests/snapshots/tls.yaml b/charts/rocketgraph/tests/snapshots/tls.yaml index ff110bc..322cfe0 100644 --- a/charts/rocketgraph/tests/snapshots/tls.yaml +++ b/charts/rocketgraph/tests/snapshots/tls.yaml @@ -5,7 +5,7 @@ kind: NetworkPolicy metadata: name: test-release-frontend labels: - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -31,7 +31,7 @@ kind: NetworkPolicy metadata: name: test-release-backend labels: - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -60,7 +60,7 @@ kind: NetworkPolicy metadata: name: test-release-xgt labels: - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -84,7 +84,7 @@ kind: NetworkPolicy metadata: name: test-release-mongodb labels: - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -121,7 +121,7 @@ metadata: name: test-release-backend-tls labels: app: backend - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -140,7 +140,7 @@ metadata: name: test-release-frontend-tls labels: app: frontend - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -158,7 +158,7 @@ metadata: name: test-release-xgt-tls labels: app: xgt - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -176,7 +176,7 @@ metadata: name: test-release-xgt-config labels: app: xgt - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -232,7 +232,7 @@ metadata: name: test-release-mongodb-data labels: app: mongodb - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -252,7 +252,7 @@ metadata: name: test-release-xgt-data labels: app: xgt - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -272,7 +272,7 @@ metadata: name: test-release-xgt-log labels: app: xgt - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -292,7 +292,7 @@ metadata: name: test-release-backend labels: app: backend - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -316,7 +316,7 @@ metadata: name: test-release-frontend labels: app: frontend - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -342,7 +342,7 @@ metadata: name: test-release-mongodb labels: app: mongodb - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -365,7 +365,7 @@ metadata: name: test-release-xgt labels: app: xgt - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -389,7 +389,7 @@ metadata: name: test-release-backend labels: app: backend - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -477,7 +477,7 @@ metadata: name: test-release-frontend labels: app: frontend - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -550,7 +550,7 @@ metadata: name: test-release-mongodb labels: app: mongodb - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -623,7 +623,7 @@ metadata: name: test-release-xgt labels: app: xgt - helm.sh/chart: rocketgraph-0.5.0 + helm.sh/chart: rocketgraph-0.5.1 app.kubernetes.io/name: rocketgraph app.kubernetes.io/version: "2.7.0" app.kubernetes.io/managed-by: Helm @@ -642,7 +642,7 @@ spec: app: xgt app.kubernetes.io/instance: test-release annotations: - checksum/config: 88defb4f4b330c19a46db120505f0571ba990747fd409f023571c04c655a4cd1 + checksum/config: b3c8fdabafd45af7b3f4fde1df3ef1bacf853be77698f7c24ede5421b454ab62 spec: containers: - name: xgt diff --git a/charts/rocketgraph/tests/test_pam_auth.py b/charts/rocketgraph/tests/test_pam_auth.py new file mode 100644 index 0000000..8511b72 --- /dev/null +++ b/charts/rocketgraph/tests/test_pam_auth.py @@ -0,0 +1,180 @@ +"""Verify that the chart changes PAM policy only when explicitly requested.""" +import unittest +import yaml + +from test_render import CHART, component, render + + +class PamAuthTests(unittest.TestCase): + def assert_pam_preserved(self, values): + objects = render(values) + self.assertFalse(any("xgtd" in obj.get("data", {}) for obj in objects + if obj["kind"] == "ConfigMap")) + pod = component(objects, "Deployment", "xgt")["spec"]["template"] + self.assertNotIn("checksum/pam", pod["metadata"].get("annotations") or {}) + self.assertFalse(any(item["mountPath"] == "/etc/pam.d/xgtd" + for item in pod["spec"]["containers"][0] + ["volumeMounts"])) + + def assert_pam_denied(self, values): + objects = render(values) + config = next(obj for obj in objects if obj["kind"] == "ConfigMap" + and "xgtd" in obj.get("data", {})) + self.assertIn("auth requisite pam_deny.so", config["data"]["xgtd"]) + pod = component(objects, "Deployment", "xgt")["spec"]["template"] + self.assertIn("checksum/pam", pod["metadata"]["annotations"]) + container = pod["spec"]["containers"][0] + mount = next(item for item in container["volumeMounts"] + if item["mountPath"] == "/etc/pam.d/xgtd") + self.assertTrue(mount["readOnly"]) + volume = next(item for item in pod["spec"]["volumes"] + if item["name"] == mount["name"]) + self.assertEqual(volume["configMap"]["name"], + config["metadata"]["name"]) + self.assertEqual(mount["subPath"], "xgtd") + + def test_oidc_configuration_requires_explicit_pam_denial(self): + for config in [ + {"security.oidc": {"issuer": "https://idp.example.com"}}, + {"security": {"oidc": {"issuer": "https://idp.example.com"}}}, + {"security": {"oidc.issuer": "https://idp.example.com"}}, + {"security.oidc.issuer": "https://idp.example.com"} + ]: + with self.subTest(config = config): + values = {"xgt": {"extraConfig": config}} + self.assert_pam_preserved(values) + values["xgt"]["auth"] = {"pam": {"enabled": False}} + self.assert_pam_denied(values) + + def test_external_config_and_custom_startup_require_explicit_denial(self): + for values in [ + {"config": {"existingConfigMap": "company-config"}}, + {"files": {"existingClaim": "company-files"}}, + {"command": ["/opt/xgtd/bin/xgtd"]}, + {"args": ["-Dsecurity.oidc.issuer=https://idp.example.com"]}, + {"env": [{"name": "CUSTOM_CONFIG", "value": "/custom/conf"}]}, + {"extraVolumes": [{"name": "custom", "emptyDir": {}}], + "extraVolumeMounts": [{"name": "custom", "mountPath": "/custom"}]} + ]: + with self.subTest(values = values): + self.assert_pam_preserved({"xgt": values}) + values["auth"] = {"pam": {"enabled": False}} + self.assert_pam_denied({"xgt": values}) + + def test_explicit_false_and_restricted_profile_mount_deny_policy(self): + values = {"xgt": {"auth": {"pam": {"enabled": False}}}} + self.assert_pam_denied(values) + values.update({"openshift": {"enabled": True, "scc": "restricted-v2"}, + "fips": {"enabled": True}}) + values["xgt"]["license"] = {"existingSecret": "test-license"} + self.assert_pam_denied(values) + + def test_shipped_oauth_examples_explicitly_block_pam(self): + for name in ["xgt_openshift_restricted.yaml", "xgt_existing_files.yaml", + "xgt_files_separate_data.yaml"]: + with self.subTest(name = name): + values = yaml.safe_load((CHART / "examples" / name).read_text()) + self.assertIs(values["xgt"]["auth"]["pam"]["enabled"], False) + self.assert_pam_denied(values) + + def test_default_null_and_explicit_true_keep_image_pam_configuration(self): + self.assert_pam_preserved({}) + for enabled in [True, None]: + with self.subTest(enabled = enabled): + self.assert_pam_preserved({"xgt": { + "extraConfig": {"security.oidc": {"issuer": "https://idp.example.com"}}, + "auth": {"pam": {"enabled": enabled}} + }}) + + def test_disabled_xgt_omits_pam_resources(self): + objects = render({"missionControl": {"enabled": False}, + "xgt": {"enabled": False, + "auth": {"pam": {"enabled": False}}}}) + self.assertFalse(any("xgtd" in obj.get("data", {}) for obj in objects + if obj["kind"] == "ConfigMap")) + + def test_pam_denial_rejects_sssd_ldap_configuration(self): + message = render({"xgt": { + "auth": {"pam": {"enabled": False}}, + "ldap": {"enabled": True, "uri": "ldaps://ldap.example.com", + "baseDn": "dc=example,dc=com"} + }}, fails = True) + self.assertIn("xgt.auth.pam.enabled=true", message) + + def test_existing_ldap_configuration_can_explicitly_enable_pam(self): + objects = render({"xgt": { + "auth": {"pam": {"enabled": True}}, + "config": {"existingConfigMap": "company-config"}, + "ldap": {"enabled": True, "uri": "ldaps://ldap.example.com", + "baseDn": "dc=example,dc=com"} + }}) + self.assertFalse(any("xgtd" in obj.get("data", {}) for obj in objects + if obj["kind"] == "ConfigMap")) + + def test_pam_policy_cannot_be_shadowed_by_extra_mounts(self): + for path in ["/", "/etc", "/etc/pam.d", "/etc/pam.d/xgtd"]: + with self.subTest(path = path): + message = render({"xgt": { + "auth": {"pam": {"enabled": False}}, + "extraVolumes": [{"name": "custom", "emptyDir": {}}], + "extraVolumeMounts": [{"name": "custom", "mountPath": path}] + }}, fails = True) + self.assertIn("PAM", message) + + def test_equivalent_pam_mount_paths_are_rejected(self): + for path in ["//", "/etc/", "/etc//pam.d", "/etc/pam.d/.", + "/etc/pam.d/xgtd/.", "/etc/ssh/../pam.d", + "/etc/pam.d/../.."]: + with self.subTest(path = path): + message = render({"xgt": { + "auth": {"pam": {"enabled": False}}, + "extraVolumes": [{"name": "custom", "emptyDir": {}}], + "extraVolumeMounts": [{"name": "custom", "mountPath": path}] + }}, fails = True) + self.assertIn("PAM", message) + + def test_administrator_pam_volume_is_preserved_unless_pam_is_disabled(self): + values = {"xgt": { + "auth": {"pam": {"enabled": True}}, + "extraVolumes": [{"name": "xgt-pam", + "configMap": {"name": "company-pam"}}], + "extraVolumeMounts": [{"name": "xgt-pam", + "mountPath": "/etc/pam.d/xgtd", + "subPath": "xgtd", "readOnly": True}] + }} + objects = render(values) + pod = component(objects, "Deployment", "xgt")["spec"]["template"] + volumes = [volume for volume in pod["spec"]["volumes"] + if volume["name"] == "xgt-pam"] + self.assertEqual(volumes, values["xgt"]["extraVolumes"]) + self.assertNotIn("checksum/pam", pod["metadata"]["annotations"]) + self.assertFalse(any("xgtd" in obj.get("data", {}) for obj in objects + if obj["kind"] == "ConfigMap")) + values["xgt"]["auth"]["pam"]["enabled"] = None + objects = render(values) + pod = component(objects, "Deployment", "xgt")["spec"]["template"] + self.assertNotIn("checksum/pam", pod["metadata"]["annotations"]) + values["xgt"]["auth"]["pam"]["enabled"] = False + self.assertIn("volume names", render(values, fails = True)) + + def test_equivalent_custom_mount_paths_cannot_collide(self): + message = render({"xgt": { + "extraVolumes": [{"name": "custom", "emptyDir": {}}], + "extraVolumeMounts": [ + {"name": "custom", "mountPath": "/custom/config"}, + {"name": "custom", "mountPath": "/custom//config/."} + ] + }}, fails = True) + self.assertIn("unique mount paths", message) + + def test_string_boolean_is_rejected(self): + message = render({"xgt": { + "auth": {"pam": {"enabled": "false"}} + }}, fails = True) + self.assertIn("enabled", message) + + def test_obsolete_basic_setting_is_rejected(self): + message = render({"xgt": { + "auth": {"basic": {"enabled": False}} + }}, fails = True) + self.assertIn("basic", message) diff --git a/charts/rocketgraph/tests/test_render.py b/charts/rocketgraph/tests/test_render.py index 39c2e5e..9e4945e 100644 --- a/charts/rocketgraph/tests/test_render.py +++ b/charts/rocketgraph/tests/test_render.py @@ -196,6 +196,7 @@ def test_restricted_xgt_has_no_elevated_binding_and_uses_direct_startup(self): def test_existing_files_use_only_supplied_claim_and_no_generated_files(self): values = yaml.safe_load((CHART / 'examples/xgt_existing_files.yaml').read_text()) + values['xgt']['auth'] = {'pam': {'enabled': True}} objects = render(values) self.assertFalse(any(o['kind'] in ['ConfigMap', 'Secret', 'PersistentVolumeClaim', 'ClusterRoleBinding'] for o in objects)) @@ -218,6 +219,7 @@ def test_existing_files_allow_separate_data_and_log_claims(self): for prefix in ['', 'xgt-prod']: with self.subTest(separate=separate, prefix=prefix): values = self.restricted( + auth={'pam': {'enabled': True}}, files={'existingClaim': 'files', 'subPath': prefix}, persistence={d: {'existingClaim': 'separate-' + d} for d in separate}) objects = render(values) @@ -241,6 +243,7 @@ def test_existing_files_allow_separate_data_and_log_claims(self): def test_separate_data_example_keeps_logs_on_files_claim(self): values = yaml.safe_load((CHART / 'examples/xgt_files_separate_data.yaml').read_text()) + values['xgt']['auth'] = {'pam': {'enabled': True}} pod = component(render(values), 'Deployment', 'xgt')['spec']['template']['spec'] mounts = {m['mountPath']: m for m in pod['containers'][0]['volumeMounts']} self.assertEqual(mounts['/data'], {'name': 'xgt-data', 'mountPath': '/data'}) @@ -249,7 +252,8 @@ def test_separate_data_example_keeps_logs_on_files_claim(self): {'xgt-files', 'xgt-data'}) def test_existing_configmap_and_external_license(self): - objects = render(self.restricted(config={'existingConfigMap': 'customer-config'})) + objects = render(self.restricted(config={'existingConfigMap': 'customer-config'}, + auth={'pam': {'enabled': True}})) self.assertFalse(any(o['kind'] == 'ConfigMap' for o in objects)) pod = component(objects, 'Deployment', 'xgt')['spec']['template']['spec'] self.assertEqual(next(v for v in pod['volumes'] if v['name']=='xgt-config') diff --git a/charts/rocketgraph/tests/test_tls_secrets.py b/charts/rocketgraph/tests/test_tls_secrets.py index 52394f1..9a52855 100644 --- a/charts/rocketgraph/tests/test_tls_secrets.py +++ b/charts/rocketgraph/tests/test_tls_secrets.py @@ -161,6 +161,7 @@ def test_generated_secrets_preserve_scalar_like_keys_and_frontend_client_ca(self def test_existing_configmap_is_not_replaced_and_disabled_components_ignore_tls(self): values = self.values({}) values['xgt']['config'] = {'existingConfigMap': 'existing'} + values['xgt']['auth'] = {'pam': {'enabled': True}} values['xgt']['ssl'] = {'enabled': True, 'existingSecret': 'serving', 'secretKeys': {'cert': 'tls.crt', 'key': 'tls.key'}} values['missionControl'] = {'enabled': False} diff --git a/charts/rocketgraph/values.schema.json b/charts/rocketgraph/values.schema.json index 6d65a16..e09fc1b 100644 --- a/charts/rocketgraph/values.schema.json +++ b/charts/rocketgraph/values.schema.json @@ -1797,6 +1797,27 @@ } } } + }, + "auth": { + "type": "object", + "additionalProperties": false, + "description": "Control all authentication paths that use the xGT PAM policy, including basic/password, LDAP/SSSD, custom PKI, and trusted-proxy authentication", + "properties": { + "pam": { + "type": "object", + "additionalProperties": false, + "properties": { + "enabled": { + "type": [ + "boolean", + "null" + ], + "default": true, + "description": "Only explicit false blocks PAM. true (default), null, or an omitted setting keeps the image/admin PAM policy, regardless of OIDC, external configuration, or custom startup/mounts." + } + } + } + } } } }, diff --git a/charts/rocketgraph/values.yaml b/charts/rocketgraph/values.yaml index 098b21e..50388a3 100644 --- a/charts/rocketgraph/values.yaml +++ b/charts/rocketgraph/values.yaml @@ -244,6 +244,13 @@ mongodb: xgt: enabled: true # Set to false to use an external xGT server + auth: + pam: + # false: mount pam_deny.so, blocking password/LDAP, custom PKI and + # trusted-proxy login. true (default) or null: keep the image/admin + # PAM policy. OIDC, external config and custom mounts do not change it. + # Standard images use pam_permit.so unless PAM has been configured. + enabled: true # Stable OS hostname for hostname-bound licenses; pod metadata.name still varies. hostname: "" # Use one pre-populated PVC for conf/, license/, data/, log/. diff --git a/doc/keycloak_setup/README.md b/doc/keycloak_setup/README.md index ae48521..05d2448 100644 --- a/doc/keycloak_setup/README.md +++ b/doc/keycloak_setup/README.md @@ -4,13 +4,13 @@ Use Keycloak to sign in as a normal user or an automation service account. Keycl Experimental: OIDC authentication may change in future releases. -Start with xGT 2.7.1 and an existing Keycloak realm. Python must reach xGT; Python, xGT and the login browser must reach the Keycloak HTTPS endpoint. Replace the example hostnames and realm with your own. Screenshots show a test realm; settings can appear in different places in other Keycloak versions. The Helm examples use Rocketgraph chart **0.5.0**. +Start with xGT 2.7.1 and an existing Keycloak realm. Python must reach xGT; Python, xGT and the login browser must reach the Keycloak HTTPS endpoint. Replace the example hostnames and realm with your own. Screenshots show a test realm; settings can appear in different places in other Keycloak versions. The Helm examples use Rocketgraph chart **0.5.1**. The minimum setup is: 1. Create the Keycloak client for the login method you need. 1. Add audience `xgt` to its access tokens. For group-based permissions, include `groups` and assign the user or service account to a group. -1. Configure xGT with the issuer, audience and JWT validation, then map groups to xGT labels. +1. Configure xGT with the issuer, audience and JWT validation, map groups to xGT labels, and disable the independent PAM/basic login path. 1. If a component does not trust Keycloak HTTPS, configure its CA trust. 1. Run the matching Python login example below and verify its labels. @@ -20,7 +20,7 @@ The Keycloak steps and Python examples also apply outside OpenShift. The Helm, ` Read this page first. Optional steps: [LDAP federation](ldap.md), [HTTPS trust](https_trust.md), and [Mission Control](mission_control.md). The [examples](examples/) are included inline and as downloadable files. Screenshots can be clicked to view their full size. -For the Helm commands, use a checkout or archive containing Rocketgraph chart **0.5.0** and run from its `doc/keycloak_setup` directory. The chart path is `../../charts/rocketgraph`; if your chart package is stored elsewhere, replace that path with your local 0.5.0 chart. Edit the placeholders in the relevant examples and supply the path to your existing deployment values file. +For the Helm commands, use a checkout or archive containing Rocketgraph chart **0.5.1** and run from its `doc/keycloak_setup` directory. The chart path is `../../charts/rocketgraph`; if your chart package is stored elsewhere, replace that path with your local 0.5.1 chart. Edit the placeholders in the relevant examples and supply the path to your existing deployment values file. ## 1. Create the Clients You Need @@ -149,7 +149,6 @@ In `grouplabel.csv`, map the selected Keycloak groups to xGT labels: ``` text group,label -xgtd,xgtadmin rocketgraph-ldap-admins,xgtadmin rocketgraph-ldap-users,data-users rocketgraph-automation,automation @@ -175,12 +174,14 @@ Download [keycloak_values.yaml](examples/keycloak_values.yaml) and merge it into # images, storage and TLS settings. Update existing mounted config files instead # if xgt.config.existingConfigMap or a files PVC supplies the configuration. xgt: + auth: + pam: + enabled: false # Reject the independent PAM/password login path. config: # Reuse your existing groups and labels; these names are examples. # The rocketgraph-automation group and automation label are optional. grouplabelCsv: | group,label - xgtd,xgtadmin rocketgraph-ldap-admins,xgtadmin rocketgraph-ldap-users,data-users rocketgraph-automation,automation @@ -204,7 +205,7 @@ xgt: # or the OpenShift injected ConfigMap alternative openshift_ca_values.yaml. ``` -Commands assume version **0.5.0** of the [Rocketgraph chart](https://github.com/Rocketgraphai/rocketgraph/tree/main/charts/rocketgraph) is available locally at `../../charts/rocketgraph`. Use your actual chart path, release and namespace, and include all existing deployment values files: +Commands assume version **0.5.1** of the [Rocketgraph chart](https://github.com/Rocketgraphai/rocketgraph/tree/main/charts/rocketgraph) is available locally at `../../charts/rocketgraph`. Use your actual chart path, release and namespace, and include all existing deployment values files: ``` bash helm upgrade YOUR_RELEASE ../../charts/rocketgraph -n YOUR_NAMESPACE \ @@ -213,6 +214,8 @@ helm upgrade YOUR_RELEASE ../../charts/rocketgraph -n YOUR_NAMESPACE \ If an existing ConfigMap or files PVC supplies `xgtd.conf`, update its OIDC configuration and CSV files directly instead of using this overlay. The chart rejects `xgt.extraConfig` and inline CSV settings alongside external configuration. For a hostname-bound license, retain `xgt.hostname` with a hostname covered by the license; no custom StatefulSet is needed. +Keep `xgt.auth.pam.enabled: false` in the deployment values even with mounted configuration. This mounts a read-only PAM policy that rejects basic login. The standard container's `pam_permit.so` accepts arbitrary credentials; configuring Keycloak or hiding basic login in Mission Control does not disable that server path. For a non-Helm deployment, have the administrator replace `/etc/pam.d/xgtd` with a rejecting PAM policy when token authentication is required. After deploying, confirm token login works and a basic login such as `xgt.BasicAuth("xgtd", "")` fails. + For OpenShift's non-root profile, retain `openshift.enabled: true` and `openshift.scc: restricted-v2`. Select FIPS images with `fips.enabled: true` and keep image tags without a `-fips` suffix; the chart appends it. Mission Control currently requires FIPS images for this profile. Configure each connection's TLS separately. Image selection alone does not establish FIPS compliance, and existing PVC contents must be writable by the admitted UID and volume group. See the chart's restricted-v2 and FIPS sections for deployment requirements; these authentication settings do not replace them. ## 5. Configure HTTPS Trust If Needed diff --git a/doc/keycloak_setup/examples/keycloak_ca_values.yaml b/doc/keycloak_setup/examples/keycloak_ca_values.yaml index 0eba774..29c3832 100644 --- a/doc/keycloak_setup/examples/keycloak_ca_values.yaml +++ b/doc/keycloak_setup/examples/keycloak_ca_values.yaml @@ -1,13 +1,16 @@ # Simplest CA setup for Keycloak using a private company CA. # Stock xGT/MC images do not include your company's private CA. # Skip only if their application trust stores already trust Keycloak HTTPS. -# Requires Rocketgraph chart 0.5.0. +# Requires Rocketgraph chart 0.5.1 for the PAM login restriction. # Existing ConfigMap/files PVC: set ca_cert in the mounted xgtd.conf; # omit keycloak_values.yaml from the Helm command and keep this overlay. # First create Secret keycloak-ca with key oidc-ca.pem in the release namespace. # Apply after the existing deployment values and keycloak_values.yaml. # This mounts the public CA bundle in xGT and the Mission Control backend. xgt: + auth: + pam: + enabled: false oidc: caCertExistingSecret: keycloak-ca # Omit this backend section when Mission Control is disabled. diff --git a/doc/keycloak_setup/examples/keycloak_values.yaml b/doc/keycloak_setup/examples/keycloak_values.yaml index 1cd9c0f..a1af562 100644 --- a/doc/keycloak_setup/examples/keycloak_values.yaml +++ b/doc/keycloak_setup/examples/keycloak_values.yaml @@ -2,12 +2,14 @@ # images, storage and TLS settings. Update existing mounted config files instead # if xgt.config.existingConfigMap or a files PVC supplies the configuration. xgt: + auth: + pam: + enabled: false # Reject the independent PAM/password login path. config: # Reuse your existing groups and labels; these names are examples. # The rocketgraph-automation group and automation label are optional. grouplabelCsv: | group,label - xgtd,xgtadmin rocketgraph-ldap-admins,xgtadmin rocketgraph-ldap-users,data-users rocketgraph-automation,automation diff --git a/doc/keycloak_setup/examples/openshift_ca_values.yaml b/doc/keycloak_setup/examples/openshift_ca_values.yaml index d1ace9f..cbd2135 100644 --- a/doc/keycloak_setup/examples/openshift_ca_values.yaml +++ b/doc/keycloak_setup/examples/openshift_ca_values.yaml @@ -2,6 +2,9 @@ # Apply after the deployment values and keycloak_values.yaml. # Existing config/PVC: remove extraConfig and edit ca_cert in the mounted file. xgt: + auth: + pam: + enabled: false oidc: caCert: "" caCertExistingSecret: "" diff --git a/doc/keycloak_setup/https_trust.md b/doc/keycloak_setup/https_trust.md index c8a3872..cdae08e 100644 --- a/doc/keycloak_setup/https_trust.md +++ b/doc/keycloak_setup/https_trust.md @@ -2,7 +2,7 @@ # HTTPS Trust for Keycloak -Python obtains tokens over HTTPS, while xGT fetches Keycloak's discovery information and signing keys over HTTPS. Mission Control's backend and the user's browser also connect to Keycloak when used. Check each component's trust separately. The Helm examples on this page use Rocketgraph chart **0.5.0**. +Python obtains tokens over HTTPS, while xGT fetches Keycloak's discovery information and signing keys over HTTPS. Mission Control's backend and the user's browser also connect to Keycloak when used. Check each component's trust separately. The Helm examples on this page use Rocketgraph chart **0.5.1**. Skip the corresponding CA setting when that application already trusts the issuer's certificate. For a private company CA, the simplest Helm setup is an approved PEM bundle mounted through a Secret. Trust on an OpenShift node or in a browser does not establish trust inside the stock containers. @@ -49,13 +49,16 @@ Download [keycloak_ca_values.yaml](examples/keycloak_ca_values.yaml) or save thi # Simplest CA setup for Keycloak using a private company CA. # Stock xGT/MC images do not include your company's private CA. # Skip only if their application trust stores already trust Keycloak HTTPS. -# Requires Rocketgraph chart 0.5.0. +# Requires Rocketgraph chart 0.5.1 for the PAM login restriction. # Existing ConfigMap/files PVC: set ca_cert in the mounted xgtd.conf; # omit keycloak_values.yaml from the Helm command and keep this overlay. # First create Secret keycloak-ca with key oidc-ca.pem in the release namespace. # Apply after the existing deployment values and keycloak_values.yaml. # This mounts the public CA bundle in xGT and the Mission Control backend. xgt: + auth: + pam: + enabled: false oidc: caCertExistingSecret: keycloak-ca # Omit this backend section when Mission Control is disabled. @@ -112,6 +115,9 @@ Download [openshift_ca_values.yaml](examples/openshift_ca_values.yaml) and apply # Apply after the deployment values and keycloak_values.yaml. # Existing config/PVC: remove extraConfig and edit ca_cert in the mounted file. xgt: + auth: + pam: + enabled: false oidc: caCert: "" caCertExistingSecret: "" diff --git a/doc/oidc_configuration.md b/doc/oidc_configuration.md index 2899be7..9c7d48d 100644 --- a/doc/oidc_configuration.md +++ b/doc/oidc_configuration.md @@ -27,6 +27,8 @@ specifically to the built-in OAuth server and `openshift_userapi` validation. ## Overview +XGT's PAM/basic authentication path is independent of OIDC. Standard container images use `pam_permit.so`, which accepts arbitrary credentials. Selecting `OidcAuth` in Mission Control does not prevent a direct Python client from attempting basic login. For Helm token deployments, set `xgt.auth.pam.enabled: false` to mount a rejecting PAM policy; this works with chart-generated configuration, existing ConfigMaps, and files PVCs. For Compose, Podman, or another deployment mechanism, provision a rejecting `/etc/pam.d/xgtd` policy separately. See [PAM and Basic Authentication Policy](../charts/rocketgraph/README.md#pam-and-basic-authentication-policy). + With `OidcAuth` enabled, Mission Control performs the OAuth2 authorization-code flow on behalf of the user. The browser returns to its backend with a temporary authorization code. The backend exchanges that code for an access token, using @@ -160,7 +162,7 @@ The first value selects the host file to mount; the second tells the backend to ## Keycloak Example -For an illustrated walkthrough covering normal-user Python login, automation service accounts, group and audience mappers, optional LDAP federation and HTTPS trust, start with [Keycloak Setup for xGT](keycloak_setup/README.md). The [Mission Control steps](keycloak_setup/mission_control.md) include complete YAML and commands. Those Helm examples require chart **0.5.0**. +For an illustrated walkthrough covering normal-user Python login, automation service accounts, group and audience mappers, optional LDAP federation and HTTPS trust, start with [Keycloak Setup for xGT](keycloak_setup/README.md). The [Mission Control steps](keycloak_setup/mission_control.md) include complete YAML and commands. Those Helm examples require chart **0.5.1**. Use a separate confidential client, such as `mission-control`, with **Client authentication** and **Standard flow** enabled. Register `https://mc.example.com/api/login/oidc/callback`. Add Group Membership and Audience mappers to its access tokens, using the groups claim and audience configured on xGT. @@ -176,7 +178,7 @@ Leave the issuer and scopes unset to discover them from xGT. Supply private-CA s ## OpenShift Example -For a deployment checklist using chart **0.5.0**, see the [OpenShift and LDAP quickstart](openshift_ldap_quickstart.md). +For a deployment checklist using chart **0.5.1**, see the [OpenShift and LDAP quickstart](openshift_ldap_quickstart.md). This example uses **OpenShift OAuth2**, through the existing `OidcAuth` interface. An OpenShift `OAuthClient` is a cluster-wide application registration. Its diff --git a/doc/openshift_fips_values.example.yaml b/doc/openshift_fips_values.example.yaml index f4f5929..d6e5de9 100644 --- a/doc/openshift_fips_values.example.yaml +++ b/doc/openshift_fips_values.example.yaml @@ -1,5 +1,5 @@ # Companion to openshift_fips_deployment.md. -# Requires chart 0.4.0 or later. +# Requires chart 0.5.1 or later. # Review template, not a complete production deployment: supply Secrets, # licensed workload hostname, storage/sizing, Route, and approved TLS topology. # Versions match the lab image test; approve exact versions/digests for rollout. @@ -10,6 +10,9 @@ fips: enabled: true xgt: + auth: + pam: + enabled: false # Reject PAM/password login; authenticate with tokens. hostname: demo-xgt-test image: tag: 2.7.1 @@ -22,7 +25,6 @@ xgt: config: grouplabelCsv: | group,label - xgtd,xgtadmin xgt-admins,xgtadmin xgt-users,data-users system:serviceaccounts:xgt-jobs,automation diff --git a/doc/openshift_ldap_quickstart.md b/doc/openshift_ldap_quickstart.md index 34c5d67..b574b8f 100644 --- a/doc/openshift_ldap_quickstart.md +++ b/doc/openshift_ldap_quickstart.md @@ -4,7 +4,7 @@ Use OpenShift to authenticate LDAP users, then map their OpenShift groups to xGT Experimental: OIDC authentication may change in future releases. -This checklist is for the OpenShift and xGT administrators. It assumes an existing LDAP directory, permission to configure OpenShift authentication, and an xGT 2.7.1 deployment using version **0.5.0** of the [Rocketgraph Helm chart](https://github.com/Rocketgraphai/rocketgraph/tree/main/charts/rocketgraph). Replace example hostnames, namespace `xgt`, and group names with your own. For the full configuration reference, see [xGT OpenShift reference](https://docs.rocketgraph.com/sysadmin_guide/user_authentication.html#openshift). +This checklist is for the OpenShift and xGT administrators. It assumes an existing LDAP directory, permission to configure OpenShift authentication, and an xGT 2.7.1 deployment using version **0.5.1** of the [Rocketgraph Helm chart](https://github.com/Rocketgraphai/rocketgraph/tree/main/charts/rocketgraph). Replace example hostnames, namespace `xgt`, and group names with your own. For the full configuration reference, see [xGT OpenShift reference](https://docs.rocketgraph.com/sysadmin_guide/user_authentication.html#openshift). For a complete test deployment with LDAP provider and group-sync YAML, follow the [OpenShift test-server guide](openshift_test_server/README.md). For Keycloak-issued tokens instead, see [Keycloak Setup](keycloak_setup/README.md). @@ -46,6 +46,9 @@ Merge these settings into the deployment's Helm values and apply them using the ``` yaml xgt: + auth: + pam: + enabled: false # Require token authentication instead of permissive PAM. hostname: demo-xgt-test # Replace with your licensed hostname. image: tag: 2.7.1 @@ -56,7 +59,6 @@ xgt: config: grouplabelCsv: | group,label - xgtd,xgtadmin xgt-admins,xgtadmin xgt-users,data-users labelCsv: | diff --git a/doc/openshift_test_server/README.md b/doc/openshift_test_server/README.md index 55e18d7..577de8f 100644 --- a/doc/openshift_test_server/README.md +++ b/doc/openshift_test_server/README.md @@ -11,7 +11,7 @@ OIDC ID tokens or a standard OIDC UserInfo endpoint. **Deployment:** Helm manages XGT, Mission Control and MongoDB. Set `xgt.hostname: demo-xgt-test` for the licensed container hostname. The Kubernetes pod name remains generated. Optional separate releases provide dev and prod XGT servers with their own configuration and storage, sharing Mission Control. -**Requires chart 0.4.0 or later; the commands below use the chart in this repository.** Rendering has been checked, and an isolated XGT 2.7.1 FIPS-image release passed license validation, OpenShift token login and a query. Its fixed hostname and a file on its data volume survived pod replacement. The complete installation below has not been deployed to a fresh cluster. The [deployment planning guide](../openshift_fips_deployment.md) covers the architecture and FIPS verification responsibilities. +**Requires chart 0.5.1 or later; the commands below use the chart in this repository.** Rendering has been checked, and an isolated XGT 2.7.1 FIPS-image release passed license validation, OpenShift token login and a query. Its fixed hostname and a file on its data volume survived pod replacement. The complete installation below has not been deployed to a fresh cluster. The [deployment planning guide](../openshift_fips_deployment.md) covers the architecture and FIPS verification responsibilities. The full chart was also tested under `restricted-v2` with namespace-assigned UIDs, Mission Control HTTPS/mTLS, MongoDB TLS/mTLS and encryption at rest, and XGT TLS/token authentication. This used fresh PVCs and temporary test certificates; existing-volume migration, optional backend plugin installation and end-to-end FIPS compliance require separate validation. @@ -28,7 +28,7 @@ The full chart was also tested under `restricted-v2` with namespace-assigned UID | [route.yaml](route.yaml) | Public Mission Control hostname | | [login.py](login.py) | Ready-to-run browser/token login and data-permission demonstration | -Example names are `xgt-demo` (application namespace), `xgt-demo-jobs` (automation namespace), `xgt-demo-ldap-sync` (sync namespace), and `rocketgraph` (Helm release). Keep these names for the walkthrough. All commands run from this directory in **Bash**, with `oc` already logged in as an authorized administrator. Use an approved repository revision containing chart 0.4.0 or later. +Example names are `xgt-demo` (application namespace), `xgt-demo-jobs` (automation namespace), `xgt-demo-ldap-sync` (sync namespace), and `rocketgraph` (Helm release). Keep these names for the walkthrough. All commands run from this directory in **Bash**, with `oc` already logged in as an authorized administrator. Use an approved repository revision containing chart 0.5.1 or later. ## 1. Confirm the Prerequisites diff --git a/doc/openshift_test_server/values.yaml b/doc/openshift_test_server/values.yaml index 7ed545f..f3c55d5 100644 --- a/doc/openshift_test_server/values.yaml +++ b/doc/openshift_test_server/values.yaml @@ -1,4 +1,4 @@ -# Requires chart 0.4.0 or later. +# Requires chart 0.5.1 or later. # Full test stack. Additional releases can disable Mission Control and MongoDB. # Keep image tags unsuffixed; Helm adds -fips. openshift: @@ -7,6 +7,9 @@ openshift: fips: enabled: true xgt: + auth: + pam: + enabled: false # Reject PAM/password login; authenticate with tokens. enabled: true hostname: demo-xgt-test image: @@ -19,7 +22,6 @@ xgt: config: grouplabelCsv: | group,label - xgtd,xgtadmin xgt-admins,xgtadmin xgt-users,data-users system:serviceaccounts:xgt-demo-jobs,automation