hashimiche/hal/k8s
Claude Code and agent skill by hashimiche/hal
- community
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/k8sSKILL.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, andhelm - 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-netviaensureHALKindCluster()(setsKIND_EXPERIMENTAL_DOCKER_NETWORKandKIND_EXPERIMENTAL_PODMAN_NETWORK, thennetwork connects the node if a newer kind CLI still placed it on the defaultkindnetwork) vsoandapp1namespaces- 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):
VaultStaticSecretsyncsmysecretto a Kubernetes secret, app pods read it asHAL_SECRET, and rollout is automated so secret edits in Vault are reflected by refreshed web pods. - CSI mode (
--csi, Enterprise):CSISecretsprojects the Vault secret viacsi.vso.hashicorp.com; app pods read the mounted file and render localindex.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:
auth/kubernetes/configauth/kubernetes/role/app1-rolekv-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
| Component | Value | Description | |
|---|---|---|---|
| Auth Path | auth/kubernetes/ | The mount point | |
| Vault Role | app1-role | Maps the app1-sa service account to Vault policies | |
| Policy | app1-read | Grants read access to the demo secret | |
| KV Mount | kv-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
- Missing local dependencies: If
kind,kubectl, orhelmis not installed, say so explicitly. - Token reviewer errors / VSO cannot reach Vault: Vault and the KinD node must share
hal-net.hal vault k8sstatus reportsActive (Network: not on hal-net)when the node is off the HAL network. Re-runhal vault k8s enableorhal vault k8s update— that attacheskind-control-planewithout requiring a cluster recreate. - CSI requested on OSS Vault: Explain that the code downgrades to standard native sync if Vault Enterprise is not detected.
- 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
- SKILL.md in the repositoryCheckinginternal/skills/data/vault/k8s/SKILL.md
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
[](https://verified-skill.com/skills/hashimiche/hal/k8s)