Conversation
neilalexander
left a comment
There was a problem hiding this comment.
Approach looks fine, but WebSockets, leafnodes, routes, gateways can also have their own TLS configurations, can we extend to those too?
From opts.Cluster.TLSConfig, opts.Gateway.TLSConfig, opts.LeafNode.TLSConfig, opts.MQTT.TLSConfig, opts.WebSocket.TLSConfig off the top of my head. Each has their own section in varz I think.
2163b96 to
119913b
Compare
Done. I had to change the approach slightly: storing time.Time values would no longer work with omitempty and structures within structure. So I switched to strings. |
119913b to
aef59ae
Compare
Expose the expiration dates of all TLS certificates in the varz monitor endpoint. Fixes #7684 Signed-off-by: Daniele Sciascia <daniele@nats.io>
aef59ae to
fea2582
Compare
|
Yes I know it was merged. But not reeleased yet. @neilalexander what are your thoughts here? |
|
I don't have a strong opinion either way, but "Not before" and "Not after" match OpenSSL, Go's |
|
Those terms are also in OpenSSL command line tools etc that’s why I suggested we use same |
|
Thanks, did not realize there was a precedence already on naming this. I prefer simple as you know. |
|
Though been thinking about this and I think as it stands someone has to make a bunch of HTTP requests to monitor the server - if it was all in varz in a struct a single call can be used to monitor all certs deployed, so maybe a map or array of entries all in one place would be better |
|
Not sure I follow. This is all in Varz. One request is enough to get all
expiration dates. The other structures are embedded in Varz. For example,
Varz contains one instance of ClusterOptsVarz. Same for the other structs.
… Though been thinking about this and I think as it stands someone has to
make a bunch of HTTP requests to monitor the server - if it was all in varz
in a struct a single call can be used to monitor all certs deployed, so
maybe a map or array of entries all in one place would be better
|
|
You’re right sorry for the noise. PR review on the phone :( |
Expose the server's certificate expiration date in the varz monitor endpoint.
Fixes #7684
Signed-off-by: Daniele Sciascia daniele@nats.io