Skip to content

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

Merged
josephperrott merged 1 commit into
angular:mainfrom
josephperrott:fix/sec-childprocess-sanitize-03587b8b
Jun 8, 2026
Merged

fix(ng-dev): redact URL credentials from child process logs and errors#3760
josephperrott merged 1 commit 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

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

Copy link
Copy Markdown

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
@josephperrott josephperrott force-pushed the fix/sec-childprocess-sanitize-03587b8b branch 2 times, most recently from 5f51a9a to ade1c90 Compare June 8, 2026 14:25
@josephperrott josephperrott force-pushed the fix/sec-childprocess-sanitize-03587b8b branch from ade1c90 to 33bda46 Compare June 8, 2026 14:35
@josephperrott josephperrott merged commit 8840eea into angular:main Jun 8, 2026
16 checks passed
@josephperrott

Copy link
Copy Markdown
Member Author

This PR was merged into the repository. The changes were merged into the following branches:

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.

2 participants