Skip to content
cccskills
FreePublished on 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.

The English summary is being prepared. Showing the original description.

Works withStripe
See how to install

Files included (1)

  • SKILL.md6.1 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

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.

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

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.

The English summary is being prepared. Showing the original description.

roedyrustam/vibes-plug110Updated Oct 21, 2026

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.

The English summary is being prepared. Showing the original description.

roedyrustam/vibes-plug110Updated Oct 21, 2026

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.

The English summary is being prepared. Showing the original description.

roedyrustam/vibes-plug110Updated Oct 21, 2026

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.

The English summary is being prepared. Showing the original description.

roedyrustam/vibes-plug110Updated Oct 21, 2026

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.

The English summary is being prepared. Showing the original description.

roedyrustam/vibes-plug110Updated Oct 21, 2026

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.

The English summary is being prepared. Showing the original description.

roedyrustam/vibes-plug110Updated Oct 21, 2026

See all skills by roedyrustam

Report a problem with this skill