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:
1 parent
f1d659965b
commit
646fbfd46b
5 files changed
+152
-10
No files matched your search
@@ -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 } => {
|
||||
|
||||
Reference in new issue
Block a user