openshift-secured-app

by info.eximia.it

Helm chartv0.5.0Verified publisher

A secured version of an APP for OpenShift

About this chart

Openshift Secured App

Este chart sirve para segurizar una aplicación con openshift oauth-proxy.

Uso

  • Agregar la configuración del container que se quiere segurizar en el archivo values.yaml:
containers:
  - name: app
    image: "quay.io/eximiait/openshift-secured-app:latest"
    imagePullPolicy: IfNotPresent
    ports:
      - name: http
        containerPort: 8080
        protocol: TCP
    livenessProbe:
      httpGet:
        path: /healthcheck/
        port: 8080
      initialDelaySeconds: 5
      periodSeconds: 5
      failureThreshold: 2
    resources: {}
    volumeMounts:
      - name: db
        mountPath: /db
  • Setear la URL al upstream en el archivo values.yaml:
upstream: "http://app:8080"
  • Generar y configurar cookieSecret en el archivo values.yaml:
cookieSecret: "value" # dd if=/dev/urandom bs=32 count=1 2>/dev/null | base64 | tr -d -- '\n' | tr -- '+/' '-_'; echo

Deploy openshift-secured-app with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has openshift-secured-app 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 chartopenshift-secured-app is pinned at v0.5.0 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