Secrets and Credentials

This document lists all secrets required for deployment. Never commit actual values to git.

Related: Takopi | Quartz | Cloudflare

Required Secrets

Telegram (for Takopi)

SecretHow to getWhere to use
TELEGRAM_BOT_TOKEN@BotFather → /newbot~/.takopi/takopi.tomlbot_token
TELEGRAM_CHAT_IDAPI or @userinfobot~/.takopi/takopi.tomlchat_id
TELEGRAM_USER_IDS@userinfobot~/.takopi/takopi.tomlallowed_user_ids

Cloudflare (for Quartz deployment)

SecretHow to getWhere to use
CLOUDFLARE_API_TOKENAPI TokensEnvironment variable or CLI
CLOUDFLARE_ACCOUNT_IDDashboard URLReference only

Required token permissions:

  • Account > Cloudflare Pages > Edit
  • Account > Account Settings > Read
  • User > User Details > Read

GitHub (for git push)

SecretHow to getWhere to use
SSH Private Keyssh-keygen -t ed25519~/.ssh/github_*
SSH Public KeyGenerated with privateGitHub repo → Deploy Keys

Claude (for Claude Code)

SecretHow to getWhere to use
OAuth Tokenclaude login (browser OAuth)~/.claude/.credentials.json

Note: Uses Claude Max subscription via OAuth, not API key.

Google Calendar (Service Account)

SecretHow to getWhere to use
Service Account JSON KeyGoogle Cloud Console → Create Service Account~/.takopi/credentials/google-calendar-service-account.json

Current setup:

  • Project: calendar-mcp-487708
  • Service account: calendar-mcp@calendar-mcp-487708.iam.gserviceaccount.com
  • Calendar access: ccherya@gmail.com (read/write)
  • Permissions: File mode 600 (owner read only)

Backup Strategy

Store these securely (not in git):

  1. Password manager (1Password, Bitwarden)
  2. Encrypted file on secure storage
  3. Environment variables on server

Quick Backup Command

# Create encrypted backup of secrets
cat > /tmp/secrets.txt << 'EOF'
TELEGRAM_BOT_TOKEN=xxx
TELEGRAM_CHAT_ID=xxx
CLOUDFLARE_API_TOKEN=xxx
CLOUDFLARE_ACCOUNT_ID=xxx
EOF
gpg -c /tmp/secrets.txt  # Creates secrets.txt.gpg
rm /tmp/secrets.txt
# Store secrets.txt.gpg securely

Restore

gpg -d secrets.txt.gpg > /tmp/secrets.txt
source /tmp/secrets.txt
rm /tmp/secrets.txt