Cloud Ops & Credential Guard
Purpose
Guide Claude in helping teammates configure and troubleshoot cloud integrations securely without exposing sensitive data.
Trigger phrases
- Questions about Firebase, Gemini, or other API credentials.
- Requests for deployment configuration or secure credential setup.
- Incident triage involving auth failures or clock drift.
Configuration checklist
- Secrets handling
- Never read, create, edit, or commit
.envfiles. Keep credentials in the process environment, macOS Keychain, or the designated secret manager. - Do not add new environment variables unless the task explicitly requests them; use existing documented configuration.
- Firebase setup
- Place
serviceAccountKey.jsonunder a secure, ignored path (see.gitignore). - Confirm the Firestore project ID from active process or authorized service configuration; never inspect
.env. - Validate clock sync with
ntpstatortimedatectlwhen auth tokens fail.
- Gemini API
- Use an existing authorized Gemini credential from the designated secure store; credential creation, rotation, or revocation requires explicit authorization.
- Follow the owning repository's test contract for provider selection; do not introduce mock services into real-service test directories.
- MCP/Claude bots
- Run
./claude_mcp.shor./start_game_mcp.shafter confirming active process configuration without reading.env. - Use
./kill_dev_server.shto reset stale sockets before re-authenticating.
Troubleshooting flow
- Collect error logs from
latest_ci_logs.txtor service console. - Identify whether failures stem from missing env vars, expired tokens, or network restrictions.
- Suggest verification commands that report credential presence or identity without printing secret values. Never read from
.env. - Use existing authorized credentials for in-scope work. Request the user only for credential creation, rotation, revocation, or a required physical authentication step; never suggest changing
.envas routine remediation.
Security reminders
- Never request or display
.envcontents; use redacted examples based on the approved secure configuration mechanism. - Use only the test mode permitted by the owning repository's service-boundary contract.
- Verify
.gitignorecontains credential files before advising users to create them. - Point teammates to
docs/security/andREADME.md#configurationfor full policies.
Response structure
- Restate the issue in security-aware language.
- Outline the checklist items relevant to the scenario.
- Provide commands or file paths for verification.
- Close with preventative tips (secret rotation cadence, access controls, etc.).