Skip to content

Commit 36f679a

Browse files
authored
Remove refs to old pw (#182)
1 parent 385521f commit 36f679a

File tree

5 files changed

+39
-16
lines changed

5 files changed

+39
-16
lines changed

app-service-proxy/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.5.2
1+
1.5.3

app-service-proxy/deployments/app-service-proxy/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
---
55
apiVersion: v2
66
name: app-service-proxy
7-
version: "1.5.2"
7+
version: "1.5.3"
88
description: Application Service Proxy
99
annotations:
1010
revision: "88aedf0"
1111
created: "2025-11-14T06:11:30Z"
12-
appVersion: 1.5.2
12+
appVersion: 1.5.3

app-service-proxy/test/headertest/utils.go

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import (
1010
"fmt"
1111
"io"
1212
"net/http"
13+
"os"
1314
"strings"
1415
"time"
1516

@@ -48,7 +49,10 @@ func GetXAuthHeader(url, _ string) (string, error) {
4849
var preText string
4950

5051
username := "sample-project-edge-mgr"
51-
password := "ChangeMeOn1stLogin!"
52+
password := os.Getenv("ORCH_DEFAULT_PASSWORD")
53+
if password == "" {
54+
panic("ORCH_DEFAULT_PASSWORD environment variable must be set")
55+
}
5256
var cookies []*network.Cookie
5357
// Run tasks
5458
err := chromedp.Run(ctx,
@@ -158,7 +162,10 @@ func GetCliSecretHarbor(url, token string) (string, error) {
158162
// This will hold the IDs
159163

160164
username := "sample-project-edge-mgr"
161-
password := "ChangeMeOn1stLogin!"
165+
password := os.Getenv("ORCH_DEFAULT_PASSWORD")
166+
if password == "" {
167+
panic("ORCH_DEFAULT_PASSWORD environment variable must be set")
168+
}
162169

163170
selectors := []string{"#log_oidc"}
164171

app-service-proxy/test/servicelink/utils.go

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ import (
88
"context"
99
"encoding/json"
1010
"fmt"
11-
//"os"
11+
"os"
1212
"strings"
1313
"time"
14+
1415
//"path/filepath"
1516

1617
"github.com/chromedp/cdproto/network"
@@ -42,7 +43,10 @@ func GetCliSecretHarbor(url, token string) (string, error) {
4243
// This will hold the IDs
4344

4445
username := "sample-project-edge-mgr"
45-
password := "ChangeMeOn1stLogin!"
46+
password := os.Getenv("ORCH_DEFAULT_PASSWORD")
47+
if password == "" {
48+
panic("ORCH_DEFAULT_PASSWORD environment variable must be set")
49+
}
4650

4751
selectors := []string{"#log_oidc"}
4852

@@ -166,7 +170,10 @@ func OpenPageInHeadlessChrome(url, search, _ string) (bool, error) {
166170
// This will hold the IDs
167171

168172
username := "sample-project-edge-mgr"
169-
password := "ChangeMeOn1stLogin!"
173+
password := os.Getenv("ORCH_DEFAULT_PASSWORD")
174+
if password == "" {
175+
panic("ORCH_DEFAULT_PASSWORD environment variable must be set")
176+
}
170177

171178
/*selectorPassword := "#password" // change as needed
172179
selectorLogin := "#login" // change as needed

test-common-utils/pkg/types/common_types.go

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44

55
package types
66

7-
import "time"
7+
import (
8+
"os"
9+
"time"
10+
)
811

912
const (
1013
RestAddressPortForward = "127.0.0.1"
@@ -18,17 +21,23 @@ const (
1821
ArmPortForwardRemote = "8082"
1922
)
2023

24+
const (
25+
RetryDelay = 10 * time.Second
26+
RetryCount = 20
27+
)
28+
2129
const (
2230
SampleOrg = "sample-org"
2331
SampleProject = "sample-project"
24-
KCPass = "ChangeMeOn1stLogin!"
2532
TestClusterID = "demo-cluster"
2633
)
2734

28-
const (
29-
RetryDelay = 10 * time.Second
30-
)
35+
var KCPass = mustGetKCPassword()
3136

32-
const (
33-
RetryCount = 20
34-
)
37+
func mustGetKCPassword() string {
38+
pass := os.Getenv("ORCH_DEFAULT_PASSWORD")
39+
if pass == "" {
40+
panic("ORCH_DEFAULT_PASSWORD environment variable must be set")
41+
}
42+
return pass
43+
}

0 commit comments

Comments
 (0)