Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
Update agent.go
Daniel Hougaard93638baba79f
diff --git a/cli/packages/cmd/agent.go b/cli/packages/cmd/agent.goindex 7f64f5ceee..77fcab0bea 100644--- a/cli/packages/cmd/agent.go+++ b/cli/packages/cmd/agent.go@@ -61,8 +61,8 @@ type UniversalAuth struct {}type KubernetesAuth struct {- IdentityID string `yaml:"identity-id"`- ServiceAccountTokenPath string `yaml:"service-account-token-path"`+ IdentityID string `yaml:"identity-id"`+ ServiceAccountToken string `yaml:"service-account-token"`}type AzureAuth struct {@@ -557,7 +557,7 @@ func (tm *AgentManager) FetchKubernetesAuthAccessToken() (credential infisicalSdserviceAccountTokenPath := os.Getenv(util.INFISICAL_KUBERNETES_SERVICE_ACCOUNT_TOKEN_NAME)if serviceAccountTokenPath == "" {- serviceAccountTokenPath = kubernetesAuthConfig.ServiceAccountTokenPath+ serviceAccountTokenPath = kubernetesAuthConfig.ServiceAccountTokenif serviceAccountTokenPath == "" {serviceAccountTokenPath = "/var/run/secrets/kubernetes.io/serviceaccount/token"}