api-key-manager

by JTEKT Corporation

Helm chartv0.3.1App v0.1.1Verified publisher

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 postgres image)
  • 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

KeyDescription
image / gui.imageAPI and GUI images
oidc.jwksUri, oidc.issuer, oidc.userClaimBearer token verification for the API
oidc.authority, oidc.clientIdOIDC login for the GUI
api.existingSecretExisting Secret with DATABASE_URL and optionally KEY_PEPPER. Replaces postgresql.connectionString and api.keyPepper
api.keyPepperSecret appended to keys before hashing. Changing it invalidates all existing keys
api.envExtra API environment variables (e.g. ARGON2_MEMORY_COST)
gui.appsUrlApp launcher link shown in the GUI
postgresql.enabledDeploy the bundled PostgreSQL. If disabled, set postgresql.connectionString
postgresql.image.repository, postgresql.image.tagImage of the bundled PostgreSQL (default postgres:17)
postgresql.auth.*Credentials of the bundled PostgreSQL. Change the password before deploying to production
postgresql.auth.existingSecretExisting Secret with POSTGRES_USER, POSTGRES_PASSWORD and POSTGRES_DB for the bundled PostgreSQL. Requires api.existingSecret with a matching DATABASE_URL
postgresql.persistence.sizeSize of the PostgreSQL volume
proxy.service.type, proxy.service.nodePortService exposing the proxy (default NodePort 30108)
httpRoute.enabled, httpRoute.parentRefs, httpRoute.hostnamesGateway 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartapi-key-manager is pinned at v0.3.1 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