Files
floci/docs/services
Niels Kootstra d44e96eab8 fix(ssm): return a SecureString's KMS ciphertext when a read does not decrypt (#7335)
* 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
2026-11-02 15:07:34 -04:00
..
2026-08-21 00:09:04 -04:00