dsh-kubectl-guard avatar

dsh-kubectl-guard

A dsh policy plugin that gates kubectl by kubeconfig context: deny irreversible verbs outside local clusters, ask for the rest.

PluginSecurityNetworkTerminal / ShellMemory
Verification
L4 · Install tested
Passed
Risk
Low
Health
Active
Trust
Silver

What it doesAI

Gates kubectl commands based on kubeconfig context; denies risky verbs outside local clusters and asks for other actions.

  • Denies irreversible verbs outside local clusters
  • Asks for confirmation on all other kubectl commands
  • Context-aware policy using kubeconfig

AI-generated from the repo README — for reference only.

Installation

dsh plugin --profile web add dsh-kubectl-guard@0.1.2

security scan passed · npm package v0.1.2

Install method: npm · sandbox install verified (L4)

Verification & Compatibility

Static checks (version-independent)
L1 静态
Passed
L2 静态
Passed
L3 静态
Passed

L1–L3 are registry / install-spec static checks — constant across dsh versions.

External credentials (plugin-level): none detected

Per-version runtime verdicts (L4/L5)
dsh 0.1.2-alpha.1currentL5 · inconclusive
Environment
  • • Node.js: v24.14.0
  • • DSH: 0.1.2-alpha.1
Runtime levels
L4 版本
Passed
L5 版本
Unknown
Install test ran but produced no conclusive verdict
L5 · inconclusive

ID: dsh-kubectl-guard-20260902T223053Z · profile: l5-web-smoke

Issued: 2026-09-02 · expires: 2026-12-01

View checks & evidence
L1 · Found✓ Passed

↳ carried from earlier record dsh-kubectl-guard-20260902T044820Z (l3-fullscan)

Defaulted from L3✓ Passed
defaulted to passed — L3 install spec passed (full-registry L3 sweep policy)
L2 · Structured✓ Passed

↳ carried from earlier record dsh-kubectl-guard-20260902T044820Z (l3-fullscan)

Defaulted from L3✓ Passed
defaulted to passed — L3 install spec passed (full-registry L3 sweep policy)
L3 · Install spec✓ Passed

↳ carried from earlier record dsh-kubectl-guard-20260902T044820Z (l3-fullscan)

Install command parsed✓ Passed
Source: registry verification · Method: install spec parse · Captured 2026-09-02
DSH version declared✓ Passed
Source: registry verification · Method: DSH version declaration · Captured 2026-09-02
L4 · Install tested✓ Passed
Install succeeded✓ Passed
L5 · Run tested? Unknown

no dsh.bundle declaration

Sandbox install passed✓ Passed
Web boot ready✓ Passed
Source: DSH runtime · Method: web boot
HTTP endpoint served✓ Passed
Source: DSH runtime · Method: HTTP request
Plugin active in inventory? Unknown
Source: DSH runtime · Method: plugin inventory query
installed but declares no dsh.bundle — not a web-profile plugin

Author badges

Embed the official badges in your README to showcase security & install-test status:

dsh.so risk
`[![dsh.so risk](https://www.dsh.so/badge/dsh-kubectl-guard.svg)](https://www.dsh.so/artifact/dsh-kubectl-guard/)`
dsh.so install
`[![dsh.so install](https://www.dsh.so/badge/install/dsh-kubectl-guard.svg)](https://www.dsh.so/artifact/dsh-kubectl-guard/)`

Security Report

Automated static scan, not manual review.

DSH.SO VETPASSEDe1b52c
Automated review · daily
PASSED

Vet static analysis found no suspicious behavior — verdict is clean.

0 critical·0 high·0 medium·100 score
plugin version0.1.2
scanned commite1b52c502d962026-09-02
latest commite1b52c502d96
vet verdictclean · npmscore 100

Vet is an AST static scan (npm artifact or git source).

Disclaimer: automated static analysis, not a security guarantee. Always review what you install.

Risk details

No critical or warning findings.

Activity

Last commit 2026-09-01 · activity: Active

• Repo created: 2026-09-01

• Stars: ★ 1 · Forks: 0

• Health: Active — committed within last 30 days

Source

GitHub: github.com/gengwg/dsh-kubectl-guard

Was this page helpful?