360 Secure SkillHub
360 安全技能中心

GKE Hardening

该 Skill 通过外部安全 API 生成 GKE 集群的 CIS 基准加固配置,支持网络策略、RBAC、Pod 安全策略、审计日志和静态加密等选项,并可查询可用参数与健康状态;文档以接口说明为主,未提供实现代码。

krishnakumarmahadevan-cmd
krishnakumarmahadevan-cmd
热度 39.85
最近更新 2026-05-11 17:38:47
分类:安全依赖:第三方 API应用场景:DevOps / 代码生成 / 模板 / 自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add toolweb-gke-hardening
Metadata
name
GKE Security Hardening Tool
description
Generates CIS Benchmark-aligned security hardening configurations for Google Kubernetes Engine clusters.

Overview

The GKE Security Hardening Tool is a specialized security configuration generator designed to help DevOps engineers and security teams harden Google Kubernetes Engine (GKE) clusters according to Center for Internet Security (CIS) Benchmark standards. The tool automates the creation of security-focused configuration files, reducing manual setup time and ensuring compliance with industry-recognized security standards.

This tool is ideal for organizations deploying GKE in regulated environments, security-conscious teams implementing defense-in-depth strategies, and DevOps teams seeking to automate cluster hardening workflows. By leveraging the CIS Benchmarks, the tool ensures that generated configurations align with proven security practices and reduce the attack surface of Kubernetes deployments.

Key capabilities include generating hardened configuration files based on selected security options, retrieving all available hardening parameters, and tracking requests through session and user identifiers for audit and compliance purposes.

Usage

Example Request

Generate a hardened GKE configuration with specific security options:

{
  "hardeningOptions": {
    "networkPolicy": ["enabled", "restrictive"],
    "rbac": ["enabled"],
    "podSecurityPolicy": ["enabled", "restricted"],
    "auditLogging": ["enabled", "verbose"],
    "encryptionAtRest": ["enabled"]
  },
  "sessionId": "sess_abc123def456",
  "userId": 12345,
  "timestamp": "2024-01-15T10:30:00Z"
}

Example Response

{
  "configFiles": [
    {
      "filename": "network-policy.yaml",
      "content": "apiVersion: networking.k8s.io/v1\nkind: NetworkPolicy\nmetadata:\n  name: default-deny\nspec:\n  podSelector: {}\n  policyTypes:\n  - Ingress\n  - Egress"
    },
    {
      "filename": "rbac-config.yaml",
      "content": "apiVersion: rbac.authorization.k8s.io/v1\nkind: ClusterRole\nmetadata:\n  name: minimal-access\nrules:\n- apiGroups: [\"\"]\n  resources: [\"pods\"]\n  verbs: [\"get\", \"list\"]"
    },
    {
      "filename": "pod-security-policy.yaml",
      "content": "apiVersion: policy/v1beta1\nkind: PodSecurityPolicy\nmetadata:\n  name: restricted\nspec:\n  privileged: false\n  allowPrivilegeEscalation: false\n  requiredDropCapabilities:\n  - ALL"
    }
  ],
  "sessionId": "sess_abc123def456",
  "generatedAt": "2024-01-15T10:30:05Z",
  "status": "success"
}

Endpoints

GET /

Description: Health check endpoint for service availability verification.

Parameters: None

Response: Returns JSON object confirming service status.


POST /api/gke/hardening/generate

Description: Generates GKE security hardening configuration files based on provided hardening options.

Parameters:

Name Type Required Description
hardeningOptions object Yes Dictionary mapping hardening feature names to arrays of configuration values (e.g., {"networkPolicy": ["enabled", "restrictive"]})
sessionId string Yes Unique session identifier for tracking and audit purposes
userId integer or null No User identifier for audit logging and usage attribution
timestamp string Yes ISO 8601 formatted timestamp of the request

Response: Returns JSON object containing:

  • configFiles: Array of objects with filename and content properties containing generated YAML configurations
  • sessionId: Echo of the request session identifier
  • generatedAt: Timestamp of configuration generation
  • status: "success" or error status

GET /api/gke/hardening/options

Description: Retrieves all available hardening options and their supported values for GKE configuration.

Parameters: None

Response: Returns JSON object mapping hardening feature names to arrays of available configuration options.


GET /health

Description: Health check endpoint for monitoring and liveness probes.

Parameters: None

Response: Returns JSON object confirming service health status.

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.

References