add infra credentials setup (gitignored secrets, shared template)

This commit is contained in:
Azreen Jamal
2026-03-03 03:01:54 +08:00
parent f832b913d5
commit 5e0d80daf9
3 changed files with 43 additions and 0 deletions

37
.claude/infra.md.example Normal file
View File

@@ -0,0 +1,37 @@
# Infrastructure Access — TEMPLATE
# Copy to .claude/infra.md and fill in real values.
# Share the real file via 1Password / Vault / `age` encrypted blob — NEVER commit it.
## Dokploy
- **Dashboard**: https://dokploy.example.com
- **API Token**: `dkp_...`
- **SSH User**: `deploy`
- **SSH Host**: `dokploy.example.com`
- **SSH Port**: `22`
- **SSH Key Path**: `~/.ssh/id_dokploy` ← or reference a 1Password SSH key
## Servers
| Name | IP / Host | SSH User | Notes |
|------------|------------------------|----------|----------------|
| prod-1 | 10.0.0.1 | deploy | primary node |
| staging-1 | 10.0.0.2 | deploy | staging node |
## Docker Registry
- **Registry**: `ghcr.io/your-org`
- **Username**: `bot`
- **Token**: `ghp_...`
## DNS / Cloudflare
- **API Token**: `cf_...`
- **Zone ID**: `...`
## Monitoring
- **Grafana URL**: https://grafana.example.com
- **API Key**: `eyJ...`
## Database
- **Prod Postgres**: `postgres://user:pass@host:5432/db`
- **Staging Postgres**: `postgres://user:pass@host:5432/db_staging`
## Other Secrets
<!-- Add anything else Claude Code needs to manage your infra -->

1
.gitignore vendored
View File

@@ -7,6 +7,7 @@ __pycache__/
# API keys — never commit real credentials # API keys — never commit real credentials
.env .env
.claude/infra.md
.pi/agent-sessions/ .pi/agent-sessions/

View File

@@ -1,5 +1,10 @@
# Pi vs CC — Extension Playground # Pi vs CC — Extension Playground
## Infrastructure Access
**Always read `.claude/infra.md` at the start of every session** — it contains live credentials and connection details.
To set up: copy `.claude/infra.md.example``.claude/infra.md` and fill in real values.
**Team distribution**: share the real file via 1Password shared vault (or `age`-encrypted blob, never git).
Pi Coding Agent extension examples and experiments. Pi Coding Agent extension examples and experiments.
## Tooling ## Tooling