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

pkg/clientconfig: fix TLS configs with only CA #7634

Commits on Aug 13, 2024

  1. pkg/clientconfig: fix TLS configs with only CA

    065e3dd introduced a regression: TLS configurations for Thanos Ruler
    query and alerting with only a CA file failed to load.
    
    For instance, the following snippet is a valid query configuration:
    
    ```
    - static_configs:
      - prometheus.example.com:9090
      scheme: https
      http_config:
        tls_config:
          ca_file: /etc/ssl/cert.pem
    ```
    
    The test fixtures (CA, certificate and key files) are copied from
    prometheus/common and are valid until 2072.
    
    Signed-off-by: Simon Pasquier <spasquie@redhat.com>
    simonpasquier committed Aug 13, 2024
    Configuration menu
    Copy the full SHA
    f23b1cd View commit details
    Browse the repository at this point in the history