Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

patch agent config by env

Maidul Islam766f301aea92
diff --git a/cli/packages/cmd/agent.go b/cli/packages/cmd/agent.go
index 3422db5b47..8857f58061 100644
--- a/cli/packages/cmd/agent.go
+++ b/cli/packages/cmd/agent.go
@@ -498,7 +498,7 @@ var agentCmd = &cobra.Command{
agentConfigInBase64 := os.Getenv("INFISICAL_AGENT_CONFIG_BASE64")
- if configPath != "" {
+ if agentConfigInBase64 == "" {
data, err := ioutil.ReadFile(configPath)
if err != nil {
if !FileExists(configPath) {
@@ -506,7 +506,6 @@ var agentCmd = &cobra.Command{
return
}
}
-
agentConfigInBytes = data
}