mirror of
				https://github.com/optim-enterprises-bv/vault.git
				synced 2025-10-29 17:52:32 +00:00 
			
		
		
		
	 1d67c3f3b4
			
		
	
	1d67c3f3b4
	
	
	
		
			
			* 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
 | |
| }
 |