mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 19:17:58 +00:00
command/server: support CredentialBackends
This commit is contained in:
@@ -17,7 +17,8 @@ import (
|
||||
|
||||
// ServerCommand is a Command that starts the Vault server.
|
||||
type ServerCommand struct {
|
||||
LogicalBackends map[string]logical.Factory
|
||||
CredentialBackends map[string]logical.Factory
|
||||
LogicalBackends map[string]logical.Factory
|
||||
|
||||
Meta
|
||||
}
|
||||
@@ -72,8 +73,9 @@ func (c *ServerCommand) Run(args []string) int {
|
||||
|
||||
// Initialize the core
|
||||
core, err := vault.NewCore(&vault.CoreConfig{
|
||||
Physical: backend,
|
||||
LogicalBackends: c.LogicalBackends,
|
||||
Physical: backend,
|
||||
CredentialBackends: c.CredentialBackends,
|
||||
LogicalBackends: c.LogicalBackends,
|
||||
})
|
||||
|
||||
// If we're in dev mode, then initialize the core
|
||||
|
||||
Reference in New Issue
Block a user