mirror of
				https://github.com/optim-enterprises-bv/vault.git
				synced 2025-11-03 20:17:59 +00:00 
			
		
		
		
	Move audit.LogInput to sdk/logical. Allow the Data values in audited logical.Request and Response to implement OptMarshaler, in which case we delegate hashing/serializing responsibility to them. Add new ClientCertificateSerialNumber audit request field. SystemView can now be cast to ExtendedSystemView to expose the Auditor interface, which allows submitting requests and responses to the audit broker.
		
			
				
	
	
		
			20 lines
		
	
	
		
			400 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			400 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package logical
 | 
						|
 | 
						|
type LogInput struct {
 | 
						|
	Type                string
 | 
						|
	Auth                *Auth
 | 
						|
	Request             *Request
 | 
						|
	Response            *Response
 | 
						|
	OuterErr            error
 | 
						|
	NonHMACReqDataKeys  []string
 | 
						|
	NonHMACRespDataKeys []string
 | 
						|
}
 | 
						|
 | 
						|
type MarshalOptions struct {
 | 
						|
	ValueHasher func(string) string
 | 
						|
}
 | 
						|
 | 
						|
type OptMarshaler interface {
 | 
						|
	MarshalJSONWithOptions(*MarshalOptions) ([]byte, error)
 | 
						|
}
 |