mirror of
https://github.com/floci-io/floci.git
synced 2026-11-22 21:50:46 -05:00
* fix(ssm): return a SecureString's KMS ciphertext when a read does not decrypt GetParameter, GetParameters, GetParametersByPath and GetParameterHistory returned a SecureString's plaintext whether or not the request set WithDecryption. AWS encrypts the value with KMS on PutParameter, under the parameter's key with the PARAMETER_ARN encryption context, and returns that ciphertext unless the read asks for decryption. PutParameter now encrypts a SecureString with Floci's KMS and stores the ciphertext with the version, so every read of a version returns the same value and KMS Decrypt with the parameter's ARN as context returns the plaintext. A key KMS cannot use, a value over KMS's 4096-byte limit, and a version stored before this change are still returned unencrypted. * fix(ssm): log a SecureString stored without a ciphertext and keep the at-rest note * fix(ssm): say how AWS encrypts Advanced SecureStrings and reuse the shared test client