consent-manager

by FIWARE Foundation

Helm chartv0.2.0App 0.0.6

A Helm chart for running the consent-manager on kubernetes.

About this chart

consent-manager

A Helm chart for running the consent-manager 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
apiPrefixstring"/v1"api prefix the consent-manager serves its api under
appEndpointstring""the application's own base url (APP_ENDPOINT / URL). It ends up in the links the application emits, so a published deployment has to set the address it is reachable at. Defaults to the in-cluster service. Templated, so {{ .Release.Namespace }} works.
autoscaling.apiVersionstring"v2"version of the autoscaling api to be used
autoscaling.enabledboolfalseshould autoscaling be enabled for the consent-manager
autoscaling.maxReplicasint10maximum number of running pods
autoscaling.metricslist[]metrics to react on
autoscaling.minReplicasint1minimum number of running pods
contractService.urlstring"http://consent-facade:8080"base url of the contract service. Templated, so a cross-namespace FQDN can carry {{ .Release.Namespace }}.
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.image.pullPolicystring"IfNotPresent"specification of the image pull policy
deployment.image.repositorystring"quay.io/wi_stefan/consent-manager"consent-manager image name. A compiled, non-root, read-only-filesystem-safe build of VisionsOfficial/consent-manager. ref: https://quay.io/repository/wi_stefan/consent-manager
deployment.image.tagstring""overrides the image tag whose default is the chart appVersion
deployment.livenessProbe.enabledboolfalseenable the liveness probe
deployment.livenessProbe.failureThresholdint3
deployment.livenessProbe.initialDelaySecondsint30
deployment.livenessProbe.pathstring"/"path to probe
deployment.livenessProbe.periodSecondsint20
deployment.livenessProbe.successThresholdint1
deployment.livenessProbe.timeoutSecondsint5
deployment.nodeSelectorobject{}selector template ref: https://kubernetes.io/docs/user-guide/node-selection/
deployment.podSecurityContextobject{"fsGroup":10100,"runAsGroup":10100,"runAsUser":10100,"seccompProfile":{"type":"RuntimeDefault"}}security context for the pod. The image runs as uid/gid 10100.
deployment.priorityClassNamestring""priority class to be assigned to the pods ref: https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/
deployment.readinessProbe.enabledboolfalseenable the readiness probe
deployment.readinessProbe.failureThresholdint3
deployment.readinessProbe.initialDelaySecondsint10
deployment.readinessProbe.pathstring"/"path to probe
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"500m"
deployment.resources.limits.memorystring"512Mi"
deployment.resources.requests.cpustring"100m"
deployment.resources.requests.memorystring"128Mi"
deployment.revisionHistoryLimitint3number of old replicas to be retained
deployment.securityContextobject{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true,"runAsNonRoot":true,"runAsUser":10100}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
deployment.writablePathsobject{"logs":"/usr/src/app/dist/src/logs","logs-all":"/usr/src/app/dist/src/libs/logs","tmp":"/tmp"}paths the application writes to, as <volume name>: <path>. The root filesystem is read-only, so each gets an emptyDir: the consent-manager writes rotating winston logs to two compiled paths, and they are part of the image layout rather than configurable - adjust them here if the image changes.
envobject{}a map of additional env vars to be set, check the consent-manager documentation for all available options
envConfigMapNameslist[]additional config maps to load as env in their entirety (list of config map names)
envSecretNameslist[]additional secrets to load as env in their entirety (list of secret names)
envValueFromobject{}a map of additional env vars to be read from another source (secret, configmap, field), keyed by the env var name
externalIdp.algorithmsstring"RS256,ES256,EdDSA"accepted signing algorithms (asymmetric only)
externalIdp.audiencestring""the expected aud. One value covers data subjects and participants alike: they present different credentials to the same relying party, which on a verifier is one service with a credential policy per scope, and every token it issues carries that service id as aud.
externalIdp.caSecret.keystring"ca.crt"key within the secret holding the PEM certificate
externalIdp.caSecret.namestring""secret holding the CA certificate. Empty => rely on the system trust store.
externalIdp.discoveryPathstring""path appended to each issuer to fetch its OIDC discovery document. Empty => the spec default /.well-known/openid-configuration. Needed for a verifier that serves discovery under a per-service path while still stamping its bare host as the token iss (the FIWARE VCVerifier does), e.g. /services/consent-manager/.well-known/openid-configuration.
externalIdp.discoveryTtlint3600discovery + JWKS cache TTL in seconds
externalIdp.enabledboolfalseverify externally issued tokens
externalIdp.issuerslist[]trusted issuer urls. Each must equal the token's iss verbatim; discovery runs at <issuer><discoveryPath>.
externalIdp.proxystring""forward proxy for reaching the issuer from inside the cluster (exported as HTTP_PROXY/HTTPS_PROXY, with the cluster suffixes in NO_PROXY). Needed when the issuer's ingress host does not resolve in-cluster.
externalIdp.subjectClaimstring"sub"token claim carrying the subject DID
fullnameOverridestring""option to override the fullname config in the _helpers.tpl
ingress.annotationsobject{}annotations to be added to the ingress
ingress.classNamestring""ingress class to be used
ingress.enabledboolfalseshould an ingress be created
ingress.hostslist[]hosts to be used, each with a list of paths
ingress.tlslist[]tls configuration
mongo.auth.existingSecret.keystring""key of the password inside that secret
mongo.auth.existingSecret.namestring""name of the secret. Empty => the secret this chart creates from password.
mongo.auth.passwordstring""password to connect with. Prefer existingSecret: a password here ends up in the release's values.
mongo.databasestring"consent"database to use
mongo.hoststring"mongodb-svc"host of the mongodb service
mongo.portint27017port of the mongodb service
mongo.replicaSetstring"mongodb"name of the replica set
mongo.uristring""full connection string, including the replica set. When set it overrides every part below - use it for a connection this chart cannot express (TLS options, SRV records, multiple hosts).
mongo.usernamestring"consent"user to connect as
nameOverridestring""option to override the name config in the _helpers.tpl
oauthTokenExpiresInstring"1h"lifetime of an issued OAuth token
portint3000port that the consent-manager container uses
route.annotationsobject{}annotations to be added to the route
route.enabledboolfalseshould a route be created
route.hoststring""host to be used
route.tlsobject{}tls configuration
saltRoundsint10bcrypt salt rounds used for stored credentials
secret.consentKeystring""the shared consent key (X_VISIONSTRUST_CONSENT_KEY). The gateway in front of the consent-manager injects this exact value and the consent-manager validates it, so both sides have to be configured with the same string - which is why it is not generated. Left empty a random key is generated: that fails closed (no caller can present a matching key) instead of deploying a blank shared secret, so a working deployment has to set it.
secret.createbooltruecreate the secret. The session/JWT/OAuth secrets are generated on first install and kept across upgrades (helm.sh/resource-policy: keep), so sessions and issued tokens survive a redeploy. Set individual values below to pin them instead.
secret.existingSecretstring""name of an already existing secret to use instead. It has to carry the four keys named under keys below.
secret.jwtSecretstring""JWT secret. Empty => generated on first install.
secret.keys.consentKeystring"consentKey"key holding the consent key (X_VISIONSTRUST_CONSENT_KEY)
secret.keys.jwtSecretstring"jwtSecret"key holding the JWT secret
secret.keys.oauthSecretstring"oauthSecret"key holding the OAuth secret
secret.keys.sessionSecretstring"sessionSecret"key holding the session secret
secret.oauthSecretstring""OAuth secret. Empty => generated on first install.
secret.sessionSecretstring""session secret. Empty => generated on first install.
service.annotationsobject{}additional annotations, if required
service.portint3000port to be used by the service
service.typestring"ClusterIP"service type. Keep it internal: the consent-manager authenticates callers with a shared consent key and participant tokens, and is meant to sit behind a gateway.
serviceAccountobject{"create":false}if a consent-manager 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
sessionCookieNamestring"consentmanagersessid"name of the session cookie

Autogenerated from chart metadata using helm-docs v1.14.2

Deploy consent-manager with OpenTenant

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