mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-29 09:42:25 +00:00
* Refactor audit code into audit package * remove builtin/audit * removed unrequired files
19 lines
438 B
Go
19 lines
438 B
Go
// Copyright (c) HashiCorp, Inc.
|
|
// SPDX-License-Identifier: BUSL-1.1
|
|
|
|
//go:build !enterprise
|
|
|
|
package audit
|
|
|
|
import "fmt"
|
|
|
|
// validate ensures that this if we're not running Vault Enterprise, we cannot
|
|
// supply Enterprise-only audit configuration options.
|
|
func (c *BackendConfig) validate() error {
|
|
if HasInvalidAuditOptions(c.Config) {
|
|
return fmt.Errorf("enterprise-only options supplied: %w", ErrExternalOptions)
|
|
}
|
|
|
|
return nil
|
|
}
|