11. Security

11.1 Shared Responsibility Model

The chart deploys IX25 workloads and optional bundled dependencies. The customer remains responsible for cluster-level security, identity, network isolation, secret lifecycle, backup protection, and operational access control.

For customer-facing or production-style deployments:

  • deploy IX25 in a dedicated namespace

  • use trusted TLS certificates

  • use existing Kubernetes Secrets rather than inline credentials

  • pin images to approved tags or digests

  • disable optional external endpoints unless needed

  • treat external PostgreSQL, external Vault, and managed object storage as experimental integration paths

  • restrict namespace RBAC

  • add customer-specific NetworkPolicies

  • test backup and restore procedures

11.3 Secret Management

Prefer existingSecret references:

Kopieren
postgres:
  auth:
    existingSecret: postgres-auth

keycloak:
  admin:
    existingSecret: keycloak-admin
  adminClient:
    clientSecret:
      existingSecret: keycloak-admin-client
  serviceClient:
    clientSecret:
      existingSecret: keycloak-service-client

Do not commit raw production credentials into values files.

For the Assistant, store the OpenAI API key in a dedicated Secret:

Kopieren
components:
  assistant:
    apiKey:
      existingSecret: assistant-openai-api-key
      existingSecretKey: OPENAI_API_KEY

11.4 Secret Rotation

Recommended rotation workflow:

  1. create the new Secret

  2. verify expected key names

  3. update values only if the Secret name or key mapping changes

  4. run helm upgrade

  5. monitor affected pods

  6. validate the dependent function

  7. remove the old Secret after rollout is healthy

Example:

Kopieren
kubectl -n ix25 create secret generic postgres-auth-v2 \
  --from-literal=username='<new-username>' \
  --from-literal=password='<new-password>' \
  --from-literal=database='intrexx'

11.5 TLS and Ingress Exposure

Keep optional endpoints disabled unless required:

Kopieren
ingress:
  pgadmin:
    enabled: false
  grafana:
    enabled: false
  rustfs:
    enabled: false

If exposing them, apply access control through Traefik middleware:

Kopieren
ingress:
  grafana:
    enabled: true
    middlewares:
      - corporate-auth@kubernetescrd

For OpenShift Routes, apply equivalent router or platform access controls; Traefik middleware values do not apply to ingressHa Routes.

11.6 Image and Supply Chain Controls

Recommended actions:

  • pin all images

  • scan images before production promotion

  • use a private registry mirror if required

  • scope image pull Secrets to the namespace

  • avoid mutable tags in production-style environments

11.7 Vault Security

Bundled Vault bootstrap stores recovery material in:

Kopieren
<release>-vault-credentials

This Secret is highly sensitive. Restrict access to it and include it in backup planning. External Vault integration is currently experimental and should be validated separately before operational use.

11.8 Studio CLI Initializer Security

The Studio CLI initializer is a short-lived Job rather than an exposed service. It receives the Keycloak service-client secret through a Secret reference, connects to the internal Studio gRPC endpoint and effective Keycloak token endpoint, and does not mount a Kubernetes service-account token. Pin and scan the CLI image, restrict access to Job logs, and prefer keycloak.serviceClient.clientSecret.existingSecret in production-style environments.

11.9 Network Isolation

The chart does not currently ship default NetworkPolicy resources. Customers should add policies to restrict:

  • ingress from other namespaces

  • egress to only required external services

  • access to PostgreSQL, NATS, Vault, Keycloak, and RustFS

  • access from Traefik to only required web-facing services

Validate policies in staging before enforcing them in production.

11.10 Runtime Hardening

The chart renders hardened default security contexts for workloads from global.securityContextDefaults and global.wait.containerSecurityContext:

  • pod security context: runAsNonRoot: true and seccompProfile.type: RuntimeDefault

  • main and non-wait init container security context: allowPrivilegeEscalation: false and capabilities.drop: [ALL]

  • dependency wait init containers: global.wait.containerSecurityContext, with the same container hardening plus runAsUser: 65534 and runAsGroup: 65534 by default

Workload-specific security context values are merged on top of these defaults. Use overrides only when an image or cluster policy requires different UID/GID settings or additional controls.

Bundled PostgreSQL runs fix-postgres-permissions by default to set PVC ownership before the database container starts. The command target is rendered from postgres.podSecurityContext.runAsUser and postgres.podSecurityContext.runAsGroup, defaulting to 999:999. Disable it with postgres.permissionsFix.enabled=false when Restricted Pod Security or OpenShift SCC rules disallow root init containers or added CHOWN/FOWNER capabilities.

11.11 RBAC and Namespace Access

Recommended role boundaries:

  • cluster administrators manage CRDs, ingress controllers, storage classes, and admission policies

  • IX25 platform administrators manage Helm releases, values, Secrets, and ConfigMaps in the IX25 namespace

  • support engineers get read-only access to pods, events, services, routes, and logs

  • developers should not have production Secret access

Restrict pods/exec, pods/portforward, and Secret read/write access.

11.12 Logging and Sensitive Data

Telemetry and logs may contain sensitive operational details. Review retention, destinations, and access controls. Use observability.mode=collector when telemetry must be routed into a customer-managed backend.

11.13 Backup Security

Backups contain application data and credentials. Protect backup buckets, Velero credentials, snapshots, and restored environments. Store backups outside the IX25 cluster and test restore access controls.

11.14 Current Chart Security Limitations

Current limitations to account for:

  • some images may default to mutable tags unless overridden

  • no default NetworkPolicies are shipped

  • runtime hardening may still require workload-specific UID/GID or filesystem overrides in restrictive clusters

  • bundled Vault recovery material is stored in Kubernetes Secrets

These limitations require customer-side compensating controls for hardened deployments.