-
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
[azurerm_kubernetes_cluster] kube_admin_config should be sanitized #4107
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @nexxai,
Thank you for the PR. However i am not entirely sure why you wish to mark the entire block as sensitive as the password & certificate keys are already marked as such. Could you share your reasoning?
I don't have a particularly good reason other than kube_admin_config_raw has been marked fully Sensitive and the original request was to have kube_admin_config match it. @rudolphjacksonm can you please explain in more detail? I don't use this resource so I don't have the output of kube_admin_config in front of me. |
|
The password is exposed in |
Taking a look into this as @katbyte has mentioned the sensitive fields within this block appear to be marked as Sensitive - as such they should be masked (e.g. show as "") in the output of the plan - are you seeing a different behaviour here? If so would you be able to provide a sanitized output from Looking at the block specifically, the sensitive fields in this block ( Thanks! |
Hi @tombuildsstuff, I'm not seeing that behavior on my end at all. Below is a heavily sanitized
|
It is possible and very simply to construct the cluster-admin kubeconfig from the outputs in |
Hi @nexxai, We took a look into this and it seems to be a core issue. As such i have opened https://github.com/hashicorp/terraform/issues/23118 to track it and am going to close this PR. |
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! |
Fixes #4105