-
Notifications
You must be signed in to change notification settings - Fork 418
[APPSEC-69389] Add AI Guard sensetive data redaction #6394
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Strech
merged 41 commits into
master
from
appsec-69389-add-ai-guard-sensetive-data-redaction
Oct 2, 2026
Merged
Changes from all commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
11f5389
Initial commit. Sensetive data redaction
Strech a121480
First round of refactoring without code quality
Strech f5cf03b
Refactor Evaluation::Result initialize interface
Strech b114391
Refactor Evaluation::Outcome interface
Strech d04da3b
Add telemetry reporting
Strech 38ce760
Add DD_AI_GUARD_REDACTION_ENABLED configuration
Strech 07e873a
Fix existing tests to pass for new code
Strech 77cedf5
Rename AIGuard::Transport into AIGuard::HTTPClient
Strech 2031afd
Add tests for evaluation outcome, result, response
Strech 5708346
Add redaction tests
Strech fa0a966
Add telemetry tests
Strech 810d0ef
Add evaluation tests
Strech dc26c55
Refactor redaction module and its interface
Strech 19044d9
Add new and correct old RBS
Strech 9895d28
Add sensetive data redaction to RubyLLM
Strech aaa7867
Extract message converter and redactor in RubyLLM
Strech 5fb80cf
Fix tool call argument conversion to be JSON-based
Strech affffc2
Rework arguments to be JSON/Hash
Strech 54574bb
Introduce multiple tool calls
Strech d9938da
Upgrade RubyLLM minimal dependency
Strech b112c49
Fix error propagation from instrumentation
Strech a73e770
Change instrumentation point for redacted messages
Strech d7a06ac
Add AI Guard documentation section
Strech 33cc254
Fix late messages truncation
Strech de29276
Replace error counting with reporting
Strech 1e2b067
Warn on redactions with raw content present
Strech 496a22d
Fix double-evaluation when rendering chat messages
Strech ea06d79
Add note about double-encoding of images
Strech e555fca
Update RBS definitions
Strech c9ace46
Add changelog entries
Strech 02def1d
Remove obsolete RubyLLM version
Strech 607c47e
[🤖] Lock Dependency: https://github.com/DataDog/dd-trace-rb/actions/r…
dd-octo-sts[bot] ea00d14
Fix rubocop violations
Strech 5259de8
Expose redaction replacements in evaluation result
Strech d03ab00
Update reference to ST with updated AI Guard setup
Strech cd19236
[🤖] Lock Dependency: https://github.com/DataDog/dd-trace-rb/actions/r…
dd-octo-sts[bot] 7e7f47e
Address review feedback
Strech b918575
Rename with_* methods to copy
Strech 2dda3a9
Update system-tests reference
Strech 50b640e
Merge branch 'master' into appsec-69389-add-ai-guard-sensetive-data-r…
Strech 03f8e22
[🤖] Lock Dependency: https://github.com/DataDog/dd-trace-rb/actions/r…
dd-octo-sts[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
2 changes: 1 addition & 1 deletion
2
gemfiles/ruby_3.1_ruby_llm_1.gemfile → gemfiles/ruby_3.1_ruby_llm_min.gemfile
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This ref is not merged yet on system-tests. We had a case yesterday of merging such a thing by accident, causing the CI to fail on every system-tests PR. Please revert this or merge it on system-tests before merging this here. There will be a job to prevent this in the future but it's not merged yet:
DataDog/system-tests#7874
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a dead-lock, this PR heavily changing AI Guard interface and gem requirements due to non GA status, ST will be never green on
prodenvironment because I have to change weblogs, hence I can't merge it