aegis

by gustav0thethird

Helm chartv0.4.1App 0.4.1AGPL-3.0Verified publisher

Vendor-agnostic secrets broker and PAM gateway. Scoped API keys per team, any vault, every action logged.

About this chart

aegis

Vendor-agnostic secrets broker and PAM gateway. Scoped API keys per team, any vault, every action logged.

Homepage: https://github.com/gustav0thethird/Aegis

Installing

The chart is published as a signed OCI artifact alongside each release. Without --version Helm installs the newest; pin one for a repeatable deployment:

helm install aegis oci://ghcr.io/gustav0thethird/charts/aegis \
  --namespace aegis --create-namespace \
  --set secret.existingSecret=aegis-credentials \
  --set auth.existingSecret=aegis-auth-json \
  --set migrations.hookProvider=helm

Two Secrets must exist in the namespace before installing:

SecretKeysPurpose
secret.existingSecretdatabase-url, redis-url, admin-password, optionally secret-keyRuntime configuration
auth.existingSecretauth.json (or auth.secretKey)Vault backend credentials the broker brokers with

migrations.hookProvider defaults to argocd; set it to helm for plain helm install / helm upgrade so the migration Job runs as a pre-install hook.

Verify the chart's signature (keyless, bound to the release workflow):

cosign verify oci://ghcr.io/gustav0thethird/charts/aegis:<version> \
  --certificate-identity-regexp 'https://github.com/gustav0thethird/Aegis/' \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com

Upgrading

helm upgrade aegis oci://ghcr.io/gustav0thethird/charts/aegis --version <new> --namespace aegis --reuse-values

The migration Job runs ahead of the rollout; a failed migration fails the upgrade before any new pod starts.

Maintainers

NameEmailUrl
gustav0thethirdhttps://github.com/gustav0thethird

Source Code

Requirements

Kubernetes: >=1.25.0-0

Values

KeyTypeDefaultDescription
affinityobject{}Affinity rules for broker pods.
auth.authPathstring"/etc/aegis/auth.json"Path the file is mounted at inside the container.
auth.existingSecretstring""Name of an existing Secret holding auth.json. Required.
auth.secretKeystring"auth.json"Key within that Secret that holds the file.
autoscaling.enabledboolfalseManage replica count with a HorizontalPodAutoscaler.
autoscaling.maxReplicasint6Maximum replicas.
autoscaling.minReplicasint2Minimum replicas.
autoscaling.targetCPUUtilizationPercentageint75Target average CPU utilisation.
config.esoAllowRegistryExtractboolfalseAllow one External Secrets Operator request to return a whole registry. Off by default: it hands every object in the registry to a single consumer.
config.extraEnvobject{}Additional non-sensitive environment variables, rendered into the ConfigMap.
config.logDestinationsstring"stdout"Comma-separated audit log destinations: stdout, splunk, s3, datadog.
config.rateLimitFailModestring"open"Behaviour when Redis is unreachable: open serves without enforcing limits (availability first), closed rejects requests (security first).
config.rateLimitRpmstring"60"Per-key requests per minute.
config.webhookAllowedHostsstring""Comma-separated host allowlist for outbound webhook and alert URLs. Empty means any public host; private and loopback targets are always rejected.
config.webhookAllowedSchemesstring"https"Comma-separated URL schemes accepted for outbound webhook and alert URLs.
config.webhookIncludeRotatedKeyboolfalseInclude the plaintext key in the key.rotated webhook payload. Off by default; the key is returned to whoever triggered the rotation instead.
externalSecrets.authJson.enabledboolfalseMaterialise the auth.json Secret (auth.existingSecret) from an external store via an ExternalSecret.
externalSecrets.authJson.refreshIntervalstring"1h"How often ESO re-reads the store.
externalSecrets.authJson.remoteRefobject{"key":"","property":""}Remote reference for the auth.json document (key, optional property and version).
externalSecrets.authJson.secretStoreRef.kindstring"ClusterSecretStore"Kind of the store reference.
externalSecrets.authJson.secretStoreRef.namestring""Name of the SecretStore / ClusterSecretStore to read from.
externalSecrets.clusterSecretStore.apiKeySecretobject{"key":"api-key","name":"aegis-eso-credentials","namespace":"external-secrets"}Secret holding the Aegis team API key ESO authenticates with.
externalSecrets.clusterSecretStore.changeNumberstring"ESO-SYNC"Sent as X-Change-Number on every ESO fetch. A standing identifier for automated sync traffic; set it to whatever your change process expects, or turn change_number_required off for this path.
externalSecrets.clusterSecretStore.enabledboolfalseEmit a ClusterSecretStore pointing at this release so workloads can pull brokered secrets through the External Secrets Operator.
externalSecrets.clusterSecretStore.namestring"aegis"Name of the ClusterSecretStore.
externalSecrets.credentials.enabledboolfalseMaterialise the credentials Secret (secret.existingSecret) from an external store via an ExternalSecret. Set secret.existingSecret to the name it should create.
externalSecrets.credentials.refreshIntervalstring"1h"How often ESO re-reads the store. Pair with secret.adminPasswordSync=always and a Deployment roll (or Reloader) to apply rotations.
externalSecrets.credentials.remoteRefsobject{"admin-password":{"key":"","property":""},"database-url":{"key":"","property":""},"redis-url":{"key":"","property":""},"secret-key":{"key":"","property":""}}Map of Secret key -> remote reference. Keys are database-url, redis-url, admin-password and optionally secret-key; each entry takes key, optional property and version as in ExternalSecret.spec.data[].remoteRef. Entries with an empty key are skipped.
externalSecrets.credentials.secretStoreRef.kindstring"ClusterSecretStore"Kind of the store reference.
externalSecrets.credentials.secretStoreRef.namestring""Name of the SecretStore / ClusterSecretStore to read from.
fullnameOverridestring""Override the full release name used in resource names.
image.pullPolicystring"IfNotPresent"Image pull policy.
image.repositorystring"ghcr.io/gustav0thethird/aegis"Image repository. Release images are multi-arch (amd64, arm64), signed with Sigstore and carry an SBOM.
image.tagstring""Image tag. Defaults to "v" + .Chart.AppVersion, matching release tags.
imagePullSecretslist[]Pull secrets for a private mirror of the image.
ingress.annotationsobject{}Annotations for the Ingress (cert-manager issuer, rate limits, ...).
ingress.classNamestring""IngressClass name.
ingress.enabledboolfalseExpose the broker through an Ingress.
ingress.hostslist[{"host":"aegis.example.com","paths":[{"path":"/","pathType":"Prefix"}]}]Hosts and paths routed to the broker.
ingress.tlslist[]TLS configuration for the Ingress.
migrations.backoffLimitint3Job retries before the rollout is failed.
migrations.enabledbooltrueRun alembic upgrade head in a Job ahead of each rollout.
migrations.hookProviderstring"argocd"How the Job is ordered before the Deployment: argocd (PreSync hook), helm (pre-install/pre-upgrade hook) or none (plain Job).
migrations.resourcesobject{"requests":{"cpu":"50m","memory":"128Mi"}}Resources for the migration Job.
nameOverridestring""Override the chart name used in resource names.
networkPolicy.allowedNamespaceslist[]Namespaces allowed to reach the broker. Empty allows any pod in the cluster.
networkPolicy.egresslist[]Egress rules. Left to the cluster default unless set; the broker must reach its database, Redis, the vault backends and any alert destinations.
networkPolicy.enabledboolfalseCreate a NetworkPolicy restricting ingress to the broker.
nodeSelectorobject{}Node selector for broker pods.
podAnnotationsobject{}Extra annotations for broker pods.
podDisruptionBudget.enabledbooltrueCreate a PodDisruptionBudget so node drains keep at least minAvailable brokers up.
podDisruptionBudget.minAvailableint1Minimum available replicas during voluntary disruption.
podLabelsobject{}Extra labels for broker pods.
podSecurityContextobject{"fsGroup":10001,"runAsGroup":10001,"runAsNonRoot":true,"runAsUser":10001,"seccompProfile":{"type":"RuntimeDefault"}}Pod security context. The image ships a non-root user (uid 10001) and needs no write access to its root filesystem.
replicaCountint2Number of broker replicas. Ignored when autoscaling.enabled is true.
resourcesobject{"limits":{"memory":"512Mi"},"requests":{"cpu":"100m","memory":"256Mi"}}Container resources. The broker is I/O bound; memory is bounded, CPU is left unlimited by default.
secret.adminPasswordstring""Bootstrap password for the admin account. Only used when create is true. Empty generates a random one, kept stable across upgrades; read it back with `kubectl get secret -o jsonpath='{.data.admin-password}'
secret.adminPasswordSyncstring"bootstrap"What the Secret's admin-password means after first start: bootstrap (first start only; changes made in the admin panel stick) or always (the Secret is authoritative on every start, so rotating it and rolling the pods rotates the password - use with ESO or any secrets manager).
secret.createboolfalseRender a Secret from the values below. Development convenience only: the values end up in Git. Not usable with migrations.hookProvider=helm (the Secret would not exist when the pre-install hook runs).
secret.databaseUrlstring""PostgreSQL DSN (postgresql://user:pass@host/db). Only used when create is true.
secret.existingSecretstring""Name of an existing Secret with keys database-url, redis-url, admin-password and optionally secret-key. Required unless create is true.
secret.redisUrlstring""Redis DSN (redis://host:6379). Only used when create is true.
secret.secretKeystring""Keys the scan-finding dedupe hash. Optional; set it so findings dedupe consistently across replicas and restarts. Only used when create is true.
securityContextobject{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true}Container security context.
service.annotationsobject{}Annotations for the Service.
service.portint8080Service port; the container always listens on 8080.
service.typestring"ClusterIP"Service type.
serviceAccount.annotationsobject{}Annotations for the ServiceAccount, e.g. eks.amazonaws.com/role-arn for IRSA.
serviceAccount.createbooltrueCreate a ServiceAccount for the broker pods.
serviceAccount.namestring""Name of an existing ServiceAccount to use when create is false.
serviceMonitor.enabledboolfalseCreate a Prometheus Operator ServiceMonitor for /metrics.
serviceMonitor.intervalstring"30s"Scrape interval.
serviceMonitor.labelsobject{}Extra labels, e.g. to match a Prometheus serviceMonitorSelector.
tolerationslist[]Tolerations for broker pods.
topologySpreadConstraintslist[]Topology spread constraints for broker pods.

Deploy aegis with OpenTenant

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