Skip to content
Permalink
Browse files

Get livelog keys from tc-secrets instead of worker type definition

… 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 28e3321e99bfa5e491ea6c7690ac1b7cce9c0e23
Showing with 3 additions and 3 deletions.
  1. +3 −3 etc/taskcluster/packet.net/tc.py
@@ -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"]
@@ -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"],
}


0 comments on commit 28e3321

Please sign in to comment.
You can’t perform that action at this time.