Skip to content
Development
Skill

/arn-infra-secrets

This skill should be used when the user says "manage secrets", "arn infra secrets", "infra secrets", "secrets management", "set up secrets", "configure secrets", "audit secrets", "secrets audit", "rotate secrets", "secret storage", "vault setup", "key management", "credential

From plugin
arness
3590 skills48 agents

Claude Code

$ npx -y skills add AppsVortex/arness --skill arn-infra-secrets --agent claude-code

SKILL.md

arn-infra-secrets.SKILL.md
name: arn-infra-secrets
description: >-
  This skill should be used when the user says "manage secrets", "arn infra secrets",
  "infra secrets", "secrets management", "set up secrets", "configure secrets",
  "audit secrets", "secrets audit", "rotate secrets", "secret storage",
  "vault setup", "key management", "credential management", "secrets scan",
  "check for exposed secrets", "secrets provider", "arn-infra-secrets",
  "set up secret manager", "configure secret injection", "environment variables",
  "env vars", "secure env vars", or wants to set up,
  configure, audit, or manage secrets and credential storage for their
  infrastructure deployment.
version: 1.0.0

Arness Infra Secrets

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.

Prerequisites

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:

  • **Experience level** -- derived from user profile. Read `~/.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** -- cloud providers in use (determines available secrets services)
  • **Providers config** -- path to `providers.md` for per-provider details
  • **Default IaC tool** -- for generating secrets manager IaC
  • **Environments** -- environment list for per-environment secret scoping
  • **Environments config** -- path to `environments.md`
  • **Tooling manifest** -- path to `tooling-manifest.json` for available scanning tools
  • **CI/CD platform** -- for pipeline secret injection (github-actions, gitlab-ci, bitbucket-pipelines, none)

---

Workflow

Step 1: Scan for Existing Secrets Patterns

Invoke 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
  • Configuration files (config.*, settings.*, application.*)
  • Dockerfiles and docker-compose files
  • IaC files (*.tf, *.hcl, Pulumi.*, cdk.json, *.bicep)
  • CI/CD pipeline files (.github/workflows/*, .gitlab-ci.yml)
  • Source code files (look for hardcoded connection strings, API keys, tokens)

--- END FILES TO AUDIT ---

--- 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: 1. Check if .env files are committed to git (vs. .gitignore'd) 2. Scan Dockerfiles for secrets in ARG, ENV, or COPY directives 3. Scan IaC files for hardcoded values (passwords, keys, connection strings) 4. Scan CI/CD pipelines for exposed secrets in logs or artifacts 5. Check for TruffleHog/Gitleaks availability and run if found 6. Identify all environment variables that contain sensitive values 7. List all secrets that need to be managed --- END INSTRUCTIONS ---

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:

  • **Secrets found:** [count] potential secrets in [count] files
  • **High risk:** [list critical findings -- e.g., committed .env files, hardcoded passwords]
  • **Medium risk:** [list moderate findings]
  • **Current secrets management:** [detected approach, or 'none']"

---

Step 2: Recommend Secrets Provider

> 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: 1. **[Native option]** -- Tightest integration with [provider], [cost]. Best if you're staying single-cloud. 2. **[Cross-cloud option]** -- Works across providers, [cost]. Best if you have multi-cloud plans.

**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:**

  • AWS --> AWS Secrets Manager (or SSM Parameter Store for simpler needs)
  • GCP --> GCP Secret Manager
  • Azure --> Azure Key Vault
  • Multi-cloud --> HashiCorp Vault or Doppler
  • PaaS (Fly.io, Railway, etc.) --> Platform-nati
Read more
@appsvortex
Ships witharness

Arness — H not required. Structured AI workflows for Claude Code. From first idea to production deploy. Seven entry commands. That's all you need to remember.

3590 skills48 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
35
Star history of AppsVortex/arness on GitHub, a chart by star-history.com

Other skills on arness.

arn-assessing

arn-assessing

This skill should be used when the user says "assessing", "arness assessing", "assess", "assess codebase", "technical review",…

@appsvortex@appsvortexInstall Skill
arn-code-assess

arn-code-assess

This skill should be used when the user says "arness code assess", "arn-code-assess", "tech debt audit", "assess the project", or…

@appsvortex@appsvortexInstall Skill
arn-code-batch-cve-fix

arn-code-batch-cve-fix

This skill should be used when the user says "fix CVEs", "patch vulnerabilities", "apply security patches", "batch CVE fix",…

@appsvortex@appsvortexInstall Skill
arn-code-batch-cve-scan

arn-code-batch-cve-sca…

This skill should be used when the user says "scan for CVEs", "CVE scan", "check for vulnerabilities", "dependabot triage",…

@appsvortex@appsvortexInstall Skill
arn-code-batch-implement

arn-code-batch-impleme…

This skill should be used when the user says "batch implement", "implement all", "batch execution", "implement all features",…

@appsvortex@appsvortexInstall Skill
arn-code-batch-merge

arn-code-batch-merge

This skill should be used when the user says "batch merge", "merge batch", "arness batch merge", "arn-code-batch-merge", "merge…

@appsvortex@appsvortexInstall Skill

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills2w309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc2w293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react5d252k
@facebook@facebookInstall Skill

Questions about arn-infra-secrets.

Which coding agents can use arn-infra-secrets?
arn-infra-secrets installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.