From 8de0b1427b5f1cc87678f5a0344a3e9152d2a074 Mon Sep 17 00:00:00 2001 From: Jeff Mitchell Date: Mon, 18 Dec 2017 10:04:40 -0500 Subject: [PATCH] Fix audited request header lookup The headers are stored lowercased but the lookup function wasn't properly lowercasing when indexing in the header map. Fixes #3701 --- vault/logical_system.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vault/logical_system.go b/vault/logical_system.go index 3b174baaddde..b3ee330dccf1 100644 --- a/vault/logical_system.go +++ b/vault/logical_system.go @@ -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 }