1
0
mirror of https://github.com/ribbybibby/ssl_exporter.git synced 2025-07-15 23:54:18 +02:00
Commit Graph

153 Commits

Author SHA1 Message Date
43dee906c6 Support TLS renegotiation (#83)
* Support TLS renegotiation

* Bump version

* Revert version bump

* Extend TLSConfig with renegotiation support

* Update config/config.go - comment formatting

Co-authored-by: Rob Best <robertbest89@gmail.com>

* add dedicated renegotiation example

* Create local NewTLSConfig in order to incorporate local extentions

* go mod tidy

* Move TLS renegotiation parsing into UnmarshalYAML

Co-authored-by: Rob Best <robertbest89@gmail.com>
2021-12-09 08:34:59 +00:00
78306b97c9 actions: push to Docker Hub 2021-09-11 13:06:47 +01:00
08d9a665b6 Release 2.3.1 v2.3.1 2021-08-23 17:44:15 +01:00
a94845ae5d Add support for postgresql protocol (#77)
With postgresql to initiate SSL-encrypted connection specific combination
of bytes must be sent to the server.

Message flow is described on following page
https://www.postgresql.org/docs/13/protocol-flow.html#id-1.10.5.7.11

And SSLRequest message format is described on
https://www.postgresql.org/docs/13/protocol-message-formats.html

The value of SSLRequest message becomes to bytes that is used in the code
2021-08-23 08:39:40 +01:00
ef1a35d69f Update dependencies (#76)
* Update dependencies

Fixes #75

* Remove vendor directory
2021-08-07 18:58:33 +01:00
4aaa67e80a Release 2.2.1 v2.2.1 2021-06-23 17:28:29 +01:00
83f01274fc Move to github.com/prometheus/common/promlog for logging (#71)
* Move to yaml.v3 everywhere

* Switch to github.com/prometheus/common/promlog for logging
2021-06-23 17:22:22 +01:00
d5cbd64f94 Update README.md
- Remove TOC (Github provides one)
- Add quicker links at the top of the doc
2021-05-05 22:48:07 +01:00
5265251777 Support getting certificate information from a kubeconfig file (#61)
* Support getting certificate information from a kubeconfig file

* Support relative paths for cluster CA and user certificate in kubeconfig

* Determine relative using filepath.IsAbs

* Make relative path logic actually work, add test. Move all kubeconfig parsing into parsing specific function
2021-04-02 10:53:31 +01:00
b37574b48f [added] release target add mips64le (#65)
Co-authored-by: duchuanLX <duhchuan@loongson.cn>
2021-02-28 11:00:10 +00:00
5d3ac12e65 release 2.2.0 v2.2.0 2020-12-07 20:18:38 +00:00
44d8713091 Add test for TLS version metric 2020-11-19 22:53:47 +00:00
8cde56ce6a Fix examples in the README 2020-11-16 08:47:52 +00:00
fdda9c3eca Add prober column to metrics table 2020-11-16 08:40:48 +00:00
d92d7bed30 Add file prober to example config 2020-11-16 00:49:31 +00:00
ca7aa1f14e Fix golint errors 2020-11-16 00:48:15 +00:00
13a03b1e2b Move tests to prober package 2020-11-16 00:41:36 +00:00
67539b6000 Use same results check for file + kube probes 2020-11-15 22:39:38 +00:00
f4782e3093 Make the description in the README more succinct 2020-11-15 22:28:36 +00:00
63dcb9aff1 Add kubernetes prober 2020-11-15 22:12:18 +00:00
0506638f63 Add file prober 2020-11-15 13:59:51 +00:00
c74c0de901 Refactor prober function and metrics collection
The existing implementation consists of a collector that exports
information from a tls.ConnectionState returned by the prober function.
This won't necessarily integrate well with additional probers that
retrieve certs from sources other than a tls handshake (from file, for
instance).

I've made the probing more generically expandable by removing the
collector and instead registering and collecting metrics inside the
prober. This makes it possible to collect the same metrics in a
different way, or collect different metrics depending on the prober.
2020-11-07 17:17:06 +00:00
e05745b959 Export OCSP stapling metrics (#54)
* Export OCSP stapling metrics

* Add ocsp_response_stapled boolean

* Add missing ocsp_this_update metric to README
2020-10-27 09:10:42 +00:00
896b59b1fe Update deps && go 1.15 2020-10-18 16:48:23 +01:00
119d3cd200 Add a configurable timeout to the module configuration (#55) 2020-10-09 16:47:21 +01:00
224fb62193 release 2.1.1 v2.1.1 2020-09-22 18:20:01 +01:00
b84db808b7 Fix ssl_verified_cert_not_after typo 2020-09-22 18:10:07 +01:00
c0f4183a7a release 2.1.0 v2.1.0 2020-09-11 19:24:45 +01:00
17aa4e2d2d Add metrics for certificates in the verified chains (#48) 2020-09-11 18:20:41 +01:00
ddedd5f1b5 Add more information to error logs (#49) 2020-09-10 07:35:44 +01:00
ac9bc318b1 add a file name extension to the generated binary when the host (e.g. windows) requires it (#47) 2020-09-03 20:02:48 +01:00
b4b8471a28 build windows release (#43)
* build windows release

* build a release snapshot
2020-08-19 22:35:49 +01:00
b2ed4e6d4e release 2.0.0 v2.0.0 2020-06-22 17:02:48 +01:00
89eff28fac Add starttls for smtp, imap and ftp (#36) 2020-06-22 16:50:21 +01:00
1c8bd16057 Add proxy_url parameter to https configuration (#35)
This supports the use of more than one proxy server per exporter instance.
2020-06-17 16:48:59 +01:00
801179eae7 Move to a modules/probers model, like the blackbox_exporter. (#34)
There are a number of reasons for this change:
- Modules allow a single instance of the exporter to be configured with numerous
different tls configs. Previously you had to run a different exporter for each
combination.
- Adding new and more complicated options to the exporter should be easier with
modules than if I was to go down the route of accepting configuration directly through url params
- I prefer defining a specific prober (https,tcp) over using the URL to guess
what the user wants
2020-06-17 16:29:21 +01:00
5ca5c8ccb9 release 1.0.1 v1.0.1 2020-06-16 17:25:09 +01:00
dc2882c1f5 Fix emailAddresses (#33) 2020-06-16 17:23:18 +01:00
8ef058ebfb Modify build and release processes (#32)
- Don't use promu and upstream Prometheus Makefiles. I don't have a clear
process for keeping them in sync with the upstream and I don't think they add
much value.
- Use the same ldflags in goreleaser and the Makefile
- Run goreleaser from the Makefile so custom env vars can be injected
- Update to go 1.14
2020-06-16 17:18:16 +01:00
41830d450f Fix connection leak (#31)
Connections were being left around after requests and in some cases this could
result in file descriptor errors when open files built up.

Closing the http response body and the tcp connection, as well as disabling http
keep alives seems to resolve this.
2020-06-05 13:59:50 +01:00
1305aac408 renew test certificates (#28) 2020-05-18 22:08:15 +01:00
b7cdf62493 update release process notes in README v1.0.0 2020-03-13 10:26:31 +00:00
c98cb10e4f cut 1.0.0 release 2020-03-13 10:14:53 +00:00
66ae153296 add a grafana dashboard (#25) 2020-03-12 18:06:37 +00:00
13519dd2da add goreleaser
This makes cutting a new release infinitely easier
2020-03-12 17:40:03 +00:00
e3477cf63c add TLS version metric (#24) 2020-03-08 18:50:25 +00:00
80765ab97d add a github action to build the docker image 2020-03-08 18:04:43 +00:00
78ce406ce2 fix tests v1.0.0-rc.0 2020-02-25 08:52:04 +00:00
f81a0d9bc7 1.0.0-rc.0 2020-02-25 08:17:53 +00:00
72736d25c9 Merge pull request #20 from ribbybibby/labels
move metadata out of metrics and into labels
2020-02-25 08:10:08 +00:00