feature-flags-stack

by QuenchWorks

Helm chartv0.0.8App 8.2.1Apache-2.0Verified publisher

Unleash with PostgreSQL: feature flags and gradual rollouts, with the API tokens your services and front ends use generated at install and kept across upgrades. All component images are QuenchWorks-hardened, nonroot, CVE-gated, pinned by digest and cosign-signed.

About this chart

Quenchworks feature-flags-stack

Feature flags and gradual rollouts in one install: Unleash 8.2.1 with PostgreSQL, on QuenchWorks images (nonroot, CVE-gated at build, pinned by digest, cosign-signed). The stack generates the API tokens your services and front ends use at install and keeps them across upgrades, so an SDK can be configured before anyone opens the UI.

Install

helm install flags oci://ghcr.io/quenchworks/charts/feature-flags-stack -n flags --create-namespace

Then read a token and point an SDK at http://flags-unleash.flags:4242/api:

kubectl -n flags get secret feature-flags-api-tokens -o jsonpath='{.data.backend-production}' | base64 -d

API tokens

The Secret feature-flags-api-tokens holds five tokens in Unleash's project:environment.secret form, all for the default project:

KeyTypeFor
backend-development, backend-productionbackendserver SDKs, /api/client
frontend-development, frontend-productionfrontendweb and mobile SDKs, /api/frontend
adminadminautomation and CI, /api/admin

Unleash creates them on start (INIT_BACKEND_API_TOKENS, INIT_FRONTEND_API_TOKENS, INIT_ADMIN_API_TOKENS). Helm keeps the Secret on uninstall.

Values

Everything under unleash: passes to the unleash chart, including its bundled PostgreSQL (unleash.postgresql), the public URL (unleash.url) and the first administrator (unleash.admin).

Notes

  • One stack per namespace: the token Secret has a fixed name, because the unleash subchart reads it from plain values.
  • Unleash stores a token the first time it sees it. Replacing a value in the Secret adds a new token and leaves the old one valid; revoke it in the UI (Admin, API access).
  • The admin token has full access to the Admin API. Keep it to automation that needs it.

Deploy feature-flags-stack with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has feature-flags-stack 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 chartfeature-flags-stack is pinned at v0.0.8 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