/install toolweb-kubernetes-hardening
Overview
The Kubernetes Hardening Tool is a security-focused API that generates comprehensive hardening recommendations and configurations for Kubernetes environments. Designed for DevSecOps teams, security engineers, and infrastructure professionals, this tool automates the process of identifying and implementing security best practices across Kubernetes clusters.
The tool accepts detailed hardening preferences and contextual information, then returns tailored security configurations and recommendations. It integrates seamlessly into CI/CD pipelines, infrastructure-as-code workflows, and security compliance frameworks, enabling organizations to maintain consistent, audit-ready Kubernetes security postures.
Ideal users include security teams implementing CIS Kubernetes Benchmarks, platform engineers building secure multi-tenant clusters, and compliance-focused organizations requiring documented hardening strategies.
Usage
Sample Request
{
"sessionId": "sess_abc123def456",
"userId": 1001,
"timestamp": "2024-01-15T14:30:00Z",
"hardeningOptions": {
"rbac": ["enable-strict-policies", "service-account-isolation"],
"network": ["deny-all-ingress", "deny-all-egress", "enable-network-policies"],
"pod-security": ["restrict-privileged-containers", "enforce-read-only-filesystem"],
"audit": ["enable-audit-logging", "log-authentication-events"]
}
}
Sample Response
{
"status": "success",
"sessionId": "sess_abc123def456",
"timestamp": "2024-01-15T14:30:15Z",
"hardeningConfigurations": {
"rbac": {
"policies": [
{
"kind": "ClusterRole",
"name": "restricted-viewer",
"rules": [
{
"apiGroups": [""],
"resources": ["pods"],
"verbs": ["get", "list"]
}
]
}
],
"serviceAccounts": ["default-restricted"]
},
"network": {
"networkPolicies": [
{
"apiVersion": "networking.k8s.io/v1",
"kind": "NetworkPolicy",
"metadata": { "name": "deny-all-ingress" },
"spec": {
"podSelector": {},
"policyTypes": ["Ingress"]
}
}
]
},
"pod-security": {
"policies": [
{
"apiVersion": "policy/v1beta1",
"kind": "PodSecurityPolicy",
"metadata": { "name": "restricted" },
"spec": {
"privileged": false,
"readOnlyRootFilesystem": true
}
}
]
},
"audit": {
"auditPolicy": {
"apiVersion": "audit.k8s.io/v1",
"kind": "Policy",
"rules": [
{
"level": "RequestResponse",
"omitStages": ["RequestReceived"],
"resources": ["secrets"]
}
]
}
}
},
"recommendations": [
"Enable Pod Security Standards in addition to deprecated PodSecurityPolicy",
"Implement OPA/Gatekeeper for policy enforcement",
"Configure encrypted secrets at rest"
]
}
Endpoints
POST /api/hardening/generate
Generates comprehensive Kubernetes hardening configurations and security recommendations based on provided hardening options and session context.
Method: POST
Path: /api/hardening/generate
Description: Analyzes the specified hardening options and generates Kubernetes security configurations including RBAC policies, network policies, pod security policies, and audit logging settings.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
sessionId |
string | Yes | Unique session identifier for tracking and auditing purposes |
userId |
integer or null | Yes | User identifier associated with the hardening request; can be null for anonymous requests |
timestamp |
string | Yes | ISO 8601 formatted timestamp of the request |
hardeningOptions |
object | Yes | Map of hardening categories to arrays of specific hardening options to apply |
hardeningOptions.rbac |
array of strings | Conditional | RBAC hardening options (e.g., "enable-strict-policies", "service-account-isolation") |
hardeningOptions.network |
array of strings | Conditional | Network policy options (e.g., "deny-all-ingress", "enable-network-policies") |
hardeningOptions.pod-security |
array of strings | Conditional | Pod security options (e.g., "restrict-privileged-containers", "enforce-read-only-filesystem") |
hardeningOptions.audit |
array of strings | Conditional | Audit logging options (e.g., "enable-audit-logging", "log-authentication-events") |
Response
Success (200): Returns a JSON object containing:
status: Operation status indicatorsessionId: Echo of the input session IDtimestamp: Response timestamphardeningConfigurations: Object with generated Kubernetes manifests and configurations organized by categoryrecommendations: Array of additional security recommendations and best practices
Validation Error (422):
Returns an HTTPValidationError object with:
detail: Array of validation errors, each containing:loc: Array indicating the location of the error in the requestmsg: Human-readable error messagetype: Error classification
Pricing
| Plan | Calls/Day | Calls/Month | Price |
|---|---|---|---|
| Free | 5 | 50 | Free |
| Developer | 20 | 500 | $39/mo |
| Professional | 200 | 5,000 | $99/mo |
| Enterprise | 100,000 | 1,000,000 | $299/mo |
About
ToolWeb.in - 200+ security APIs, CISSP & CISM, platforms: Pay-per-run, API Gateway, MCP Server, OpenClaw, RapidAPI, YouTube.
- toolweb.in
- portal.toolweb.in
- hub.toolweb.in
- toolweb.in/openclaw/
- rapidapi.com/user/mkrishna477
- youtube.com/@toolweb-009
References
- Kong Route: https://api.mkkpro.com/hardening/kubernetes
- API Docs: https://api.mkkpro.com:8126/docs
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install toolweb-kubernetes-hardening - 安装完成后,直接呼叫该 Skill 的名称或使用
/toolweb-kubernetes-hardening触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Kubernetes Hardening 是什么?
Generates security hardening recommendations and configurations for Kubernetes clusters based on specified hardening options. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 188 次。
如何安装 Kubernetes Hardening?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install toolweb-kubernetes-hardening」即可一键安装,无需额外配置。
Kubernetes Hardening 是免费的吗?
是的,Kubernetes Hardening 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Kubernetes Hardening 支持哪些平台?
Kubernetes Hardening 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Kubernetes Hardening?
由 ToolWeb(@krishnakumarmahadevan-cmd)开发并维护,当前版本 v1.0.0。