-
Notifications
You must be signed in to change notification settings - Fork 366
Make InitPacket and InitSecurityKeys public #447
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
Conversation
Instead of duplicating some existing logic, what are your thoughts on making the InitPacket() and usmAllocateNewSalt() methods public? It would be helpful to add clear documentation explaining their intent and possibly include some test cases. |
@TimRots I think I'll modify this PR to reflect this in a few days. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the updated PR @upsampled, this looks great to me.
If we can get consensus I think some comments would be needed to describe what InitPacket
and InitSecurityKeys
are doing?
@SuperQ what do you think ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Would you mind squashing the commits to make this a more descriptive change?
this allows external packages, like the GoSNMPServer, to use gosnmp to handle encrypted sessions. Signed-off-by: Liam Kelly <liam@commdevices.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great to me. Thank you for contributing.
[](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [github.com/gosnmp/gosnmp](https://togithub.com/gosnmp/gosnmp) | require | minor | `v1.36.1` -> `v1.37.0` | --- > [!WARNING] > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Release Notes <details> <summary>gosnmp/gosnmp (github.com/gosnmp/gosnmp)</summary> ### [`v1.37.0`](https://togithub.com/gosnmp/gosnmp/releases/tag/v1.37.0) [Compare Source](https://togithub.com/gosnmp/gosnmp/compare/v1.36.1...v1.37.0) #### What's Changed - Make InitPacket and InitSecurityKeys public by [@​upsampled](https://togithub.com/upsampled) in [https://github.com/gosnmp/gosnmp/pull/447](https://togithub.com/gosnmp/gosnmp/pull/447) - Refactor TrapListener's Close Method by [@​TimRots](https://togithub.com/TimRots) in [https://github.com/gosnmp/gosnmp/pull/449](https://togithub.com/gosnmp/gosnmp/pull/449) - Allow RequestID to be shrunk if possible by [@​upsampled](https://togithub.com/upsampled) in [https://github.com/gosnmp/gosnmp/pull/451](https://togithub.com/gosnmp/gosnmp/pull/451) - Add net-snmp validation testing by [@​upsampled](https://togithub.com/upsampled) in [https://github.com/gosnmp/gosnmp/pull/452](https://togithub.com/gosnmp/gosnmp/pull/452) - Add fuzzing to CI by [@​SuperQ](https://togithub.com/SuperQ) in [https://github.com/gosnmp/gosnmp/pull/444](https://togithub.com/gosnmp/gosnmp/pull/444) - Allow global password cache to be turned off by [@​upsampled](https://togithub.com/upsampled) in [https://github.com/gosnmp/gosnmp/pull/454](https://togithub.com/gosnmp/gosnmp/pull/454) - build(deps): bump github.com/google/go-cmp from 0.5.9 to 0.6.0 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/gosnmp/gosnmp/pull/455](https://togithub.com/gosnmp/gosnmp/pull/455) #### New Contributors - [@​upsampled](https://togithub.com/upsampled) made their first contribution in [https://github.com/gosnmp/gosnmp/pull/447](https://togithub.com/gosnmp/gosnmp/pull/447) **Full Changelog**: gosnmp/gosnmp@v1.36.1...v1.37.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - "on tuesday" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/open-telemetry/opentelemetry-collector-contrib). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy41OS44IiwidXBkYXRlZEluVmVyIjoiMzcuNTkuOCIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==--> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: opentelemetrybot <107717825+opentelemetrybot@users.noreply.github.com>
This PR will allow GoSNMPServer to use mainline
gosnmp/gosnmp
again (along with some minimal changes to it).Closes: #446