api-key-manager
Helm chart for the API Key Manager
About this chart
API Key Manager Helm chart
Deploys all the necessary components for a working API Key Manager instance:
- API Key Manager back-end
- GUI
- Database (official
postgresimage) - Reverse-proxy (nginx)
The proxy serves the GUI at / and the API at /api/ on a single NodePort (default 30108). Services inside the cluster can call the API service directly. Database migrations run in an init container before the API starts.
Usage
helm repo add jtekt https://jtekt.github.io/helm-repository/
helm install api-key-manager jtekt/api-key-manager \
--set oidc.jwksUri=https://keycloak.example.com/realms/my-realm/protocol/openid-connect/certs \
--set oidc.authority=https://keycloak.example.com/realms/my-realm \
--set oidc.clientId=api-key-manager
Without oidc.jwksUri, the API trusts the X-User-ID header and any caller can act as any user. Only use that for development.
Values
| Key | Description |
|---|---|
image / gui.image | API and GUI images |
oidc.jwksUri, oidc.issuer, oidc.userClaim | Bearer token verification for the API |
oidc.authority, oidc.clientId | OIDC login for the GUI |
api.existingSecret | Existing Secret with DATABASE_URL and optionally KEY_PEPPER. Replaces postgresql.connectionString and api.keyPepper |
api.keyPepper | Secret appended to keys before hashing. Changing it invalidates all existing keys |
api.env | Extra API environment variables (e.g. ARGON2_MEMORY_COST) |
gui.appsUrl | App launcher link shown in the GUI |
postgresql.enabled | Deploy the bundled PostgreSQL. If disabled, set postgresql.connectionString |
postgresql.image.repository, postgresql.image.tag | Image of the bundled PostgreSQL (default postgres:17) |
postgresql.auth.* | Credentials of the bundled PostgreSQL. Change the password before deploying to production |
postgresql.auth.existingSecret | Existing Secret with POSTGRES_USER, POSTGRES_PASSWORD and POSTGRES_DB for the bundled PostgreSQL. Requires api.existingSecret with a matching DATABASE_URL |
postgresql.persistence.size | Size of the PostgreSQL volume |
proxy.service.type, proxy.service.nodePort | Service exposing the proxy (default NodePort 30108) |
httpRoute.enabled, httpRoute.parentRefs, httpRoute.hostnames | Gateway API HTTPRoute to the proxy (requires a Gateway controller) |
Deploy api-key-manager with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has api-key-manager 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 chartapi-key-manager is pinned at v0.3.1 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