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

Make tfstate sanitization jq query more resource-specific #4

Open
bronius opened this issue Nov 8, 2024 · 0 comments
Open

Make tfstate sanitization jq query more resource-specific #4

bronius opened this issue Nov 8, 2024 · 0 comments
Assignees

Comments

@bronius
Copy link
Contributor

bronius commented Nov 8, 2024

In his enthusiasm to close merge 3d35327, @bronius would like to have made

...del(.resources[].instances[].attributes [
        "primary_access_key",
        "primary_connection_string",
        "primary_blob_connection_string",
        "secondary_access_key",
        "secondary_connection_string",
        "secondary_blob_connection_string"
      ])...

specific to the resource whose secrets we want to wipe from tfstate. Currently, it will take all Azure storage managed by the terraform implementing this module; It will be safer to limit to just something like ....resources[name=azurerm_storage_account.tfstate.name]....

@bronius bronius self-assigned this Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant