get_k8s_kubeconfig
Возвращает содержимое файла kubeconfig для подключения kubectl к кластеру. Содержит секреты — не публиковать.
This record as markdown: /tools/timeweb-mcp/get-k8s-kubeconfig.md
What get_k8s_kubeconfig does on Timeweb
AI agents call get_k8s_kubeconfig to retrieve information from Timeweb without modifying anything. It is typically the context-gathering step in research, monitoring, and reporting workflows, before the agent takes action elsewhere.
| Parameter | Type | Required | Description |
|---|---|---|---|
cluster_id | integer | Yes | ОБЯЗАТЕЛЬНОЕ ПОЛЕ - ID кластера |
Parameters from the server's own tool schema.
Why get_k8s_kubeconfig is rated Low
This tool retrieves and returns sensitive Kubernetes configuration data including authentication credentials and secrets needed to access a Kubernetes cluster. Although categorized as Read (data retrieval with no direct side effects), the high severity reflects that exposure of kubeconfig grants an attacker full cluster access and control.
From the tool's definition Tool name 'get_k8s_kubeconfig' and description 'Возвращает содержимое файла kubeconfig для подключения kubectl к кластеру' indicates retrieval of kubeconfig file contents.
Attacks that exploit this kind of access
The rule that runs get_k8s_kubeconfig safely
PolicyLayer is an MCP gateway: it sits between your AI agents and Timeweb, and checks every tool call against a rule you set before the call runs. Nothing changes on the server itself. For get_k8s_kubeconfig, this is the rule to start with:
get_k8s_kubeconfig is read-only, so it stays allowed. Everything else on the server is denied unless you say otherwise.
The button opens the PolicyLayer dashboard: create your workspace, connect Timeweb, apply this rule, and every get_k8s_kubeconfig call is checked against it from then on.
Questions about get_k8s_kubeconfig
Возвращает содержимое файла kubeconfig для подключения kubectl к кластеру. Содержит секреты — не публиковать. It is categorised as a Read tool in the Timeweb MCP Server, which means it retrieves data without modifying state.
get_k8s_kubeconfig accepts 1 parameter: cluster_id. Required: cluster_id. The full parameter table on this page comes from the server's own tool schema.
Register the Timeweb MCP server in PolicyLayer and add a rule for get_k8s_kubeconfig: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Timeweb. Nothing to install.
get_k8s_kubeconfig is a Read tool with low risk. Read-only tools are generally safe to allow by default.
Yes. Add a rate_limit block to the get_k8s_kubeconfig rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for get_k8s_kubeconfig. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
get_k8s_kubeconfig is provided by the Timeweb MCP server (timeweb-mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
More on Timeweb, and thousands of servers like it.
This server
Across the catalogue