-
Notifications
You must be signed in to change notification settings - Fork 24
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
feat: key management support #496
Conversation
6ed858a
to
97e086b
Compare
HONEYCOMB_DATASET: testacc | ||
HONEYCOMB_ENVIRONMENT_ID: hcaen_01j1d7t02zf7wgw7q89z3t60vf # TODO: remove and do a lookup or create in tests |
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.
will drop these (here and below) when the v2client has Environments API support
97e086b
to
9bf24f0
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #496 +/- ##
==========================================
- Coverage 82.62% 80.36% -2.27%
==========================================
Files 63 67 +4
Lines 4478 5174 +696
==========================================
+ Hits 3700 4158 +458
- Misses 607 753 +146
- Partials 171 263 +92 ☔ View full report in Codecov by Sentry. |
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.
🎉 🎉 🎉
Adds V2 API client support and a new V2 API resource
honeycombio_api_key
to the provider. Includes docs updates for the new provider-level config. options as well as the new resource.Left a few follow-up "TODOs" (and removed use of
context.TODO()
so I could find the actual TODOs more easily 🙃).This is larger than I'd initially suspected: allowing the provider to work "v1+v2", "v1 only", or "v2 only" required a fair bit of initialization plumbing updates but I have tried to cover that off with test cases.