-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
Terraform Crash #35641
Comments
I definitely don't feel comfortable downloading and installing random patches from untrusted sources. |
Looks like spam. Will report to GitHub. |
@Bibz87 Thanks for your report! |
Let me know if you need anything from me to help with debugging. 😀 |
Very sorry about that (one of the comments came from my account). Account got compromised and posted this malicious stuff. Should not happen again |
When the This assumption seems to be related to how the backend manages Terraform state files. Since state files can be too large to fit into a single Kubernetes secret, the backend chunks the state into multiple secrets, see this part of the secret creation implementation. This chunking mechanism leads to the use of numeric suffixes to differentiate between chunks. However, relying on the assumption that the last part of the secret name is potentially an index can cause issues if the suffix is not intended to be an index when set by the user. Given the complexity introduced by the existing chunking mechanism, supporting secret suffixes with a trailing |
I’ve opened a PR (#35666) to add extra validation for the |
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. |
Terraform Version
Terraform Configuration Files
Debug Output
https://gist.github.com/Bibz87/2c68fea5383e932e99451051d1bc10d9
Expected Behavior
Terraform doesn't crash during initialisation
Actual Behavior
Attempting to initialise Terraform configuration results in crash
Steps to Reproduce
terraform init
Additional Context
After some testing, it looks like ending the secret suffix with a number causes the crash. Changing
secret_suffix
fromtest-01
totest
makes the initialisation work properly without crashing.Note: Terraform does create the Kubernetes secret before crashing.
References
No response
The text was updated successfully, but these errors were encountered: