Repository navigation
C#: Document custom redaction barriers - #23201
Open
SkyCipherr wants to merge 1 commit into
Open
SkyCipherr wants to merge 1 commit into
SkyCipherr wants to merge 1 commit into
Conversation
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The review evidence identifies no active issues, and the change is limited to documenting custom redaction barrier modeling and its relevant CodeQL guidance.
No open issues 🎉
What changed in this PR
Documents how C# users can model custom redaction methods as barriers for cs/exposure-of-sensitive-information, preventing alerts on redacted values while preserving alerts for raw sensitive data.
Changes:
- Adds a YAML
barrierModelexample targeting thefile-content-storebarrier kind. - Explains the
ReturnValueaccess path and links to the C# library-model customization documentation.
| File | Description |
|---|---|
| csharp/ql/src/Security Features/CWE-359/ExposureOfPrivateInformation.qhelp | Documents custom redaction barrier modeling and provides a relevant CodeQL documentation link. |
Review effort: Lite (adaptive)
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Document how to model the return value of a custom C# redaction method for
cs/exposure-of-sensitive-information. The query help now includes abarrierModelexample using thefile-content-storekind.I rendered the query help as Markdown and loaded the YAML from the example into a model pack. On the same C# test database, the query reported both the raw write and the redacted write before loading the pack. With the pack loaded, only the raw write still alerted.
Fixes #23160.