There’s no self-service setup for this report. To turn it on for your organization, contact your
Tesouro representative. Setup includes exchanging PGP keys (below) and agreeing on where files are
delivered.
Getting set up
Because the file carries full account numbers, it’s always PGP-encrypted in transit and at rest. Setup is a one-time key exchange, coordinated through your Tesouro representative:- You provide your PGP public key. Tesouro encrypts every file destined for you with this key, so only you can decrypt it. Send the armored public key to your Tesouro representative.
- Tesouro provides its PGP public key. Every file is also signed with Tesouro’s private key. You verify that signature with Tesouro’s public key to confirm the file genuinely came from Tesouro and wasn’t altered. Your representative supplies this key during onboarding.
Delivery and cadence
The report runs once daily. Exact timing and the delivery location are agreed with your Tesouro representative during setup.- One file per as-of date. Each successful run delivers a single encrypted file named
bank_account_balance_{asOfDate}.csv.pgp, whereasOfDateisYYYY-MM-DD; for example,bank_account_balance_2024-06-15.csv.pgp. - Encrypted and signed. The file is OpenPGP (RFC 4880), encrypted to your public key and signed with Tesouro’s private key.
- Empty days still deliver. If no active accounts have a balance for the as-of date, you still receive a file with a header row and nothing else. Treat it as “no balances that day,” not as a failure.
Preferred delivery mechanisms
Tesouro supports two delivery mechanisms, in this order of preference:- SFTP (preferred). Tesouro pushes each file to an SFTP endpoint you provide. During setup, you share the host, port, username, and target directory, and you and Tesouro exchange SSH keys so the connection is authenticated on both sides.
- Amazon S3 via cross-account IAM role. Tesouro writes each file to a Tesouro-owned S3 bucket, and you pull it from there. Tesouro provisions an IAM role in its AWS account that grants read access to your files and trusts a principal in your account to assume it; your ingestion process assumes that role to download the file. No long-lived AWS credentials are shared in either direction.
Decrypting and verifying
Decrypt with your private key and verify the signature against Tesouro’s public key in one step. With GnuPG, after importing both keys:gpg writes the plaintext CSV to the output file and reports the signature status on stderr. Treat a file whose signature doesn’t verify against Tesouro’s public key as untrusted, and don’t ingest it.
File format
The CSV is UTF-8 with a header row. Columns are always in this order:
Rows are ordered by organization, then by account, so all of an organization’s accounts appear together.