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

Fix Slack Consumer #280

Merged
merged 2 commits into from
Jul 31, 2024
Merged

Fix Slack Consumer #280

merged 2 commits into from
Jul 31, 2024

Conversation

flowirtz
Copy link
Contributor

@flowirtz flowirtz commented Jul 30, 2024

This PR fixes the Slack consumer. It previously failed to make requests to the Slack API.

Issue Description

Running the Slack consumer as part of a pipeline, it failed with the below error message:

could not push metrics: Post "[https://hooks.slack.com/services/XXX/XXX/XXX](https://hooks.slack.com/services/XXX/XXX/XXX/)": tls: failed to verify certificate: x509: certificate signed by unknown authority

This is because the default docker image uses scratch as it's base, which doesn't come with CAs.
We are resolving that by instead using an alpine image as the base, with added ca-certificates.

image

@flowirtz flowirtz self-assigned this Jul 30, 2024
@flowirtz flowirtz marked this pull request as ready for review July 30, 2024 14:21
@flowirtz flowirtz force-pushed the fix-slack-consumer branch from d36d01c to bebfb0f Compare July 30, 2024 15:55
@flowirtz flowirtz changed the title Fix slack consumer Fix Slack Consumer Jul 30, 2024
@flowirtz flowirtz force-pushed the fix-slack-consumer branch 2 times, most recently from 1e28892 to 6bdf653 Compare July 31, 2024 10:20
@flowirtz flowirtz force-pushed the fix-slack-consumer branch from 6bdf653 to e476b06 Compare July 31, 2024 10:25
@flowirtz flowirtz merged commit 9671718 into main Jul 31, 2024
3 checks passed
@flowirtz flowirtz deleted the fix-slack-consumer branch July 31, 2024 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants