-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Add support for TLS insecure option in opentelemetry oltp exporter #31941
Comments
/cc @brunobat (opentelemetry), @radcortez (opentelemetry) |
What would be the expected behaviour. |
hello, the expected behavior would be to support currently, if I do not add the target certificate into the truststore, I get:
the behavior is the same even if I set:
the only way to get the spans to get sent to the apm is to configure the truststore |
I understand now. Makes sense to me. |
@geoand would you like to pick this one up? |
I'll have a look next week |
I think it will be pretty easy as we completely control the export process now (since we have removed the OkHttp exporter) |
sure. give me a bit of time |
👌 |
Take `quarkus.tls.trust-all` into account in Otlp export
@geoand I confirm this works, however |
Thanks for checking! You can override test specific properties, no? |
when I start the app I get:
when I add the |
How are you setting the property in the first case? |
on the disk, specifically in |
Ah okay, I see. You would need to use a TestProfile to set the build time properties you need |
I added this to
I start the app with:
I see:
is that what you meant by |
https://quarkus.io/guides/getting-started-testing#writing-a-profile is what
I have in mind
…On Thu, Aug 17, 2023, 15:48 Vincent Sevel ***@***.***> wrote:
I added this to src/main/resources/application.yaml:
"%mytest":
quarkus:
tls:
trust-all: true
I start the app with:
java -Dquarkus.profile=mytest ...
I see:
2023-08-17 14:47:17,030 WARN [io.qua.run.con.ConfigRecorder] (main) Build time property cannot be changed at runtime:
- quarkus.tls.trust-all is set to 'true' but it is build time fixed to 'false'. Did you change the property quarkus.tls.trust-all after building the application?
...
2023-08-17 14:47:18,327 INFO [io.quarkus] (main) Profile mytest activated.
...
2023-08-17 14:47:43,110 SEVERE [io.qua.ope.run.exp.otl.VertxGrpcExporter] (vert.x-eventloop-thread-1) Failed to export spans. The request could not be executed. Full error message: Failed to create SSL connection
is that what you meant by TestProfile?
—
Reply to this email directly, view it on GitHub
<#31941 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABBMDP6E6TLPJKHMKJAKCBDXVYHJPANCNFSM6AAAAAAV6PEGXQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
hmmm |
Sure yeah, we can have a dedicated property |
I can do that next week when I can get from PTO |
One question for @cescoffier though: What was the reason we chose to make |
Good question. I think it can be revisited. |
Note that you need to know whether you plan to use ssl at build time as the native compilation paths are very different. |
That makes sense, but does the |
|
Right, that's why I asked before adding a specific property for OTel |
Description
It would be convenient to support for development:
Implementation ideas
No response
The text was updated successfully, but these errors were encountered: