keto

by Helm

Helm chartv0.65.0App v26.2.0

Access Control Policies as a Server

About this chart

keto

Access Control Policies as a Server

Homepage: https://www.ory.sh/keto/

Maintainers

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

Source Code

Requirements

RepositoryNameVersion
file://../ory-commonsory(ory-commons)0.1.0

Values

KeyTypeDefaultDescription
configmap.hashSumEnabledbooltrueswitch to false to prevent checksum annotations being maintained and propogated to the pods
deployment.affinityobject{}
deployment.annotationsobject{}
deployment.automigrationobject{"extraEnv":[]}Parameters for the automigration initContainer
deployment.automigration.extraEnvlist[]Array of extra envs to be passed to the initContainer. Kubernetes format is expected. Value is processed with Helm tpl - name: FOO value: BAR
deployment.automountServiceAccountTokenbooltrue
deployment.autoscalingobject{"behavior":{},"enabled":false,"extraMetrics":[],"maxReplicas":100,"minReplicas":1,"targetCPU":{},"targetMemory":{}}Autoscaling for keto 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{}
deployment.customReadinessProbeobject{}
deployment.customStartupProbeobject{}
deployment.dnsConfigobject{}Configure pod dnsConfig.
deployment.extraContainersstring""If you want to add extra sidecar containers.
deployment.extraEnvlist[]Array of extra Envs to be added to the deployment. Kubernetes format expected. Value is processed with Helm tpl - name: FOO value: BAR
deployment.extraInitContainersobject{}If you want to add extra init containers. These are processed before the migration init container.
deployment.extraLabelsobject{}Extra labels to be added to the deployment, and pods. K8s object format expected foo: bar my.special.label/type: value
deployment.extraPortslist[]Extra ports to be exposed by the main deployment
deployment.extraVolumeMountslist[]Array of extra VolumeMounts to be added to the deployment. K8s format expected - name: my-volume mountPath: /etc/secrets/my-secret readOnly: true
deployment.extraVolumeslist[]Array of extra Volumes to be added to the deployment. K8s format expected - name: my-volume secret: secretName: my-secret
deployment.lifecycleobject{}
deployment.minReadySecondsint0
deployment.nodeSelectorobject{}
deployment.podAnnotationsobject{}
deployment.podMetadata.annotationsobject{}
deployment.podMetadata.labelsobject{}
deployment.podSecurityContextobject{}
deployment.readinessProbe.failureThresholdint5
deployment.readinessProbe.initialDelaySecondsint5
deployment.readinessProbe.periodSecondsint10
deployment.resourcesobject{}
deployment.revisionHistoryLimitint5Number of revisions kept in history
deployment.startupProbe.failureThresholdint5
deployment.startupProbe.initialDelaySecondsint1
deployment.startupProbe.periodSecondsint1
deployment.startupProbe.successThresholdint1
deployment.startupProbe.timeoutSecondsint2
deployment.strategy.rollingUpdate.maxSurgestring"25%"
deployment.strategy.rollingUpdate.maxUnavailablestring"25%"
deployment.strategy.typestring"RollingUpdate"
deployment.terminationGracePeriodSecondsint60
deployment.tolerationslist[]
deployment.topologySpreadConstraintslist[]Configure pod topologySpreadConstraints.
extraServicesobject{}
fullnameOverridestring""
globalobject{"imageRegistry":null,"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.pullPolicystring"IfNotPresent"Default image pull policy
image.registrystring"docker.io"Ory KETO image registry
image.repositorystring"oryd/keto"Ory KETO image
image.tagstring"v26.2.0"Ory KETO version
imagePullSecretslist[]
ingress.read.annotationsobject{}
ingress.read.classNamestring""
ingress.read.enabledboolfalse
ingress.read.hosts[0].hoststring"chart-example.local"
ingress.read.hosts[0].paths[0].pathstring"/read"
ingress.read.hosts[0].paths[0].pathTypestring"Prefix"
ingress.read.tlslist[]
ingress.write.annotationsobject{}
ingress.write.classNamestring""
ingress.write.enabledboolfalse
ingress.write.hosts[0].hoststring"chart-example.local"
ingress.write.hosts[0].paths[0].pathstring"/write"
ingress.write.hosts[0].paths[0].pathTypestring"Prefix"
ingress.write.tlslist[]
job.annotationsobject{"helm.sh/hook":"pre-install, pre-upgrade","helm.sh/hook-delete-policy":"before-hook-creation,hook-succeeded","helm.sh/hook-weight":"1"}If you do want to specify annotations, uncomment the following lines, adjust them as necessary, and remove the curly braces after 'annotations:'.
job.automountServiceAccountTokenboolfalseSet automounting of the SA token
job.extraContainersstring""If you want to add extra sidecar containers.
job.extraEnvlist[]Array of extra envs to be passed to the job. This takes precedence over deployment variables. Kubernetes format is expected. Value is processed with Helm tpl - name: FOO value: BAR
job.extraInitContainersstring""If you want to add extra init containers.
job.lifecyclestring""If you want to add lifecycle hooks.
job.nodeSelectorobject{}Node labels for pod assignment.
job.podMetadataobject{"annotations":{},"labels":{}}Specify pod metadata, this metadata is added directly to the pod, and not higher objects
job.podMetadata.annotationsobject{}Extra pod level annotations
job.podMetadata.labelsobject{}Extra pod level labels
job.resourcesobject{}Job resources
job.serviceAccountobject{"annotations":{"helm.sh/hook":"pre-install, pre-upgrade","helm.sh/hook-delete-policy":"before-hook-creation","helm.sh/hook-weight":"0"},"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.
job.serviceAccount.annotationsobject{"helm.sh/hook":"pre-install, pre-upgrade","helm.sh/hook-delete-policy":"before-hook-creation","helm.sh/hook-weight":"0"}Annotations to add to the service account
job.serviceAccount.createbooltrueSpecifies whether a service account should be created
job.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
job.shareProcessNamespaceboolfalseSet sharing process namespace
job.spec.backoffLimitint10Set job back off limit
job.tolerationslist[]Configure node tolerations.
keto.automigrationobject{"customArgs":[],"customCommand":[],"enabled":false,"resources":{},"type":"job"}Enables database migration
keto.automigration.customArgslist[]Ability to override arguments of the entrypoint. Can be used in-depended of customCommand eg: - sleep 5; - keto
keto.automigration.customCommandlist[]Ability to override the entrypoint of the automigration container (e.g. to source dynamic secrets or export environment dynamic variables)
keto.automigration.resourcesobject{}resource requests and limits for the automigration initcontainer
keto.automigration.typestring"job"Configure the way to execute database migration. Possible values: job, initContainer When set to job, the migration will be executed as a job on release or upgrade. When set to initContainer, the migration will be executed when kratos pod is created Defaults to job
keto.commandlist["keto"]Ability to override the entrypoint of keto container (e.g. to source dynamic secrets or export environment dynamic variables)
keto.configobject{"dsn":"memory","namespaces":[{"id":0,"name":"sample"}],"serve":{"metrics":{"port":4468},"read":{"port":4466},"write":{"port":4467}}}Direct keto config. Full documentation can be found in https://www.ory.sh/keto/docs/reference/configuration
keto.customArgslist[]Ability to override arguments of the entrypoint. Can be used in-depended of customCommand
keto.customMigrations.jobs.example-job.customArgs[0]string"migrate"
keto.customMigrations.jobs.example-job.customArgs[1]string"up"
keto.customMigrations.jobs.example-job.customArgs[2]string"-y"
keto.customMigrations.jobs.example-job.customArgs[3]string"--config"
keto.customMigrations.jobs.example-job.customArgs[4]string"/etc/config/keto.yaml"
keto.customMigrations.jobs.example-job.enabledboolfalse
keto.customMigrations.jobs.example-job.extraEnvlist[]
keto.customMigrations.jobs.example-job.nodeSelectorobject{}
keto.customMigrations.jobs.example-job.resourcesobject{}
nameOverridestring""
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 replicas in deployment
secret.enableDefaultAnnotationsbooltrueenableDefaultAnnotations set to true will add default annotations to the secret. As such the Secret will be managed by helm hooks.
secret.enabledbooltrueswitch to false to prevent creating the secret
secret.extraAnnotationsobject{}extraAnnotations to be added to secret.
secret.hashSumEnabledbooltrueswitch to false to prevent checksum annotations being maintained and propogated to the pods
secret.nameOverridestring""Provide custom name of existing secret, 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.metrics.annotationsobject{}If you do want to specify annotations, uncomment the following lines, adjust them as necessary, and remove the curly braces after 'annotations:'.
service.metrics.enabledboolfalse
service.metrics.loadBalancerIPstring""
service.metrics.namestring"http-metrics"
service.metrics.portint80
service.metrics.typestring"ClusterIP"
service.read.annotationsobject{}If you do want to specify annotations, uncomment the following lines, adjust them as necessary, and remove the curly braces after 'annotations:'.
service.read.appProtocolstring"grpc"
service.read.clusterIPstring""
service.read.enabledbooltrue
service.read.externalTr

Deploy keto with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has keto 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 chartketo 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