Secure development

From jchavezar/vertex-ai-samples · View interactive version

Secure development is an AI agent skill from the GitHub repository jchavezar/vertex-ai-samples. Enforces strict 'Zero-Leak' security practices, including secret management, gitignore rules, and environment variable protocols. Use when starting new projects or rigorously auditing existing ones.

How to use this skill

Skill file

Secure Development & Zero-Leak Protocol

When to use this skill

Instructions

1. The Zero-Leak Policy

NEVER commit secrets, API keys, credentials, or .env files to git.

If a secret is committed, it is considered compromised and must be revoked immediately.

2. Global Exclusion Rules (.gitignore)

You MUST ensure the .gitignore file includes the following "Ironclad" section:

# Data & Secrets (MANDATORY)
.env
.env.*
!.env.example
*.pem
*.key
*.p12
*.pfx
client_secret*.json
credentials.json
*_token.json

Exception: .env.example must be tracked, but meaningful values must be empty.

3. Variable Management: The "Accumulate" Rule

4. Code Scanning

5. Remediation (If a leak occurs)

  1. Revoke the key at the provider immediately.
  2. Rotate the key (generate new).
  3. Scrub historical commits if necessary (git filter-repo).
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.