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

Fix panic that occurs when using sensitive count #1456

Merged
merged 1 commit into from
Jul 29, 2022

Conversation

wata727
Copy link
Member

@wata727 wata727 commented Jul 29, 2022

Fixes #1447

When retrieving a value from a cty.Value marked as sensitive, the safety mechanism causes a panic. We avoid panic by unmarking in the same way as Terraform:
https://github.com/hashicorp/terraform/blob/v1.2.6/internal/terraform/eval_count.go#L61-L63

@wata727 wata727 merged commit 36628eb into master Jul 29, 2022
@wata727 wata727 deleted the fix_panic_for_sensitive_count branch July 29, 2022 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Panic: value is marked, so must be unmarked first
1 participant