mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
fix(cli): auth file should be chmod 600 (#6925)
* wip new tests * test for auth file mode * check perms internally * chore: lint
This commit is contained in:
parent
6ed33da2a4
commit
ce6dc3b7af
5 changed files with 45 additions and 23 deletions
|
|
@ -82,7 +82,7 @@ export class SessionService {
|
|||
}
|
||||
}
|
||||
|
||||
await writeFile(this.authPath, yaml.stringify({ instanceUrl, apiKey }));
|
||||
await writeFile(this.authPath, yaml.stringify({ instanceUrl, apiKey }), { mode: 0o600 });
|
||||
|
||||
console.log('Wrote auth info to ' + this.authPath);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue