-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Centralize credential redaction in src/utils/redaction.ts + channel gate tests #1711
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
Merged
Changes from all commits
Commits
Show all changes
93 commits
Select commit
Hold shift + click to select a range
de9f9b9
feat(utils): add centralized redaction utility
Gravirei d272057
refactor(Feedback): import redactSensitiveInfo from utils
Gravirei 3226635
refactor(submitTranscriptShare): import redactSensitiveInfo from utils
Gravirei 7320cc2
feat(log,debug): redact secrets in default error and debug output
Gravirei 2090098
feat(api/logging): redact error message in logAPIError
Gravirei 94bc46b
fix: resolve merge conflict from upstream sync
Gravirei 5f9aef7
fix(channelNotification): allow null in getEffectiveChannelAllowlist …
Gravirei f7ea365
feat(redaction): exclude specific token fields from redaction process
Gravirei 1a2217b
fix(redaction): lower AIza minimum length to {10,}
Gravirei bf6a9e8
fix(redaction,log): address review feedback
Gravirei fe7323f
refactor(redaction): consolidate into single module + add channel gat…
Gravirei da2138c
test(channelNotification): cover findChannelEntry multi-candidate branch
Gravirei e61492c
fix(redaction): align URL fallback regex + add path-prefix boundary c…
Gravirei 905cd37
fix(channel,redaction): restore dev-channel warning + align URL fallback
Gravirei fcb94c4
fix(redaction): widen key boundary class + tighten dev-channel comment
Gravirei 46bde41
fix(redaction,channel): address P1/P2 review findings
Gravirei 86428b3
fix(channel): apply marketplace matching to permission relays, remove…
Gravirei 36ad53f
test(dev-channel): clarify count assertion comment + add afterEach wi…
Gravirei e3229b8
fix(channel): mirror marketplace gate in permission relay + restore mock
Gravirei e239f6b
refactor(redaction): consolidate into single module + add channel gat…
Gravirei 468708e
fix(test): align malformed URL fragment expectation with preservation…
Gravirei d8a1daa
fix: address review findings P1 and P2
Gravirei be5f6db
test(relay): add plugin-kind marketplace regression tests
Gravirei e3b0651
fix: address review findings P1 and P2
Gravirei 3b43715
fix(debug): redact before JSON-stringify multiline messages
Gravirei 7da2fe4
test(debug): add end-to-end regression for multiline PEM redaction in…
Gravirei b204bcb
fix(test): preserve original process.env.DEBUG and process.argv in lo…
Gravirei ed3ffac
fix: address PR review findings P1-P3/P5-P7
Gravirei 7b73de1
fix: address CodeRabbit review findings
Gravirei 6740fc8
fix: address second review round
Gravirei b418dbb
fix: address CodeRabbit second round
Gravirei 77c54b4
fix: improve permission relay client filtering and enhance redaction …
Gravirei 8c7a0e7
fix: address third review round (P1, P2, P3)
Gravirei 4e78f8f
fix: address latest reviewer P2/P3 findings (errorLogSink redaction, …
Gravirei 019a101
fix: address reviewer P1/P2 — bracketed values and multi-word header …
Gravirei 82eca19
fix: address reviewer findings P1-P4
Gravirei be9aca7
fix: extract sanitizeError() to fix CI test fragility
Gravirei faf795f
fix: use Object.getPrototypeOf(err) instead of err as prototype in sa…
Gravirei beada5b
fix: apply key-aware redaction and fail closed on non-serializable er…
Gravirei 8ac90ee
Update src/utils/log.ts
Gravirei c6d381e
fix: redact bare auth header keys in JSON/header objects
openhands-agent dfe8a11
fix: narrow auth matching, redact nested transcript JSONL, fix channe…
Gravirei ef925aa
fix: address CodeRabbit nits — comment, hint, JSONL fallback redaction
Gravirei 0d59998
fix: key-aware malformed JSONL fallback and auth/x-auth in free-form …
Gravirei 89852e9
fix: strengthen redactJsonLines trailing rest redaction and auth test…
Gravirei 54c7245
fix: preserve non-JSON prefix in redactJsonLines fallback and redact it
Gravirei f58b2b6
fix: tighten redactJsonLines prefix test to exact output assertion
Gravirei cd4140c
fix: redact MCP log sink payloads and errorStr before writing to disk
Gravirei 5fef836
fix: address P1 findings — URL #-in-password, ;-delimited query param…
Gravirei 8ba877a
fix: update callers to match upstream/main function signatures
Gravirei 439c206
fix: address reviewer findings — OAuth mock, notice states, marketpla…
Gravirei e66466a
fix: address reviewer findings — relay gate parity and allowlist regr…
Gravirei 9ee608e
fix: redact mixed semicolon secrets in valid-URL path and route OpenA…
Gravirei 1f54149
Update src/utils/redaction.ts
Gravirei eaa9ce2
fix: add fragment-query credential regression test and correct dev-ch…
Gravirei 42166c0
fix: add port+fragment+@ fallback test and restructure dev-channels d…
Gravirei cb5f2f1
fix: registerDevChannels seam, bare-host #-in-password heuristic, and…
Gravirei d4b5000
fix: add OAuth and org-policy gate test coverage
Gravirei 6311960
fix: prefer exact server channel entries before plugin disambiguation
Gravirei e3f75d7
fix: only trust exact [REDACTED] placeholder in generic header field …
Gravirei decd516
fix: handle bare hosts in malformed URL userinfo fallback
Gravirei b207c35
fix: add relay dispatch path test for non-allowlisted plugin
Gravirei 598cb8a
fix: enhance URL redaction logic to handle valid hosts before fragment
Gravirei 4be666c
fix: refine URL redaction logic to ensure valid host checks before fr…
Gravirei b2e4742
fix: enhance redaction logic to handle embedded URLs in free-form text
Gravirei 1be0ada
fix: update redaction logic to remove user info from OpenAI base URL …
Gravirei 8226f6e
fix: ensure findChannelEntry returns undefined when no exact matches …
Gravirei 98a828e
fix: improve URL redaction logic to remove user info and ensure prope…
Gravirei 1f03e16
fix: enhance redactDiagnosticUrl to preserve query-param values and t…
Gravirei 5480f09
fix: refine redaction logic to preserve meaningful path segments and …
Gravirei 4fd38db
fix: enhance redactDiagnosticUrl to preserve literal path segments an…
Gravirei f3b85c4
fix: preserve semicolon-delimited query params during redaction
Gravirei 1804607
fix: update redaction logic to support semicolon-delimited query para…
Gravirei dbd4d6a
fix: enhance redactUrlForDisplay to handle bare hosts and improve fra…
Gravirei d6413d3
fix: enhance redactUrlForDisplay to correctly handle username-only us…
Gravirei 76534b1
fix: address privacy findings — URL redaction in jsonRedactor, base U…
Gravirei 5d9afce
fix: preserve falsey env-presence values in diagnostic redaction
Gravirei aa140ab
fix: address CodeRabbit findings — sync describe, heartbeat emitter, …
Gravirei 9ce9f28
chore: remove stray Windows path artifact
Gravirei ce7925b
fix: update redaction import path in taskReport module
Gravirei c15a60d
fix: address CodeRabbit P1-P3 findings and rebase regressions
Gravirei 05a2be1
fix: address reviewer findings — generic regex &-handling and diagnos…
Gravirei 2c2a55f
fix: address reviewer findings — URL delimiter safety, jsonRedactor #…
Gravirei adff034
fix: add Cookie/Set-Cookie semicolon-safe redaction pass, tighten &-t…
Gravirei e7a7e64
fix: COOKIE_PATTERN consume comma-joined multi-cookie values
Gravirei 1892de4
fix: address P2 findings — URL redact skip, pre-drain write promise, …
Gravirei dbeb0a3
fix: update log.test.ts expectation, add protocol-relative URL support
Gravirei ed84f9c
fix: enhance redaction for provider env-vars in URLs, preserve safe q…
Gravirei c2a81de
fix: enhance redaction for uppercase provider keys and cookie query p…
Gravirei 7fea750
fix: enhance redaction for bare Bearer and JWT tokens in sensitive info
Gravirei 1af7e58
fix: update report task test expectations for new redaction format
Gravirei 1dd6abb
fix: limit token exemption to numeric values, protect semicolon cooki…
Gravirei ac39d56
test: add tests for truncateForPreview to ensure sensitive data redac…
Gravirei 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
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.
Uh oh!
There was an error while loading. Please reload this page.