mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 19:17:58 +00:00
Add Oracle Cloud auth to the Vault Agent (#19260)
* Add Oracle Cloud auth to the Vault Agent * Use ParseDurationSecond to parse credential_poll_interval * Use os.UserHomeDir()
This commit is contained in:
@@ -40,6 +40,7 @@ import (
|
||||
"github.com/hashicorp/vault/command/agent/auth/jwt"
|
||||
"github.com/hashicorp/vault/command/agent/auth/kerberos"
|
||||
"github.com/hashicorp/vault/command/agent/auth/kubernetes"
|
||||
"github.com/hashicorp/vault/command/agent/auth/oci"
|
||||
"github.com/hashicorp/vault/command/agent/cache"
|
||||
"github.com/hashicorp/vault/command/agent/cache/cacheboltdb"
|
||||
"github.com/hashicorp/vault/command/agent/cache/cachememdb"
|
||||
@@ -370,6 +371,8 @@ func (c *AgentCommand) Run(args []string) int {
|
||||
method, err = kubernetes.NewKubernetesAuthMethod(authConfig)
|
||||
case "approle":
|
||||
method, err = approle.NewApproleAuthMethod(authConfig)
|
||||
case "oci":
|
||||
method, err = oci.NewOCIAuthMethod(authConfig, config.Vault.Address)
|
||||
case "token_file":
|
||||
method, err = token_file.NewTokenFileAuthMethod(authConfig)
|
||||
case "pcf": // Deprecated.
|
||||
|
||||
Reference in New Issue
Block a user