Skip to content

Commit 1269f80

Browse files
authored
Repairs for deprecated service (#361)
TL;DR ----- Fixes setup and login failures for eliminated service Details ------- Updates all references to `id.replicated.com` to use the `api.replicated.com` service endpoints that replaced the services from that domain.
1 parent 44f4175 commit 1269f80

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

libs/header.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,15 +81,15 @@ get_api_token () {
8181
password=$(get_password)
8282
login=$( jq -n -c --arg email "${INSTRUQT_PARTICIPANT_ID}@replicated-labs.com" --arg password "${password}" '$ARGS.named' )
8383
set +eu pipefail
84-
token=$(curl -s -H "Content-Type: application/json" --request POST -d "$login" https://id.replicated.com/v1/login | jq -r ".token")
84+
token=$(curl -s -H "Content-Type: application/json" --request POST -d "$login" https://api.replicated.com/vendor/v1/login | jq -r ".token")
8585
set -eu pipefail
8686

8787
i=0
8888
while [[ ( -z "$token" || "$token" == "null" ) && $i -lt 20 ]]
8989
do
9090
sleep $((i*5))
9191
set +eu pipefail
92-
token=$(curl -s -H "Content-Type: application/json" --request POST -d "$login" https://id.replicated.com/v1/login | jq -r ".token")
92+
token=$(curl -s -H "Content-Type: application/json" --request POST -d "$login" https://api.replicated.com/vendor/v1/login | jq -r ".token")
9393
set -eu pipefail
9494
i=$((i+1))
9595
done

setup/cmd/kots-field-labs/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func HandleRequest(event fieldlabs.LambdaEvent) error {
4040
APIOrigin: "https://api.replicated.com/vendor",
4141
GraphQLOrigin: "https://g.replicated.com/graphql",
4242
KURLSHOrigin: "https://kurl.sh",
43-
IDOrigin: "https://id.replicated.com",
43+
IDOrigin: "https://api.replicated.com/vendor",
4444
}
4545

4646
action, ok := actions[event.Action]

setup/cmd/kots-field-labs/param.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ func GetParams() (*fieldlabs.Params, error) {
6060
params.KURLSHOrigin = "https://kurl.sh"
6161
}
6262
if params.IDOrigin == "" {
63-
params.IDOrigin = "https://id.replicated.com"
63+
params.IDOrigin = "https://api.replicated.com/vendor"
6464
}
6565

6666
actionString := os.Getenv("REPLICATED_ACTION")

0 commit comments

Comments
 (0)