Skip to content
Merged
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
239 changes: 239 additions & 0 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,239 @@
#===----------------------------------------------------------------------===#
#
# Copyright 2016-2026 Trovares Inc. dba Rocketgraph. All rights reserved.
#
#===----------------------------------------------------------------------===#

name: Validate Helm Chart

on:
push:
branches: [ main, ci-testing ]
paths:
- 'charts/**'
- 'doc/openshift_test_server/**'
- 'doc/openshift_fips_values.example.yaml'
- '.github/workflows/validate.yml'
pull_request:
branches: [ main ]
paths:
- 'charts/**'
- 'doc/openshift_test_server/**'
- 'doc/openshift_fips_values.example.yaml'
- '.github/workflows/validate.yml'
workflow_dispatch:

permissions:
contents: read

env:
HELM_VERSION: v4.2.4

jobs:
helm-lint:
name: Helm Lint
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v6

- name: Set up Helm
uses: azure/setup-helm@v5
with:
version: ${{ env.HELM_VERSION }}

- name: Lint chart
run: helm lint charts/rocketgraph

helm-template:
name: Helm Template
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v6

- name: Set up Helm
uses: azure/setup-helm@v5
with:
version: ${{ env.HELM_VERSION }}

- name: Template with defaults
run: helm template test-release charts/rocketgraph

- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.12'

- name: Test OpenShift profiles, storage and shared Mission Control
run: |
python -m pip install PyYAML==6.0.3
python -m unittest discover -s charts/rocketgraph/tests -v

- name: Template with all features enabled
run: |
helm template test-release charts/rocketgraph \
--set frontend.tls.publicCert="test" \
--set frontend.tls.privateKey="test" \
--set frontend.tls.certChain="test" \
--set backend.tls.xgtServerCert="test" \
--set backend.tls.proxyClientCert="test" \
--set backend.tls.proxyClientKey="test" \
--set backend.tls.mtls=true \
--set backend.odbc.enabled=true \
--set backend.iaccess.enabled=true \
--set backend.siteConfig.yml="test: true" \
--set backend.siteConfig.py="pass" \
--set mongodb.auth.enabled=true \
--set mongodb.auth.rootPassword="pass" \
--set xgt.ssl.enabled=true \
--set xgt.ssl.cert="test" \
--set xgt.ssl.key="test" \
--set xgt.ssl.mtls=true \
--set xgt.ssl.caCert="test" \
--set xgt.license.data="test" \
--set xgt.ldap.enabled=true \
--set xgt.ldap.uri="ldap://test" \
--set xgt.ldap.baseDn="dc=test" \
--set openshift.enabled=true \
--set networkPolicy.enabled=true

- name: Template with existingSecret paths
run: |
helm template test-release charts/rocketgraph \
--set frontend.tls.existingSecret="frontend-tls" \
--set backend.tls.existingSecret="backend-tls" \
--set mongodb.auth.enabled=true \
--set mongodb.auth.existingSecret="mongo-auth" \
--set xgt.ssl.enabled=true \
--set xgt.ssl.existingSecret="xgt-ssl" \
--set xgt.license.existingSecret="xgt-license"

helm-snapshot:
name: Helm Snapshot
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v6

- name: Set up Helm
uses: azure/setup-helm@v5
with:
version: ${{ env.HELM_VERSION }}

# Checksums depend on line endings (CRLF vs LF) so we strip them before comparing.
- name: Snapshot — default
run: |
helm template test-release charts/rocketgraph > /tmp/default.yaml
diff <(grep -v 'checksum/' charts/rocketgraph/tests/snapshots/default.yaml) <(grep -v 'checksum/' /tmp/default.yaml)

- name: Snapshot — tls
run: |
helm template test-release charts/rocketgraph \
--set frontend.tls.publicCert="test-cert" \
--set frontend.tls.privateKey="test-key" \
--set backend.tls.xgtServerCert="test-ca" \
--set backend.tls.proxyClientCert="test-client-cert" \
--set backend.tls.proxyClientKey="test-client-key" \
--set xgt.ssl.enabled=true \
--set xgt.ssl.cert="test-xgt-cert" \
--set xgt.ssl.key="test-xgt-key" \
--set backend.env.XGT_SERVER_CN="test-release-xgt" \
> /tmp/tls.yaml
diff <(grep -v 'checksum/' charts/rocketgraph/tests/snapshots/tls.yaml) <(grep -v 'checksum/' /tmp/tls.yaml)

- name: Snapshot — ldap
run: |
helm template test-release charts/rocketgraph \
--set xgt.ldap.enabled=true \
--set xgt.ldap.uri="ldap://ldap.example.org" \
--set "xgt.ldap.baseDn=dc=example\,dc=org" \
--set "xgt.ldap.bindDn=cn=admin\,dc=example\,dc=org" \
--set-string xgt.ldap.bindPassword="secret" \
> /tmp/ldap.yaml
diff <(grep -v 'checksum/' charts/rocketgraph/tests/snapshots/ldap.yaml) <(grep -v 'checksum/' /tmp/ldap.yaml)

- name: Snapshot — openshift
run: |
helm template test-release charts/rocketgraph \
--set openshift.enabled=true \
> /tmp/openshift.yaml
diff <(grep -v 'checksum/' charts/rocketgraph/tests/snapshots/openshift.yaml) <(grep -v 'checksum/' /tmp/openshift.yaml)

- name: Snapshot — external-mongodb
run: |
helm template test-release charts/rocketgraph \
--set mongodb.enabled=false \
--set mongodb.externalUri="mongodb://user:pass@external-host:27017/dbname" \
> /tmp/external-mongodb.yaml
diff <(grep -v 'checksum/' charts/rocketgraph/tests/snapshots/external-mongodb.yaml) <(grep -v 'checksum/' /tmp/external-mongodb.yaml)

- name: Snapshot — external-xgt
run: |
helm template test-release charts/rocketgraph \
--set xgt.enabled=false \
--set backend.env.MC_DEFAULT_XGT_HOST=xgt.example.com \
> /tmp/external-xgt.yaml
diff <(grep -v 'checksum/' charts/rocketgraph/tests/snapshots/external-xgt.yaml) <(grep -v 'checksum/' /tmp/external-xgt.yaml)

kubeconform:
name: Kubeconform
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v6

- name: Set up Helm
uses: azure/setup-helm@v5
with:
version: ${{ env.HELM_VERSION }}

- name: Install kubeconform
run: |
curl -fsSL https://github.com/yannh/kubeconform/releases/latest/download/kubeconform-linux-amd64.tar.gz \
| tar xz -C /usr/local/bin kubeconform

- name: Validate rendered manifests
run: |
helm template test-release charts/rocketgraph \
| kubeconform -strict -summary -output text

helm-smoke:
name: Helm Smoke Test
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v6

- name: Set up Helm
uses: azure/setup-helm@v5
with:
version: ${{ env.HELM_VERSION }}

- name: Create kind cluster
uses: helm/kind-action@v1

- name: Install chart
run: helm install test-release charts/rocketgraph --wait --timeout 5m

- name: Verify all pods are ready
run: |
kubectl get pods
kubectl wait --for=condition=ready pod --all --timeout=300s

- name: Check for excessive restarts
run: |
RESTARTS=$(kubectl get pods -o jsonpath='{.items[*].status.containerStatuses[*].restartCount}')
echo "Restart counts: $RESTARTS"
for count in $RESTARTS; do
if [ "$count" -gt 2 ]; then
echo "Pod has $count restarts"
kubectl get pods
kubectl describe pods
exit 1
fi
done

- name: Teardown
if: always()
run: kind delete cluster
15 changes: 9 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,13 @@ The guides below cover individual topics in depth. The first four apply to ever
| Guide | What it covers |
|---|---|
| [MongoDB Security](doc/mongodb_security.md) | Authentication, TLS, mutual TLS, and encryption at rest for the bundled MongoDB |
| [OIDC Authentication](doc/oidc_configuration.md) | Signing users in through an external identity provider such as Keycloak or OpenShift |
| [OIDC and OpenShift OAuth2 Authentication](doc/oidc_configuration.md) | Keycloak OIDC and OpenShift OAuth2 login, client secrets, scopes and token validation |
| [Site LLM Configuration](doc/llm_site_config.md) | Which AI models Mission Control offers, their endpoints, and their credentials |
| [ODBC Configuration](doc/odbc_configuration.md) | Loading data from external databases — PostgreSQL, MariaDB, and IBM i (AS/400) |
| [Deployment Reference](doc/deployment_reference.md) | Per-container images, ports, volume paths, and environment variables — for orchestrators not listed above, or for debugging a running container |
| [Helm Chart](charts/rocketgraph/README.md) | Deploying on Kubernetes and OpenShift, and every value the chart accepts |
| [OpenShift Test Server](doc/openshift_test_server/README.md) | Step-by-step LDAP/OAuth setup, group synchronization, FIPS images, automation tokens, and three XGT servers sharing Mission Control |
| [OpenShift FIPS Deployment Planning](doc/openshift_fips_deployment.md) | Administrator responsibilities, required inputs, and deployment acceptance checks |

## Compose Files and Images

Expand Down Expand Up @@ -256,10 +258,10 @@ The configurable environment variables are:

|Variable |Volume Mapped|Description|
|------------------------|-|-----------|
|MC_OIDC_ISSUER | |*(experimental)* OIDC issuer URL; if empty, discovered from the xGT server|
|MC_OIDC_ISSUER | |*(experimental)* OIDC provider or OpenShift OAuth issuer URL; if empty, discovered from XGT|
|MC_OIDC_CLIENT_ID | |*(experimental)* OAuth2 client ID; if empty, discovered from the xGT server|
|MC_OIDC_CLIENT_SECRET | |*(experimental)* client secret for confidential OAuth2 clients|
|MC_OIDC_SCOPES | |*(experimental)* space-separated OAuth2 scopes to request; default: `openid profile email`|
|MC_OIDC_SCOPES | |*(experimental)* optional scope override; discovers XGT-advertised scopes, including `user:info` for OpenShift|
|MC_OIDC_FRONTEND_URL | |*(experimental)* override the frontend base URL for post-login redirects; derived server-side from the request hostname and `MC_PORT`/`MC_SSL_PORT` by default|
|MC_OIDC_REDIRECT_URI | |*(experimental)* override the redirect URI sent to the IdP; derived server-side from the request hostname and `MC_PORT`/`MC_SSL_PORT` by default|
|MC_OIDC_ALLOWED_ORIGINS | |*(experimental)* comma-separated list of permitted frontend origins; `*` wildcards supported (e.g. `https://*.apps.cluster.example.com`); optional defense-in-depth|
Expand Down Expand Up @@ -562,9 +564,10 @@ Refer to these detailed [instructions](doc/llm_site_config.md).

### OIDC Authentication (Experimental)

Mission Control has experimental support for authenticating users via an
external OpenID Connect (OIDC) identity provider such as Keycloak or
OpenShift OAuth.
Mission Control has experimental support for OIDC providers such as Keycloak
and for OpenShift's built-in OAuth2 server. Both use the existing `OidcAuth`
interface and `MC_OIDC_*` settings. For OpenShift, XGT obtains the user's identity
and groups by validating the access token through the OpenShift User API.

Refer to the [OIDC configuration guide](doc/oidc_configuration.md) for setup
instructions.
Expand Down
2 changes: 1 addition & 1 deletion charts/rocketgraph/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.3.0
version: 0.4.0
appVersion: "2.7.0"
Loading
Loading