Skip to content
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

TLS Not Working in Integrations-Next #6808

Open
amartya-ac opened this issue Apr 2, 2024 · 1 comment
Open

TLS Not Working in Integrations-Next #6808

amartya-ac opened this issue Apr 2, 2024 · 1 comment
Labels
bug Something isn't working needs-attention An issue or PR has been sitting around and needs attention. variant/static Related to Grafana Agent Static.

Comments

@amartya-ac
Copy link

amartya-ac commented Apr 2, 2024

What's wrong?

There is no option to enable TLS while using integrations-next.
We are using app_agent_receiver which is available only under integrations-next, and not under regular integrations. Grafan-agent doesn't recognize http_tls_config parameters when started with integrations-next option.

Note: Same parameters are getting picked and working fine when we try any other integration and don't enable integrations-next option.

Steps to reproduce

Provide TLS config flags in server config and integration config.
Start grafana-agent with integrations-next enabled.

./grafana-agent-linux-amd64 -config.file=./grafana-agent.yaml -enable-features=integrations-next -server.http.enable-tls

System information

RHEL8

Software version

Grafan Agent v0.40.0

Configuration

server:
  log_level: debug
  http_tls_config:
    cert_file: /apps/certs/client.cer
    key_file: /apps/certs/server.key
    #client_ca_file: /apps/certs/ca.cer
    #client_auth_type: RequireAndVerifyClientCert
    #min_version: TLS13

integrations:
  http_tls_config:
    cert_file: /apps/certs/client.cer
    key_file: /apps/certs/server.key
    #client_ca_file: /apps/certs/ca.cer
    #client_auth_type: RequireAndVerifyClientCert
    #min_version: TLS13
  app_agent_receiver:
    autoscrape:
      enable: false
    instance: "app-client"
    logs_instance: "app--client"
    logs_labels:
      app: "app-client"
      kind: ""
    logs_send_timeout: "5s"

Logs

2024/04/02 08:29:11 error loading config file ./grafana-agent.yaml: yaml: unmarshal errors:
  line 1: field http_tls_config not found in type integrations.SubsystemOptions
@amartya-ac amartya-ac added the bug Something isn't working label Apr 2, 2024
@rfratto rfratto added the variant/static Related to Grafana Agent Static. label Apr 9, 2024
Copy link
Contributor

This issue has not had any activity in the past 30 days, so the needs-attention label has been added to it.
If the opened issue is a bug, check to see if a newer release fixed your issue. If it is no longer relevant, please feel free to close this issue.
The needs-attention label signals to maintainers that something has fallen through the cracks. No action is needed by you; your issue will be kept open and you do not have to respond to this comment. The label will be removed the next time this job runs if there is new activity.
Thank you for your contributions!

@github-actions github-actions bot added the needs-attention An issue or PR has been sitting around and needs attention. label May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-attention An issue or PR has been sitting around and needs attention. variant/static Related to Grafana Agent Static.
Projects
None yet
Development

No branches or pull requests

2 participants