xref: /aosp_15_r20/external/chromium-trace/catapult/common/lab/keychain_unlock.sh (revision 1fa4b3da657c0e9ad43c0220bacf9731820715a5)
1#!/bin/sh
2# Copyright 2016 The Chromium Authors. All rights reserved.
3# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
5#
6# Script to SSH into a list of bots and set up their keychains for Telemetry.
7# https://www.chromium.org/developers/telemetry/telemetry-mac-keychain-setup
8
9for hostname in "$@"
10do
11  ssh -t "$hostname" 'security unlock-keychain login.keychain
12security delete-generic-password -s "Chrome Safe Storage" login.keychain
13security add-generic-password -a Chrome -w "+NTclOvR4wLMgRlLIL9bHQ==" \
14  -s "Chrome Safe Storage" -A login.keychain'
15done
16