execverb: env policy resolved through value providers #152

Closed
opened 2026-06-17 23:02:00 +00:00 by coilysiren · 0 comments
Owner

The exec dialect could not set environment variables on the wrapped process, so an exec launcher could only reach whatever the inherited env pointed at (e.g. ollama's localhost OLLAMA_HOST), never a tailnet host - and an opaque host can't be hardcoded in the committed guardfile.

Add an env <NAME> { value <provider> "<addr>" } block (child of exec, sibling of argv-prefix), plus env "NAME" "literal" for committed values. The value resolves at exec time through a value provider, so an opaque OLLAMA_HOST comes from SSM rather than the guardfile.

To share the consumer's one provider registry across both engines, the Provider type + built-ins (env/file/literal) + Merge/Resolve move to a new pkg/valuesource; specverb.Provider becomes an alias. The generator wires the registry into mountExec (the AWS/SSM resolver block now triggers off exec members too), and execverb.Describe surfaces each env var's source (never the resolved value).

Implements the env-policy follow-up named in docs/execverb.md. Drives the OLLAMA_HOST-to-tower override for ward-kdl agents ollama.

The exec dialect could not set environment variables on the wrapped process, so an exec launcher could only reach whatever the inherited env pointed at (e.g. ollama's localhost OLLAMA_HOST), never a tailnet host - and an opaque host can't be hardcoded in the committed guardfile. Add an `env <NAME> { value <provider> "<addr>" }` block (child of `exec`, sibling of `argv-prefix`), plus `env "NAME" "literal"` for committed values. The value resolves at exec time through a value provider, so an opaque `OLLAMA_HOST` comes from SSM rather than the guardfile. To share the consumer's one provider registry across both engines, the Provider type + built-ins (env/file/literal) + Merge/Resolve move to a new `pkg/valuesource`; `specverb.Provider` becomes an alias. The generator wires the registry into `mountExec` (the AWS/SSM resolver block now triggers off exec members too), and `execverb.Describe` surfaces each env var's source (never the resolved value). Implements the env-policy follow-up named in docs/execverb.md. Drives the OLLAMA_HOST-to-tower override for `ward-kdl agents ollama`.
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
coilyco-flight-deck/cli-guard#152
No description provided.