Variable prevent_unencrypted_uploads
is possibly poorly named
#177
Labels
documentation
Improvements or additions to documentation
good first issue
Good for newcomers
help wanted
Extra attention is needed
readme
Improvements or additions to the README
Describe the Feature
Since
apply_server_side_encryption_by_default
is always set, and theEnforceTlsRequestsOnly
policy is created, uploads will always be encrypted in transit and at rest.The way I read the behavior of the code,
prevent_unencrypted_uploads
is simply enforcing that all uploads must specify an at-rest encryption key, and therefore bypass the default encryption.Expected Behavior
Would a better name be
prevent_default_encryption
? Or modify the documentation in theREADME
to better describe the functionality. The way it reads now, it sounds like withoutprevent_unencrypted_uploads
, uploads would be unencrypted.Use Case
When using the module, I couldn't upload files to the Terraform state without specifying a key (including using the AWS Console). When I disabled
prevent_default_encryption
, I confirmed that the file I uploaded was indeed encrypted with the default encryption key (SSE-S3).Describe Ideal Solution
Either change the variable name, or the accompanying documentation in the README so that new users of the module don't need to read the code in order to understand the behavior.
Alternatives Considered
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: