Add secret detection support for SNMP traps#3799
Merged
ytti merged 2 commits intoytti:masterfrom Apr 16, 2026
Merged
Conversation
Owner
|
Can you update changelog also please. Additionally, if you wish, you can add unit test for the secret, so that there won't be regression. |
Contributor
Author
|
Updated Changelog. I added the tests in the first commit. |
Owner
|
What I meant, is testing for feature you added: This is not mandatory, just if you want to ensure no regression. |
Contributor
Author
|
Oh, maybe i am understanding this wrong. I thought that this is already covered by: https://github.com/ytti/oxidized/blob/master/spec/model/data/vyos%23Supermicro_1.4.3%23secret.yaml#L2 since it uses the same "secret" |
Owner
|
Yes, I think you are right. Less precision in our testing, but should stop regression. |
1 task
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.
Pre-Request Checklist
rubocop --auto-correct)rake test)Description
Closes Issue #3793
This Change adds support to detect SNMP community strings in the Vyos config.
It also extends the tests so this regression will get caught in the future.