Skip to content

Add secret detection support for SNMP traps#3799

Merged
ytti merged 2 commits intoytti:masterfrom
nicolasberens:vyos_snmp_traps
Apr 16, 2026
Merged

Add secret detection support for SNMP traps#3799
ytti merged 2 commits intoytti:masterfrom
nicolasberens:vyos_snmp_traps

Conversation

@nicolasberens
Copy link
Copy Markdown
Contributor

@nicolasberens nicolasberens commented Apr 14, 2026

Pre-Request Checklist

  • Passes rubocop code analysis (try rubocop --auto-correct)
  • Tests added or adapted (try rake test)
  • Changes are reflected in the documentation
  • User-visible changes appended to CHANGELOG.md

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.

@ytti
Copy link
Copy Markdown
Owner

ytti commented Apr 14, 2026

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.

@nicolasberens
Copy link
Copy Markdown
Contributor Author

Updated Changelog.

I added the tests in the first commit.

@ytti
Copy link
Copy Markdown
Owner

ytti commented Apr 16, 2026

What I meant, is testing for feature you added:
https://github.com/ytti/oxidized/blob/master/docs/ModelUnitTests.md#secrets

This is not mandatory, just if you want to ensure no regression.

@nicolasberens
Copy link
Copy Markdown
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"

@ytti
Copy link
Copy Markdown
Owner

ytti commented Apr 16, 2026

Yes, I think you are right. Less precision in our testing, but should stop regression.

@ytti ytti merged commit 9cd62c4 into ytti:master Apr 16, 2026
8 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