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
| Name | Url | |
|---|---|---|
| Labs64 | [email protected] | https://labs64.io |
Source Code
Values
| Key | Type | Default | Description |
|---|---|---|---|
| enabled | bool | false | DEV/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. |
| gateway | object | {"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.hostnames | list | [] | 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.parentRefs | list | [{"name":"labs64io-gateway","namespace":"tools"}] | Gateways this route attaches to. |
| gateway.pathPrefix | string | "/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. |
| image | object | {"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.pullPolicy | string | "IfNotPresent" | This sets the pull policy for images. |
| image.tag | string | "" | Overrides the image tag whose default is the chart appVersion. |
| networkPolicy | object | {"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.applicationNamespace | string | "" | Namespace containing authgateway when it differs from this release. |
| networkPolicy.gatewayNamespace | string | "tools" | Namespace the shared Gateway runs in. |
| replicaCount | int | 1 | This will set the replicaset count more information can be found here: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset/ |
| resources | object | {"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. |
| service | object | {"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.port | int | 8080 | This 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartmock-oidc is pinned at v0.1.6 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