-
-
Notifications
You must be signed in to change notification settings - Fork 329
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
"Error: Output refers to sensitive values" when applying fleet configuration #1018
Comments
As far as I can tell, the underlying issue here - private key being sensitive - is the cause of basically all the various issues around sensitive output values since the fleet support was introduced.
So now we end up here with the fleet configuration broken. The "simple" fix is to throw a |
This also sets the variable to be sensitive, as there are scenarios where the output becomes sensitive. See cattle-ops#1018.
## Description Due to calls to `nonsensitive` in case the data is sensitive or not calling the function in the other case, the code gets very complex. The output variable `runner_config_toml_rendereded` was introduced for easier debugging, but we still have the option to write the whole Runner configuration to a local file (`debug.write_runner_config_to_file`). This "fixers" that issue by just deleting the output variable. Closes #1018 ## Migrations required Usually not. For debugging purposes, set the `debug.write_runner_config_to_file` to `true`. The configuration is written to a file on your local disk (directory `debug/`) ## Verification Only linted as this is only deleting an output variable.
Describe the bug
When applying a spot-fleet configuration, the apply fails with this error:
This is because that output is exporting
local.template_user_data
which is templated usinglocal.template_gitlab_runner
which is templated usingtls_private_key.fleet[0].private_key_pem
which is flagged as sensitive according to the documentation. https://registry.terraform.io/providers/hashicorp/tls/latest/docs/resources/private_key#private_key_pemTo Reproduce
This is reproducible using any fleet configuration. Relevant parts of my configuration:
Expected behavior
Apply proceeds without errors.
The text was updated successfully, but these errors were encountered: