Skip to content

Redact sensitive content#828

Open
smortex wants to merge 1 commit intomainfrom
redact-sensitive-content
Open

Redact sensitive content#828
smortex wants to merge 1 commit intomainfrom
redact-sensitive-content

Conversation

@smortex
Copy link
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.
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.

1 participant