Repository navigation
Redact journal - #1745
Merged
Merged
Redact journal#1745
Conversation
The snapshots are taken with a root session and no NACM, so they hold the running configuration with keystore secrets and password hashes. They were written 0644 in a 0755 directory, readable by any local user. Signed-off-by: Mattias Walström <lazzer@gmail.com>
The statd journal needs the same rule as copy -r, dropping every node tagged nacm:default-deny-all plus the ietf-system user password. Keep one implementation in libsrx, as lydx_redact(). Signed-off-by: Mattias Walström <lazzer@gmail.com>
The snapshots are for post-mortem and trend analysis and are kept for up to a year, so keystore keys and password hashes have no business in them. Redact them with lydx_redact(), the same rule copy -r uses. Signed-off-by: Mattias Walström <lazzer@gmail.com>
troglobit
approved these changes
Oct 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Checklist
Tick relevant boxes, this PR is-a or has-a: