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

http_check fails to load cert path in alpine image #1634

Closed
a200462790 opened this issue May 30, 2018 · 1 comment
Closed

http_check fails to load cert path in alpine image #1634

a200462790 opened this issue May 30, 2018 · 1 comment

Comments

@a200462790
Copy link

a200462790 commented May 30, 2018

Output of the info page

http_check (2.0.1)
    ------------------
      - initialize check class [ERROR]: OSError('Unable to locate `embedded` directory. Please specify ca_certs in your http yaml configuration file.',)
  

Additional environment details (Operating System, Cloud provider, etc):

Steps to reproduce the issue:

  1. Create http_check.yml in conf.d directory:
init_config: ~
instances:
  - name: github
    url: https://status.github.com/api/status.json
    content_match: 'major'
    reverse_content_match: true
    ca_certs: /etc/ssl/certs/ca-certificates.crt
    disable_ssl_validation: true
    skip_event: true
    tags:
      - url:https://status.github.com/api/status.json
      - service:github
  1. Build below docker file(using your own api key)
FROM datadog/docker-dd-agent:latest-alpine
ENV API_KEY=<API_KEY>
COPY conf.d /conf.d
  1. Run the docker image

Describe the results you received:

    initialize check class [ERROR]: OSError('Unable to locate embedded directory. Please specify ca_certs in your http yaml configuration file.',)

Describe the results you expected:
I expected the http_check to not try to load the default certs directory(inside embedded) if the ca_certs is set or if disable_ssl_validation is set.

Additional information you deem important (e.g. issue happens only occasionally):
This only happens with the alpine image.

@masci
Copy link
Contributor

masci commented May 31, 2018

Hi @a200462790 thanks for reporting.

This doesn't seem related to the way the http_check works, closing as a duplicate of DataDog/docker-dd-agent#307

@masci masci closed this as completed May 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants