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
fix edge case of input same as default clobber env
Ashley Hutson74fb64bbb97f
diff --git a/cli/packages/cmd/root.go b/cli/packages/cmd/root.goindex 9431af0a44..3f6f4b357a 100644--- a/cli/packages/cmd/root.go+++ b/cli/packages/cmd/root.go@@ -38,9 +38,10 @@ func init() {// if config.INFISICAL_URL is set to the default value, check if INFISICAL_URL is set in the environment// this is used to allow overrides of the default value- if config.INFISICAL_URL == util.INFISICAL_DEFAULT_URL {+ if !rootCmd.Flag("domain").Changed {if envInfisicalURL, ok := os.LookupEnv("INFISICAL_URL"); ok {config.INFISICAL_URL = envInfisicalURL}}+}