dsc-consent-manager

by FIWARE Foundation

Helm chartv0.1.1App 0.0.3

A Helm chart for running the dsc-consent-manager, consent lifecycle management as a stateless OAuth2 resource server, on kubernetes.

About this chart

dsc-consent-manager

A Helm chart for running the dsc-consent-manager, consent lifecycle management as a stateless OAuth2 resource server, on kubernetes.

Homepage: https://github.com/wistefan/dsc-consent-manager

Maintainers

NameEmailUrl
wistefan[email protected]

Source Code

Requirements

Kubernetes: >= 1.19-0

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

Values

KeyTypeDefaultDescription
autoscaling.apiVersionstring"v2"version of the autoscaling api to be used
autoscaling.enabledboolfalseshould autoscaling be enabled for the dsc-consent-manager
autoscaling.maxReplicasint5maximum number of running pods
autoscaling.metricslist[{"resource":{"name":"cpu","target":{"averageUtilization":75,"type":"Utilization"}},"type":"Resource"}]metrics to react on ref: https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/horizontal-pod-autoscaler-v2/#HorizontalPodAutoscalerSpec
autoscaling.minReplicasint2minimum number of running pods, must not exceed maxReplicas
config.apiPrefixstring"/v1"prefix the API controllers are served under
config.cache.contractServiceMaxSizeint1000maximum number of cached contract-service responses
config.cache.contractServiceTtlstring"60s"TTL of cached contract-service responses
config.cache.idpJwksTtlstring"60s"TTL of the cached IdP JWKS
config.cache.selfDescriptionMaxSizeint1000maximum number of cached self descriptions
config.cache.selfDescriptionTtlstring"10m"TTL of cached self descriptions
config.consentManagerUrlstring""public base URL of this service
config.contractServiceUrlstring""base URL of the contract service
config.database.urlstring"jdbc:postgresql://postgres:5432/consent_manager"JDBC URL of the database. Placeholder: must be overridden for production.
config.extraEnvobject{}any other non-sensitive variable from .env.sample, e.g. SELF_DESCRIPTION_ALLOWED_HOSTS. Credentials and the variables the deployment sets are refused.
config.notificationClientUrlstring""URL of the notification client
config.pagination.consentsDefaultSizeint20default page size of the consents list
config.pagination.consentsMaxSizeint100maximum page size of the consents list
config.pagination.notificationsDefaultSizeint20default page size of the notifications list
config.pagination.notificationsMaxSizeint100maximum page size of the notifications list
config.pagination.participantsDefaultSizeint20default page size of the participants list
config.pagination.participantsMaxSizeint100maximum page size of the participants list
config.participantNotifications.allowedHostslist[]operator-only: listed hosts are the only webhook targets and skip the private-address check
config.participantNotifications.backofflist["1m","5m","15m","1h","6h","24h"]retry schedule
config.participantNotifications.batchSizeint50notifications fetched per poll
config.participantNotifications.concurrencyint16concurrent webhook deliveries
config.participantNotifications.connectTimeoutstring"2s"connect timeout of a webhook call
config.participantNotifications.enabledbooltruewhether these replicas deliver; the age and retention sweeps run either way
config.participantNotifications.jitterfloat0.1jitter applied to the retry schedule, as a fraction
config.participantNotifications.leasestring"60s"delivery lease; startup refuses a lease too short for a whole batch to send
config.participantNotifications.maxAgestring"36h"undelivered rows older than this are abandoned and redacted; must cover the retry schedule
config.participantNotifications.perParticipantBatchLimitint5notifications per participant and batch; must stay below concurrency
config.participantNotifications.pollIntervalstring"5s"interval of the delivery poll
config.participantNotifications.readTimeoutstring"5s"read timeout of a webhook call
config.participantNotifications.resolveTimeoutstring"2s"timeout of a webhook host lookup
config.participantNotifications.resolverThreadsint8concurrent webhook host lookups; a stalled host holds at most one
config.participantNotifications.retentionstring"30d"how long delivered notifications are kept
config.participantNotifications.sweepIntervalstring"1m"interval of the age and retention sweeps
config.receiptsJurisdictionstring"EU"jurisdiction stated in consent receipts
config.smtp.fromAddressstring""sender address of notifications
config.smtp.fromNamestring""sender name of notifications
config.smtp.hoststring""SMTP host. Leave empty to disable notifications. With a host set, fromAddress is required by the app.
config.smtp.portint587SMTP port
config.smtp.startTlsbooltruewhether to use STARTTLS
deployment.additionalAnnotationsobject{}additional annotations for the pods, if required
deployment.additionalLabelsobject{}additional labels for the pods, if required
deployment.affinityobject{}affinity template ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
deployment.containerPorts.httpint8080port of the API
deployment.containerPorts.managementint9090port of health, metrics and Prometheus
deployment.image.pullPolicystring"IfNotPresent"specification of the image pull policy
deployment.image.repositorystring"quay.io/seamware/dsc-consent-manager"dsc-consent-manager image name ref: https://quay.io/repository/seamware/dsc-consent-manager
deployment.image.tagstring""overrides the image tag whose default is the chart appVersion
deployment.nodeSelectorobject{}selector template ref: https://kubernetes.io/docs/user-guide/node-selection/
deployment.podSecurityContextobject{"fsGroup":10001,"runAsGroup":10001,"runAsNonRoot":true,"runAsUser":10001,"seccompProfile":{"type":"RuntimeDefault"}}security context for the pod. fsGroup also makes the 0400 signing-key files readable by the app's group; see deployment.yaml.
deployment.priorityClassNamestring""priority class to be assigned to the pods ref: https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/
deployment.probes.liveness.failureThresholdint3
deployment.probes.liveness.initialDelaySecondsint30
deployment.probes.liveness.pathstring"/health/liveness"path to probe
deployment.probes.liveness.periodSecondsint30
deployment.probes.liveness.timeoutSecondsint5
deployment.probes.readiness.failureThresholdint3
deployment.probes.readiness.initialDelaySecondsint10
deployment.probes.readiness.pathstring"/health/readiness"path to probe
deployment.probes.readiness.periodSecondsint10
deployment.probes.readiness.timeoutSecondsint5
deployment.probes.startup.failureThresholdint30
deployment.probes.startup.pathstring"/health/liveness"path to probe
deployment.probes.startup.periodSecondsint5
deployment.probes.startup.timeoutSecondsint5
deployment.replicaCountint2initial number of target replications, ignored when autoscaling is enabled: the HPA owns the replica count then
deployment.resourcesobject{"limits":{"cpu":"1","memory":"1Gi"},"requests":{"cpu":"250m","memory":"512Mi"}}cpu/memory resources. The JVM sizes its heap at 75% of the container memory limit (-XX:MaxRAMPercentage in the image), so raising limits.memory raises the heap.
deployment.securityContextobject{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true}security context for the container
deployment.tmp.sizeLimitstring"256Mi"size limit of the /tmp emptyDir
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
fullnameOverridestring""option to override the fullname config in the _helpers.tpl
identityProviders.additionalobject{}further providers, keyed by name, with entries shaped like primary
identityProviders.primary.allowInsecureTransportboolfalsepermits an http issuer or discovery URL; local development only
identityProviders.primary.audiencestring"consent-manager"expected token audience. Placeholder: must be overridden for production.
identityProviders.primary.claims.participantIdentifierlist["participant_id"]claim path of the participant identifier
identityProviders.primary.claims.roleslist["realm_access","roles"]claim path of the roles
identityProviders.primary.claims.userIdentifierlist["sub"]claim path of the user identifier
identityProviders.primary.clockSkewstring"30s"tolerated clock skew when validating tokens
identityProviders.primary.discoveryUrlstring"https://idp.example.org/realms/consent-manager/.well-known/openid-configuration"OIDC discovery URL of the primary IdP. Placeholder: must be overridden for production.
identityProviders.primary.issuerstring"https://idp.example.org/realms/consent-manager"issuer of the primary IdP. Placeholder: must be overridden for production.
identityProviders.primary.roleMapping.catalogstring"consent-catalog"IdP role mapped to the catalog role
identityProviders.primary.roleMapping.participantstring"consent-participant"IdP role mapped to the participant role
identityProviders.primary.roleMapping.userstring"consent-user"IdP role mapped to the user role
imagePullSecretslist[]secrets to pull the image with, as names or {name: <secret>} maps
ingress.annotationsobject{}annotations to be added to the ingress
ingress.classNamestring""ingress class to be used
ingress.enabledboolfalseshould an ingress be created
ingress.hostslist[{"host":"consent-manager.local","paths":["/"]}]hosts to be used, each with a list of paths
ingress.tlslist[]tls configuration
managementService.portint9090port to be used by the management service
nameOverridestring""option to override the name config in the _helpers.tpl
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
secrets.dbPasswordstring""database password. Must be set for production, unless existingSecret is used.
secrets.dbUserstring"consent_manager"database user
secrets.erasureVerificationSecretstring""secret of erasure verifications. Rotating it breaks outstanding erasure verifications; generate it once with openssl rand -base64 32 and keep it. Empty => reused from the live Secret, else generated. WARNING: helm template, --dry-run, Argo CD and Flux cannot read the live Secret, so there an empty value rotates on every render; GitOps users must set it or use existingSecret.
secrets.existingSecretstring""name of an already existing secret to use instead. Prefer it in production.
secrets.logPseudonymKeystring""key pseudonymising user identifiers in logs. Rotating it breaks pseudonym linkage; generate it once with openssl rand -base64 32 and keep it. Empty => reused from the live Secret, else generated. WARNING: helm template, --dry-run, Argo CD and Flux cannot read the live Secret, so there an empty value rotates on every render; GitOps users must set it or use existingSecret.
secrets.smtpPasswordstring""SMTP password
secrets.smtpUserstring""SMTP user
service.portint8080port to be used by the service
service.typestring"ClusterIP"service type
serviceAccountobject{"annotations":{},"create":false,"name":""}if a dsc-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.annotationsobject{}annotations to add to the service account
serviceAccount.createbool

Deploy dsc-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 dsc-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 chartdsc-consent-manager is pinned at v0.1.1 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