-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Added a New Provider Component - Google Secrets Provider #39790
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
Google Secret Provider
|
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.
I'm not convinced googlesecretsprovider
is the right name. I feel like we should refer to it by the exact GCP service being used, i.e. googlesecretmanagerprovider
.
Moving to draft, please address CI and review, and mark ready to review when done. |
93610fd
to
5c63ff3
Compare
39cd1f4
to
b5182fc
Compare
Adding |
…bility (#39956) <!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> #### Description The full implementation of the component is added in : #39790. This PR marks the component "alpha" stability compliant. <!-- Issue number (e.g. #1234) or full URL to issue, if applicable. --> #### Link to tracking issue #39665 <!--Describe what testing was performed and which tests were added.--> #### Testing [Unit tests](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/confmap/provider/googlesecretmanagerprovider/provider_test.go) <!--Describe the documentation added.--> #### Documentation [README](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/confmap/provider/googlesecretmanagerprovider/README.md) <!--Please delete paragraphs that you did not use before submitting.--> --------- Co-authored-by: Braydon Kains <[email protected]>
…try#39790) #### Description This PR adds the full implementation of the Google Secret Provider component. It allows users to securely reference secrets in Otel configurations. This is achieved by replacing plaintext secrets with placeholders in config files; the actual secrets are then retrieved dynamically from Google Secret Manager during the Otel Collector initialization. #### Link to tracking issue open-telemetry#39665 #### Testing Unit tests are added for the `Retrieve` method, and cover the following scenarios: 1. Given an identifier that matches a secret entry stored in Google Secret Manager, Retrieve() returns the corresponding plaintext secret. 2. Given an identifier that does not match any stored secret entry in Google Secret Manager, Retrieve() returns an error. 3. Given an identifier with an invalid scheme, `Retrieve()` should return an error. 4. Given an identifier with invalid opaque_data, `Retrieve()` should return an error. #### Documentation README.md --------- Co-authored-by: Braydon Kains <[email protected]>
…bility (open-telemetry#39956) <!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> #### Description The full implementation of the component is added in : open-telemetry#39790. This PR marks the component "alpha" stability compliant. <!-- Issue number (e.g. open-telemetry#1234) or full URL to issue, if applicable. --> #### Link to tracking issue open-telemetry#39665 <!--Describe what testing was performed and which tests were added.--> #### Testing [Unit tests](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/confmap/provider/googlesecretmanagerprovider/provider_test.go) <!--Describe the documentation added.--> #### Documentation [README](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/confmap/provider/googlesecretmanagerprovider/README.md) <!--Please delete paragraphs that you did not use before submitting.--> --------- Co-authored-by: Braydon Kains <[email protected]>
Description
This PR adds the full implementation of the Google Secret Provider component. It allows users to securely reference secrets in Otel configurations. This is achieved by replacing plaintext secrets with placeholders in config files; the actual secrets are then retrieved dynamically from Google Secret Manager during the Otel Collector initialization.
Link to tracking issue
#39665
Testing
Unit tests are added for the
Retrieve
method, and cover the following scenarios:Retrieve()
should return an error.Retrieve()
should return an error.Documentation
README.md