Skip to content

[extension/opamp] Load TLS config only for wss and https endpoints #39516

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

Merged

Conversation

johannaojeling
Copy link
Contributor

Description

Loads TLS config for the OpAMP Extension's OpAMP agent only if the server::ws::endpoint/server::http::endpoint config is set to a URL with scheme wss/https.

Link to tracking issue

Fixes #39515

Testing

@atoulme atoulme merged commit 6fccc5e into open-telemetry:main Apr 21, 2025
173 checks passed
@github-actions github-actions bot added this to the next release milestone Apr 21, 2025
akshays-19 pushed a commit to akshays-19/opentelemetry-collector-contrib that referenced this pull request Apr 23, 2025
…pen-telemetry#39516)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
Loads TLS config for the OpAMP Extension's OpAMP agent only if the
`server::ws::endpoint`/`server::http::endpoint` config is set to a URL
with scheme `wss`/`https`.

<!-- Issue number (e.g. open-telemetry#1234) or full URL to issue, if applicable. -->
#### Link to tracking issue
Fixes
open-telemetry#39515

<!--Describe what testing was performed and which tests were added.-->
#### Testing
- Added unit tests
- Tested manually with the steps described in **Steps to Reproduce** in
open-telemetry#39515

<!--Please delete paragraphs that you did not use before submitting.-->
Fiery-Fenix pushed a commit to Fiery-Fenix/opentelemetry-collector-contrib that referenced this pull request Apr 24, 2025
…pen-telemetry#39516)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
Loads TLS config for the OpAMP Extension's OpAMP agent only if the
`server::ws::endpoint`/`server::http::endpoint` config is set to a URL
with scheme `wss`/`https`.

<!-- Issue number (e.g. open-telemetry#1234) or full URL to issue, if applicable. -->
#### Link to tracking issue
Fixes
open-telemetry#39515

<!--Describe what testing was performed and which tests were added.-->
#### Testing
- Added unit tests
- Tested manually with the steps described in **Steps to Reproduce** in
open-telemetry#39515

<!--Please delete paragraphs that you did not use before submitting.-->
@johannaojeling johannaojeling deleted the opampextension-tls-conditional branch May 1, 2025 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[extension/opamp] TLS config loaded even for insecure schemes (ws/http)
3 participants