Skip to content
Portal

Files and transfers

The whole platform exchanges files with the networks, the bank and its partners. One engine reads, validates, writes and masks them all, from their description; one service carries them. Modules ubo-files and ubo-transfers.

A format is described, not programmed (spec/files/formats/<CODE>.v<N>.json):

Element Examples
Structure Fixed length or delimited; ASCII or EBCDIC encoding
Records Header, detail, continuation (attached to the detail before it), batch trailer, file trailer; recognised by their code and a discriminating field
Fields Type (alpha, numeric, date, date-time, identifier), length, mandatory, list of values, sensitive (masked), key, controlled truncation
Totals Number of records, transactions, batches; filterable sums; per batch and per file

A produced file is read back and checked against its own format before being kept. A published version of a format no longer changes (checked at startup).

Format Direction Content
UBO_CARD_STATUS Bank → UBO Blocks, unblocks, losses, thefts, cancellations
UBO_AUTH_JOURNAL UBO → bank Daily journal of the authorizations, control totals
UBO_CRE UBO → bank The day’s accounting report
VISA_BASEII_CTF Network → UBO Incoming clearing
PERSO_STD, PERSO_CSV UBO → personaliser Manufacturing batches
PERSO_ACK Personaliser → UBO Acknowledgements and manufacturing tracking

received → validated or rejected → integration → integrated, partially integrated or failed; replayable from “partially” or “failed” (lines already integrated are not replayed).

  • Each file is encrypted at rest with its own key, wrapped by an HSM key.
  • Each produced file is signed (Ed25519) as sent; the signature is checked on demand.
  • The lines kept in the database have their sensitive fields masked; the full content is only read to integrate, or by an authorized user (controlled access, logged).

A job integrates the validated files every 5 seconds, line by line and idempotently (a line already in the requested state is “already done”); an interrupted integration resumes. Each line keeps its status, anomalies, result and the business object touched (a card, an operation).

Mode How it works
Hosted The partner connects to UBO’s SFTP server, in an isolated space: in/ (drop), out/ (collect), ack/ (acknowledgements), error/ (refusals and reason)
Remote UBO connects to the partner’s server, drops and collects there at a chosen pace
  • Drop: a temporary file (.part, .tmp) is never read; a fingerprint file or an OpenPGP-encrypted file may be required by the exchange point; a non-compliant file is refused before the file chain.
  • Acknowledgement: ack/<name>.ack.json with the status, counters and anomalies; a refusal is returned in error/ with its reason.
  • Collect: the partner acknowledges a file with <name>.ok, or refuses it with <name>.ko.
  • Recovery: idempotent sending (sending identifier), spaced retries, then dead letters and manual recovery; events transfer.*.
  • Accounts and keys: UBO drives the SFTP server through its API (accounts, SSH keys, quotas) and stays the master of the accounts; secrets are in the vault, their expiries followed.