Security
Identity and access
Section titled “Identity and access”- Keycloak authenticates the users (single sign-on to the portal) and issues the API tokens (OAuth 2.0, signed JWTs, 5 minutes). The gateway checks the signature with the keys published by Keycloak, read again every 10 minutes.
- Each token carries the bank (
tenant_id), the organisation if any and the roles; permissions are checked at each call, the scope is enforced by the database.
- Each key is stored wrapped by the HSM’s master key; its value never leaves, it is identified by its check value (KCV).
- The services ask for an operation and get its result: encrypt, decrypt, MAC, sign, verify, compute and verify a PIN, compute a CVV, translate a PIN block, verify a chip cryptogram, generate and open a file key.
- Each key has one use (encryption, MAC, signature, PIN, CVV, key-encrypting key) and versions: rotation (the old version still decrypts, no longer encrypts), revocation (no use at all).
- Each operation is logged (key, version, caller, duration, result), in the background so as not to slow the authorizations down.
- The network keys (ZMK, ZPK, CVK, IMK) follow the same model; the dynamic exchange of the working keys with the network is supported.
Secrets vault
Section titled “Secrets vault”- OpenBao keeps the secrets (external services’ API keys, partners’ passwords and keys, OpenPGP keys), versioned.
- It is initialised and unsealed by the platform at startup, with a key itself sealed by the HSM; the platform does not use the root token but a token with limited rights.
- The inventory follows each certificate, key and secret: expiry, rotation (automatic every night when possible), alerts at 30 days, 7 days and on the day.
Sensitive data
Section titled “Sensitive data”| Data | Protection |
|---|---|
| Card number | Encrypted by the HSM; a separate fingerprint (MAC) finds it without decrypting; never returned by the API |
| PIN | Never stored: only a verification value computed by the HSM |
| Files | Encrypted at rest, each with its own key; signed when issued; manufacturing files also encrypted for the personaliser (OpenPGP) |
| Dispute evidence | Encrypted, fingerprint in clear |
| Network messages | Sensitive fields masked, message encrypted in the journal |
| Display in clear | Permission, justification, four eyes per policy, limited time, log |
Traceability
Section titled “Traceability”- Audit trail: each action of a user or a system, with its author and object.
- Authorization decisions sealed by a fingerprint, computed again at each read.
- Platform access to a bank’s data, visible to the bank.
- HSM journal and vault journal.
- End-to-end traces of each operation (Jaeger), tied to its events by the correlation identifier.

