consent-facade

by FIWARE Foundation

Helm chartv0.2.4App 0.4.5

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

About this chart

consent-facade

A Helm chart for running the consent-facade 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
autoscaling.apiVersionstring"v2"version of the autoscaling api to be used
autoscaling.enabledboolfalseshould autoscaling be enabled for the consent-facade
autoscaling.maxReplicasint10maximum number of running pods
autoscaling.metricslist[]metrics to react on
autoscaling.minReplicasint1minimum number of running pods
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/seamware/consent-facade"consent-facade image name ref: https://quay.io/repository/seamware/consent-facade
deployment.image.tagstring""overrides the image tag whose default is the chart appVersion
deployment.initContainerslist[]additional init containers, if required
deployment.livenessProbe.failureThresholdint3
deployment.livenessProbe.initialDelaySecondsint20
deployment.livenessProbe.periodSecondsint20
deployment.livenessProbe.successThresholdint1
deployment.livenessProbe.timeoutSecondsint30
deployment.managementPortint9090port the management endpoints (incl. /health) are served on. It is a separate port from the api, matching endpoints.all.port in the image's configuration.
deployment.nodeSelectorobject{}selector template ref: https://kubernetes.io/docs/user-guide/node-selection/
deployment.podSecurityContextobject{"runAsNonRoot":true}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.initialDelaySecondsint10
deployment.readinessProbe.periodSecondsint10
deployment.readinessProbe.successThresholdint1
deployment.readinessProbe.timeoutSecondsint30
deployment.replicaCountint1initial number of target replications, can be different if autoscaling is enabled
deployment.resourcesobject{}
deployment.revisionHistoryLimitint3number of old replicas to be retained
deployment.securityContextobject{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true}security context for the containers
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-facade 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
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
nameOverridestring""option to override the name config in the _helpers.tpl
oid4vp.clientIdstring""client id used at the token endpoint
oid4vp.credentialslist[]the credentials to present, each projected from its own secret into credentialsFolder. Entries: secretName, secretKey, fileName.
oid4vp.credentialsFolderstring"/credentials"folder the credentials are mounted into
oid4vp.enabledboolfalseshould the facade authenticate its outbound TM Forum reads over OID4VP
oid4vp.holder.idstring""the holder id, e.g. a did:web the credential was issued to
oid4vp.holder.keyPathstring"/signing-key/tls.key"path of the signing key inside the container. When signingKey.convert is enabled this is where the converted key is written.
oid4vp.holder.keyTypestring"EC"type of the signing key
oid4vp.holder.signatureAlgorithmstring"ES256"algorithm to sign the presentation with
oid4vp.proxy.enabledboolfalseshould the OID4VP client use a forward proxy
oid4vp.proxy.hoststring""host of the proxy
oid4vp.proxy.portint8888port of the proxy
oid4vp.proxy.tmForumClientsboolfalseshould the TM Forum clients use the proxy too. Only correct when the TM Forum API is external: a cluster-internal Service name cannot be resolved by the proxy.
oid4vp.scopeslist["default"]scopes to request
oid4vp.signingKey.convertbooltruecert-manager stores an EC key in SEC1 (EC PRIVATE KEY), while the holder signing service needs PKCS#8 (PRIVATE KEY). With this enabled an init container converts it; disable it when the secret already holds PKCS#8.
oid4vp.signingKey.convertImagestring"alpine/openssl:3.3.2"image used for the conversion, needs an openssl binary
oid4vp.signingKey.secretKeystring"tls.key"key inside that secret
oid4vp.signingKey.secretNamestring""name of the secret holding the key
oid4vp.tokenTargetslist[]the services the facade obtains a token for. One entry per audience: audience, url, and optionally clientId, scope (list) and discoveryPath (a verifier that serves OIDC discovery per service rather than at the host root).
oid4vp.trustAnchorslist[]PEM trust anchors used to identify the credential issuer, as paths inside the container
portint8080port that the consent-facade container uses
prometheus.enabledbooltrueshould prometheus scrape be enabled
prometheus.pathstring"/prometheus"path for prometheus scrape
prometheus.portint9090port prometheus scrape is available at
providerRegistry.database.existingSecret.keystring""key of the password inside that secret
providerRegistry.database.existingSecret.namestring""name of the secret. Defaults to the chart's fullname, which is the secret this chart creates from password.
providerRegistry.database.hoststring"postgresql"host of the database
providerRegistry.database.namestring"facade"name of the database
providerRegistry.database.passwordstring""password to connect with. Prefer existingSecret over this: a password here ends up in the release's values.
providerRegistry.database.portint5432port of the database
providerRegistry.database.usernamestring"facade"user to connect with
providerRegistry.persistentboolfalseshould the provider registry be persisted in PostgreSQL
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
selfUrlstring""the public base url the facade mints its ids with. It is written into the contracts, catalog entries and participant self-descriptions it serves, and consumers (the consent-manager, auditors, other participants) match participants on those exact strings - so it has to be the address the facade is reachable at from outside the cluster. Defaults to the in-cluster service address, which is only correct for a deployment without external consumers. Templated, so {{ .Release.Name }} works.
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-facade 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
tmForum.servicesobject{}per-api base url overrides, keyed by the facade's service name (product-order, product-catalog, product-inventory, party, agreement). An entry here wins over url, for a deployment that spreads the TM Forum APIs over several hosts.
tmForum.urlstring"http://tm-forum-api:8080"base url of the TM Forum API. Every TM Forum client (product order, product catalog, product inventory, party, agreement) is pointed at it; the per-api paths are part of the image's configuration. Set services below to address them individually instead.
truststore.caSecret.keystring"ca.crt"key inside that secret
truststore.caSecret.namestring""name of the secret
truststore.enabledboolfalseshould an additional CA be imported into the JVM truststore
truststore.javaHomestring""explicit JDK home inside the image, used to locate lib/security/cacerts and bin/keytool. Empty resolves it at runtime from $JAVA_HOME, falling back to the keytool/java binary on PATH - so an image whose base image changed keeps working.

Autogenerated from chart metadata using helm-docs v1.14.2

Deploy consent-facade with OpenTenant

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