This message was deleted.
s
This message was deleted.
s
but the agent seem to completely ignore the config
What the agent are you referring here? The java agent? Or did you enable some extension from collector config?
v
Yes the java agent, I followed this documentation https://signoz.io/docs/instrumentation/java/ and it works but now I want to secure the communication between the java agent and signoz. But it's not entirely clear to me how to do it.
p
Hey @Valentin Baert 👋 OpenTelemetry's authentication examples for oidc or oauth2client should have worked. https://opentelemetry.io/docs/collector/configuration/#authentication Alternative, you could use Basic Auth extension for OTLP http, as we have tested the setup and it works as expected.
Config would look something like this:
Copy code
otlp:
    protocols:
      grpc:
      http:
        auth:
          authenticator: basicauth
        cors:
          allowed_origins:
            - <http://localhost>:*
...
extensions:
  health_check: {}
  zpages: {}
  basicauth:
    htpasswd: 
      inline: |
        ${BASIC_AUTH_USERNAME}:${BASIC_AUTH_PASSWORD}

service:
  extensions: [health_check, zpages, basicauth]
while, you would have to include those environment variables for OTel collector:
Copy code
environment:
      - BASIC_AUTH_USERNAME=signoz
      - BASIC_AUTH_PASSWORD=password