Skip to content
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

Redact Sensitive Data Issue #276

Open
karand1979 opened this issue Nov 18, 2024 · 1 comment
Open

Redact Sensitive Data Issue #276

karand1979 opened this issue Nov 18, 2024 · 1 comment

Comments

@karand1979
Copy link

When using the environment variable API_DATA_IS_SENSITIVE = "true" the sensitive data is still outputted to the terraform logs regardless. It would be nice to either redact the sensitive data fields from the terraform output or only output the entire object obj.toString() if in debug mode.

log.Printf("resource_api_object.go: Import routine called. Object built:\n%s\n", obj.toString())

log.Printf("resource_api_object.go: Create routine called. Object built:\n%s\n", obj.toString())

log.Printf("resource_api_object.go: Read routine called. Object built:\n%s\n", obj.toString())

log.Printf("resource_api_object.go: Update routine called. Object built:\n%s\n", obj.toString())

log.Printf("resource_api_object.go: Delete routine called. Object built:\n%s\n", obj.toString())

log.Printf("resource_api_object.go: Exists routine called. Object built: %s\n", obj.toString())

@karand1979
Copy link
Author

@DRuggeri any thoughts on this? This is the only thing stopping us from moving forward with the use of this provider for our use case. We run terraform from Gitlab pipelines and policy is to not have any sensitive information in the logs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant