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
|
|
@ -361,25 +361,6 @@ pub enum PrivRequest {
|
|||
/// service.
|
||||
ReloadGatewayNginx,
|
||||
|
||||
// --- Forge admin CLI ---
|
||||
/// Run `forgejo admin <args>` inside the `hive-forge` container as the
|
||||
/// `forgejo` unix user. hive-priv executes:
|
||||
///
|
||||
/// nixos-container run hive-forge -- runuser -u forgejo --
|
||||
/// forgejo --work-path /var/lib/forgejo admin `<args>`
|
||||
///
|
||||
/// `args` must not contain null bytes, newlines, or shell metacharacters;
|
||||
/// hive-priv validates this before spawning the subprocess.
|
||||
///
|
||||
/// This operation requires root (to nsenter into the forge container's
|
||||
/// namespaces); hive-c0re (which runs as `hive-core`) calls it through
|
||||
/// this route instead of spawning `nixos-container run` directly.
|
||||
RunForgeAdmin {
|
||||
/// Argument list appended after `forgejo --work-path /var/lib/forgejo admin`.
|
||||
/// Each element is a separate argv word — no shell expansion occurs.
|
||||
args: Vec<String>,
|
||||
},
|
||||
|
||||
// --- Agent turn-loop pause ---
|
||||
// (marker filename: `PAUSED_MARKER_FILE`, defined at the crate root)
|
||||
/// Create (`paused: true`) or remove (`paused: false`) the pause marker
|
||||
|
|
|
|||
Loading…
Reference in a new issue