vault/audit/entry_formatter_ce.go
Peter Wilson 961442c959
VAULT-23334: CE changes to support exclusion in audit (#26615)
* CE changes to support exclusion in audit

* Add an external test for audit exclusion

---------

Co-authored-by: Kuba Wieczorek <kuba.wieczorek@hashicorp.com>
2024-06-11 08:40:18 +01:00

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")
}