diff --git a/cautils/environments.go b/cautils/environments.go index e3045fae..b2d3c0cf 100644 --- a/cautils/environments.go +++ b/cautils/environments.go @@ -1,9 +1,5 @@ package cautils -import ( - "os" -) - // CA environment vars var ( CustomerGUID = "" @@ -13,12 +9,3 @@ var ( DashboardBackendURL = "" RestAPIPort = "4001" ) - -func SetupDefaultEnvs() { - if os.Getenv("CA_DASHBOARD_BACKEND") == "" { - os.Setenv("CA_DASHBOARD_BACKEND", "https://dashbe.eudev3.cyberarmorsoft.com") // use prod - } - if os.Getenv("CA_CUSTOMER_GUID") == "" { - os.Setenv("CA_CUSTOMER_GUID", "11111111-1111-1111-1111-111111111111") - } -} diff --git a/main.go b/main.go index cc354ede..e4da4a25 100644 --- a/main.go +++ b/main.go @@ -29,7 +29,6 @@ func CliSetup() error { reportResults := make(chan *cautils.OPASessionObj) // policy handler setup - cautils.SetupDefaultEnvs() policyHandler := policyhandler.NewPolicyHandler(&processNotification, k8s) // cli handler setup diff --git a/policyhandler/handlepullpolicies.go b/policyhandler/handlepullpolicies.go index 3d2ae0b2..95a75f3b 100644 --- a/policyhandler/handlepullpolicies.go +++ b/policyhandler/handlepullpolicies.go @@ -49,7 +49,7 @@ type ArmoAPI struct { func NewArmoAPI() *ArmoAPI { return &ArmoAPI{ httpClient: &http.Client{}, - hostURL: "https://dashbe.eudev3.cyberarmorsoft.com", + hostURL: "https://dashbe.eustage2.cyberarmorsoft.com", } } func (db *ArmoAPI) GetServerAddress() string {