Token CLI owner check, 0600 pre-created DB, never chmod existing state dir; README updates

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YShymaPrXmc3KYRUg2HMSs
This commit is contained in:
ariandClaude Sonnet 5.5 committed 2026-10-16 10:02:15 -04:00
1 parent f1d659965b
commit 646fbfd46b
5 files changed
+152 -10

No files matched your search

+2
View File
@@ -148,6 +148,8 @@ pub async fn verify(pool: &SqlitePool, token: &str) -> Result<bool> {
}
pub async fn run(cmd: TokenCmd, config: &Config) -> Result<()> {
#[cfg(unix)]
crate::db::ensure_token_cli_owner(&config.auth.db_path)?;
let pool = crate::db::open(config).await?;
match cmd {
TokenCmd::Create { name } => {