Encrypt the Enable Banking account IBAN at rest
Merged
GF
14d ago+12+12+01234567890123456789-3-3-0123456789
What this PR does
Encrypts enable_banking_accounts.iban at rest. The column held the linked bank account's IBAN in plain text, while the raw payloads next to it were already encrypted.
EnableBankingAccountdeclaresencrypts :ibanwithout determinism, likeFioAccount#iban. No code looks the IBAN up by value; the setup and account selection views only show its last four characters.- The encryption backfill manifest covers the column (backfill version 11), so
security:backfill_encryptionencrypts existing rows.
This came out of the review of the IBAN series (#3510): encrypting this column is independent of the rest and small enough to land on its own.
Validation
- Full Rails test suite green locally, CI green.
- Backfill manifest digest test updated.
Summary by cubic
Encrypts the Enable Banking account IBAN at rest so the linked bank account's IBAN is no longer stored in plain text alongside the already-encrypted payloads.
- Uses non-deterministic encryption, like
FioAccount#iban, since no code looks up the IBAN by value. - Bumps the encryption backfill manifest to version 11, so
security:backfill_encryptionencrypts existing rows.
Summary by CodeRabbit
- Security
- IBANs for Enable Banking accounts are now encrypted when encryption is configured.
- Existing account IBANs are included in the encryption backfill and remain readable after conversion.