본문으로 건너뛰기
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.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

연동 도구Stripe
설치 방법 보기

포함된 파일(1)

  • SKILL.md6.1 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

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

English | Bahasa Indonesia


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

English

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.

Orchestration & Integration

  • ci-cd-devops-architect: Connects pipeline jobs via GitHub OIDC to fetch secrets without static tokens.
  • authentication-identity-expert: Rotates JWT signing secrets and OAuth client credentials.
  • production-ready-hardener: Audits the repository for accidental secret leaks before deployment.

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

Bahasa Indonesia

Integrasi Orkestrasi

Terhubung dan mengorkestrasi bersama ci-cd-devops-architect, authentication-identity-expert, dan production-ready-hardener.

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.

Integrasi Orkestrasi

  • ci-cd-devops-architect: Mengintegrasikan otentikasi OIDC ke GitHub Actions tanpa token statis.
  • authentication-identity-expert: Merotasi kunci privat JWT dan rahasia penyedia OAuth.
  • production-ready-hardener: Memindai repositori untuk memastikan tidak ada kunci rahasia yang tertinggal sebelum rilis.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 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-plug1102026년 10월 21일 업데이트

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-plug1102026년 10월 21일 업데이트

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-plug1102026년 10월 21일 업데이트

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-plug1102026년 10월 21일 업데이트

Expert guide for autonomous Machine-to-Machine (M2M) agent settlement, dual-rail fiat & stablecoin micro-clearing, dynamic budget envelopes, and cryptographic agent invoicing / Panduan ahli settlement otonom antar-agen (M2M), kliring mikro dual-rail fiat & stablecoin, pagu anggaran dinamis, dan penagihan agen kriptografis.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

roedyrustam/vibes-plug1102026년 10월 21일 업데이트

Expert guide for long-term episodic memory integration (Mem0 v2, Letta/MemGPT, Zep v2), memory tier architecture, pgvector HNSW storage, and unified context management for autonomous AI agents / Panduan ahli untuk integrasi memori episodik jangka panjang (Mem0 v2, Letta/MemGPT, Zep v2), arsitektur tier memori, penyimpanan pgvector HNSW, dan manajemen konteks terpadu untuk agen AI otonom.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

roedyrustam/vibes-plug1102026년 10월 21일 업데이트

roedyrustam의 스킬 모두 보기

이 스킬의 문제 신고