/datumpin:secrets-handlingfrom datumpin
Secrets - adding env vars, .env files, credentials, Docker build secrets or CI secrets. What is committed, and keeping credentials out of image layers.
Ships in datumpin. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Real env files are gitignored (.env.* except .env.*.example). Each has a committed .env.<app>-<instance>.example beside it. Naming and layout live in config-led-deployment.
.example, including non-obvious math (604800 # 60 * 60 * 24 * 7, one week). Group by service for multi-service projects.# TODO: confirm default.docs/reference/ops/environment-variables.md table (variable / default / what reads it / purpose) is the only variable list. Ops docs link to it.Typed settings with every field required follow fastapi-service-architecture ("Typed settings"). Two secret-specific rules:
Optional[...] = None, and an absent value turns the integration off.Pass them through BuildKit secret mounts, which never touch an image layer:
# syntax=docker/dockerfile:1
RUN --mount=type=secret,id=gitea_token \
GITEA_TOKEN=$(cat /run/secrets/gitea_token) \
pip install --extra-index-url ... -r requirements.txt
ARG and ENV values persist in layer history, where anyone with the image can read them. Build credentials are scoped, package-read-only tokens.
Compose resolves the secrets: entries (environment: GITEA_TOKEN) from the instance's own file passed with docker compose --env-file .env.<app>-<instance>[.dev], and each instance's file carries its own copy of the registry credentials (see config-led-deployment).
Who holds which secret in each environment. The environments' hosts and env-file names are in gitea-workflows, Environments; host keys in config-led-deployment, rollout.md; CI's secrets in gitea-workflows.
| Secret | dev | prep and prod |
|---|---|---|
| App settings and service keys | the developer, dev values only | the host; prod's stay host-only until a secret store is chosen |
| Registry read | the developer's package-read token, where Docker reaches the registry; otherwise none (local-packages.md) | the host's package-read token |
| Registry write | nobody: CI publishes | nobody: CI publishes |
| Gitea source | the developer's SSH key | the host's read-only deploy key |
Workflows reference required secrets by name. See gitea-workflows for stating missing ones.
git ls-files | grep -E '^\.env' lists only *.example files.docker history --no-trunc <image> shows no token value..example has an inline comment.git grep for the token's prefix finds nothing.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub jago971/dp-cli --plugin datumpin31 skills in this plugin
/alembic-migrationsAlembic migrations in a FastAPI/SQLAlchemy service - env.py, SQLite batch mode, container-only commands. Use when adding or reviewing a migration./alignAlign - find and fix drift between code, tickets and plans. Use when a repo joins the workflow, direction changes, a milestone closes, or to clean the backlog./api-documentationDocumenting HTTP APIs - endpoint docstrings, router READMEs, docs/reference/api. Use when adding or editing a FastAPI route.