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:
Lexman
2019-10-17 10:33:00 -07:00
committed by GitHub
parent 9a3369c566
commit 47a54ac8bc
82 changed files with 1347 additions and 729 deletions

View File

@@ -1006,6 +1006,13 @@ func (c *ServerCommand) Run(args []string) int {
return 1
}
// prepare a secure random reader for core
secureRandomReader, err := createSecureRandomReaderFunc(config, &barrierSeal)
if err != nil {
c.UI.Error(err.Error())
return 1
}
coreConfig := &vault.CoreConfig{
RawConfig: config,
Physical: backend,
@@ -1033,6 +1040,7 @@ func (c *ServerCommand) Run(args []string) int {
BuiltinRegistry: builtinplugins.Registry,
DisableKeyEncodingChecks: config.DisablePrintableCheck,
MetricsHelper: metricsHelper,
SecureRandomReader: secureRandomReader,
}
if c.flagDev {
coreConfig.DevToken = c.flagDevRootTokenID