-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Azurem prints secrets during plan phase in plain text.. #5083
Comments
@hajdukd This issue comes from a bug in the Terraform Plugin SDK. For this reason it is currently not possible to mask parts of nested blocks. One option would be to mark the whole Additionally attributes like |
Quick workaround is to omit kube_config sensitive information using
|
@brennerm In the short term could we mark the whole The parts that are needed can still be referenced normally, passed around as outputs, and fetched via Fortunately we noticed this happens on clusters which don't have production workloads, which would have been a major incident. As it is we still need to rotate all of the credentials. In a nutshell, I just can't emphasize enough how strongly the possibility of leaking cluster-admin should outweigh the inconvenience of redacting a few other public properties until the related terraform bug is fixed. |
This also affects app_serivce and the site_credential.password property. This issue is causing us to leak app service deployment credentials into our deployment logs (we use Octopus Deploy) which are not considered safe storage for secrets by our infosec team. I know Octopus Deploy had to publish a CVE when they had similar bug last year. As an important security issue please fix this ASAP. |
👋 Since this issue needs to be fixed in the Terraform Plugin SDK rather than tracking this issue in multiple places I'm going to close this issue in favour of the upstream issue. Once that's been fixed we'll update the version of the Plugin SDK being used and this should get resolved - as such please subscribe to the upstream issue for updates. Thanks! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks! |
Community Note
Terraform (and AzureRM Provider) Version
version = "=1.36.1"
Affected Resource(s)
azurerm_kubernetes_cluster
Terraform Configuration Files
N/A, any configuration can be an example.
Debug Output
N/A
Panic Output
N/A
Expected Behavior
Every sensitive data will be hidden during plan step. Things like:
It works correctly for "kube_config_raw" ( listed as (sensitive value) ).
Actual Behavior
All sensitive data is printed in plain text.
Steps to Reproduce
terraform plan
Important Factoids
N/A
References
N/A
The text was updated successfully, but these errors were encountered: