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

[generate_dump] Improve generate_dump script to remove secrets from golden_config_db.json and old_config files #3390

Merged
merged 1 commit into from
Jul 4, 2024

Conversation

liuh-80
Copy link
Contributor

@liuh-80 liuh-80 commented Jul 1, 2024

Improve generate_dump script to remove secrets from golden_config_db.json and old_config files

What I did

Improve generate_dump script to remove secrets from golden_config_db.json and old_config files

How I did it

Remove golden_config_db.json and old_config files.

How to verify it

Run 'show techsupport' command and check secrets removed from dump files.
Work item tracking
  • Microsoft ADO: 28582108

Previous command output (if the output of a command-line utility has changed)

New command output (if the output of a command-line utility has changed)

@liuh-80 liuh-80 marked this pull request as ready for review July 1, 2024 07:33
@liuh-80 liuh-80 requested review from saiarcot895 and ganglyu July 1, 2024 07:33
# Remove secret from /etc/sonic/golden_config_db.json
remove_secret_from_config_db_dump_file $dumppath/etc/sonic/golden_config_db.json

# Remove secret from /etc/sonic/old_config/
Copy link
Contributor

Choose a reason for hiding this comment

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

No actual work here?

Copy link
Contributor Author

@liuh-80 liuh-80 Jul 3, 2024

Choose a reason for hiding this comment

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

No, this comments is for next 3 lines of code:

Remove snmp community string from old_config/snmp.yml
Remove secret from /etc/sonic/config_db.json
Remove secret from /etc/sonic/golden_config_db.json

@liuh-80 liuh-80 merged commit fb2e5cd into sonic-net:master Jul 4, 2024
7 checks passed
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