mirror of
				https://github.com/optim-enterprises-bv/vault.git
				synced 2025-10-31 02:28:09 +00:00 
			
		
		
		
	 411fcd7486
			
		
	
	411fcd7486
	
	
	
		
			
			- Add the kms_library configuration stanza to Vault's command/server - Provide validation of keys and general configuration. - Add initial kms_library configuration documentation - Attempt at startup to verify we can read the configured HSM Library - Hook in KmsLibrary config into the Validate to detect typo/unused keys
		
			
				
	
	
		
			24 lines
		
	
	
		
			399 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			399 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| // +build !enterprise
 | |
| 
 | |
| package server
 | |
| 
 | |
| import (
 | |
| 	"testing"
 | |
| )
 | |
| 
 | |
| func TestLoadConfigFile_topLevel(t *testing.T) {
 | |
| 	testLoadConfigFile_topLevel(t, nil)
 | |
| }
 | |
| 
 | |
| func TestLoadConfigFile_json2(t *testing.T) {
 | |
| 	testLoadConfigFile_json2(t, nil)
 | |
| }
 | |
| 
 | |
| func TestParseEntropy(t *testing.T) {
 | |
| 	testParseEntropy(t, true)
 | |
| }
 | |
| 
 | |
| func TestKmsLibraryFailsForNonHSMBinary(t *testing.T) {
 | |
| 	testKmsLibraryFailsForNonHSMBinary(t)
 | |
| }
 |