Self-hosted configuration
How to run HaaS Connector for Universe (HCU) in your own Kubernetes cluster.
Biza runs HCU for you in your HaaS Space by default. Where your agreement with Biza provides for it, you can run HCU yourself instead (self-hosted).
Self-hosted HCU is not offered to new customers: under the Consolidated Services Agreement Biza hosts and operates HCU. This page is for existing customers whose agreement provides for self-hosting.
::: This page describes the Kubernetes resources a self-hosted HCU needs and the values you set in them. You deploy them as plain Kubernetes manifests, applied with kubectl. Biza gives you an install kit: an installation guide and sample manifests, with every value you must set marked TO FILL IN.
Self-hosted HCU uses the same configuration keys, import paths and secret layout as a Biza-hosted one. From HCU 13.2.0 Biza deploys its own HCU with a Helm chart, which also adds TLS on the adapter port and a separate management port. The samples don't need either: the adapter serves HTTP on port 8080, and the Ingress terminates TLS.
What you run
- One namespace, for example
hcu, holds every resource. - An image pull credentials job. A Kubernetes CronJob runs every 8 hours. It exchanges your Biza ID client credentials for a registry token, and writes it to a
kubernetes.io/dockerconfigjsonSecret that the adapters use as theirimagePullSecret. Registry tokens are valid for 12 hours, so an 8-hour refresh leaves a margin. - One HCU adapter per brand. Each adapter has its own Secret, ConfigMap, Deployment and Service. Adapters for different brands share the image and the image pull Secret.
- One Ingress that serves every brand on one public hostname. If you run more than one brand, it routes each request to the right adapter by its
x-haas-realmheader.
Why one adapter per brand
An HCU adapter calls a single product API: one host, base path and Product Manager space. If each brand has its own product API, each brand needs its own adapter. Both of a brand's realms, <brand>-auth for CDR and <brand>-dashboard-auth for the Consumer Dashboard, go to the same adapter.
Apply order
kubectl apply -f 00-namespace.yaml
# Image pull credentials job
kubectl apply -f ecr-secret.yaml -f ecr-configmap.yaml -f ecr-rbac.yaml -f ecr-cronjob.yaml
# Create the image pull Secret now, without waiting for the first run
kubectl -n hcu create job --from=cronjob/bizaid-ecr-cron-job bizaid-ecr-bootstrap
kubectl -n hcu wait --for=condition=complete --timeout=180s job/bizaid-ecr-bootstrap
kubectl -n hcu get secret bizaid-ecr-secret
# One set per brand
kubectl apply -f adapter-<brand>-secret.yaml -f adapter-<brand>-configmap.yaml \
-f adapter-<brand>-deployment.yaml -f adapter-<brand>-service.yaml
# If an adapter was applied before the image pull Secret existed, restart it
kubectl -n hcu rollout restart deploy/adapter-<brand>
# TLS certificate for the Ingress
kubectl -n hcu create secret tls data-adapter-tls-secret \
--cert=path/to/tls.crt --key=path/to/tls.key
kubectl apply -f adapter-ingress.yaml
Image pull credentials
| Key in the job's Secret | Value |
|---|---|
BIZAID_CLIENT_ID | The Biza ID client ID that Biza issues for your deployment. |
BIZAID_CLIENT_SECRET | The matching client secret. |
Leave the other keys in the Secret, and the job's script, RBAC and schedule, as Biza ships them.
Adapter Secret
Each brand's Secret holds its sensitive values only, as an application.yml. Keep the keys and their capitalisation exactly as shown: HCU reads them case-sensitively.
| Key | Value |
|---|---|
haas-connector.ppid.iv-hex | The brand's pairwise identifier IV, as a hex string. |
haas-connector.ppid.secret-hex | The brand's pairwise identifier secret, as a hex string. |
haas-connector.universe.db.password | The brand's UniVerse database password. |
iv-hex and secret-hex derive every user, Principal and account identifier that HCU gives HaaS. If you move from an existing installation, copy both values exactly. A different value changes every identifier for the brand, which breaks every existing consent.
Adapter ConfigMap
Each brand's ConfigMap holds its other settings, as an application.yml.
Authentication
| Key | Value |
|---|---|
spring.security.oauth2.resourceserver.jwt.issuer-uri | The OAuth issuer whose access tokens HaaS presents to this adapter. For a Microsoft Entra ID tenant: https://login.microsoftonline.com/<tenant-id>/v2.0. |
spring.security.oauth2.resourceserver.jwt.jwk-set-uri | Optional. The issuer's JWK set, for an Entra ID tenant https://login.microsoftonline.com/<tenant-id>/discovery/v2.0/keys. It must use the same tenant as issuer-uri. If you leave it out, HCU finds the JWK set from the issuer's OpenID Connect discovery document. |
spring.security.oauth2.resourceserver.jwt.audiences | A list of the aud values in those access tokens. For Entra ID, this is the Application ID URI of the resource app registration (for example api://example-data-adapter), or its Application (client) ID if it has no Application ID URI. It is not the public hostname. Add entries if you must accept more than one audience during a cutover. |
Product Manager
HCU looks up each account's product through haas-connector.pm-api. See Product Manager integration.
| Key | Value |
|---|---|
haas-connector.pm-api.mode | enabled. From HCU 13.2.0 this is the only value: an earlier installation that set legacy-file, which read products from a bundled file instead of Product Manager, must change it before upgrading, or HCU doesn't start. |
haas-connector.pm-api.host | The brand's product API host, for example pm.example.com. |
haas-connector.pm-api.scheme, haas-connector.pm-api.port | Usually https and 443. |
haas-connector.pm-api.base-path | The path in front of /banking/products/internal/<productId>. HCU calls <scheme>://<host>:<port>/<base-path>/banking/products/internal/<productId>. For Biza Product Manager, it is <pmSpaceId>/adapter/cds-au/v1, where <pmSpaceId> is your Product Manager space ID. For a product API of your own, set the prefix that makes that URL reach your handler; it can be empty. |
UniVerse
| Key | Value |
|---|---|
haas-connector.universe.bsb.default-bsb | The brand's 6-digit default BSB. |
haas-connector.universe.db.host | The brand's UniVerse database host. |
haas-connector.universe.db.account-path | The brand's UniVerse account path, for example /ultradata/EXAMPLE. |
haas-connector.universe.db.username | The brand's UniVerse database username. |
haas-connector.universe.mappings.customer | The name of the mapping files folder bundled in the HCU image for you. Biza tells you the value. A name with no matching folder stops HCU starting. |
Leave the other values in the sample ConfigMap as Biza ships them, unless Biza asks you to change one.
Adapter Deployment and Service
Each Deployment runs the HCU image at the tag for your HCU version, with the image pull Secret, and mounts:
- the brand's Secret under
/etc/secrets/json/; - the brand's ConfigMap as
/opt/biza/application-kubernetes.yml, loaded becauseSPRING_PROFILES_ACTIVEiskubernetes; - writable empty directories at
/tmpand/opt/biza/runtime.
Its startup and liveness probes call /actuator/health, and Prometheus can scrape /actuator/prometheus. Run at least two replicas in production, so that losing one pod leaves the brand serving CDR traffic.
Ingress
| Setting | Value |
|---|---|
| Hostname | The public hostname that serves every brand. Every Ingress must use the same hostname. |
| TLS Secret | data-adapter-tls-secret by default. Create it from a certificate that whatever sits in front of the Ingress trusts, or have cert-manager issue it. |
| Routing (more than one brand) | One brand's Ingress is the default backend. Each other brand has a canary Ingress (NGINX Ingress Controller) that matches its realms in the x-haas-realm header, for example ^example-(auth|dashboard-auth)$. |
| Ingress class | nginx. The canary routing needs the NGINX Ingress Controller. |
You can't serve the same hostname from the new Ingress while an existing installation still serves it. Test on a separate hostname, then switch DNS at cutover.
Rollouts
The samples carry Reloader annotations. If you run Reloader, a change to a brand's ConfigMap or Secret restarts only that brand's adapter. Without it, restart the adapter yourself after a change:
kubectl -n hcu rollout restart deployment/adapter-<brand>
Changing the image tag rolls the Deployment out as usual. You can upgrade one brand without touching another.
Verification
- The image pull Secret exists and has type
kubernetes.io/dockerconfigjson:kubectl -n hcu get secret bizaid-ecr-secret -o jsonpath='{.type}' - Every adapter rolls out:
If pods stay inkubectl -n hcu rollout status deployment/adapter-<brand> --timeout=5m
ImagePullBackOff, the Deployment was applied before the image pull Secret existed. Restart it. - Each adapter reports
UP:kubectl -n hcu port-forward svc/adapter-<brand>-service 8080:8080 &curl -fsS localhost:8080/actuator/health - Each brand's realms reach its adapter through the Ingress:
curl -fsS -H 'x-haas-realm: <brand>-auth' https://<your-hostname>/actuator/health
Upgrading
To upgrade, change the image in each Deployment to the new HCU version. Before you do, check the Upgrade guides for every release between your version and the new one.
Upgrading to HCU 13.2.0 or later from an earlier version also needs these changes:
- Image name and tag. From 13.2.0, the adapter image has a new name and is tagged with the HCU version, for example
13.2.4, instead of a build tag. Ask Biza for the image reference for your version. - Product Manager mode. Set
haas-connector.pm-api.modetoenabled, with thehost,scheme,portandbase-pathof your product API, if it waslegacy-file. See Product Manager.
Getting help
If an adapter pod doesn't start, collect the following and send them to Biza through the support desk:
kubectl -n hcu describe pod -l app.kubernetes.io/name=adapter-<brand>
kubectl -n hcu logs deployment/adapter-<brand> --tail=200
kubectl -n hcu get configmap adapter-<brand>-config -o yaml
The most common cause is a missing or badly indented value in the ConfigMap's application.yml.