airtrail
by xvilo
A modern, open-source personal flight tracking system.
About this chart
AirTrail
Helm chart for AirTrail — a modern, open-source personal flight tracking system.
| Resource | What it is |
|---|---|
Deployment + Service | AirTrail app (johly/airtrail), port 3000 |
PersistentVolumeClaim | Uploads volume mounted at /app/uploads |
Ingress | routes the host to the app |
No database is bundled — bring your own PostgreSQL (managed service, operator, or a separate chart) and point this chart at it via values or an existing Secret.
Install
helm install airtrail ./charts/airtrail \
--namespace airtrail --create-namespace \
--set origin=https://airtrail.example.com \
--set ingress.host=airtrail.example.com
originmust match the public URL the app is served from (scheme + host). AirTrail rejects login/registration form submissions from other origins. Pass a comma-separated list to allow multiple origins.
The first account you register becomes the admin.
Database
No database is bundled. AirTrail consumes a single DB_URL, which the chart
assembles at runtime from the database.* components via Kubernetes $(VAR) env
interpolation. Each component is either a plain string or a
Kubernetes-native object rendered verbatim as the env var's source — so any part
(typically the password) can come straight from a Secret you manage.
Inline strings (simplest):
database:
host: db.example.com
port: 5432
name: airtrail
username: airtrail
password: secret # use A-Za-z0-9 only to avoid URL-parsing issues
Pull the password (or any field) from an existing Secret:
database:
host: db.example.com
name: airtrail
username: airtrail
password:
valueFrom:
secretKeyRef:
name: airtrail-db # a Secret you manage
key: password
The chart never templates a Secret of its own, so inline string values land in the
Deployment's env as-is — use the valueFrom object form for anything sensitive.
A wait-for-db init container (waitForDb.enabled, default true) blocks rollout
until the database is reachable; set waitForDb.enabled=false to skip it.
Uploads
Persistent storage for uploads (airline icons, etc.) is enabled by default and
mounted at UPLOAD_LOCATION=/app/uploads. Disable with persistence.enabled=false
(uploads are then turned off), or point at a pre-created claim with
persistence.existingClaim.
OAuth (SSO)
AirTrail can authenticate users via an external identity provider (OIDC).
Register a confidential web application (Authorization Code grant) in your IdP
with the app's /login route as redirect URI (e.g. https://airtrail.example.com/login),
then:
oauth:
enabled: true
issuerURL: https://idp.example.com
clientID: airtrail
clientSecret:
valueFrom:
secretKeyRef:
name: airtrail-oauth
key: client-secret
issuerURL, clientID and clientSecret are required when enabled=true
keep the clientSecret in a Kubernetes secret, not in values.
The optional settings (tokenEndpointAuthMethod, scope, prompt,
autoRegister, autoLogin, hidePasswordForm, buttonText) are passed
through as OAUTH_* env vars; empty values fall back to AirTrail's own
defaults (see the app docs).
TLS
With cert-manager + nginx-ingress:
--set ingress.tls.enabled=true \
--set ingress.tls.secretName=airtrail-tls \
--set 'ingress.annotations.cert-manager\.io/cluster-issuer=letsencrypt-prod'
Render without installing
helm template airtrail ./charts/airtrail \
--set origin=https://airtrail.example.com \
--set ingress.host=airtrail.example.com
Deploy airtrail with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has airtrail 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartairtrail is pinned at v0.3.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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