feat: narrow resources for co-owned settings; release 0.1.0-dev.3 #4

Merged
john merged 1 commit from feat/narrow-resources into main 2026-11-26 09:28:31 +00:00
Owner

Lets john/ai move all its Open WebUI settings writes onto the provider without the provider taking over more than john/ai owns today.

Resource Owns Leaves alone / checks
openwebui_openai_connection_models (new) model_ids of the connection with a given URL every other byte of /openai/config sent back and compared after the write; key never read into state; unknown URL or duplicate URL fails
openwebui_oauth_roles (new) OAUTH_ALLOWED_ROLES, OAUTH_ADMIN_ROLES writes only those two (0.13.5 stores only fields present); plan fails unless role management on, claim matches, persistent config; other settings compared after
openwebui_subagents_config as configured omitted limits/prompt keep live value incl. null; unknown live field refused
openwebui_models_config as configured omitted fields keep live value incl. null (pins); unknown live field refused
media config_json same JSON is not a change (import planned a formatting-only diff)

Semantics checked against Open WebUI v0.13.5 source (routers/openai.py update_config, routers/auths.py update_oauth_config with exclude_none, routers/configs.py).

Live plan (dev build, read-only, against ai.yawn.dev with john/ai's current declarations): Plan: 6 to import, 0 to add, 0 to change, 0 to destroy, every row no-op, no key material in the plan JSON.

Tests: 8 new offline (fake 0.13.5 server: import→no-op→change→no-op, byte preservation of unmodelled connection fields and other connections, key absent from state, precondition refusals write nothing, exactly-two-field OAuth body, subagents/models keep live values). check.sh, security scan (0 findings), yawn ci verify pass. VERSION 0.1.0-dev.3.

Lets john/ai move all its Open WebUI settings writes onto the provider without the provider taking over more than john/ai owns today. | Resource | Owns | Leaves alone / checks | |---|---|---| | `openwebui_openai_connection_models` (new) | `model_ids` of the connection with a given URL | every other byte of `/openai/config` sent back and compared after the write; key never read into state; unknown URL or duplicate URL fails | | `openwebui_oauth_roles` (new) | `OAUTH_ALLOWED_ROLES`, `OAUTH_ADMIN_ROLES` | writes only those two (0.13.5 stores only fields present); plan fails unless role management on, claim matches, persistent config; other settings compared after | | `openwebui_subagents_config` | as configured | omitted limits/prompt keep live value incl. null; unknown live field refused | | `openwebui_models_config` | as configured | omitted fields keep live value incl. null (pins); unknown live field refused | | media `config_json` | | same JSON is not a change (import planned a formatting-only diff) | Semantics checked against Open WebUI v0.13.5 source (`routers/openai.py update_config`, `routers/auths.py update_oauth_config` with `exclude_none`, `routers/configs.py`). **Live plan** (dev build, read-only, against ai.yawn.dev with john/ai's current declarations): `Plan: 6 to import, 0 to add, 0 to change, 0 to destroy`, every row `no-op`, no key material in the plan JSON. Tests: 8 new offline (fake 0.13.5 server: import→no-op→change→no-op, byte preservation of unmodelled connection fields and other connections, key absent from state, precondition refusals write nothing, exactly-two-field OAuth body, subagents/models keep live values). check.sh, security scan (0 findings), yawn ci verify pass. VERSION 0.1.0-dev.3.
feat: narrow resources for settings another process co-owns; release 0.1.0-dev.3
All checks were successful
CI / release-check-1 (pull_request) Successful in 14s
CI / release-check (pull_request) Successful in 0s
Security / scan (pull_request) Successful in 33s
Security / security (pull_request) Successful in 0s
CI / check (pull_request) Successful in 4m11s
e7568b3476
- openwebui_openai_connection_models: one connection's model allowlist by URL.
  Rest of /openai/config sent back unchanged and verified; key never in state.
- openwebui_oauth_roles: OAUTH_ALLOWED_ROLES/OAUTH_ADMIN_ROLES only, written
  alone (the route stores only fields present). Plan fails unless role
  management is on, the claim matches and settings persist.
- subagents_config, models_config: omitted attributes keep the live value
  (including none); both refuse unknown live fields (whole-form POST).
- media config_json: same JSON is not a change (import showed formatting diff).
john merged commit 48494a6323 into main 2026-11-26 09:28:31 +00:00
john deleted branch feat/narrow-resources 2026-11-26 09:28:32 +00:00
Sign in to join this conversation.
No reviewers
No labels
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
john/tofu-provider-openwebui!4
No description provided.