Skip to content

Conversation

sdil
Copy link

@sdil sdil commented May 29, 2025

Summary

We have a use case where we want to monitor self-signed cert served from MTLS endpoint. Currently, Gatus will show error tls: failed to verify certificate: x509: certificate signed by unknown authority

With this change, I'm able to specify my own CA and the check is passing.

Checklist

  • Tested and/or added tests to validate that the changes work as intended, if applicable.
  • Updated documentation in README.md, if applicable.

@github-actions github-actions bot added the feature New feature or request label May 29, 2025
@sdil sdil marked this pull request as draft May 29, 2025 06:46
@sdil sdil marked this pull request as ready for review May 29, 2025 06:50
tls:
certificate-file: /path/to/user_cert.pem
private-key-file: /path/to/user_key.pem
ca-file: /path/to/root-ca.pem
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you specify in the table that ca-file is optional for non-self-signed certificate authorities, and a similar comment in the yaml example next to ca-file: /path/to/root-ca.pem?

For verbosity, I want devs to keep their configuration as simple as possible, and by adding these comments, I hope it'll make it more clear that this isn't required unless it's an unrecognized/self-signed CA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants