Skip to content

🐛 [CORE] Mask proxy credentials in registry and trigger configurations (GHSA-j72x-w22v-5h72) - #1521

Merged
fmartinou merged 1 commit into
mainfrom
fix/ghsa-j72x-w22v-5h72_mask_proxy_passwords
Nov 1, 2026
Merged

fmartinou merged 1 commit into
mainfrom
fix/ghsa-j72x-w22v-5h72_mask_proxy_passwords

Conversation

@fmartinou

Copy link
Copy Markdown
Collaborator

Problem

Read-only users and API consumers inspecting registry or trigger configurations could see unmasked proxy credentials (specifically proxy passwords).

  1. Registry.ts: maskConfiguration() only masked webhook.token and omitted proxy.
  2. DockerRegistryV2.ts: maskSensitiveFields() omitted proxy.
  3. Custom.ts: maskConfiguration() called maskSensitiveFields(), bypassing proxy masking for Custom registries and subclasses (Hub, Gitea, Forgejo, Codeberg).
  4. Http.ts: maskConfiguration() only masked auth.password and auth.bearer, omitting proxy.
  5. Telegram.ts: maintained an unnecessary duplicate local maskProxy implementation instead of sharing the core helper from app/http/proxy.

Solution

  • app/registries/Registry.ts: in maskConfiguration(), call maskProxy(masked.proxy) if masked.proxy is defined.
  • app/registries/DockerRegistryV2.ts: in maskSensitiveFields(), call maskProxy(masked.proxy) if masked.proxy is defined.
  • app/registries/providers/custom/Custom.ts: simplify maskConfiguration() to call super.maskConfiguration(), ensuring proxy masking is never bypassed for Custom, Hub, Gitea, Forgejo, and Codeberg.
  • app/triggers/providers/http/Http.ts: in maskConfiguration(), mask masked.proxy via maskProxy().
  • app/triggers/providers/telegram/Telegram.ts: remove duplicate local maskProxy function and import maskProxy from ../../../http/proxy.
  • Add unit test coverage in Registry.test.ts, DockerRegistryV2.test.ts, Custom.test.ts, Hub.test.ts, and Http.test.ts verifying proxy password masking (http://user:***@host:port/).
  • Document changes in website/docs/changelog/next.md.

References

@fmartinou
fmartinou merged commit 5f50e05 into main Nov 1, 2026
22 checks passed
@fmartinou
fmartinou deleted the fix/ghsa-j72x-w22v-5h72_mask_proxy_passwords branch November 1, 2026 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant