0
0
#!/usr/bin/env bash
# The staging network's accounts by role: the one definition (README.md "Accounts" is its table), sourced by trust.sh,
# target.sh, suite.sh, gateway.sh and probe.sh. alice<n> is the requester side, bob<n> the bidder side, as on prod.
# Every one is a throwaway account of the network's bidder PDS, handle <name>-<run><time>.bob.test.
# The bidders' own handles (bob2 to bob<n+1> for the module's n bidder VMs: tests/modules/staging bidder_account; the next
# number with t<tag>, bob<n+2>t<tag>: 0020's) are not accounts made here.
# the gate's drivers, one gate slot each: the target's accounts
STG_DRIVERS="alice1 alice2 alice3 alice4"
# the roles the Rust system tests ask the target for (tests/testkit/README.md "Roles"), role=account, each a driver:
# the requester is driver 1, the second requester driver 2, the atirc owner driver 3 (every driver is its own atirc
# root: composition 0011 mints its token as whichever driver runs it). No bidderOperator: the bidders are installed
# with association Skip, so no account operates them and the target names none
STG_ROLES="requester=alice1 secondRequester=alice2 atircOwner=alice3"
# the operator of the gateway's requester (gateway.sh up: the requester is localRepo, this account's agent, as prod's is
# alice's): vouched as a driver is, not an account of the target
STG_GATEWAY=alice5
# the ssh gateway's operator (gateway.sh ssh-up): vouches the drivers, not an account of the target
STG_OPERATOR=bob1
# the keys of an accounts.json object that are drivers: jq --arg d "$STG_DRIVERS" "$STG_PICK_DRIVERS"
STG_PICK_DRIVERS='($d | split(" ")) as $n | with_entries(select(.key as $k | $n | index($k)))'