hive reads the forge for nix as its own account, not core
hive-c0re copies the hive's store read token to /run/hyperhive/forge-hive-token for nix's git credential helper, and no longer mints, reads or falls back to the core admin token. drops the core user sweep, avatar upload, webhook cleanup and hive-priv's RunForgeAdmin.
This commit is contained in:
parent
32a4821cb4
commit
b79896c237
23 changed files with 236 additions and 1118 deletions
|
|
@ -344,14 +344,6 @@ pub async fn reload_gateway_nginx() -> Result<()> {
|
|||
ok(call(&PrivRequest::ReloadGatewayNginx).await?)
|
||||
}
|
||||
|
||||
/// Run `forgejo admin <args>` inside the `hive-forge` container via
|
||||
/// hive-priv (which runs as root and can nsenter into the container).
|
||||
/// Returns `(stdout, stderr)` on success.
|
||||
pub async fn run_forge_admin(args: &[&str]) -> Result<(String, String)> {
|
||||
let owned: Vec<String> = args.iter().map(|s| (*s).to_owned()).collect();
|
||||
check(call(&PrivRequest::RunForgeAdmin { args: owned }).await?)
|
||||
}
|
||||
|
||||
/// Create (`paused: true`) or remove (`paused: false`) the pause marker in
|
||||
/// `agent_name`'s harness dir via hive-priv (running as root).
|
||||
///
|
||||
|
|
|
|||
Loading…
Reference in a new issue