Skip to content

fix(ng-dev): redact URL credentials from child process logs and errors#3760

Open
josephperrott wants to merge 2 commits into
angular:mainfrom
josephperrott:fix/sec-childprocess-sanitize-03587b8b
Open

fix(ng-dev): redact URL credentials from child process logs and errors#3760
josephperrott wants to merge 2 commits into
angular:mainfrom
josephperrott:fix/sec-childprocess-sanitize-03587b8b

Conversation

@josephperrott
Copy link
Copy Markdown
Member

Addresses 03587b8b. Redacts URL credentials from child process execution logs and thrown errors to prevent token exposure.

@josephperrott josephperrott added the target: patch This PR is targeted for the next patch release label Jun 6, 2026
@josephperrott josephperrott requested a review from alan-agius4 June 6, 2026 02:20
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces URL credential sanitization for child process command logging and error messages to prevent leaking sensitive tokens, and adds corresponding unit tests. The review feedback correctly identifies a bug in the sanitization regular expression that causes false positives on URLs with @ in their path (such as scoped npm packages) and provides a code suggestion to fix it.

Comment thread ng-dev/utils/child-process.ts Outdated
@josephperrott josephperrott force-pushed the fix/sec-childprocess-sanitize-03587b8b branch 2 times, most recently from 02edc40 to 2bb04d0 Compare June 6, 2026 02:30
@josephperrott josephperrott added action: merge The PR is ready for merge by the caretaker and removed target: patch This PR is targeted for the next patch release labels Jun 6, 2026
@josephperrott josephperrott force-pushed the fix/sec-childprocess-sanitize-03587b8b branch from 2bb04d0 to 10ffcf1 Compare June 6, 2026 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action: merge The PR is ready for merge by the caretaker

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant