payment-gateway
by Labs64
Helm chartv0.10.33App 0.0.22Verified publisher
Labs64.IO :: Payment Gateway - Universal Payment Gateway for PSP Integration
About this chart
payment-gateway
Labs64.IO :: Payment Gateway - Universal Payment Gateway for PSP Integration
Homepage: https://labs64.io
Maintainers
| Name | Url | |
|---|---|---|
| Labs64 | [email protected] | https://labs64.io |
Source Code
Requirements
| Repository | Name | Version |
|---|---|---|
| file://../chart-libs | chart-libs | 0.8.12 |
Values
| Key | Type | Default | Description |
|---|---|---|---|
| affinity | object | {} | |
| applicationType | string | "java" | |
| applicationYaml | object | `{"labs64":{"auditflow":{"enabled":false,"internal-call":{"scopes":["audit-event:write"],"service-name":"payment-gateway"},"source-system":"labs64.io-payment-gateway","url":"http://labs64io-auditflow.labs64io.svc.cluster.local:8080"}},"payment-gateway":{"idempotency":{"processing-timeout":"${IDEMPOTENCY_PROCESSING_TIMEOUT:PT5M}","redis-ttl":"${IDEMPOTENCY_REDIS_TTL:PT3H}"}},"spring":{"data":{"redis":{"host":"{{ if and .Values.global .Values.global.redis }}{{ .Values.global.redis.host | default "redis.tools.svc.cluster.local" }}{{ else }}redis.tools.svc.cluster.local{{ end }}","port":"{{ if and .Values.global .Values.global.redis }}{{ .Values.global.redis.port |
| applicationYaml.labs64.auditflow.enabled | bool | false | Publish payment lifecycle events through AuditFlow |
| applicationYaml.labs64.auditflow.internal-call.scopes | list | ["audit-event:write"] | Scopes sent on direct AuditFlow calls |
| applicationYaml.labs64.auditflow.internal-call.service-name | string | "payment-gateway" | Service name encoded as the canonical internal service principal |
| applicationYaml.labs64.auditflow.source-system | string | "labs64.io-payment-gateway" | Stable producer identity written into every audit event |
| applicationYaml.labs64.auditflow.url | string | "http://labs64io-auditflow.labs64io.svc.cluster.local:8080" | Direct AuditFlow Kubernetes Service URL; override it when using a different release name, namespace, or cluster domain |
| applicationYaml.payment-gateway | object | {"idempotency":{"processing-timeout":"${IDEMPOTENCY_PROCESSING_TIMEOUT:PT5M}","redis-ttl":"${IDEMPOTENCY_REDIS_TTL:PT3H}"}} | Payment Gateway application properties bound under the Spring prefix payment-gateway |
| applicationYaml.payment-gateway.idempotency | object | {"processing-timeout":"${IDEMPOTENCY_PROCESSING_TIMEOUT:PT5M}","redis-ttl":"${IDEMPOTENCY_REDIS_TTL:PT3H}"} | Generic HTTP idempotency storage and processing recovery |
| applicationYaml.payment-gateway.idempotency.processing-timeout | string | "${IDEMPOTENCY_PROCESSING_TIMEOUT:PT5M}" | Time after which another identical request may take over an abandoned PROCESSING record |
| applicationYaml.payment-gateway.idempotency.redis-ttl | string | "${IDEMPOTENCY_REDIS_TTL:PT3H}" | Lifetime of completed and in-progress idempotency records in Redis |
| applicationYaml.spring | object | `{"data":{"redis":{"host":"{{ if and .Values.global .Values.global.redis }}{{ .Values.global.redis.host | default "redis.tools.svc.cluster.local" }}{{ else }}redis.tools.svc.cluster.local{{ end }}","port":"{{ if and .Values.global .Values.global.redis }}{{ .Values.global.redis.port |
| applicationYaml.spring.data.redis.host | string | `"{{ if and .Values.global .Values.global.redis }}{{ .Values.global.redis.host | default "redis.tools.svc.cluster.local" }}{{ else }}redis.tools.svc.cluster.local{{ end }}"` |
| applicationYaml.spring.data.redis.port | string | `"{{ if and .Values.global .Values.global.redis }}{{ .Values.global.redis.port | default 6379 }}{{ else }}6379{{ end }}"` |
| applicationYaml.spring.data.redis.ssl.enabled | bool | false | Use TLS for Redis (required by ElastiCache in-transit encryption) |
| applicationYaml.spring.datasource.url | string | `"jdbc:postgresql://{{ if and .Values.global .Values.global.postgresql }}{{ .Values.global.postgresql.host | default "postgresql.tools.svc.cluster.local" }}:{{ .Values.global.postgresql.port |
| autoscaling | object | {"enabled":false,"maxReplicas":3,"minReplicas":1,"targetCPUUtilizationPercentage":80} | This section is for setting up autoscaling more information can be found here: https://kubernetes.io/docs/concepts/workloads/autoscaling/ |
| chart-libs | object | {} | Values passed to the chart-libs library dependency (present so the generated schema accepts the key Helm injects for the dependency) @schema type: object additionalProperties: true @schema |
| enabled | bool | true | |
| env | list | [] | |
| envFrom | list | [] | |
| externalSecrets.enabled | bool | false | |
| externalSecrets.secretKey | string | "" | Key/path of this module's secret in the external backend; every key becomes an env var. Defaults to the release fullname. |
| externalSecrets.storeName | string | "local-kubernetes-store" | |
| fastStartup | bool | false | Optimize for container startup time (-XX:TieredStopAtLevel=1, C1-only JIT) instead of sustained throughput. Local dev wants it on; prod wants it off (the default). |
| fullnameOverride | string | "" | |
| gateway | object | {"annotations":{},"authPolicy":{"basePath":"","enabled":true},"enabled":false,"ingressClassName":"","parentRefs":[{"name":"labs64io-gateway","namespace":"tools"}],"prefix":"","routes":[{"path":"/api/v1","port":8080,"stripPath":true},{"path":"/v3/api-docs","port":8080,"public":true,"stripPrefix":true}],"sharedMiddlewares":{"auth":"authgateway-auth","compress":"authgateway-compress","rateLimit":"authgateway-ratelimit"}} | Gateway routes published by this module (rendered by chart-libs.gateway-routes) |
| gateway.annotations | object | {} | Annotations for fallback Ingress |
| gateway.authPolicy | object | {"basePath":"","enabled":true} | Auth-policy publication. NOTE: the Auth Gateway no longer live-discovers per-module policies via /.well-known/auth-policy — it loads a generated routes manifest (charts/authgateway/routes/) and asks the central Cerbos PDP for every decision. This block is retained for backward compatibility and is a no-op for edge enforcement. |
| gateway.authPolicy.basePath | string | "" | External base path prepended to the module's OpenAPI paths; defaults to /api/v1 |
| gateway.authPolicy.enabled | bool | true | Publish this module's auth policy to the gateway ACS |
| gateway.enabled | bool | false | Publish this module's routes on the Traefik gateway |
| gateway.ingressClassName | string | "" | Ingress Class Name for fallback Ingress |
| gateway.parentRefs | list | [{"name":"labs64io-gateway","namespace":"tools"}] | Gateway API parent Gateway(s) this module's HTTPRoute attaches to |
| gateway.prefix | string | "" | External path prefix; defaults to / |
| gateway.routes | list | [{"path":"/api/v1","port":8080,"stripPath":true},{"path":"/v3/api-docs","port":8080,"public":true,"stripPrefix":true}] | Routes exposed by this module. The whole API surface is ONE route through ForwardAuth: the Auth Gateway is the PEP and derives public-vs-protected per operation from OpenAPI OAuth security plus x-labs64.auth (generated into the Auth Gateway routes manifest + the central Cerbos PDP). Public operations (payment-definitions, PSP webhooks, provider/checkout redirect returns — none can carry a JWT) are allowed without a token by the Auth Gateway itself, so they MUST NOT be re-declared here. Re-declaring them as edge routes duplicates the OpenAPI PEP and mis-strips their paths. OpenAPI stays the single source of truth. |
| gateway.routes[0] | object | {"path":"/api/v1","port":8080,"stripPath":true} | Whole Payment Gateway API (ForwardAuth PEP decides per-op from OpenAPI; strips '/api/v1' — backend is root-mapped) |
| gateway.routes[1] | object | {"path":"/v3/api-docs","port":8080,"public":true,"stripPrefix":true} | OpenAPI docs (springdoc endpoint — NOT an OpenAPI operation, so it has no generated OpenAPI auth policy at the Auth Gateway; public at the edge, prefix stripped) |
| gateway.sharedMiddlewares | object | {"auth":"authgateway-auth","compress":"authgateway-compress","rateLimit":"authgateway-ratelimit"} | Names of the shared middlewares provided by the authgateway chart (fullnameOverride: authgateway) |
| global | object | {"security":{"allowInsecureImages":true}} | Global values shared across Labs64.IO charts and Bitnami subcharts @schema type: object additionalProperties: true @schema |
| global.security.allowInsecureImages | bool | true | Required by Bitnami subcharts when images are pulled from bitnamilegacy (image substitution guard) |
| gracefulShutdown.timeout | string | "30s" | Max time Spring Boot waits for in-flight requests before forced shutdown |
| image | object | {"digest":"sha256:fac87fe580e4cdc4d57d10f848b7bd8d93a85d028d3b6921ca93fb3ba2122c1b","pullPolicy":"IfNotPresent","repository":"labs64/payment-gateway","tag":""} | This sets the container image more information can be found here: https://kubernetes.io/docs/concepts/containers/images/ |
| image.digest | string | "sha256:fac87fe580e4cdc4d57d10f848b7bd8d93a85d028d3b6921ca93fb3ba2122c1b" | Pin the image by digest (sha256:<64 hex>). Takes precedence over tag — the release pipeline sets it so a deployment cannot follow a moved tag. |
| image.pullPolicy | string | "IfNotPresent" | This sets the pull policy for images. |
| image.tag | string | "" | Overrides the image tag whose default is the chart appVersion. |
| imagePullSecrets | list | [] | This is for the secrets for pulling an image from a private repository more information can be found here: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ |
| lifecycle.preStopDrainSeconds | int | 5 | preStop sleep (seconds) so Traefik/kube-proxy deregister the pod before shutdown; 0 disables |
| livenessProbe | object | {"failureThreshold":3,"httpGet":{"path":"/actuator/health/liveness","port":8080},"initialDelaySeconds":0,"periodSeconds":10,"timeoutSeconds":2} | This is to setup the liveness probes more information can be found here: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/ |
| migrationJob | object | {"enabled":true,"initResources":{},"resources":{}} | Pre-install Job that creates the database and runs migrations. Leave enabled when pointing at infrastructure that already exists. Set false when the database is provisioned by the same Helm release (the umbrella's bundled PostgreSQL): the Job is a pre-install hook and would wait for a server that cannot start until it finishes. The application runs Flyway itself either way. |
| migrationJob.initResources | object | {} | Resources for the ensure-db initContainer (a single psql client). @schema type: object additionalProperties: true @schema |
| migrationJob.resources | object | {} | Resources for the migrate container (the application image running Flyway). Defaults to the workload's own resources when empty. @schema type: object additionalProperties: true @schema |
| nameOverride | string | "" | This is to override the chart name. |
| networkPolicy | object | {"egress":[{"ports":[{"port":8080,"protocol":"TCP"}],"to":[{"podSelector":{"matchLabels":{"app.kubernetes.io/name":"auditflow"}}}]},{"ports":[{"port":3593,"protocol":"TCP"}],"to":[{"podSelector":{"matchLabels":{"app.kubernetes.io/name":"authz-pdp"}}}]}],"enabled":false,"extraEgress":[],"extraIngress":[],"extraIngressFrom":[],"gatewayNamespace":"tools","ingressControllerLabels":{},"ingressFrom":[],"ingressPorts":[8080],"observabilityNamespace":"monitoring","toolsEgress":[{"name":"postgresql","port":5432},{"name":"valkey","port":6379}]} | NetworkPolicy: allow ingress from Traefik and same-namespace pods only (rendered by chart-libs.networkpolicy) |
| networkPolicy.egress | list | [{"ports":[{"port":8080,"protocol":"TCP"}],"to":[{"podSelector":{"matchLabels":{"app.kubernetes.io/name":"auditflow"}}}]},{"ports":[{"port":3593,"protocol":"TCP"}],"to":[{"podSelector":{"matchLabels":{"app.kubernetes.io/name":"authz-pdp"}}}]}] | Egress rules enforcing database-per-service isolation. |
| networkPolicy.extraEgress | list | [] | Addit |
Deploy payment-gateway with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has payment-gateway 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartpayment-gateway is pinned at v0.10.33 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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