olivetin

by HelmForge

Helm chartv1.3.1App 3000.22.0Apache-2.0Verified publisher

OliveTin web interface for running predefined shell commands

About this chart

OliveTin Helm Chart

Deploy OliveTin on Kubernetes using the official jamesread/olivetin container image. OliveTin gives safe and simple access to predefined shell commands from a web interface.

Features

  • Web UI for shell commands — define actions in YAML, run them from the browser
  • Zero dependencies — stateless, no database required
  • Configuration via ConfigMap — YAML config mounted at /config/config.yaml
  • Prometheus metrics — optional /metrics endpoint with ServiceMonitor support
  • Ingress support — TLS with cert-manager
  • Gateway API support — optional HTTPRoute rendering for modern ingress controllers
  • External Secrets support — optional ExternalSecret resources for command credentials
  • Dual-stack Service support — optional ipFamilyPolicy and ipFamilies
  • Authoritative application port — olivetin.port configures both Kubernetes and OliveTin through PORT
  • Optional persistence — dynamically provision a data PVC or attach an existing claim
  • Lightweight — minimal resource usage

Installation

HTTPS repository:

helm repo add helmforge https://repo.helmforge.dev
helm repo update
helm install olivetin helmforge/olivetin -f values.yaml

OCI registry:

helm install olivetin oci://ghcr.io/helmforgedev/helm/olivetin -f values.yaml

Basic Example

# values.yaml
config: |
  actions:
    - title: "Ping Google"
      shell: "ping -c 1 google.com"
    - title: "Check Disk Usage"
      shell: "df -h"

After deploying:

kubectl port-forward svc/<release>-olivetin 1337:80
# Open http://localhost:1337

Key Values

KeyDefaultDescription
configInit.enabledtruePrepare writable OliveTin runtime files before startup
configInit.resourcesrequests/limits setResource guardrails for the config bootstrap init container
configInit.securityContextnon-rootSecurity context for the config bootstrap init container
image.tag3000.20.0OliveTin image tag
securityContextnon-rootSecurity context for the OliveTin application container
olivetin.port1337Application port, propagated through OliveTin's PORT environment variable
config""OliveTin YAML configuration. Empty uses the chart-managed default config.
configTpl.enabledfalseOpt in to Helm tpl rendering for config
persistence.enabledfalseEnable optional PVC for data
persistence.size1GiPVC size
ingress.enabledfalseEnable ingress
service.port80Service port
service.ipFamilyPolicyomittedOptional Service IP family policy for dual-stack clusters
gatewayAPI.enabledfalseEnable Gateway API HTTPRoute rendering
gatewayAPI.httpRoutes[].rules[].omitDefaultBackendfalseOmit the default Service backend for redirect-only rules
externalSecrets.enabledfalseRender ExternalSecret resources for command credentials
externalSecrets.apiVersionexternal-secrets.io/v1ExternalSecret API version
externalSecrets.refreshInterval1hDefault provider sync interval
externalSecrets.items[]ExternalSecret item list with full ESO spec blocks
metrics.enabledfalseEnable Prometheus metrics
metrics.port1341Dedicated Prometheus listener and Service port
metrics.defaultGoMetricsfalseExpose default Go runtime metrics
metrics.serviceMonitor.enabledfalseCreate ServiceMonitor
resourcesrequests/limits setDefault CPU and memory requests and limits
serviceAccount.automountServiceAccountTokenfalsePrevent automatic API token mounting

Prometheus Metrics

OliveTin exposes metrics at /metrics. To enable scraping with Prometheus Operator:

metrics:
  enabled: true
  port: 1341
  defaultGoMetrics: false
  serviceMonitor:
    enabled: true
    interval: 30s

OliveTin serves Prometheus metrics on a separate internal listener. The chart binds that listener to 0.0.0.0:<metrics.port>, exposes the named metrics Service port, and configures ServiceMonitor to scrape /metrics. Enabling a ServiceMonitor without metrics is rejected.

Configuration

The config value is mounted as /config/config.yaml inside the container. It is not rendered through Helm tpl by default, so OliveTin runtime expressions such as {{ message }} remain literal for OliveTin to evaluate. Set configTpl.enabled=true only when you intentionally want Helm to render templates inside config.

The chart parses the result as YAML and owns the prometheus and listenAddressPrometheus settings so metrics work consistently with starter and custom configurations. When metrics are disabled, it forces prometheus.enabled=false and removes any custom Prometheus listener address. See the chart configuration guide and the OliveTin documentation for all available options.

Upgrade Notes

OliveTin 3000.18.0 added dnsname action arguments and configuration issues in diagnostics. OliveTin 3000.20.0 adds dashboard categories, persistent log filters, and support for the PORT environment variable. It also fixes shellAfterCompleted output injection, HTTP timeout and path traversal weaknesses, and unsafe theme permissions. Upstream reports no breaking changes. The chart now propagates olivetin.port through PORT; remove any duplicate PORT entry from olivetin.extraEnv and configure the port only through olivetin.port. Enabling persistence now creates the data PVC when persistence.existingClaim is empty.

Security

OliveTin executes operator-defined shell commands. Do not expose it publicly without configuring OliveTin authentication and ACLs or an authenticated reverse proxy. Trusted-header authentication also requires preventing clients from bypassing that proxy.

The chart defaults to a non-root container, drops all capabilities, disables privilege escalation, uses runtime-default seccomp, and does not mount a ServiceAccount token. If actions call the Kubernetes API, explicitly enable the token and bind only the minimum RBAC. Keep credentials in Kubernetes Secrets or External Secrets; values.config is stored in a ConfigMap.

The optional /data PVC stores only files that actions deliberately write there. Session files, themes, and logs under /config remain ephemeral. The chart does not create NetworkPolicy because action destinations are specific to each deployment.

Security Scan: olivetin

FrameworkScore
MITRE + NSA + SOC295%

Security posture: acceptable.

Ingress Example

ingress:
  enabled: true
  ingressClassName: traefik  # or nginx
  annotations:
    cert-manager.io/cluster-issuer: letsencrypt
  hosts:
    - host: olivetin.example.com
      paths:
        - path: /
          pathType: Prefix
  tls:
    - hosts:
        - olivetin.example.com
      secretName: olivetin-tls

Gateway API Example

gatewayAPI:
  enabled: true
  httpRoutes:
    - name: web
      parentRefs:
        - name: public
          namespace: gateway-system
      hostnames:
        - olivetin.example.com

External Secrets Example

externalSecrets:
  enabled: true
  items:
    - name: command-credentials
      spec:
        secretStoreRef:
          name: platform-secrets
          kind: ClusterSecretStore
        target:
          name: olivetin-command-credentials
          creationPolicy: Owner
        data:
          - secretKey: API_TOKEN
            remoteRef:
              key: olivetin/api-token

olivetin:
  extraEnv:
    - name: API_TOKEN
      valueFrom:
        secretKeyRef:
          name: olivetin-command-credentials
          key: API_TOKEN

More Information

Deploy olivetin with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has olivetin on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartolivetin is pinned at v1.3.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply