/arn-infra:arn-infra-secretsfrom arn-infra
Scans projects for secrets exposure, recommends a provider, guides setup, configures injection into deployments and CI/CD, and produces a secrets audit report.
Ships in arn-infra. 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.
Read when SKILL.md points to them.
Set up, configure, and audit secrets management for infrastructure deployments. This skill scans the project for secrets exposure, recommends a secrets management provider, guides setup, configures injection into deployments, and produces a secrets audit report.
This skill addresses the complete secrets lifecycle: discovery of existing patterns, provider selection, configuration, injection into applications and CI/CD, and ongoing audit verification.
Read ## Arness from the project's CLAUDE.md. If no ## Arness section exists or Arness Infra fields are missing, inform the user: "Arness Infra is not configured for this project yet. Run /arn-infra-wizard to get started — it will set everything up automatically." Do not proceed without it.
Check the Deferred field. If Deferred: yes, inform the user: "Infrastructure is in deferred mode. Secrets management is not available until infrastructure is fully configured. Run /arn-infra-assess to un-defer." Stop.
Extract:
~/.arness/user-profile.yaml (or .claude/arness-profile.local.md if it exists — project override takes precedence). Apply the experience derivation mapping from ${CLAUDE_PLUGIN_ROOT}/skills/arn-infra-ensure-config/references/experience-derivation.md. If no profile exists, check for legacy Experience level in ## Arness as fallback.providers.md for per-provider detailsenvironments.mdtooling-manifest.json for available scanning toolsInvoke the arn-infra-security-auditor agent via the Task tool, passing the model from .arness/agent-models/infra.md as the model parameter (see plugins/arn-infra/skills/arn-infra-ensure-config/references/ensure-config.md "Dispatch convention" for fallback). Context:
--- FILES TO AUDIT --- Scan the entire project for secrets patterns:
.env files, .env.* files--- AUDIT CONTEXT --- Audit type: Secrets exposure scan Focus: Identify all secrets, credentials, API keys, tokens, connection strings, and passwords Check: .env files committed to git, secrets in Dockerfile build args, hardcoded values in IaC --- END AUDIT CONTEXT ---
--- INSTRUCTIONS --- Perform a comprehensive secrets scan:
After the agent returns its scan report, present the findings to the user using this format: "I scanned your project for secrets patterns. Here is what I found:
Read the local override or plugin default for
secrets-providers.md.
Based on the configured cloud provider(s) and experience level, recommend a secrets management approach:
Expert: Present all options with comparison: "Here are the secrets management options for your setup:
| Provider | Cost | Integration | Features | Recommendation |
|---|---|---|---|---|
| [comparison table from reference] |
Which would you prefer?"
Intermediate: Present the top 2 recommendations:
Ask (using AskUserQuestion):
"Which secrets provider do you prefer for your [provider] setup?"
Options:
Beginner: Make a direct recommendation: "For your setup, I recommend using [provider's native secrets manager / Doppler] because [rationale]. It is the simplest option that provides secure secrets storage."
Provider mapping:
Based on the user's choice, guide the setup:
For cloud-native secrets managers (AWS Secrets Manager, GCP Secret Manager, Azure Key Vault):
For third-party providers (Vault, Doppler, 1Password):
For SOPS (encrypted files in git):
.sops.yaml configurationFor beginners, simplify guidance to the most common pattern only. For experts, show all available options with configuration details.
Before executing any setup actions, present the plan: "Here is the setup plan for [provider]: [numbered list of actions from above]. Proceed?" Wait for user confirmation before executing.
Configure how secrets are injected into the deployment:
Container deployments:
IaC references:
data "aws_secretsmanager_secret_version" / data "google_secret_manager_secret_version"pulumi.secret() / provider-specific secret resourcessecretsmanager.Secret.fromSecretNameV2()reference(keyVaultId, 'secrets', secretName)CI/CD pipeline injection:
Platform-native (PaaS):
fly secrets set KEY=valueFor beginners, simplify guidance to the most common pattern only. For experts, show all available options with configuration details.
Present the injection configuration for user approval before applying.
Read the local override or plugin default for
secrets-audit-checklist.md.
For beginners, simplify guidance to the most common pattern only. For experts, show all available options with configuration details.
Run the audit checklist against the project's current state:
For each checklist item, verify and report:
Produce the secrets audit report using the Audit Report Template from the secrets-audit-checklist.md reference. Populate all fields from the scan and audit results.
Secrets Management Summary:
Recommended next steps:
"Secrets management is configured. Here is the recommended path:
/arn-infra-pipeline to configure secret injection in your deployment pipelines/arn-infra-monitor to configure alerting for secret access patterns/arn-infra-deploy to deploy with the new secrets configurationOr run /arn-infra-wizard for the full guided pipeline."
## Arness config missing: Suggest running /arn-infra-wizard to get started. Stop.Grep for common patterns (.env files, hardcoded strings). Present: "Automated scan unavailable -- performed basic pattern scan instead. Install TruffleHog or Gitleaks for thorough scanning."/arn-infra-discover to configure provider access.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub appsvortex/arness --plugin arn-infra25 skills in this plugin
/arn-infra-assessThis skill should be used when the user says "assess infrastructure", "infra assess", "arn infra assess", "infrastructure assessment", "analyze infrastructure needs", "what infrastructure do I need", "infrastructure audit", "app infrastructure assessment", "full infra assessment", "infrastructure review", "assess my app", "un-defer infrastructure", "infra backlog", or wants a comprehensive analysis of their application's infrastructure needs, including processing deferred infrastructure backlogs, to produce a prioritized infrastructure backlog published as issues./arn-infra-change-planThis skill should be used when the user says "plan infra change", "arn-infra-change-plan", "infra change plan", "plan this infrastructure change", "create infra plan", "arn infra plan", "plan the infra spec", "infrastructure implementation plan", "infra plan from spec", "generate infra plan", "plan infrastructure", or wants to generate a phased implementation plan from an infrastructure change specification, structured by provisioning order, blast radius, rollback checkpoints, and environment promotion gates./arn-infra-change-specThis skill should be used when the user says "infra change spec", "infrastructure change", "specify infrastructure change", "change spec", "arn infra spec", "describe infra change", "what infrastructure needs to change", "infra spec", "spec this infra change", "write infra spec", "infrastructure change specification", "create infra change spec", "upgrade to pipeline", "convert to pipeline", or wants to iteratively develop an infrastructure change idea into a well-formed specification through guided conversation, or wants to upgrade existing interactive IaC artifacts into the structured change pipeline.Other plugins' skills for the same job