hashimiche/hal/k8s

Claude Code and agent skill by hashimiche/hal

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Deploy, verify, and troubleshoot the Vault Kubernetes auth lab in hal. Use this skill when the user asks to enable k8s auth, test pod authentication, wire Vault Secrets Operator to a local cluster, use native Kubernetes auth or JWT mode, or reset the KinD demo. Triggers include "enable k8s auth", "vault kubernetes", "vault secrets operator", "kind", "pod identity", and "hal vault k8s".

Install

npx vskill@latest install hashimiche/hal/k8s

SKILL.md

The same SKILL.md was published earlier as hashimiche/hal/k8s.

Hal Vault Kubernetes Configurator

This skill covers the KinD + Vault Secrets Operator lab implemented by hal vault k8s.

Lab Assumptions

  • Vault runs locally at http://vault.localhost:8200
  • Root token defaults to root
  • The lab uses KinD, kubectl, and helm
  • Native mode mounts kubernetes/
  • Some flows may also use jwt-k8s/ depending on the command options and lab mode

What The Command Actually Sets Up

  • KinD cluster attached to hal-net via ensureHALKindCluster() (sets KIND_EXPERIMENTAL_DOCKER_NETWORK and KIND_EXPERIMENTAL_PODMAN_NETWORK, then network connects the node if a newer kind CLI still placed it on the default kind network)
  • vso and app1 namespaces
  • KV mount: kv-k8s/
  • Policy: app1-read
  • Vault auth role: auth/kubernetes/role/app1-role
  • Vault Secrets Operator Helm release in namespace vso
  • Demo application in namespace app1
  • nginx reverse proxy endpoint at http://web.localhost:8088 (no port-forward workflow)
  • Demo website that renders the active secret value for native sync or CSI projection mode

Demo Modes

  • Native mode (default): VaultStaticSecret syncs mysecret to a Kubernetes secret, app pods read it as HAL_SECRET, and rollout is automated so secret edits in Vault are reflected by refreshed web pods.
  • CSI mode (--csi, Enterprise): CSISecrets projects the Vault secret via csi.vso.hashicorp.com; app pods read the mounted file and render local index.html.

Workflow

Step 1: Choose the lifecycle action

Use smart status mode if needed:

hal vault k8s

Then use one of these:

hal vault k8s enable hal vault k8s enable --csi hal vault k8s --update hal vault k8s disable

Step 2: Verify the resulting state

If Vault MCP is available, inspect:

  1. auth/kubernetes/config
  2. auth/kubernetes/role/app1-role
  3. kv-k8s/data/app1

Also verify the cluster side with CLI:

kubectl --context kind-kind get ns kubectl --context kind-kind get pods -n vso kubectl --context kind-kind get pods -n app1 helm --kube-context kind-kind list -n vso

Mode-specific checks:

kubectl --context kind-kind get vaultstaticsecret vso-mysecret -n app1 kubectl --context kind-kind get csisecrets hal-csi-secrets -n app1

Step 3: Present structured results

Tier 1 — Success Summary Provide a brief confirmation that KinD, VSO, and Vault auth are configured, including the active demo endpoint http://web.localhost:8088.

Tier 2 — Configuration Details Table

ComponentValueDescription
Auth Pathauth/kubernetes/The mount point
Vault Roleapp1-roleMaps the app1-sa service account to Vault policies
Policyapp1-readGrants read access to the demo secret
KV Mountkv-k8s/Stores the example application secret

Tier 3 — Actionable Testing Commands

export VAULT_ADDR='http://vault.localhost:8200' export VAULT_TOKEN='root'

vault read auth/kubernetes/config vault read auth/kubernetes/role/app1-role vault kv get kv-k8s/app1

Handling Edge Cases

  1. Missing local dependencies: If kind, kubectl, or helm is not installed, say so explicitly.
  2. Token reviewer errors / VSO cannot reach Vault: Vault and the KinD node must share hal-net. hal vault k8s status reports Active (Network: not on hal-net) when the node is off the HAL network. Re-run hal vault k8s enable or hal vault k8s update — that attaches kind-control-plane without requiring a cluster recreate.
  3. CSI requested on OSS Vault: Explain that the code downgrades to standard native sync if Vault Enterprise is not detected.
  4. User wants to tune roles after deployment: Provide exact vault write auth/kubernetes/role/... commands.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/hashimiche/hal/k8s/badge)](https://verified-skill.com/skills/hashimiche/hal/k8s)

Something wrong with this skill or its page? Tell us.