AuditPolicy.spec.verbosity
Verbosity defines how much data to collect from each log. The end verbosity for a log is calculated as a merge of each policy that Allows a log (including plicies with no Filters). For example, take the two policie specs below: AuditPolicySpec { Enabled: True, Verbosity: LogVerbosity { Request: Verbosity { Body: True, }, }, } AuditPolicySpec { Enabled: True, Filters: []Filters{ { Action: "allow", RequestURI: "/foo" }, }, Verbosity: LogVerbosity { Response: Verbosity { Body: True, }, }, } A request to the "/foo" endpoint will log both the request and response bodies, but a request to "/bar" will only log the request body.
| Field / Type | Description |
|---|---|
level | Level is carried over from the previous implementation of audit logging, and provides a shorthand for defining LogVerbosities. When Level is not LevelNull, Request and Reponse are ignored. |
No description provided. | |
No description provided. |