You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cli: UTEKE_HOME alone still routes to a running server that serves another store #1445
With [server] enabled = true and uteke-serve running, UTEKE_HOME=/tmp/iso uteke remember ... (no --store) is routed to the server. The server serves its own store, so the command reads and writes that store instead of /tmp/iso.
resolve_store_path says the store is /tmp/iso (#1105). Routing ignores that.
Found while fixing the same problem for an explicit --store in #1444. That PR only covers --store; UTEKE_HOME was left out of scope.
Why
#1105 made UTEKE_HOME select the database so that an "isolated-looking" invocation cannot touch the default (often production) store. Server routing still breaks that promise.
Possible fix
Route only when the store the CLI resolves is the store the server serves.
Today the CLI cannot know which store the server serves. Options:
expose the store identity on an authenticated endpoint, or
Activity
test(cli): pin that the store probe sends the auth token; document th…
fix(cli): route to a running server only when it serves the resolved …