rancher v2.15.1

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.

3 fields
AuditPolicy.spec.verbosity fields and descriptions
Field / TypeDescription
level
integer required

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.

object

No description provided.

object

No description provided.