Outdated OTEL dependencies prevent import
nico151999 opened this issue · 0 comments
Preflight checklist
- I could not find a solution in the existing issues, docs, nor discussions.
- I agree to follow this project's Code of Conduct.
- I have read and am following this repository's Contribution Guidelines.
- I have joined the Ory Community Slack.
- I am signed up to the Ory Security Patch Newsletter.
Ory Network Project
No response
Describe the bug
The open telemetry libraries have changed their folder structure over time and consequently the packages one needs to import. Oathkeeper offers a gRPC middleware that one can only use if ones does not depend on newer open telemetry packages with a different folder structure. The outdated dependencies keep one from importing oathkeeper in such projects. I thought about implementing a connect-go middleware based on the gRPC implementation so that I can use oathkeeper in my private connect-go services directly without downgrading my OTEL dependencies or hosting a dedicated instance of oathkeeper.
Reproducing the bug
Start a new Golang module and import current versions of open telemetry. Then, import oathkeeper, too. You will get an error due to the different folder structure of the packages in the different OTEL module versions.
Relevant log output
No response
Relevant configuration
No response
Version
v0.40.6
On which operating system are you observing this issue?
Linux
In which environment are you deploying?
Kubernetes with Helm
Additional Context
My connect-go microservices are deployed to a Kubernetes cluster but the oathkeeper should become part of them. As I intend not to use a dedicated Oathkeeper instance I am currently not using the Oathkeeper Helm chart but I would use it as a fallback if you do not consider updating the OTEL dependencies. UPDATE: this fallback is not an option since a dedicated Oathkeeper instance cannot handle gRPC traffic.