Skip to content

Commit

Permalink
Fix audited request header lookup (#3707)
Browse files Browse the repository at this point in the history
The headers are stored lowercased but the lookup function wasn't
properly lowercasing when indexing in the header map.

Fixes #3701
  • Loading branch information
jefferai authored Dec 18, 2017
1 parent 7184a35 commit 4cc4010
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vault/logical_system.go
Original file line number Diff line number Diff line change
Expand Up @@ -1211,7 +1211,7 @@ func (b *SystemBackend) handleAuditedHeaderRead(req *logical.Request, d *framewo
}

headerConfig := b.Core.AuditedHeadersConfig()
settings, ok := headerConfig.Headers[header]
settings, ok := headerConfig.Headers[strings.ToLower(header)]
if !ok {
return logical.ErrorResponse("Could not find header in config"), nil
}
Expand Down

0 comments on commit 4cc4010

Please sign in to comment.