Skip to content

Commit

Permalink
Audit: rewrite audit entry formatting to improve performance (#27952) (
Browse files Browse the repository at this point in the history
…#27954)

* rewrite audit entry formatting to improve performance

Co-authored-by: Peter Wilson <peter.wilson@hashicorp.com>
  • Loading branch information
hc-github-team-secure-vault-core and Peter Wilson authored Aug 2, 2024
1 parent f4a3ac4 commit cfc96c2
Show file tree
Hide file tree
Showing 8 changed files with 594 additions and 561 deletions.
2 changes: 1 addition & 1 deletion audit/backend_noop.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ func (n *noopWrapper) Process(ctx context.Context, e *eventlogger.Event) (*event
// formatted headers that would have made it to the logs via the sink node.
// They only appear in requests.
if a.Subtype == RequestType {
reqEntry := &RequestEntry{}
reqEntry := &Entry{}
err = json.Unmarshal(b, &reqEntry)
if err != nil {
return nil, fmt.Errorf("unable to parse formatted audit entry data: %w", err)
Expand Down
Loading

0 comments on commit cfc96c2

Please sign in to comment.