Skip to content

Commit 56ea9df

Browse files
jefferaibriankassouf
authored andcommitted
Add response warnings to audit logs (hashicorp#6386)
1 parent 57aab50 commit 56ea9df

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

audit/format.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,7 @@ func (f *AuditFormatter) FormatResponse(ctx context.Context, w io.Writer, config
371371
Auth: respAuth,
372372
Secret: respSecret,
373373
Data: resp.Data,
374+
Warnings: resp.Warnings,
374375
Redirect: resp.Redirect,
375376
WrapInfo: respWrapInfo,
376377
Headers: resp.Headers,
@@ -426,6 +427,7 @@ type AuditResponse struct {
426427
Auth *AuditAuth `json:"auth,omitempty"`
427428
Secret *AuditSecret `json:"secret,omitempty"`
428429
Data map[string]interface{} `json:"data,omitempty"`
430+
Warnings []string `json:"warnings,omitempty"`
429431
Redirect string `json:"redirect,omitempty"`
430432
WrapInfo *AuditResponseWrapInfo `json:"wrap_info,omitempty"`
431433
Headers map[string][]string `json:"headers"`

0 commit comments

Comments
 (0)