mock-oidc

by Labs64

Helm chartv0.1.6App 7.0.0Verified publisher

Labs64.IO :: Mock OIDC provider — DEV/DEMO ONLY, never for production

About this chart

mock-oidc

Labs64.IO :: Mock OIDC provider — DEV/DEMO ONLY, never for production

Homepage: https://labs64.io

Maintainers

NameEmailUrl
Labs64[email protected]https://labs64.io

Source Code

Values

KeyTypeDefaultDescription
enabledboolfalseDEV/DEMO ONLY. This issues signed tokens to anyone who asks, with whatever scopes they request, and authenticates nobody. Never install it in an environment that matters. The umbrella chart additionally refuses to enable it unless demoMode is set.
gatewayobject{"enabled":true,"hostnames":[],"parentRefs":[{"name":"labs64io-gateway","namespace":"tools"}],"pathPrefix":"/labs64io"}HTTPRoute exposing the token endpoint through the shared Gateway, so a demo user can mint a token from outside the cluster.
gateway.hostnameslist[]Restrict the route to these hostnames. Empty means "any host", which is what lets the wizard hand the user a working URL for whatever address the Gateway ends up with.
gateway.parentRefslist[{"name":"labs64io-gateway","namespace":"tools"}]Gateways this route attaches to.
gateway.pathPrefixstring"/labs64io"Path prefix the issuer is served under. mock-oauth2-server derives it from the issuer id baked into the persona config ("labs64io"), so this MUST match that value — because it does, the route needs no path rewrite.
imageobject{"pullPolicy":"IfNotPresent","repository":"ghcr.io/navikt/mock-oauth2-server","tag":""}This sets the container image more information can be found here: https://kubernetes.io/docs/concepts/containers/images/
image.pullPolicystring"IfNotPresent"This sets the pull policy for images.
image.tagstring""Overrides the image tag whose default is the chart appVersion.
networkPolicyobject{"applicationNamespace":"","enabled":true,"gatewayNamespace":"tools"}Restrict this pod's traffic. Egress is DNS-only: the server calls nothing, it signs tokens from the static config mounted at startup.
networkPolicy.applicationNamespacestring""Namespace containing authgateway when it differs from this release.
networkPolicy.gatewayNamespacestring"tools"Namespace the shared Gateway runs in.
replicaCountint1This will set the replicaset count more information can be found here: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset/
resourcesobject{"limits":{"cpu":"200m","memory":"256Mi"},"requests":{"cpu":"50m","memory":"128Mi"}}Resource requests/limits. The server holds a handful of static personas in memory and signs short-lived tokens; it needs very little.
serviceobject{"port":8080,"type":"ClusterIP"}This is for setting up a service more information can be found here: https://kubernetes.io/docs/concepts/services-networking/service/
service.portint8080This sets the ports more information can be found here: https://kubernetes.io/docs/concepts/services-networking/service/#field-spec-ports

Autogenerated from chart metadata using helm-docs v1.14.2

Deploy mock-oidc with OpenTenant

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