Skip to content

Commit

Permalink
Get livelog keys from tc-secrets instead of worker type definition
Browse files Browse the repository at this point in the history
… in scripts for deploying new Macstadium or Packet.net workers.

CC: https://bugzilla.mozilla.org/show_bug.cgi?id=1375182#c6
  • Loading branch information
SimonSapin committed Feb 15, 2019
1 parent 710271f commit 28e3321
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions etc/taskcluster/packet.net/tc.py
Expand Up @@ -22,8 +22,8 @@ def check():


def livelog():
win2016 = api("awsProvisioner", "workerType", "servo-win2016")
files = win2016["secrets"]["files"]
win2016 = secret("worker-type:aws-provisioner-v1/servo-win2016")
files = win2016["files"]
assert all(f["encoding"] == "base64" for f in files)
files = {f.get("description"): f["content"] for f in files}
cert = files["SSL certificate for livelog"]
Expand All @@ -33,7 +33,7 @@ def livelog():
"livelog_key_base64": key,
"livelog_cert": base64.b64decode(cert),
"livelog_key": base64.b64decode(key),
"livelog_secret": win2016["secrets"]["generic-worker"]["config"]["livelogSecret"],
"livelog_secret": win2016["config"]["livelogSecret"],
}


Expand Down

0 comments on commit 28e3321

Please sign in to comment.