Secrets¶
janito stores sensitive configuration like API keys securely in a separate secrets file.
Secrets File Location¶
Secrets are stored in ~/.janito/secrets.json
Setting Secrets¶
Gmail Credentials¶
# Set Gmail username
janito --set-secret gmail_username=your-email@gmail.com
# Set Gmail app password
janito --set-secret gmail_password=your-app-password
OneDrive Credentials¶
Custom Secrets¶
Viewing Secrets¶
Secrets are partially masked in the output for security.
Clearing Secrets¶
Remove a specific secret:
Security Notes¶
- Secrets are stored locally in
~/.janito/secrets.json - The file is stored with restricted permissions (600 on Unix systems)
- API keys are partially masked when displayed
- Never share your secrets file or commit it to version control
Secrets Format¶
The secrets file is a simple JSON dictionary:
{
"gmail_username": "your-email@gmail.com",
"gmail_password": "xxxx xxxx xxxx xxxx",
"azure_client_id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
Related¶
- Gmail Tools - Full Gmail setup guide
- OneDrive Tools - Full OneDrive setup guide