12 Commits

Author SHA1 Message Date
co63oc
c95f3cb47f
Fix (#29797)
Co-authored-by: Violet Hynes <violet.hynes@hashicorp.com>
2025-04-08 14:00:08 -04:00
Peter Wilson
322cb27395
Audit: always use derived context for audit logging, increase timeout to 10s (#28286)
* always use derived context for audit logging, increase timeout to 10secs max

* improve go doc

* changelog
2024-09-05 16:34:18 +01:00
Peter Wilson
d219fc5002
treat all errors as part of the same variadic set of arguments (#28102) 2024-08-16 14:28:05 +00:00
Peter Wilson
b0616065c5
Audit: logging and improvements (#28056)
* Add trace logging to context creation during log req/resp. Improve context sensitivity of sink nodes (file, socket), update eventlogger to include context info in error

* changelog

* Queue for the lock but check context immediately

* fix race in test
2024-08-12 18:36:13 +01:00
Peter Wilson
a19195c901
unexport as much as possible in the audit package (#28039) 2024-08-09 17:03:29 +01:00
Peter Wilson
4f6c215a65
unexport hashstructure funcs (#27911) 2024-07-30 15:31:59 +01:00
Peter Wilson
6ec5fa00e1
Remove multi-errors and update expected error msg in tests (#27861) 2024-07-24 23:07:37 +01:00
Peter Wilson
39b99b2e05
Audit: log 'warnings' from eventlogger even if audit is deemed a success (#27809)
* make sure we still log underyling pipeline errors even if audit is deemed a success

* changelog
2024-07-19 11:12:51 +01:00
Peter Wilson
4078417016
Audit: check if context is already cancelled when assessing viability for audit (#27531)
* check if context is already cancelled when assessing viability for audit

* changelog
2024-06-18 18:57:18 +00:00
Peter Wilson
cbda3fddb9
use timeout (5s) (#26803) 2024-05-03 10:39:48 +00:00
Peter Wilson
22b53ed099
VAULT-24945: audit - add context timeout to audit request (#26616)
* add context timeout to audit request

* Ensure 'minimum' timeout for contexts when attempting to send audit entries to the broker
2024-04-30 18:03:18 +01:00
Peter Wilson
8bee54c89d
VAULT-24452: audit refactor (#26460)
* Refactor audit code into audit package
* remove builtin/audit
* removed unrequired files
2024-04-18 08:25:04 +01:00