Affected by GO-2023-1520
and 8 other vulnerabilities
GO-2023-1520 : JWT audience claim is not verified in github.com/argoproj/argo-cd
GO-2023-1670 : Argo CD authenticated but unauthorized users may enumerate Application names via the API in github.com/argoproj/argo-cd
GO-2023-2049 : Argo CD cluster secret might leak in cluster details page in github.com/argoproj/argo-cd
GO-2023-2085 : Path traversal allows leaking out-of-bound Helm charts from Argo CD repo-server in github.com/argoproj/argo-cd
GO-2024-2646 : Cross-site scripting on application summary component in github.com/argoproj/argo-cd/v2
GO-2024-2792 : Argo CD vulnerable to a Denial of Service via malicious jqPathExpressions in ignoreDifferences in github.com/argoproj/argo-cd
GO-2024-2877 : ArgoCD Vulnerable to Use of Risky or Missing Cryptographic Algorithms in Redis Cache in github.com/argoproj/argo-cd
GO-2024-2898 : Argo-cd authenticated users can enumerate clusters by name in github.com/argoproj/argo-cd
GO-2024-3002 : Argo CD Unauthenticated Denial of Service (DoS) Vulnerability via /api/webhook Endpoint in github.com/argoproj/argo-cd
Discover Packages
github.com/argoproj/argo-cd/v2
util
env
package
Version:
v2.2.11
Opens a new window with list of versions in this module.
Published: Jul 12, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 7
Opens a new window with list of known importers.
Jump to ...
Documentation
Index
Constants
Variables
Functions
ParseBoolFromEnv(envVar, defaultValue)
ParseDurationFromEnv(env, defaultValue, min, max)
ParseInt64FromEnv(env, defaultValue, min, max)
ParseNumFromEnv(env, defaultValue, min, max)
StringFromEnv(env, defaultValue)
Types
Source Files
Documentation
Documentation
¶
func ParseBoolFromEnv(envVar string, defaultValue bool) bool
func ParseDurationFromEnv(env string, defaultValue, min, max time.Duration) time.Duration
func ParseInt64FromEnv(env string, defaultValue, min, max int64) int64
func ParseNumFromEnv(env string, defaultValue, min, max int) int
func StringFromEnv(env string, defaultValue string) string
ParseBoolFromEnv retrieves a boolean value from given environment envVar.
Returns default value if envVar is not set.
Helper function to parse a time duration from an environment variable. Returns a
default if env is not set, is not parseable to a duration, exceeds max (if
max is greater than 0) or is less than min.
Helper function to parse a int64 from an environment variable. Returns a
default if env is not set, is not parseable to a number, exceeds max (if
max is greater than 0) or is less than min.
nolint:unparam
func ParseNumFromEnv(env string , defaultValue, min, max int ) int
Helper function to parse a number from an environment variable. Returns a
default if env is not set, is not parseable to a number, exceeds max (if
max is greater than 0) or is less than min.
nolint:unparam
Source Files
¶
Click to show internal directories.
Click to hide internal directories.