Commit Graph

19 Commits

Author SHA1 Message Date
Jamie Tanna 54384ff3e5 fix(util/host-rules): sanitise TLS credential fields in hostRules (#45119)
* chore(util): note that `httpsCertificate` and `httpsCertificateAuthority` aren't secret

Although we're currently treating them as such, they're not technically
unsafe to appear in the logs, as a Certificate (and the authority) are
public.

* fix(util/host-rules): sanitise TLS credential fields in hostRules

We previously noted that the `httpsPrivateKey`, `httpsCertificate`, and
`httpsCertificateAuthority` fields would be marked as confidential, but
we weren't correctly sanitising them.

We can make sure that these fields are correctly flagged as secret
("confidential") and that they need to be sanitised when referenced.

Although the `httpsCertificate` and `httpsCertificateAuthority` aren't
secret, we can keep them sanitised for consistency with how we've
currently documented them as being sanitised.

Co-authored-by: Claude Sonnet 5 <jamie.tanna+claude-code@mend.io>

* test(util/host-rules): ensure that all secret fields are marked as secret

As a way to make sure that new fields being added `HostRule`s are
considered as to whether the field should be marked as secret
("confidential") or not, we can add a test (and a compile-time
exhaustive check) to validate that `redactedFields` and
`confidentialFields` are kept in sync.

Co-authored-by: Claude Sonnet 5 <jamie.tanna+claude-code@mend.io>

---------

Co-authored-by: Claude Sonnet 5 <jamie.tanna+claude-code@mend.io>
2026-08-06 15:15:54 +00:00
Sergei Zharinov 930cf6633c refactor: Rewrite imports with .ts extensions (#40700)
fix: Additional vi.mock path corrections and prettier formatting
2026-01-26 22:48:17 +00:00
RahulGautamSingh 76f911041a refactor: use named exports (#39196)
* use named exports

* fix test

* add missing imnport

* fix prettier
2025-11-10 12:00:35 +00:00
Sergei Zharinov b69416ce17 refactor(prettier): Force trailing commas (#25631) 2023-11-07 15:50:29 +00:00
Yun Lai 4670e3b7f9 fix: add httpsCertificate, httpsPrivateKey and httpsCertificateAuthority into redactedFields (#25013) 2023-10-04 03:55:08 +00:00
Sergei Zharinov 4eb11d1120 fix: Sanitize utils coverage (#22995) 2023-06-27 06:53:08 +00:00
Rhys Arkins c14e4f79e4 fix(logging): better sanitize keys (#22533) 2023-06-01 18:26:50 +00:00
Michael Kriese e8808f33aa refactor(platform:bitbucket): strict null checks (#15196)
* refactor(platform:bitbucket): strict null checks

* refactor: wrong change
2022-04-20 20:55:20 +00:00
Rhys Arkins 90e5182bd4 refactor: split global/repo sanitizations (#14635) 2022-03-13 10:27:21 +00:00
Rhys Arkins 69c9c98cd6 fix: sanitize base64 of all secrets (#14423) 2022-02-28 17:07:09 +00:00
Rhys Arkins 0bad22b254 chore: rename sanitize functions for better searchability (#13826) 2022-01-26 10:57:21 +01:00
Rhys Arkins cdc083f40f feat(config): privateKeyOld (#11653) 2021-09-10 12:47:33 +02:00
Rhys Arkins 2fe494616d feat(yarn): remove yarnrc config support (#10114)
Removes support for "yarnrc" configuration option.

Closes #10113

BREAKING CHANGE: It is no longer supported to configure a "yarnrc" override in Renovate config
2021-08-17 07:57:45 +02:00
Rhys Arkins 4f0714677c fix(github): sanitize with and without x-access-token 2020-08-24 15:43:58 +02:00
Michael Kriese 2515a89dab fix(logging): sanitize known token (#5917) 2020-05-16 12:35:41 +02:00
renovate[bot] 4f59b62da4 chore(deps): update dependency prettier to v2 (#5952)
* chore(deps): update dependency prettier to v2

* Run prettier-fix

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Jamie Magee <jamie.magee@gmail.com>
2020-04-12 18:09:36 +02:00
Jamie Magee 5ce5ef39c1 chore(internal): disallow implicit braces (#5730) 2020-03-17 12:15:22 +01:00
Rhys Arkins 8d0aa39920 refactor(eslint): '@typescript-eslint/explicit-function-return-type' improvements 2019-11-24 08:43:24 +01:00
Michael Kriese 49325143bd feat(sanitize): refactor (#4479) 2019-09-12 12:48:31 +02:00