config: allow setting default auth via YAML using `default: true`
Adds support for marking an SNMP auth block as the default by specifying default: true in the YAML configuration. When present, the marked auth is assigned to DefaultAuth and used wherever a default is needed. If multiple auths are marked as default, an error is returned.
This makes the default behavior configurable without code changes.
Hello @nehro-em ,
in order to get this PR merged you'd need to sign the commit - once thats done i'm happy to approve the changes and merge it .
Thx for your contribution!
Merge to branch main
DCO still missing: https://github.com/prometheus/snmp_exporter/pull/1454/checks?check_run_id=46840852645
This needs a DCO sign-off. You can use git commit -s --amend to add it.