You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Expose tlsconfig as a Public Package for HTTP Probes in Cloudprober #1007
Currently, the tlsconfig package in Cloudprober is located under internal/tlsconfig/proto, which prevents external Go clients from importing it. This limitation makes it difficult to configure TLS settings for HTTP probes programmatically using the Go API.
A common use case is setting ServerName and enabling/disabling certificate validation in HTTP probes via a Go client. However, due to the internal restriction, users must rely on workarounds such as JSON-based protobuf parsing or templating.
To improve usability and enable direct Go-based configuration, we request that tlsconfig be moved to a public package (e.g., github.com/cloudprober/cloudprober/tlsconfig/proto) so it can be accessed externally.
Proposed Solution:
• Move internal/tlsconfig/proto to a public package such as cloudprober/tlsconfig/proto.
• Update Cloudprober’s documentation to reflect this change.
Benefits:
• Enables direct Go-based configuration of HTTP probes with TLS.
• Reduces reliance on JSON workarounds.
• Improves extensibility for Cloudprober users integrating it into Go applications.
Activity
manugarg commentedon Feb 14, 2025
@kssahazeer Can you please explain what exactly you're trying to do?
Which Go API?
kssahazeer commentedon Feb 14, 2025
@manugarg this is how I am trying to add a probe to cloudprober, not sure if this is the best practice, need to write service in golang