-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VAULT-26466: audit - include correlation ID headers by default #26777
Conversation
CI Results: |
Build Results: |
@@ -0,0 +1,4 @@ | |||
```release-note:change | |||
audit: breaking change - Vault now allows audit logs to contain 'correlation-id' and 'x-correlation-id' headers when they |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❓ What is the user impact given the breaking change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a corresponding docs PR that tries to call out the change: #26778.
The Vercel deployment currently lives here: https://vault-n5poe4e19-hashicorp.vercel.app/vault/docs/audit#audit-request-headers but could change if there are any more pushes to that branch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it, thanks for the clarification!
Summary
This PR changes the behavior of Vault such that when an audit device attempts to log an incoming request which contains the following headers:
Correlation-ID
X-Correlation-ID
The headers, by default will appear in the audit log without being HMAC'ed.
Docs
Docs PR: #26778 (covers how this feature works and how to HMAC the values if required).
Manual testing
using
/sys/config/auditing/request-headers/
endpoint:No setting for
x-correlation-id
orcorrelation-id
headerscorrelation-id
in requestcorrelation-id
shown in audit lograw
x-correlation-id
in requestx-correlation-id
shown in audit lograw
Setting for
x-correlation-id
andcorrelation-id
headers (noHMAC
setting - defaults tofalse
)correlation-id
in requestcorrelation-id
shown in audit lograw
x-correlation-id
in requestx-correlation-id
shown in audit lograw
Setting for
x-correlation-id
andcorrelation-id
headers (HMAC
setting:true
)correlation-id
in requestcorrelation-id
shown in audit log HMAC'edx-correlation-id
in requestx-correlation-id
shown in audit log HMAC'edSetting for
x-correlation-id
andcorrelation-id
headers (HMAC
setting:false
)correlation-id
in requestcorrelation-id
shown in audit lograw
x-correlation-id
in requestx-correlation-id
shown in audit lograw
Example: