diff --git a/audit/audit.go b/audit/audit.go index 3054846c2b..6043613879 100644 --- a/audit/audit.go +++ b/audit/audit.go @@ -8,11 +8,15 @@ import "github.com/hashicorp/vault/logical" // or other external services. type Backend interface { // LogRequest is used to syncronously log a request. This is done after the - // request is authorized but before the request is executed. + // request is authorized but before the request is executed. The arguments + // MUST not be modified in anyway. They should be deep copied if this is + // a possibility. LogRequest(*logical.Auth, *logical.Request) error // LogResponse is used to syncronously log a response. This is done after - // the request is processed but before the response is sent. + // the request is processed but before the response is sent. The arguments + // MUST not be modified in anyway. They should be deep copied if this is + // a possibility. LogResponse(*logical.Auth, *logical.Request, *logical.Response, error) error }