Let --mount add to the identity's AZKABAN_MOUNTS #95

Open
opened 2026-12-01 16:57:59 +01:00 by motoko · 0 comments
Collaborator

A --mount on the command line replaces the mounts an identity sets
with AZKABAN_MOUNTS, so a supervisor that adds one mount to every
launch silently drops the identity's own.

Where

docs/configuration.md, Extra mounts and networks, seen at
1195b907e840dfeed2d6e2f8c3893a475c94ba3a: "--mount is repeatable and
takes precedence over the comma-separated AZKABAN_MOUNTS control."

Scenario

https://git.unitoo.it/claudiomaradonna/ministry composes each bot's
launch and adds --mount FOLDER:/etc/opencode:ro, the project's
OpenCode system configuration. A bot whose env holds
AZKABAN_MOUNTS=~/reference:~/reference:ro gets that folder in a launch
by hand, and loses it in every launch through Ministry, with nothing on
standard error to say so.

A supervisor cannot repeat the identity's mounts itself without reading
the identity's env, which holds its credentials.

Smallest change

Let the command line's mounts add to the control's, the control's first,
with a destination given twice stopping the launch as two --mount on
one destination would. Where replacing is wanted, an empty
AZKABAN_MOUNTS= in a nearer layer already says so. Failing that, name
on standard error the mounts a --mount drops.

A `--mount` on the command line replaces the mounts an identity sets with `AZKABAN_MOUNTS`, so a supervisor that adds one mount to every launch silently drops the identity's own. ## Where `docs/configuration.md`, Extra mounts and networks, seen at `1195b907e840dfeed2d6e2f8c3893a475c94ba3a`: "`--mount` is repeatable and takes precedence over the comma-separated `AZKABAN_MOUNTS` control." ## Scenario <https://git.unitoo.it/claudiomaradonna/ministry> composes each bot's launch and adds `--mount FOLDER:/etc/opencode:ro`, the project's OpenCode system configuration. A bot whose `env` holds `AZKABAN_MOUNTS=~/reference:~/reference:ro` gets that folder in a launch by hand, and loses it in every launch through Ministry, with nothing on standard error to say so. A supervisor cannot repeat the identity's mounts itself without reading the identity's `env`, which holds its credentials. ## Smallest change Let the command line's mounts add to the control's, the control's first, with a destination given twice stopping the launch as two `--mount` on one destination would. Where replacing is wanted, an empty `AZKABAN_MOUNTS=` in a nearer layer already says so. Failing that, name on standard error the mounts a `--mount` drops.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
claudiomaradonna/azkaban#95
No description provided.