Skip to content

Redact sensitive content#828

Merged
smortex merged 1 commit intomainfrom
redact-sensitive-content
Apr 10, 2026
Merged

Redact sensitive content#828
smortex merged 1 commit intomainfrom
redact-sensitive-content

Conversation

@smortex
Copy link
Copy Markdown
Collaborator

@smortex smortex commented Jan 27, 2026

Under the hood, a concat resource build a file resource with its
content set to the concatenation of the contents of the corresponding
concat::fragment.

While each concat::fragment allow to pass value to its content
parameter as a Sensitive, this information is not propagated to the
built file resource, resulting in a diff being displayed when content
of the file is updated.

In order to avoid logging sesitive information, check if any of the
fragments' content is sensitive, and if so make the content of the built
file resource sensitive too.

Under the hood, a `concat` resource build a `file` resource with its
content set to the concatenation of the contents of the corresponding
`concat::fragment`.

While each `concat::fragment` allow to pass value to its `content`
parameter as a Sensitive, this information is not propagated to the
built `file` resource, resulting in a diff being displayed when content
of the file is updated.

In order to avoid logging sesitive information, check if any of the
fragments' content is sensitive, and if so make the content of the built
file resource sensitive too.
@imaqsood imaqsood force-pushed the redact-sensitive-content branch from 9613047 to 657ef2b Compare April 10, 2026 06:03
@smortex smortex merged commit a61c7c5 into main Apr 10, 2026
30 checks passed
@smortex smortex deleted the redact-sensitive-content branch April 10, 2026 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants