/tsh-platform-engineering:managing-secretsfrom TSH Platform Engineering
Chooses and implements a secrets management approach for cloud and Kubernetes workloads: cloud-native stores, Vault, Sealed Secrets, External Secrets, OIDC federation, rotation policy, and audit logging.
Ships in TSH Platform Engineering. 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.
Pick the store that matches the deployment shape, then federate rather than copy credentials. The recurring failure this skill prevents is a long-lived cloud access key pasted into CI settings, which no rotation policy ever reaches.
Read ${CLAUDE_PLUGIN_ROOT}/shared/discovering-infrastructure-context.md first —
sections 3 and 4 detect the cloud provider and any secrets tooling already in place.
An existing pattern in the repository outranks the decision matrix below; extend it
rather than introducing a second mechanism alongside it.
| Severity | Rule |
|---|---|
| MUST | Use OIDC federation for CI/CD to cloud authentication wherever the platform supports it. Long-lived access keys require an explicit, recorded reason. |
| MUST | Define a rotation policy for every credential the change introduces — 30–90 days for credentials, and state the number rather than "regularly". |
| MUST | Keep secrets out of ConfigMaps, plain environment blocks in IaC, pipeline logs, and anything committed. Reference the secret store instead. |
| MUST | Enable audit logging on the secret store, and least-privilege access to it. A store nobody can read the access log of is not managed. |
| MUST | Use separate secret values per environment. One value shared across staging and production makes every staging incident a production incident. |
| NEVER | Print, echo, or log a secret value to verify it — verify by reference or by the consuming service starting successfully. |
| NEVER | Commit a .env with real values. Commit .env.example with placeholders. |
| Scenario | Solution |
|---|---|
| Single cloud, simple apps | Cloud-native — AWS Secrets Manager, Azure Key Vault, GCP Secret Manager |
| Multi-cloud or hybrid | HashiCorp Vault |
| GitOps with Kubernetes | Sealed Secrets, or External Secrets Operator when the source of truth is a cloud store |
| Local dev, small teams | SOPS with age or GPG |
| CI/CD to cloud | OIDC federation — no stored key at all |
Detection for each of these is in the shared context file, section 4. Match what is already there before applying this table.
| CI platform | Cloud | Approach |
|---|---|---|
| GitHub Actions | AWS | OIDC with aws-actions/configure-aws-credentials |
| GitHub Actions | Azure | OIDC with azure/login |
| GitHub Actions | GCP | OIDC with google-github-actions/auth |
| GitLab CI | AWS or GCP | OIDC with the job JWT |
| Bitbucket Pipelines | AWS | OIDC (oidc: true) with a web-identity role |
| Any | Any | Vault with JWT/OIDC auth |
Look up the current syntax with context7 against the action or provider version the
project pins — these integrations change their input names between majors.
context7 for the pinned provider or action version.| Don't | Do |
|---|---|
| Hardcode secrets | Reference the secret store |
Commit .env | Commit .env.example with placeholders |
| Share secrets over Slack or email | Grant access in the store |
| One secret across environments | One per environment |
| Long-lived CI credentials | OIDC with short-lived tokens |
| Secrets in ConfigMaps | Kubernetes Secrets, encrypted at rest |
Secrets in Terraform variables committed as .tfvars | Data sources reading the store at plan time |
What SKILL.md sets; muted values are Claude Code's defaults
Trigger on: storing application credentials, a pipeline that needs cloud credentials, replacing long-lived access keys with OIDC, secret rotation, GitOps-compatible secrets in Kubernetes, SOPS or Sealed Secrets or External Secrets Operator questions, a secret found committed to the repository, or auditing secret handling before a release.
Three short reads, in order
Kubernetes, AWS, GCP, Azure
secrets-management, vault, oidc, gitops-secrets, secret-rotation
7 skills in this plugin
/deploying-to-kubernetesConfigures Kubernetes workloads to a production standard: choosing between Deployment, StatefulSet, DaemonSet and Job, resource requests and limits and the QoS class they produce, readiness/liveness/startup probes, PodDisruptionBudgets and anti-affinity, HPA/KEDA/VPA scaling, Helm chart and Kustomize overlay structure, ingress, and non-root security contexts. Use when deploying an application to a cluster, writing or reviewing manifests or charts, or adding scaling and resilience to an existing workload./designing-multi-cloud-architectureSelects cloud services and a multi-cloud topology using an explicit decision framework: which of the six multi-cloud patterns fits the actual driver, how AWS, Azure and GCP services map onto each other, where a cloud-agnostic abstraction pays for itself and where it costs more than lock-in, and how to phase a migration. Use when choosing cloud services for a workload, planning a cross-cloud or DR topology, or evaluating a move between providers./implementing-ci-cd-pipelinesDesigns and implements CI/CD pipelines on GitHub Actions, GitLab CI, Bitbucket Pipelines, Azure Pipelines or Jenkins: stage structure and caching, deployment strategy (rolling, blue-green, canary), OIDC federation for cloud credentials instead of stored keys, monorepo affected-only builds, and the plan-artifact and approval gates an infrastructure-as-code pipeline requires. Use when creating or changing a pipeline, wiring deployment or cloud authentication, or reviewing pipeline changes.npx claudepluginhub thesoftwarehouse/agentic-collections --plugin tsh-platform-engineeringOther plugins' skills for the same job