Skip to content

Exclude provider logs from Terraform destroy debug artifact - #2972

Merged
ChessProfessor merged 2 commits into
soperator-release-4.0from
chessprofessor/fix/terraform-debug-provider-logs
Sep 11, 2026
Merged

ChessProfessor merged 2 commits into
soperator-release-4.0from
chessprofessor/fix/terraform-debug-provider-logs

Conversation

@ChessProfessor

Copy link
Copy Markdown
Collaborator

Problem

Terraform destroy enables global DEBUG logging for both Terraform core and providers. The Nebius provider can include raw short-lived IAM tokens in that output, which is uploaded as the tf-destroy-debug-log artifact.

Solution

Enable DEBUG logging only for Terraform core and leave provider logging disabled. Configure the core log level before the log path because terraform-exec otherwise defaults global logging to TRACE when a path is set.

This preserves Terraform core diagnostics in the existing artifact without exporting provider credentials.

Testing

go test ./internal/e2e

@ChessProfessor ChessProfessor self-assigned this Sep 11, 2026
@ChessProfessor ChessProfessor added the bug Something isn't working label Sep 11, 2026
@ChessProfessor
ChessProfessor merged commit ac2e083 into soperator-release-4.0 Sep 11, 2026
21 checks passed
@ChessProfessor
ChessProfessor deleted the chessprofessor/fix/terraform-debug-provider-logs branch September 11, 2026 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants