Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subscription Resource Stores Access Key Unencrypted in State #78

Closed
RaniSputnik opened this issue Jul 22, 2019 · 1 comment
Closed

Subscription Resource Stores Access Key Unencrypted in State #78

RaniSputnik opened this issue Jul 22, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@RaniSputnik
Copy link
Contributor

The subscription resource type requires a parameter access_secret which is stored in the state file in plaintext. While the state file can be encrypted, Terraform's own iam_access_key resource suggest supplying a PGP key that can be used to additionally encrypt the secret before storing it in state.

Terraforms management of secrets in state does seem to cause a fair bit of debate - and it has been proposed that some encrypt / decrypt interpolation functions should be added to Terraform core hashicorp/terraform#15434.

I'm not sure if maybe there is a middle-ground position that we could take in the meantime? Perhaps adding another optional parameters access_secret_encrypted?

@davidweterings
Copy link
Member

davidweterings commented Jul 22, 2019

Yes, this seems like it's a good idea! The implementation is actually relatively straightforward: https://github.com/terraform-providers/terraform-provider-aws/blob/master/aws/resource_aws_iam_access_key.go#L88

I'm not sure when we would be able to add this (but of course contributions are also welcomed ;) ).

@mvantellingen mvantellingen added the enhancement New feature or request label Jul 22, 2019
@mvantellingen mvantellingen added the resource_subscription resource_subscription label Jul 5, 2022
@demeyerthom demeyerthom removed the resource_subscription resource_subscription label Aug 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants