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:
		
							parent
							
								
									7d00d9fbcf
								
							
						
					
					
						commit
						7336f1acce
					
				| 
						 | 
					@ -27,6 +27,7 @@ type RequestEvent struct {
 | 
				
			||||||
	Code      int     `json:"-"`
 | 
						Code      int     `json:"-"`
 | 
				
			||||||
	Latency   float64 `json:"-"`
 | 
						Latency   float64 `json:"-"`
 | 
				
			||||||
	RealIP    string  `json:"-"`
 | 
						RealIP    string  `json:"-"`
 | 
				
			||||||
 | 
						TLS       string  `json:",omitempty"`
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	Slug           string   `json:",omitempty"`
 | 
						Slug           string   `json:",omitempty"`
 | 
				
			||||||
	InternalErrors []string `json:",omitempty"`
 | 
						InternalErrors []string `json:",omitempty"`
 | 
				
			||||||
| 
						 | 
					@ -100,6 +101,7 @@ func (th *TopHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
 | 
				
			||||||
	logEvent := &RequestEvent{
 | 
						logEvent := &RequestEvent{
 | 
				
			||||||
		RealIP:    realIP,
 | 
							RealIP:    realIP,
 | 
				
			||||||
		Method:    r.Method,
 | 
							Method:    r.Method,
 | 
				
			||||||
 | 
							TLS:       r.Header.Get("TLS-Version"),
 | 
				
			||||||
		UserAgent: r.Header.Get("User-Agent"),
 | 
							UserAgent: r.Header.Get("User-Agent"),
 | 
				
			||||||
		Origin:    r.Header.Get("Origin"),
 | 
							Origin:    r.Header.Get("Origin"),
 | 
				
			||||||
		Extra:     make(map[string]interface{}),
 | 
							Extra:     make(map[string]interface{}),
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue