Skip to content

Add response_sensitive support for resource, data source, and ephemeral - #155

Merged
devops-rob merged 2 commits into
mainfrom
feature/sensitive-response
Jul 20, 2026
Merged

Add response_sensitive support for resource, data source, and ephemeral#155
devops-rob merged 2 commits into
mainfrom
feature/sensitive-response

Conversation

@devops-rob

Copy link
Copy Markdown
Owner

Summary

  • Add optional response_sensitive and sensitive response attributes to terracurl_request resource, data source, and ephemeral resource
  • Route response bodies to sensitive_* computed attributes when enabled so secrets are redacted in plan output
  • Integrate with Create/Read sanitizeResponse() from Fix Create() response sanitization to match Read() #154 on the managed resource
  • Extend ephemeral support to open, renew, and close response pairs (sensitive_response, sensitive_renew_response, sensitive_close_response)

Supersedes #144. Closes #142.

Thanks to @ohaibbq for the original report, design, and resource tests. This PR extends the feature to data source and ephemeral resources beyond the original #144 scope.

Test plan

  • go build ./...
  • TF_ACC=1 go test ./internal/provider/... -count=1
  • go generate ./...

Made with Cursor

devops-rob and others added 2 commits July 20, 2026 17:26
Port optional sensitive response attributes from #144 onto current main,
integrate with Create/Read sanitization from #154, and extend coverage to
data source and ephemeral open/renew/close responses.

Supersedes #144. Closes #142.

Co-authored-by: Dan Hansen <dan@recidiviz.org>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@devops-rob
devops-rob merged commit 9513d56 into main Jul 20, 2026
26 checks passed
@devops-rob
devops-rob deleted the feature/sensitive-response branch July 20, 2026 16:53
@ohaibbq

ohaibbq commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Thank you!!

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

Successfully merging this pull request may close these issues.

[Feature Request]: Mark terracurl_request.response as sensitive (or add response_sensitive toggle)

2 participants