Skip to content

Revert usage of RedactSensitiveFields - #6179

Open
andrewnester wants to merge 3 commits into
mainfrom
fix/revert-redact-sensitive
Open

Revert usage of RedactSensitiveFields#6179
andrewnester wants to merge 3 commits into
mainfrom
fix/revert-redact-sensitive

Conversation

@andrewnester

Copy link
Copy Markdown
Contributor

Changes

Revert usage of RedactSensitiveFields

Why

RedactSensitiveFields (added in #5896, merged 2026-07-22) deep-clones the state struct field-by-field via reflection, then marshals the clone. The clone skips unexported fields (libs/structs/structwalk/redact.go:44-46), and duration.Duration stores its whole value in an unexported field while marshalling through a custom MarshalJSON
So on main, every duration written to the direct-engine state file is silently corrupted to 0s.

Tests

Golden fiels updated

Comment thread .nextchanges/bundles/revert-redact-sensitive.md Outdated
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.

2 participants