mirror of
				https://github.com/optim-enterprises-bv/vault.git
				synced 2025-10-31 02:28:09 +00:00 
			
		
		
		
	oss changes for entropy augmentation feature (#7670)
* oss changes for entropy augmentation feature * fix oss command/server/config tests * update go.sum * fix logical_system and http/ tests * adds vendored files * removes unused variable
This commit is contained in:
		| @@ -2,9 +2,12 @@ package command | ||||
|  | ||||
| import ( | ||||
| 	"context" | ||||
| 	"crypto/rand" | ||||
| 	"fmt" | ||||
| 	"io" | ||||
|  | ||||
| 	log "github.com/hashicorp/go-hclog" | ||||
| 	"github.com/hashicorp/vault/command/server" | ||||
| 	"github.com/hashicorp/vault/vault" | ||||
| 	vaultseal "github.com/hashicorp/vault/vault/seal" | ||||
| 	shamirseal "github.com/hashicorp/vault/vault/seal/shamir" | ||||
| @@ -12,9 +15,14 @@ import ( | ||||
| ) | ||||
|  | ||||
| var ( | ||||
| 	onEnterprise = false | ||||
| 	onEnterprise                 = false | ||||
| 	createSecureRandomReaderFunc = createSecureRandomReader | ||||
| ) | ||||
|  | ||||
| func createSecureRandomReader(config *server.Config, seal *vault.Seal) (io.Reader, error) { | ||||
| 	return rand.Reader, nil | ||||
| } | ||||
|  | ||||
| func adjustCoreForSealMigration(logger log.Logger, core *vault.Core, barrierSeal, unwrapSeal vault.Seal) error { | ||||
| 	existBarrierSealConfig, existRecoverySealConfig, err := core.PhysicalSealConfigs(context.Background()) | ||||
| 	if err != nil { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Lexman
					Lexman