mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 03:27:54 +00:00
Add AliCloud auth to the Vault Agent (#5179)
This commit is contained in:
committed by
Jeff Mitchell
parent
f5c712f52a
commit
d69c674c8e
@@ -16,6 +16,7 @@ import (
|
||||
"github.com/hashicorp/errwrap"
|
||||
log "github.com/hashicorp/go-hclog"
|
||||
"github.com/hashicorp/vault/command/agent/auth"
|
||||
"github.com/hashicorp/vault/command/agent/auth/alicloud"
|
||||
"github.com/hashicorp/vault/command/agent/auth/aws"
|
||||
"github.com/hashicorp/vault/command/agent/auth/azure"
|
||||
"github.com/hashicorp/vault/command/agent/auth/gcp"
|
||||
@@ -284,6 +285,8 @@ func (c *AgentCommand) Run(args []string) int {
|
||||
Config: config.AutoAuth.Method.Config,
|
||||
}
|
||||
switch config.AutoAuth.Method.Type {
|
||||
case "alicloud":
|
||||
method, err = alicloud.NewAliCloudAuthMethod(authConfig)
|
||||
case "aws":
|
||||
method, err = aws.NewAWSAuthMethod(authConfig)
|
||||
case "azure":
|
||||
|
||||
Reference in New Issue
Block a user