mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-22 23:21:08 +02:00
* CE changes to support exclusion in audit * Add an external test for audit exclusion --------- Co-authored-by: Kuba Wieczorek <kuba.wieczorek@hashicorp.com>
19 lines
343 B
Go
19 lines
343 B
Go
// Copyright (c) HashiCorp, Inc.
|
|
// SPDX-License-Identifier: BUSL-1.1
|
|
|
|
//go:build !enterprise
|
|
|
|
package audit
|
|
|
|
import (
|
|
"errors"
|
|
)
|
|
|
|
func (f *entryFormatter) shouldExclude() bool {
|
|
return false
|
|
}
|
|
|
|
func (f *entryFormatter) excludeFields(entry any) (map[string]any, error) {
|
|
return nil, errors.New("enterprise-only feature: audit exclusion")
|
|
}
|