wfe: Log TLS version (#6001)

This will help inform deprecation of TLS 1.0 and TLS 1.1 for ACME API requests.
This commit is contained in:
Jacob Hoffman-Andrews 2022-03-21 14:01:52 -07:00 committed by GitHub
parent 7d00d9fbcf
commit 7336f1acce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -27,6 +27,7 @@ type RequestEvent struct {
Code int `json:"-"`
Latency float64 `json:"-"`
RealIP string `json:"-"`
TLS string `json:",omitempty"`
Slug string `json:",omitempty"`
InternalErrors []string `json:",omitempty"`
@ -100,6 +101,7 @@ func (th *TopHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
logEvent := &RequestEvent{
RealIP: realIP,
Method: r.Method,
TLS: r.Header.Get("TLS-Version"),
UserAgent: r.Header.Get("User-Agent"),
Origin: r.Header.Get("Origin"),
Extra: make(map[string]interface{}),