oathkeeper
by Helm
Helm chartv0.65.0App v26.2.0
A Helm chart for deploying ORY Oathkeeper in Kubernetes
About this chart
oathkeeper
A Helm chart for deploying ORY Oathkeeper in Kubernetes
Homepage: https://www.ory.sh/
Maintainers
| Name | Url | |
|---|---|---|
| ORY Team | [email protected] | https://www.ory.sh/ |
Source Code
Requirements
| Repository | Name | Version |
|---|---|---|
| file://../oathkeeper-maester | oathkeeper-maester(oathkeeper-maester) | 0.64.0 |
Values
| Key | Type | Default | Description |
|---|---|---|---|
| affinity | object | {} | Configure node affinity |
| configmap.hashSumEnabled | bool | true | switch to false to prevent checksum annotations being maintained and propogated to the pods |
| demo | bool | false | If enabled, a demo deployment with exemplary access rules and JSON Web Key Secrets will be generated. |
| deployment.annotations | object | {} | |
| deployment.automountServiceAccountToken | bool | true | |
| deployment.autoscaling | object | {"behavior":{},"enabled":false,"extraMetrics":[],"maxReplicas":5,"minReplicas":1,"targetCPU":{},"targetMemory":{}} | Configure horizontal pod autoscaler for deployment |
| deployment.autoscaling.behavior | object | {} | Set custom behavior https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/#configurable-scaling-behavior |
| deployment.autoscaling.extraMetrics | list | [] | Add extraContainer container resource metrics https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/#container-resource-metrics |
| deployment.customLivenessProbe | object | {} | Configure a custom livenessProbe. This overwrites the default object |
| deployment.customReadinessProbe | object | {} | Configure a custom readinessProbe. This overwrites the default object |
| deployment.customStartupProbe | object | {} | Configure a custom startupProbe. This overwrites the default object |
| deployment.dnsConfig | object | {} | Configure pod dnsConfig. |
| deployment.extraArgs | list | [] | Array of extra arguments to be passed down to the Deployment. Kubernetes args format is expected |
| deployment.extraContainers | string | "" | If you want to add extra sidecar containers. |
| deployment.extraEnv | list | [] | Array of extra envs to be passed to the deployment. Kubernetes format is expected. Value is processed with Helm tpl - name: FOO value: BAR |
| deployment.extraInitContainers | string | "" | If you want to add extra init containers. |
| deployment.extraVolumeMounts | list | [] | Extra volume mounts, allows mounting the extraVolumes to the container. |
| deployment.extraVolumes | list | [] | Extra volumes you can attach to the pod. |
| deployment.labels | object | {} | |
| deployment.lifecycle | object | {} | |
| deployment.nodeSelector | object | {} | Node labels for pod assignment. |
| deployment.podMetadata | object | {"annotations":{},"labels":{}} | Specify pod metadata, this metadata is added directly to the pod, and not higher objects |
| deployment.podMetadata.annotations | object | {} | Extra pod level annotations |
| deployment.podMetadata.labels | object | {} | Extra pod level labels |
| deployment.readinessProbe | object | {"failureThreshold":5,"initialDelaySeconds":5,"periodSeconds":10} | Configure the readinessProbe parameters |
| deployment.resources | object | {} | |
| deployment.serviceAccount | object | {"annotations":{},"create":true,"name":""} | Specify the serviceAccountName value. In some situations it is needed to provides specific permissions to Hydra deployments Like for example installing Hydra on a cluster with a PosSecurityPolicy and Istio. Uncoment if it is needed to provide a ServiceAccount for the Hydra deployment.** |
| deployment.serviceAccount.annotations | object | {} | Annotations to add to the service account |
| deployment.serviceAccount.create | bool | true | Specifies whether a service account should be created |
| deployment.serviceAccount.name | string | "" | The name of the service account to use. If not set and create is true, a name is generated using the fullname template |
| deployment.startupProbe | object | {"failureThreshold":5,"initialDelaySeconds":1,"successThreshold":1,"timeoutSeconds":2} | Configure the startupProbe parameters |
| deployment.strategy.rollingUpdate | object | {} | |
| deployment.strategy.type | string | "RollingUpdate" | |
| deployment.terminationGracePeriodSeconds | int | 60 | |
| deployment.tolerations | list | [] | Configure node tolerations. |
| deployment.topologySpreadConstraints | list | [] | Configure pod topologySpreadConstraints. |
| fullnameOverride | string | "" | Full chart name override |
| global | object | {"imageRegistry":null,"ory":{"oathkeeper":{"maester":{"mode":"controller"}}},"podMetadata":{"annotations":{},"labels":{}}} | Global setting, passed down to all pods |
| global.imageRegistry | string | nil | Overrides the Docker registry globally for all images |
| global.podMetadata | object | {"annotations":{},"labels":{}} | Specify pod metadata, this metadata is added directly to the pod, and not higher objects |
| global.podMetadata.annotations | object | {} | Extra pod level annotations |
| global.podMetadata.labels | object | {} | Extra pod level labels |
| image.initContainer | object | {"repository":"busybox","tag":"stable"} | use a busybox image from another repository |
| image.pullPolicy | string | "IfNotPresent" | Image pull policy |
| image.registry | string | "docker.io" | ORY Oathkeeper image registry |
| image.repository | string | "oryd/oathkeeper" | ORY Oathkeeper image |
| image.tag | string | "v26.2.0" | ORY Oathkeeper version |
| imagePullSecrets | list | [] | Image pull secrets |
| ingress.api.annotations | object | {} | |
| ingress.api.className | string | "" | |
| ingress.api.enabled | bool | false | En-/Disable the api ingress. |
| ingress.api.hosts[0].host | string | "api.oathkeeper.localhost" | |
| ingress.api.hosts[0].paths[0].path | string | "/" | |
| ingress.api.hosts[0].paths[0].pathType | string | "ImplementationSpecific" | |
| ingress.proxy | object | {"annotations":{},"className":"","defaultBackend":{},"enabled":false,"hosts":[{"host":"proxy.oathkeeper.localhost","paths":[{"path":"/","pathType":"ImplementationSpecific"}]}]} | Configure ingress for the proxy port. |
| ingress.proxy.defaultBackend | object | {} | Configuration for custom default service. This service will be used to handle the response when the configured service in the Ingress rule does not have any active endpoints |
| ingress.proxy.enabled | bool | false | En-/Disable the proxy ingress. |
| maester.enabled | bool | false | |
| nameOverride | string | "" | Chart name override |
| oathkeeper.accessRules | string | "" | If set, uses the given access rules. |
| oathkeeper.accessRulesOverride | object | {"nameOverride":""} | Enables frontloading oathkeeper rules using an existing CM, or changing the name of the generated one |
| oathkeeper.accessRulesOverride.nameOverride | string | "" | Change the name of the configmap or specify the name of an existing configmap to be used |
| oathkeeper.config | object | {"access_rules":{"repositories":["file:///etc/rules/access-rules.json"]},"serve":{"api":{"port":4456},"prometheus":{"port":9000},"proxy":{"port":4455}}} | The ORY Oathkeeper configuration. For a full list of available settings, check: https://github.com/ory/oathkeeper/blob/master/docs/config.yaml |
| oathkeeper.configFileOverride | object | {"enabled":true,"nameOverride":""} | Enables frontloading oathkeeper config using an existing CM, or changing the name of the generated one |
| oathkeeper.configFileOverride.enabled | bool | true | Enable/Disable the creation of the config ConfigMap |
| oathkeeper.configFileOverride.nameOverride | string | "" | Change the name of the configmap or specify the name of an existing configmap to be used |
| oathkeeper.helmTemplatedConfigEnabled | bool | false | Runs the tpl function on the config object. Warrning! This may break configuration settings that use go templates, like https://github.com/ory/k8s/issues/707 |
| oathkeeper.managedAccessRules | bool | true | If you enable maester, the following value should be set to "false" to avoid overwriting the rules generated by the CDRs. Additionally, the value "accessRules" shouldn't be used as it will have no effect once "managedAccessRules" is disabled. |
| oathkeeper.mutatorIdTokenJWKs | string | "" | If set, uses the given JSON Web Key Set as the signing key for the ID Token Mutator. Requires secret.enabled to be set true. |
| pdb.enabled | bool | false | |
| pdb.spec.maxUnavailable | string | "" | |
| pdb.spec.minAvailable | string | "" | |
| podSecurityContext.fsGroup | int | 65534 | |
| podSecurityContext.fsGroupChangePolicy | string | "OnRootMismatch" | |
| podSecurityContext.runAsGroup | int | 65534 | |
| podSecurityContext.runAsNonRoot | bool | true | |
| podSecurityContext.runAsUser | int | 65534 | |
| podSecurityContext.seccompProfile.type | string | "RuntimeDefault" | |
| priorityClassName | string | "" | Pod priority https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/ |
| replicaCount | int | 1 | Number of ORY Oathkeeper members |
| revisionHistoryLimit | int | 5 | Number of revisions kept in history |
| secret.enableDefaultAnnotations | bool | true | enableDefaultAnnotations set to true will add default annotations to the secret. As such the Secret will be managed by helm hooks. |
| secret.enabled | bool | false | Switch to false to prevent using mutatorIdTokenJWKs secret |
| secret.extraAnnotations | object | {} | extraAnnotations to be added to secret. |
| secret.filename | string | "mutator.id_token.jwks.json" | default filename of JWKS (mounted as secret) |
| secret.hashSumEnabled | bool | true | switch to false to prevent checksum annotations being maintained and propogated to the pods |
| secret.mountPath | string | "/etc/secrets" | default mount path for the kubernetes secret |
| secret.nameOverride | string | "" | Provide custom name of existing secret if oathkeeper.mutatorIdTokenJWKs is left empty, or custom name of secret to be created |
| secret.secretAnnotations | object | {"helm.sh/hook":"pre-install, pre-upgrade","helm.sh/hook-delete-policy":"before-hook-creation","helm.sh/hook-weight":"0","helm.sh/resource-policy":"keep"} | Annotations to be added to secret. Annotations are added only when secret is being created. Existing secret will not be modified. |
| securityContext.allowPrivilegeEscalation | bool | false | |
| securityContext.capabilities.drop[0] | string | "ALL" | |
| securityContext.privileged | bool | false | |
| securityContext.readOnlyRootFilesystem | bool | true | |
| securityContext.runAsGroup | int | 65534 | |
| securityContext.runAsNonRoot | bool | true | |
| securityContext.runAsUser | int | 65534 | |
| securityContext.seLinuxOptions.level | string | "s0:c123,c456" | |
| securityContext.seccompProfile.type | string | "RuntimeDefault" | |
| service.api | object | {"annotations":{},"enabled":true,"externalTrafficPolicy":"","internalTrafficPolicy":"","labels":{},"loadBalancerIP":"","name":"http","port":4456,"targetPort":"http-api","type":"ClusterIP"} | Configures the Kubernetes service for the api port. |
| service.api.annotations | object | {} | If you do want to specify annotations, uncomment the following lines, adjust them as necessary, and remove the curly braces after 'annotations:'. kubernetes.io/ingress.class: nginx kubernetes.io/tls-acme: "true" |
| service.api.enabled | bool | true | En-/disable the service |
| service.api.externalTrafficPolicy | string | "" | https://kubernetes.io/docs/reference/networking/virtual-ips/#traffic-policies |
| service.api.internalTrafficPolicy | string | "" | https://kubernetes.io/docs/reference/networking/virtual-ips/#traffic-policies |
| service.api.labels | object | {} | If you do want to specify additional labels, uncomment the following lines, adjust them as necessary, and remove the curly braces after 'labels:'. e.g. app: oathkeeper |
| service.api.loadBalancerIP | string | "" | The load balancer IP |
| service.api.name | string | "http" | The service port name. Useful to set a custom service port name if it must follow a scheme (e.g. Istio) |
| service.api.port | int | 4456 | The service port |
| service.api.targetPort | string | "http-api" | The pod port the Service forwards to, as a port name or number. Set it to a port declared by a container in deployment.extraContainers to put a sidecar (e.g. an authenticating proxy) in front of this API. |
| service.api.type | string | "ClusterIP" | The service type |
| service.metrics | object | {"annotations":{},"enabled":true,"labels":{},"loadBalancerIP":"","name":"http","port":80,"type":"ClusterIP"} | Configures the Kubernetes service for the metrics port. |
| service.metrics.annotations | object | {} | If you do want to specify annotations, uncomment the following lines, adjust them as necessary, and remove the curly braces after 'annotations:'. kubernetes.io/ingress.class: nginx kubernetes.io/tls-acme: "true" |
| service.metrics.enabled | bool | true | En-/disable the service |
| service.metrics.labels | object | {} | If you do want to specify additional labels, uncomment the following lines, adjust them as necessary, and remove the curly braces after 'labels:'. e.g. app: oathkeeper |
| service.metrics.loadBalancerIP | string | "" |
Deploy oathkeeper with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has oathkeeper 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 chartoathkeeper is pinned at v0.65.0 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