Skip to content
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

fix: restore using latest secret state #69

Merged
merged 1 commit into from
Mar 19, 2024

Conversation

MSala
Copy link
Contributor

@MSala MSala commented Mar 13, 2024

These changes are fixing the problem with original object being left mutated after restore execution. It was happening after more than one usage of redact function.
Compiled restore function now always pointing to the latest "secret" state.
Fixed test "does not increment secret size". Previously it was always testing the origin "secret" object, not the restored one, so in general generating false positive.
Extended test: "restores multi nested wildcard values" to cover multiple redact-restore executions.

Copy link
Contributor

@roggervalf roggervalf left a comment

Choose a reason for hiding this comment

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

Thank you, from my side lgtm

Copy link
Collaborator

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

lgtm

@mcollina mcollina merged commit f3e9f13 into davidmarkclements:main Mar 19, 2024
7 checks passed
renovate bot referenced this pull request in valora-inc/logging Mar 22, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [fast-redact](https://togithub.com/davidmarkclements/fast-redact) |
[`^3.4.0` ->
`^3.4.1`](https://renovatebot.com/diffs/npm/fast-redact/3.4.0/3.4.1) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/fast-redact/3.4.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/fast-redact/3.4.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/fast-redact/3.4.0/3.4.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/fast-redact/3.4.0/3.4.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>davidmarkclements/fast-redact (fast-redact)</summary>

###
[`v3.4.1`](https://togithub.com/davidmarkclements/fast-redact/releases/tag/v3.4.1)

[Compare
Source](https://togithub.com/davidmarkclements/fast-redact/compare/v3.4.0...v3.4.1)

##### What's Changed

- fix: restore using latest secret state by
[@&#8203;MSala](https://togithub.com/MSala) in
[https://github.com/davidmarkclements/fast-redact/pull/69](https://togithub.com/davidmarkclements/fast-redact/pull/69)

##### New Contributors

- [@&#8203;MSala](https://togithub.com/MSala) made their first
contribution in
[https://github.com/davidmarkclements/fast-redact/pull/69](https://togithub.com/davidmarkclements/fast-redact/pull/69)

**Full Changelog**:
davidmarkclements/fast-redact@v3.4.0...v3.4.1

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - "after 8:00 before 23:00 every weekday except on Friday" in
timezone UTC.

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/valora-inc/logging).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yNjEuMCIsInVwZGF0ZWRJblZlciI6IjM3LjI2MS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
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.

3 participants