Common security

From macalbert/envilder · View interactive version

Common security is an AI agent skill from the GitHub repository macalbert/envilder. Security guardrails for Envilder (CLI, GitHub Action, SDKs, CDK, website). Covers secret handling, credential hygiene, supply chain safety, input validation, and CI/CD security. Use when reviewing code for security, handling secrets, validating CLI input, or reviewing GitHub Actions workflows.

How to use this skill

Skill file

Security Skill

Security guardrails adapted to the Envilder project: a CLI + GitHub Action +

multi-runtime SDK platform that manages secrets from AWS SSM and Azure Key Vault.

When to Use

1. Secret Handling

Never Expose Secrets in Output

Storage Rules

| Context | Where secrets live | Never |

| ------- | ------------------ | ----- |

| Production | AWS SSM Parameter Store (encrypted) | In code, env vars, or config files |

| Production (Azure) | Azure Key Vault | In code or checked-in files |

| CI | GitHub Secrets → OIDC → SSM | As plaintext in workflow YAML |

| Local dev | AWS profile → SSM (via envilder.json) | In .env files committed to Git |

| Tests | TestContainers (LocalStack for AWS and Azure) | Real credentials in test code |

Secretlint Enforcement

Secretlint runs on every pnpm lint invocation and scans all files for

credential patterns (AWS keys, tokens, private keys). If Secretlint fails,

the commit is blocked.

2. Credential Hygiene in CI/CD

GitHub Actions OIDC

GitHub Action Inputs

Workflow Permissions

3. Input Validation

CLI

SDKs

Website

4. Supply Chain Security

Dependency Pinning

| Stack | Mechanism | File |

| ----- | --------- | ---- |

| TypeScript | pnpm-lock.yaml + catalog: versions | pnpm-workspace.yaml |

| .NET | Central Package Management | Directory.Packages.props |

| Python | uv.lock (deterministic) | uv.lock |

Rules

CDK

5. SDK-Specific Security

AWS SSM Provider

Azure Key Vault Provider

LocalStack for Azure emulator (it serves a publicly trusted certificate)

Cross-Provider

introduce insecure combinations (e.g., disabling encryption)

validateSecrets(): document this to users clearly

6. Website Security

7. Testing Security

cloud endpoints

in SSM, never in code

principal) are placeholders the emulator accepts; they are not secrets

Quick Security Checklist

Before merging any PR, verify:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.