mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-06 14:47:01 +02:00
* move option validation for enterprise options to audit package from vault package * remove commented lines * remove blank line
19 lines
433 B
Go
19 lines
433 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 HasInvalidOptions(c.Config) {
|
|
return fmt.Errorf("enterprise-only options supplied: %w", ErrExternalOptions)
|
|
}
|
|
|
|
return nil
|
|
}
|