fossflow

by unxwares-sac

Helm chartv2026.11.5App 1.0.6MITVerified publisher

FossFLOW, an open source web app to draw isometric infrastructure diagrams, with optional server-side storage of the diagrams.

About this chart

FossFLOW Helm Chart

FossFLOW is an open-source Progressive Web App for drawing isometric infrastructure diagrams. This chart deploys one container running nginx (the web app) and, optionally, a small Node.js backend that saves the diagrams as JSON files on a persistent volume. By default it runs the UnxWares image, FossFLOW built from the upstream sources without root and with a read-only root filesystem; the upstream image stays available. The chart is maintained by UnxWares; FossFLOW itself is maintained by the Abrar74774/FossFLOW project, the continuation of the original stan-smith/FossFLOW.

Features

  • UnxWares image by default: FossFLOW v1.0.6 built from the upstream sources on a current Alpine (see Images); the upstream image (master-b06baad) stays one value away
  • Two modes: server storage (diagrams saved by the backend on a PVC, the default) or browser-only (diagrams stay in each user's browser, stateless pods that can be scaled or autoscaled)
  • Hardened pod with the UnxWares image: uid 1000, read-only root filesystem, every capability dropped, seccomp RuntimeDefault, no service account token; it meets the restricted Pod Security Standard
  • Backend reachable from nginx only: it listens on 127.0.0.1:3001 (both images), and the UnxWares image sends no CORS header to other sites
  • Optional NetworkPolicy: only the HTTP port is open, and the pods open no connection
  • Probes on the storage backend (/api/storage/status) when it is enabled, so a dead backend makes the pod unready
  • Ingress or Gateway API HTTPRoute, optional HorizontalPodAutoscaler, helm test, an end-to-end test in CI, values schema

Architecture

<fullname> is <release>-fossflow, or just <release> when the release name contains fossflow.

ResourceNameCreated whenPurpose
Deployment<fullname>alwaysContainer fossflow: nginx serves the web app on port 8080 (UnxWares image) or 80 (upstream image) and proxies /api/ to the backend on 127.0.0.1:3001, which runs only with storage.enabled. Strategy Recreate with a ReadWriteOnce PVC.
Service<fullname>alwaysservice.type (ClusterIP), port service.port (80) to the container port http. The backend port is not in the Service and does not listen on the pod address.
PersistentVolumeClaim<fullname>storage.enabled, persistence.enabled, no persistence.existingClaim/data/diagrams, one <id>.json file per diagram; helm.sh/resource-policy: keep.
ServiceAccount<fullname>serviceAccount.create (default)No RBAC, token not mounted.
Ingress<fullname>ingress.enabled
HTTPRoute<fullname>httpRoute.enabledEvery rule is sent to the Service.
HorizontalPodAutoscaler<fullname>autoscaling.enabledCPU (and optional memory) target on the Deployment.
NetworkPolicy<fullname>networkPolicy.enabledIngress on the HTTP port only, no egress (see NetworkPolicy).
Pod (test hook)<fullname>-test-connectionhelm testSee Testing.

Volumes of the pod: data, mounted at /data/diagrams with storage.enabled (the PVC, persistence.existingClaim, or an emptyDir when persistence.enabled=false), and tmp at /tmp (emptyDir, 256 Mi: the nginx pid and temporary files of the UnxWares image). The chart creates no Secret, no ConfigMap and no init container.

Images

The FossFLOW container and the helm test pod use the same image, chosen by imageProvider:

imageProviderImageNotes
unxwares (default)ghcr.io/unxwares/fossflow:<appVersion>Built from the upstream sources of commit b06baad (release v1.0.6, with the dependency updates UnxWares contributed in Abrar74774/FossFLOW#24), without the backend's unused uuid dependency, on a current Alpine without npm, su-exec or openssl. nginx (port 8080) and the backend run as uid 1000 with a read-only root filesystem; the backend listens on 127.0.0.1:3001 and its CORS headers are dropped. Rebuilt twice a week, signed with cosign.
upstreamdocker.io/abrar74774/fossflow:master-b06baadPublished by the maintainers of Abrar74774/FossFLOW from its public sources. Starts as root: nginx on port 80, backend through su-exec, writable root filesystem (see Security). Upstream only publishes master-<commit> tags.

Both images exist for linux/amd64 and linux/arm64 and use the same environment variables (ENABLE_SERVER_STORAGE, STORAGE_PATH, BACKEND_HOST) and the same storage format: switching between them keeps the diagrams. Sources, build details and the cosign verification command are in images/.

  • Another tag or registry: set image.repository and image.tag (an empty tag means the appVersion for the UnxWares image, master-b06baad for the upstream one). The chart picks the port and the security contexts from imageProvider, so a custom build of the upstream Dockerfile goes with imageProvider: upstream.

  • Pin a digest: image.digest takes precedence over the tag. Read it with docker buildx imagetools inspect ghcr.io/unxwares/fossflow:1.0.6 (or crane digest):

    image:
      digest: sha256:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef
    
  • Known vulnerabilities of both images are tracked daily in the CVE watch issue.

Requirements

Kubernetes: >=1.27.0-0

  • Storage, with the default values (server storage): a default StorageClass, or persistence.storageClass, that provisions a 1 Gi ReadWriteOnce volume. More than one replica with server storage needs a ReadWriteMany volume.
  • Exposure: an Ingress controller, or a Gateway API implementation serving gateway.networking.k8s.io/v1 HTTPRoutes. Otherwise use kubectl port-forward.
  • Pod Security: with the UnxWares image (default) the pods meet the restricted Pod Security Standard. The upstream image starts as root and adds back five capabilities: its namespace must allow baseline (see Security).
  • Nodes: amd64 or arm64.
  • FossFLOW has no user accounts: anything reachable from outside a trusted network needs an authentication layer in front (see Authentication).

Installation

helm repo add unxwares https://helm.unxwares.studio
helm repo update
helm install fossflow unxwares/fossflow --namespace fossflow --create-namespace

Charts are signed with the UnxWares Helm Charts OpenPGP key (fingerprint 7902 E52E A435 EF27 C643 2E53 78D6 B532 C599 DA9B, public key https://helm.unxwares.studio/pgp-public-key.asc). To verify the package before installing:

curl -fsSL https://helm.unxwares.studio/pgp-public-key.asc | gpg --import
gpg --export 7902E52EA435EF27C6432E5378D6B532C599DA9B > ~/.gnupg/unxwares-helm.gpg
helm install fossflow unxwares/fossflow --namespace fossflow --create-namespace \
  --verify --keyring ~/.gnupg/unxwares-helm.gpg

No value is required: the defaults run FossFLOW with server storage on a 1 Gi PVC, reachable inside the cluster only. A real install usually adds an Ingress or HTTPRoute with authentication in front (see Examples).

To reach it without exposing it:

kubectl -n fossflow port-forward svc/fossflow 8080:80

then open http://127.0.0.1:8080. There is no login: every user who reaches FossFLOW sees and can change every diagram saved on the server.

Configuration

Storage mode

storage.enabled=true (default) starts the Node.js backend with ENABLE_SERVER_STORAGE=true, STORAGE_PATH=/data/diagrams and BACKEND_HOST=127.0.0.1, so that only nginx, in the same pod, reaches it. The UnxWares image runs it, like nginx, as storage.uid:storage.gid (1000:1000); with the upstream image the chart also sets PUID/PGID to these values, and the backend drops to them. The backend lists, opens, saves and deletes diagrams through /api/diagrams, as one <id>.json file per diagram, shared by every user of the instance. A save rewrites the whole file: when two users save the same diagram, the last save wins.

storage.enabled=false does not start the backend: diagrams only live in the storage of each user's browser, nothing is kept on the server, and clearing the browser data loses them. The pods are then stateless, and /api/ answers 502 (the web app then falls back to the browser storage).

Persistence

Used only with storage.enabled. The diagrams go to a PVC created by the chart (persistence.size, persistence.storageClass, persistence.accessModes, persistence.annotations), or to persistence.existingClaim:

persistence:
  storageClass: longhorn
  size: 2Gi
persistence:
  existingClaim: fossflow-diagrams

persistence.enabled=false keeps the diagrams in an emptyDir: they are lost whenever the pod is replaced (upgrade, node drain, eviction), and each replica has its own.

The pod sets fsGroup to storage.gid (fsGroupChangePolicy: OnRootMismatch), so the volume is group-writable by that group. With your own podSecurityContext, keep fsGroup equal to storage.gid. Storage that ignores fsGroup (some NFS provisioners) must give write access to storage.uid/storage.gid itself.

Scaling

  • Server storage on a ReadWriteOnce (or ReadWriteOncePod) volume supports one replica: rendering fails with replicaCount > 1 or autoscaling.enabled, and the Deployment uses the Recreate strategy (a short downtime on each upgrade).

  • With a ReadWriteMany volume, several replicas share the same directory:

    replicaCount: 2
    persistence:
      storageClass: nfs-client
      accessModes:
        - ReadWriteMany
    
  • Browser-only pods are stateless and can be autoscaled on CPU (autoscaling.*, needs metrics-server):

    storage:
      enabled: false
    autoscaling:
      enabled: true
      minReplicas: 2
      maxReplicas: 5
      targetCPUUtilizationPercentage: 80
    

Exposure

The Service listens on service.port (80) and targets the container port http (8080 with the UnxWares image, 80 with the upstream one); service.type can be ClusterIP (default), NodePort or LoadBalancer:

service:
  type: LoadBalancer
  port: 8080

Ingress (ingress.*). FossFLOW accepts request bodies up to 10 MB; ingress-nginx limits them to 1 MB by default, so raise it or saving a large diagram fails with 413:

ingress:
  enabled: true
  className: nginx
  annotations:
    cert-manager.io/cluster-issuer: letsencrypt
    nginx.ingress.kubernetes.io/proxy-body-size: 10m
  hosts:
    - host: diagrams.example.com
      paths:
        - path: /
          pathType: Prefix
  tls:
    - secretName: fossflow-tls
      hosts:
        - diagrams.example.com

Gateway API (httpRoute.*). The default rule matches every path; the matches and filters of each rule are copied and the backend is always the FossFLOW Service:

httpRoute:
  enabled: true
  parentRefs:
    - name: public-gateway
      namespace: gateway-system
      sectionName: https
  hostnames:
    - diagrams.example.com

TLS

The pod serves plain HTTP. Terminate TLS at the Ingress (ingress.tls, with a certificate Secret or cert-manager as above) or at the Gateway listener referenced by httpRoute.parentRefs.

Authentication

FossFLOW has no user management. The HTTP_AUTH_USER/HTTP_AUTH_PASSWORD basic auth of the upstream image does not work in v1.0.6 (its entrypoint calls openssl passwd -bcrypt, which OpenSSL 3 removed), and the UnxWares image refuses to start when they are set rather than run without the protection they ask for. Protect FossFLOW at the ingress:

ingress:
  enabled: true
  className: nginx
  annotations:
    nginx.ingress.kubernetes.io/auth-type: basic
    nginx.ingress.kubernetes.io/auth-secret: fossflow-basic-auth   # htpasswd file in key "auth"
    nginx.ingress.kubernetes.io/auth-realm: FossFLOW
  hosts:
    - host: diagrams.example.com
      paths:
        - path: /
          pathType: Prefix
htpasswd -c auth alice
kubectl -n fossflow create secret generic fossflow-basic-auth --from-file=auth

or put it behind an SSO proxy (oauth2-proxy, Authentik outpost...). With an HTTPRoute, use the authentication features of your Gateway implementation. Authentication at the edge does not cover traffic from inside the cluster: see NetworkPolicy.

Resources

Defaults: requests cpu: 20m and memory: 96Mi, limit memory: 512Mi, for nginx and the backend together.

resources:
  requests:
    cpu: 50m
    memory: 128Mi
  limits:
    memory: 256Mi

Scheduling

nodeSelector, tolerations and affinity are copied to the pod (the chart has no topology spread setting):

nodeSelector:
  kubernetes.io/arch: arm64
tolerations:
  - key: dedicated
    operator: Equal
    value: tools
    effect: NoSchedule

NetworkPolicy

The backend listens on 127.0.0.1:3001 only, so other pods cannot reach it. The web app and its /api/ proxy are still open to every pod of the cluster on the HTTP port, without your ingress authentication. `networkPo

Deploy fossflow with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has fossflow 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 chartfossflow is pinned at v2026.11.5 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