//! The rest of computer.socialweb.test.*: tenant clusters, the k8s and ssh web pages (OAuth by headless Chrome, a //! cookie the host keeps), the ssh gateway's temporary key, an atirc observer token, the orchestrator's ssh / restart / //! cluster / bundle / records / events, the page round (0009), root on a staging VM. Secrets (cookies, tokens, //! passwords) stay in the host. use std::collections::HashMap; use std::path::PathBuf; use std::process::Stdio; use std::sync::Mutex; use std::time::{Duration, Instant}; use atlibs_host::run::{Sub, SubCmd}; use atlibs_kube::Cluster; use atlibs_ssh::Dest; use serde_json::{Value, json}; use sha2::{Digest, Sha256}; use testkit::requester::{exec_line, kept_by_rule, oauth_signin_on, tail, uris_in}; use testkit::target::{check_private, expand}; use tokio::io::AsyncBufReadExt; use tokio::sync::mpsc; use super::{Swc, abs_dir_of, exec_words, str_of}; #[derive(Default)] pub struct Extra { /// origin -> Cookie header of a signed-in page session jars: Mutex>, /// (ssh web origin, rkey): temporary keys to remove keys: Mutex>, /// observer nick -> its atirc token tokens: Mutex>, /// requester name -> its run requester argv (restart) pub argv: Mutex>>, /// owner mesh nodes this run started (`atirc mesh run`): name -> (atirc, its config dir, the process) pub nodes: tokio::sync::Mutex>, /// knotless cleanups: "sh