跳到正文
cccskills
免费在 GitHub 公开

zero-trust-secret-vault

Expert guide for Zero-Trust Secret Management (Infisical, HashiCorp Vault, Doppler), automated API key rotation, and environment security / Panduan ahli manajemen rahasia Zero-Trust, rotasi kunci API, dan keamanan variabel lingkungan.

中文简介正在准备中。当前显示原文说明。

集成工具StripeSupabase
查看安装方法

包含的文件(1)

  • SKILL.md6.6 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Zero-Trust Secret Vault & Credential Security Expert (2026 Edition)

English | Bahasa Indonesia


<a name="english"></a>

English

Orchestration & Integration

  • Threat Defense & Red Teaming: autonomous-red-teamer, prompt-injection-firewall, post-quantum-crypto-migrator
  • Identity & Access Management: authentication-identity-expert, rate-limit-abuse-prevention, compliance-gdpr-privacy-expert
  • Cloud Infrastructure & CI/CD: ci-cd-devops-architect, github-actions-expert, cloud-hosting-expert, docker-container-expert
  • Database & FinTech Security: database-orm-expert, supabase-security-expert, doku-payment-gateway, saas-billing
  • Lifecycle & Hardening: production-ready-hardener, brainstorming, zero-to-prod-orchestrator, session-memory-manager

Description

Production security engineering guide for Zero-Trust Secret Management across microservices, edge deployments, and CI/CD pipelines. Eliminates plain-text .env files in git repositories and container images using Infisical, HashiCorp Vault, and Doppler. Covers automated API key rotation, dynamic short-lived database credentials, Gitleaks pre-commit scanning, and memory-safe secret injection in Node.js, Bun, and Next.js 15.

Trigger Conditions

  • Storing high-privilege credentials (database passwords, Stripe/DOKU API keys, AWS secret keys).
  • Replacing static, committed .env files with encrypted, centrally-managed secret stores.
  • Setting up automated credential rotation (e.g., 30-day rotation for payment gateway webhooks).
  • Preventing accidental secret leaks during git commits and pull request reviews.

Level 1: Dynamic Ephemeral Credentials (Infisical SDK 2026)

// src/lib/vault/secret-loader.ts
import { InfisicalClient } from '@infisical/sdk';

let vaultClient: InfisicalClient | null = null;

export async function getSecureSecret(secretName: string): Promise<string> {
  // Fallback to local process.env during offline development only
  if (process.env.NODE_ENV === 'development' && process.env[secretName]) {
    return process.env[secretName]!;
  }

  if (!vaultClient) {
    vaultClient = new InfisicalClient({
      clientId: process.env.INFISICAL_CLIENT_ID!,
      clientSecret: process.env.INFISICAL_CLIENT_SECRET!,
    });
  }

  const secret = await vaultClient.getSecret({
    environment: process.env.VAULT_ENV || 'prod',
    projectId: process.env.INFISICAL_PROJECT_ID!,
    secretKey: secretName,
  });

  if (!secret?.secretValue) {
    throw new Error(`[Zero-Trust-Vault] Failed to retrieve mandatory secret: ${secretName}`);
  }

  return secret.secretValue;
}

Level 2: Gitleaks Pre-Commit Secret Scanner

# .gitleaks.toml
title = "Vibes-Plug Zero-Trust Leak Prevention"

[extend]
useDefault = true

[[rules]]
id = "generic-api-key"
description = "Detects plain-text high-entropy API keys"
regex = '''(?i)(?:key|api|token|secret|password)[ \t]*[=:][ \t]*['"]([a-z0-9_\-\.]{20,})['"]'''
entropy = 3.5
secretGroup = 1
keywords = ["key", "api", "token", "secret", "password"]

The 4 Non-Negotiable Zero-Trust Rules

  1. Never Commit .env Files: .env* files (except .env.example) MUST be included in .gitignore and .npmignore. Commit history must be scoured with gitleaks.
  2. Ephemeral Credentials: For databases, prefer short-lived dynamic credentials with 1-hour TTL generated by Vault rather than permanent static passwords.
  3. No Secret Echo in Logs: Never log process.env or print connection strings containing passwords to terminal stdout or APM error reports.
  4. Principle of Least Privilege: Subagents and microservices must have read access strictly to their own scoped directory path (/services/billing/*), never to the root vault.

<a name="bahasa-indonesia"></a>

Bahasa Indonesia

Integrasi Orkestrasi

  • Pertahanan Ancaman & Red Teaming: autonomous-red-teamer, prompt-injection-firewall, post-quantum-crypto-migrator
  • Manajemen Akses & Identitas: authentication-identity-expert, rate-limit-abuse-prevention, compliance-gdpr-privacy-expert
  • Infrastruktur Cloud & CI/CD: ci-cd-devops-architect, github-actions-expert, cloud-hosting-expert, docker-container-expert
  • Keamanan Database & FinTech: database-orm-expert, supabase-security-expert, doku-payment-gateway, saas-billing
  • Siklus Hidup & Pengerasan: production-ready-hardener, brainstorming, zero-to-prod-orchestrator, session-memory-manager

Deskripsi

Panduan rekayasa keamanan produksi untuk Manajemen Rahasia Zero-Trust (Zero-Trust Secret Management) di seluruh microservices, edge computing, dan pipeline CI/CD. Menghilangkan file teks biasa .env dari repositori git dan image kontainer Docker menggunakan Infisical, HashiCorp Vault, dan Doppler. Mencakup rotasi kunci API otomatis, kredensial database sementara (ephemeral), pemindaian kebocoran Gitleaks pada pre-commit, dan injeksi memori aman pada Node.js, Bun, dan Next.js 15.

Kondisi Pemicu

  • Menyimpan kredensial berhak istimewa tinggi (password database, API key Stripe/DOKU, secret key cloud).
  • Menggantikan file .env statis yang rentan bocor dengan vault terenkripsi terpusat.
  • Menerapkan rotasi kredensial otomatis (misal: rotasi kunci webhook setiap 30 hari).
  • Mencegah insiden kebocoran kunci rahasia saat melakukan git commit atau pull request.

Contoh Injeksi Runtime via CLI (Tanpa File .env di Server)

# Menjalankan aplikasi secara aman dengan injeksi variabel memori langsung dari Vault
infisical run --env=prod -- node dist/index.js

4 Aturan Mutlak Zero-Trust

  1. Dilarang Komit File .env: File .env wajib masuk dalam .gitignore. Gunakan alat pemindai seperti Gitleaks untuk memeriksa riwayat komit sebelum kode dipublikasikan.
  2. Kredensial Dinamis Berumur Pendek: Prioritaskan pembuatan user dan password database sementara dengan masa berlaku (TTL) 1 jam dari HashiCorp Vault alih-alih password permanen.
  3. Sensor Kunci Rahasia: Jangan pernah mencetak console.log(process.env) atau menampilkan connection string database di log terminal maupun Sentry.
  4. Hak Akses Terkecil (Least Privilege): Batasi izin akses secret per modul. Layanan frontend hanya boleh mengakses kunci publik, sedangkan rahasia backend diisolasi di folder terpisah.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Expert guide for automated and manual Web Accessibility (a11y) testing — axe-core, Pa11y, Playwright a11y, screen reader testing, and WCAG 2.2 Level AA/AAA compliance / Panduan ahli pengujian aksesibilitas web.

中文简介正在准备中。当前显示原文说明。

roedyrustam/vibes-plug1122026年10月22日 更新

Expert guide for intelligent model cascading and routing — complexity-scored task routing from Fast (Composer 2.5, Grok 4.7/4.6) to Medium (Gemini 4 Argon, GPT-5.6 Sol, Claude Opus 5.5) and High (Claude Sonnet 5.5, Claude Fable 5.1, Muse Wonder) / Panduan ahli untuk kaskade dan routing model cerdas.

中文简介正在准备中。当前显示原文说明。

roedyrustam/vibes-plug1122026年10月22日 更新

Expert guide for intelligent model cascading and routing — complexity-scored task routing from Flash/Haiku to Sonnet/Opus/Astra, dynamic escalation with quality gates, 40-60% token cost reduction while maintaining output quality / Panduan ahli untuk kaskade dan routing model cerdas — routing tugas berbasis skor kompleksitas dari Flash/Haiku ke Sonnet/Opus/Astra, eskalasi dinamis dengan gerbang kualitas, pengurangan biaya token 40-60% dengan kualitas output terjaga.

中文简介正在准备中。当前显示原文说明。

roedyrustam/vibes-plug1122026年10月22日 更新

Master guide for Affective Computing, emotional AI, and real-time sentiment analysis through native multimodal tokens (voice intonation and facial micro-expressions) / Panduan utama komputasi afektif, AI emosional, dan analisis sentimen real-time melalui token multimodal native.

中文简介正在准备中。当前显示原文说明。

roedyrustam/vibes-plug1122026年10月22日 更新

Expert guide for Affective Computing, emotional AI, and real-time sentiment analysis through native multimodal tokens (voice intonation and facial micro-expressions) / Panduan ahli komputasi afektif, AI emosional, dan analisis sentimen real-time melalui token multimodal native.

中文简介正在准备中。当前显示原文说明。

roedyrustam/vibes-plug1122026年10月22日 更新

Expert guide for AI-assisted coding workflows — agentic code generation, multi-agent code swarms, self-healing CI/CD, automated PR review, spec-to-code pipelines, codebase knowledge graphs, and human-in-the-loop approval gates / Panduan ahli untuk workflow pengkodean berbasis AI — generasi kode agentic, code swarm multi-agen, CI/CD self-healing, review PR otomatis, pipeline spec-to-code, knowledge graph codebase, dan gate persetujuan human-in-the-loop.

中文简介正在准备中。当前显示原文说明。

roedyrustam/vibes-plug1122026年10月22日 更新

查看 roedyrustam 的全部技能

报告此技能的问题