Skip to content

Send a list of paths that should be redacted to the policy runtime#38600

Draft
dsa0x wants to merge 21 commits into
policy-pr5-init-policyfrom
sams/redact-sensitive-paths
Draft

Send a list of paths that should be redacted to the policy runtime#38600
dsa0x wants to merge 21 commits into
policy-pr5-init-policyfrom
sams/redact-sensitive-paths

Conversation

@dsa0x
Copy link
Copy Markdown
Member

@dsa0x dsa0x commented May 15, 2026

Fixes #

Target Release

1.16.x

Rollback Plan

  • If a change needs to be reverted, we will roll out an update to the code within 7 days.

Changes to Security Controls

Are there any changes to security controls (access controls, encryption, logging) in this pull request? If so, explain.

CHANGELOG entry

  • This change is user-facing and I added a changelog entry.
  • This change is not user-facing.

@github-actions
Copy link
Copy Markdown
Contributor

Changelog Warning

Currently this PR would target a v1.16 release. Please add a changelog entry for in the .changes/v1.16 folder, or discuss which release you'd like to target with your reviewer. If you believe this change does not need a changelog entry, please add the 'no-changelog-needed' label.

Comment thread internal/terraform/policy.go Outdated
var priorAttrRedactedPaths []cty.Path
if schema != nil {
attrRedactedPaths = schema.SensitivePaths(attrs, nil)
priorAttrRedactedPaths = schema.SensitivePaths(priorAttrs, nil)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sensitive paths don't come from the schema, they come from the state value. The schema contributes to those paths, but it is not the only source. The current and prior values may also have different sensitive paths.

@dsa0x dsa0x force-pushed the policy-pr5-init-policy branch 6 times, most recently from ceca9d8 to f6cce9a Compare May 28, 2026 09:28
@dsa0x dsa0x force-pushed the policy-pr5-init-policy branch from f6cce9a to abe1c41 Compare June 1, 2026 18:53
@dsa0x dsa0x force-pushed the policy-pr5-init-policy branch 2 times, most recently from fcb3f12 to 6c5df78 Compare June 2, 2026 10:14
@dsa0x dsa0x force-pushed the policy-pr5-init-policy branch 2 times, most recently from 137d602 to cc2ed92 Compare June 3, 2026 12:04
@dsa0x dsa0x force-pushed the policy-pr5-init-policy branch from cc2ed92 to 1b55da5 Compare June 3, 2026 13:11
@dsa0x dsa0x force-pushed the sams/redact-sensitive-paths branch from a8c2c3d to fe23d22 Compare June 3, 2026 14:00
@dsa0x dsa0x force-pushed the policy-pr5-init-policy branch 6 times, most recently from 3d0811b to 7155955 Compare June 5, 2026 13:59
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.

2 participants