mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 17:33:03 -05:00
Three corrections from review, all of them cases where the first version of this branch was confidently wrong about AWS. 1. THE TWO LOCK MODES WERE INVERTED. ChangeableForDays PRESENT means compliance mode — a lock date that far ahead, immutable on and after it. ABSENT means governance mode — no lock date, removable at any time. The reference says so directly: "If this parameter is not specified, you can delete Vault Lock from the vault using DeleteBackupVaultLockConfiguration or change the Vault Lock configuration using PutBackupVaultLockConfiguration at any time." The previous revision had it the other way round, which turned AWS's freely removable governance lock into a permanent one and its vault into an undeletable one. 2. A LOCK NO LONGER BLOCKS DELETING THE VAULT. A lock protects the recovery points, not the vault shell: AWS deletes an empty vault even under a compliance lock, and the pre-existing non-empty check is already the case AWS refuses. The added check could therefore only ever fire where AWS succeeds — and it reached outside this service, since BackupVaultCfnProvisioner deletes vaults during stack teardown and tolerates only not-found. 3. THE EVENT LIST WAS 17 OF 30. Missing CONTINUOUS_BACKUP_INTERRUPTED, the three RECOVERY_POINT_INDEX* values, the three EKS_* values and the six ACCESS_POINT_* values. Since unknown values are rejected with 400, each missing one failed an apply that AWS accepts. Rejecting is still right; the data was stale. The tests asserted the inverted lock behaviour, so the suite could not have caught any of this. Both modes are now pinned separately and in opposite directions, and the gaps review named are covered: the cooling-off floor, the retention floors, reconfiguring a governance lock in place, deleting an empty locked vault, the object-bodied Policy branch, and the notification store being dropped with its vault. 66 Backup-related tests pass, including the CloudFormation provisioner suites.