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

NameEmailUrl
ORY Team[email protected]https://www.ory.sh/

Source Code

Requirements

RepositoryNameVersion
file://../oathkeeper-maesteroathkeeper-maester(oathkeeper-maester)0.64.0

Values

KeyTypeDefaultDescription
affinityobject{}Configure node affinity
configmap.hashSumEnabledbooltrueswitch to false to prevent checksum annotations being maintained and propogated to the pods
demoboolfalseIf enabled, a demo deployment with exemplary access rules and JSON Web Key Secrets will be generated.
deployment.annotationsobject{}
deployment.automountServiceAccountTokenbooltrue
deployment.autoscalingobject{"behavior":{},"enabled":false,"extraMetrics":[],"maxReplicas":5,"minReplicas":1,"targetCPU":{},"targetMemory":{}}Configure horizontal pod autoscaler for deployment
deployment.autoscaling.behaviorobject{}Set custom behavior https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/#configurable-scaling-behavior
deployment.autoscaling.extraMetricslist[]Add extraContainer container resource metrics https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/#container-resource-metrics
deployment.customLivenessProbeobject{}Configure a custom livenessProbe. This overwrites the default object
deployment.customReadinessProbeobject{}Configure a custom readinessProbe. This overwrites the default object
deployment.customStartupProbeobject{}Configure a custom startupProbe. This overwrites the default object
deployment.dnsConfigobject{}Configure pod dnsConfig.
deployment.extraArgslist[]Array of extra arguments to be passed down to the Deployment. Kubernetes args format is expected
deployment.extraContainersstring""If you want to add extra sidecar containers.
deployment.extraEnvlist[]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.extraInitContainersstring""If you want to add extra init containers.
deployment.extraVolumeMountslist[]Extra volume mounts, allows mounting the extraVolumes to the container.
deployment.extraVolumeslist[]Extra volumes you can attach to the pod.
deployment.labelsobject{}
deployment.lifecycleobject{}
deployment.nodeSelectorobject{}Node labels for pod assignment.
deployment.podMetadataobject{"annotations":{},"labels":{}}Specify pod metadata, this metadata is added directly to the pod, and not higher objects
deployment.podMetadata.annotationsobject{}Extra pod level annotations
deployment.podMetadata.labelsobject{}Extra pod level labels
deployment.readinessProbeobject{"failureThreshold":5,"initialDelaySeconds":5,"periodSeconds":10}Configure the readinessProbe parameters
deployment.resourcesobject{}
deployment.serviceAccountobject{"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.annotationsobject{}Annotations to add to the service account
deployment.serviceAccount.createbooltrueSpecifies whether a service account should be created
deployment.serviceAccount.namestring""The name of the service account to use. If not set and create is true, a name is generated using the fullname template
deployment.startupProbeobject{"failureThreshold":5,"initialDelaySeconds":1,"successThreshold":1,"timeoutSeconds":2}Configure the startupProbe parameters
deployment.strategy.rollingUpdateobject{}
deployment.strategy.typestring"RollingUpdate"
deployment.terminationGracePeriodSecondsint60
deployment.tolerationslist[]Configure node tolerations.
deployment.topologySpreadConstraintslist[]Configure pod topologySpreadConstraints.
fullnameOverridestring""Full chart name override
globalobject{"imageRegistry":null,"ory":{"oathkeeper":{"maester":{"mode":"controller"}}},"podMetadata":{"annotations":{},"labels":{}}}Global setting, passed down to all pods
global.imageRegistrystringnilOverrides the Docker registry globally for all images
global.podMetadataobject{"annotations":{},"labels":{}}Specify pod metadata, this metadata is added directly to the pod, and not higher objects
global.podMetadata.annotationsobject{}Extra pod level annotations
global.podMetadata.labelsobject{}Extra pod level labels
image.initContainerobject{"repository":"busybox","tag":"stable"}use a busybox image from another repository
image.pullPolicystring"IfNotPresent"Image pull policy
image.registrystring"docker.io"ORY Oathkeeper image registry
image.repositorystring"oryd/oathkeeper"ORY Oathkeeper image
image.tagstring"v26.2.0"ORY Oathkeeper version
imagePullSecretslist[]Image pull secrets
ingress.api.annotationsobject{}
ingress.api.classNamestring""
ingress.api.enabledboolfalseEn-/Disable the api ingress.
ingress.api.hosts[0].hoststring"api.oathkeeper.localhost"
ingress.api.hosts[0].paths[0].pathstring"/"
ingress.api.hosts[0].paths[0].pathTypestring"ImplementationSpecific"
ingress.proxyobject{"annotations":{},"className":"","defaultBackend":{},"enabled":false,"hosts":[{"host":"proxy.oathkeeper.localhost","paths":[{"path":"/","pathType":"ImplementationSpecific"}]}]}Configure ingress for the proxy port.
ingress.proxy.defaultBackendobject{}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.enabledboolfalseEn-/Disable the proxy ingress.
maester.enabledboolfalse
nameOverridestring""Chart name override
oathkeeper.accessRulesstring""If set, uses the given access rules.
oathkeeper.accessRulesOverrideobject{"nameOverride":""}Enables frontloading oathkeeper rules using an existing CM, or changing the name of the generated one
oathkeeper.accessRulesOverride.nameOverridestring""Change the name of the configmap or specify the name of an existing configmap to be used
oathkeeper.configobject{"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.configFileOverrideobject{"enabled":true,"nameOverride":""}Enables frontloading oathkeeper config using an existing CM, or changing the name of the generated one
oathkeeper.configFileOverride.enabledbooltrueEnable/Disable the creation of the config ConfigMap
oathkeeper.configFileOverride.nameOverridestring""Change the name of the configmap or specify the name of an existing configmap to be used
oathkeeper.helmTemplatedConfigEnabledboolfalseRuns 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.managedAccessRulesbooltrueIf 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.mutatorIdTokenJWKsstring""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.enabledboolfalse
pdb.spec.maxUnavailablestring""
pdb.spec.minAvailablestring""
podSecurityContext.fsGroupint65534
podSecurityContext.fsGroupChangePolicystring"OnRootMismatch"
podSecurityContext.runAsGroupint65534
podSecurityContext.runAsNonRootbooltrue
podSecurityContext.runAsUserint65534
podSecurityContext.seccompProfile.typestring"RuntimeDefault"
priorityClassNamestring""Pod priority https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
replicaCountint1Number of ORY Oathkeeper members
revisionHistoryLimitint5Number of revisions kept in history
secret.enableDefaultAnnotationsbooltrueenableDefaultAnnotations set to true will add default annotations to the secret. As such the Secret will be managed by helm hooks.
secret.enabledboolfalseSwitch to false to prevent using mutatorIdTokenJWKs secret
secret.extraAnnotationsobject{}extraAnnotations to be added to secret.
secret.filenamestring"mutator.id_token.jwks.json"default filename of JWKS (mounted as secret)
secret.hashSumEnabledbooltrueswitch to false to prevent checksum annotations being maintained and propogated to the pods
secret.mountPathstring"/etc/secrets"default mount path for the kubernetes secret
secret.nameOverridestring""Provide custom name of existing secret if oathkeeper.mutatorIdTokenJWKs is left empty, or custom name of secret to be created
secret.secretAnnotationsobject{"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.allowPrivilegeEscalationboolfalse
securityContext.capabilities.drop[0]string"ALL"
securityContext.privilegedboolfalse
securityContext.readOnlyRootFilesystembooltrue
securityContext.runAsGroupint65534
securityContext.runAsNonRootbooltrue
securityContext.runAsUserint65534
securityContext.seLinuxOptions.levelstring"s0:c123,c456"
securityContext.seccompProfile.typestring"RuntimeDefault"
service.apiobject{"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.annotationsobject{}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.enabledbooltrueEn-/disable the service
service.api.externalTrafficPolicystring""https://kubernetes.io/docs/reference/networking/virtual-ips/#traffic-policies
service.api.internalTrafficPolicystring""https://kubernetes.io/docs/reference/networking/virtual-ips/#traffic-policies
service.api.labelsobject{}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.loadBalancerIPstring""The load balancer IP
service.api.namestring"http"The service port name. Useful to set a custom service port name if it must follow a scheme (e.g. Istio)
service.api.portint4456The service port
service.api.targetPortstring"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.typestring"ClusterIP"The service type
service.metricsobject{"annotations":{},"enabled":true,"labels":{},"loadBalancerIP":"","name":"http","port":80,"type":"ClusterIP"}Configures the Kubernetes service for the metrics port.
service.metrics.annotationsobject{}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.enabledbooltrueEn-/disable the service
service.metrics.labelsobject{}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.loadBalancerIPstring""

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.

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