consent-owner-resolver

by FIWARE Foundation

Helm chartv0.2.0App 0.0.8

A Helm chart for running the consent-owner-resolver on kubernetes.

About this chart

consent-owner-resolver

A Helm chart for running the consent-owner-resolver on kubernetes.

Maintainers

NameEmailUrl
wistefan[email protected]

Source Code

Requirements

Kubernetes: >= 1.19-0

RepositoryNameVersion
https://fiware.github.io/helm-chartscommon0.1.2

Values

KeyTypeDefaultDescription
additionalEnvVarslist[]a list of additional env vars to be set, in plain kubernetes shape
auth.existingSecret.keystring""key of the token inside that secret
auth.existingSecret.namestring""name of the secret. Defaults to the chart's fullname, which is the secret this chart creates from token.
auth.tokenstring""shared token callers have to present. Empty leaves /resolve unauthenticated - the resolver logs a warning on start when that is the case.
autoscaling.apiVersionstring"v2"version of the autoscaling api to be used
autoscaling.enabledboolfalseshould autoscaling be enabled for the consent-owner-resolver
autoscaling.maxReplicasint10maximum number of running pods
autoscaling.metricslist[]metrics to react on
autoscaling.minReplicasint1minimum number of running pods
configobject{}the complete resolver configuration, written verbatim instead of assembling it from defaults / contractService / rules. Use it for a shape this chart does not model.
contractService.enabledboolfalseshould a contract service be configured
contractService.providerSelfDescriptionstring""the provider self-description contracts are looked up with. Usually supplied per request by the caller instead, because it embeds an id that is only known once the participant is registered. Templated.
contractService.resourceCacheTtlMsstring""how long a contract's resolved data resources may be reused, in milliseconds. Empty uses the service's own default.
contractService.timeoutMsint3000how long to wait for the contract service, in milliseconds
contractService.urlstring"http://consent-facade:8080"base url of the contract service. Templated, so {{ .Release.Namespace }} works.
defaults.consentRequiredboolfalsewhether data no rule matches needs a consent. false lets unmatched data pass the gate; true denies everything the rules do not describe.
defaults.schemestring"identifier"how the resolved owner is to be interpreted by the caller, e.g. identifier
deployment.additionalAnnotationsobject{}additional annotations for the deployment, if required
deployment.additionalLabelsobject{}additional labels for the deployment, if required
deployment.additionalVolumeMountslist[]additional volume mounts, if required
deployment.additionalVolumeslist[]additional volumes, if required
deployment.affinityobject{}affinity template ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
deployment.configFolderstring"/etc/owner-resolver"folder the configuration is mounted into
deployment.image.pullPolicystring"IfNotPresent"specification of the image pull policy
deployment.image.repositorystring"quay.io/seamware/consent-owner-resolver"consent-owner-resolver image name ref: https://quay.io/repository/seamware/consent-owner-resolver
deployment.image.tagstring""overrides the image tag whose default is the chart appVersion
deployment.livenessProbe.failureThresholdint3
deployment.livenessProbe.initialDelaySecondsint5
deployment.livenessProbe.periodSecondsint20
deployment.livenessProbe.successThresholdint1
deployment.livenessProbe.timeoutSecondsint5
deployment.nodeSelectorobject{}selector template ref: https://kubernetes.io/docs/user-guide/node-selection/
deployment.podSecurityContextobject{"runAsNonRoot":true,"runAsUser":10100,"seccompProfile":{"type":"RuntimeDefault"}}security context for the pod
deployment.priorityClassNamestring""priority class to be assigned to the pods ref: https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/
deployment.readinessProbe.failureThresholdint3
deployment.readinessProbe.initialDelaySecondsint2
deployment.readinessProbe.periodSecondsint10
deployment.readinessProbe.successThresholdint1
deployment.readinessProbe.timeoutSecondsint5
deployment.replicaCountint1initial number of target replications, can be different if autoscaling is enabled
deployment.resources.limits.cpustring"250m"
deployment.resources.limits.memorystring"128Mi"
deployment.resources.requests.cpustring"50m"
deployment.resources.requests.memorystring"32Mi"
deployment.revisionHistoryLimitint3number of old replicas to be retained
deployment.securityContextobject{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true}security context for the container
deployment.tolerationslist[]tolerations template ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
deployment.topologySpreadConstraintslist[]topology spread constraints template ref: https://kubernetes.io/docs/concepts/scheduling-eviction/topology-spread-constraints/
deployment.updateStrategy.rollingUpdateobject{"maxSurge":1,"maxUnavailable":0}new pods will be added gradually
deployment.updateStrategy.rollingUpdate.maxSurgeint1number of pods that can be created above the desired amount while updating
deployment.updateStrategy.rollingUpdate.maxUnavailableint0number of pods that can be unavailable while updating
deployment.updateStrategy.typestring"RollingUpdate"type of the update
envobject{}a map of additional env vars to be set, check the consent-owner-resolver documentation for all available options
envValueFromobject{}a map of additional env vars to be read from another source (secret, configmap, field), keyed by the env var name
fullnameOverridestring""option to override the fullname config in the _helpers.tpl
logLevelstring""log level. debug makes the resolver log the requested path and the resolve error verbatim instead of an error class - both can carry owner identifiers, so it is meant to be temporary, and it is the switch to reach for when a request is denied and the error class does not say which check failed.
maxBodyBytesstring""maximum size of a request body the resolver examines, in bytes. A body above it is rejected rather than parsed. Empty uses the service's own default.
nameOverridestring""option to override the name config in the _helpers.tpl
networkPolicy.allowedClientslist[]pod selectors of the clients allowed to call the resolver, in plain kubernetes shape. Usually just the consent enforcement point.
networkPolicy.enabledboolfalseshould a network policy be created
portint8080port that the consent-owner-resolver container uses
prometheus.enabledbooltrueshould prometheus scrape be enabled
prometheus.pathstring"/metrics"path for prometheus scrape
prometheus.portint8080port prometheus scrape is available at
ruleslist[]the rules deciding, per request, whether a consent is required and where the data owner is found. They are evaluated in order and the first match wins; a request no rule matches falls back to defaults. Rendered verbatim into the configuration, so every matcher the service supports can be expressed. A rule is name, match (service, pathPattern), consentRequired and a matcher. The matcher is either * type: json — the owner is read from the payload at the owner JSON pointer, or * type: contract — additionally looks up the signed contract governing the object at uriPointer and takes the data resource to check the consent for from it (needs contractService above). items selects the collection within the payload (empty = the whole body) and itemsIsArray says whether it is an array.
service.annotationsobject{}additional annotations, if required
service.portint8080port to be used by the service
service.typestring"ClusterIP"service type
serviceAccountobject{"create":false}if a consent-owner-resolver specific service account should be used, it can be configured here ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
serviceAccount.createboolfalsespecifies if the account should be created

Autogenerated from chart metadata using helm-docs v1.14.2

Deploy consent-owner-resolver with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has consent-owner-resolver 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 chartconsent-owner-resolver is pinned at v0.2.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