config: make skills_dir and agent_auth_path implicit under the state root #93
No reviewers
Labels
No labels
epic
in-review
ready-for-agent
ready-for-human
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
weiwen/evie!93
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fm/skills-auth-implicit"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
pi.skills_dirandpi.agent_auth_pathwere configurable paths that every real deployment pointed back into the state root anyway. They are now derived -<state_dir>/skillsand<state_dir>/auth.json- viaConfig::skills_dir()/Config::agent_auth_path(), likehomes_dirandsessions_dir, so they can no longer disagree withstate_dir.Also adds
$HOME/.evieto the state-root fallback chain ahead of the hardcoded/var/lib/evie, so a developer running the daemon by hand without systemd and without $XDG_STATE_HOME lands somewhere writable:explicit -> $STATE_DIRECTORY -> $XDG_STATE_HOME/evie -> $HOME/.evie -> /var/lib/evieDeploy-affecting: the provider credential is read at
<state_dir>/auth.jsonnow, sodeploy/docker/docker-compose.yamlmoves its bind target from/var/lib/evie/agent-auth.jsonto/var/lib/evie/auth.json(host-sidesecrets/agent-auth.jsonfilename unchanged). An existing deployment that setagent_auth_pathmust rename the file in its state volume; a staleagent_auth_path/skills_dirleft in config.toml is now an unknown key.cargo checkandcargo test(487 passed) both clean.Superceded by #94
Pull request closed