You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 84e88f7
Browse filesBrowse the repository at this point in the historyBrowse files
refactor(helm): simplify PostgreSQL config to two orthogonal controls
Replace postgres.deploy and postgres.external.* with two simple controls:
- postgres.enabled: deploy the bundled Bitnami PostgreSQL subchart
- server.externalDbSecret: name of a pre-existing Secret with a uri key
Delete db-secret.yaml — the chart no longer generates Secrets from
individual credential fields. Users either get the Bitnami service-binding
secret (bundled) or bring their own via server.externalDbSecret.
Add validation that postgres.serviceBindings.enabled must stay true
when using bundled PostgreSQL, preventing a confusing runtime failure.
| postgres.deploy | bool |`false`| Deploy the bundled Bitnami PostgreSQL subchart. Set to true to run PostgreSQL alongside the gateway. Leave false when using an external PostgreSQL instance. |
| postgres.external.existingSecret | string |`""`| Name of a pre-existing Opaque Secret containing PostgreSQL credentials. When set, the chart does not create its own db Secret and reads directly from this one. The Secret must contain a `uri` key with the full connection string, e.g. postgresql://user:pass@host:5432/dbname. |
| probes.liveness.failureThreshold | int |`3`| Liveness probe failure threshold before the container is restarted. |
@@ -249,10 +188,11 @@ cert-manager alternative.
249
188
| securityContext.runAsNonRoot | bool |`true`| Require the gateway container to run as a non-root user. |
250
189
| securityContext.runAsUser | int |`1000`| UID assigned to the gateway container. |
251
190
| server.auth.allowUnauthenticatedUsers | bool |`false`| UNSAFE: accept unauthenticated CLI/user requests as a local developer principal. Intended only for trusted local Skaffold/k3d development or a fully trusted fronting proxy. Leave false for shared or production clusters. |
| server.dbUrl | string |`"sqlite:/var/openshell/openshell.db"`| Gateway database URL (used for the default SQLite backend). |
253
192
| server.disableTls | bool |`false`| Disable TLS entirely - the server listens on plaintext HTTP. Set to true when a reverse proxy / tunnel terminates TLS at the edge. |
254
193
| server.enableLoopbackServiceHttp | bool |`true`| Enable plaintext HTTP routing for loopback sandbox service URLs on TLS-enabled gateways. |
255
194
| server.enableUserNamespaces | bool |`false`| Enable Kubernetes user namespace isolation (hostUsers: false) for sandbox pods. Requires Kubernetes 1.33+ with user namespace support available (beta through 1.35, GA in 1.36+), plus a supporting container runtime and Linux 5.12+. When enabled, container UID 0 maps to an unprivileged host UID and capabilities become namespaced. |
195
+
| server.externalDbSecret | string |`""`| Name of a pre-existing Opaque Secret containing a PostgreSQL connection URI (key: uri). When set, the gateway reads OPENSHELL_DB_URL from this Secret instead of using dbUrl. The Secret must contain a `uri` key, e.g. postgresql://user:pass@host:5432/dbname. |
256
196
| server.grpcEndpoint | string |`""`| gRPC endpoint sandboxes call back into the gateway. Leave empty to derive it from the chart fullname, release namespace, service port, and disableTls flag, for example https://openshell.openshell.svc.cluster.local:8080. Override only when sandboxes must reach the gateway via a different hostname (e.g. an external ingress or a host alias). |
257
197
| server.hostGatewayIP | string |`""`| Host gateway IP for sandbox pod hostAliases. When set, sandbox pods get hostAliases entries mapping host.docker.internal and host.openshell.internal to this IP, allowing them to reach services running on the Docker host. Auto-detected by the cluster entrypoint script. |
0 commit comments