> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/posture-rules/cloud-saas-active-directory-posture-rules/cortex-posture-query-based-rules/detection-rules-by-name/ibm-cloud-openshift-cluster-is-accessible-by-using-public-endpoint.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# IBM Cloud OpenShift cluster is accessible by using public endpoint

### Synopsis

| Field               | Value                                                              |
| ------------------- | ------------------------------------------------------------------ |
| Rule Type           | Detection                                                          |
| Finding Type        | IBM Cloud OpenShift cluster is accessible by using public endpoint |
| Finding ID          | 60000769                                                           |
| Generates a Finding | This detection rule also generates a finding                       |
| Severity            | Medium                                                             |
| Category            | CONFIGURATION                                                      |
| Cloud Providers     | IBM\_CLOUD                                                         |
| Platform Module     | CSPM                                                               |
| Asset Types         | IBM\_KUBERNETES\_CLUSTER                                           |
| ATT\&CK Tactic      | TA0112 (TA0112)                                                    |
| ATT\&CK Technique   | T1685 (T1685)                                                      |

### Description

IBM Cloud Red Hat OpenShift clusters expose their master through service endpoints. A private service endpoint confines master traffic to the IBM Cloud private network, while a public service endpoint publishes the OpenShift API server to the internet so that the oc client and other tools can reach it from any network. A cluster may have either or both enabled.

This policy identifies OpenShift clusters in the normal running state whose public service endpoint is enabled. The check reads the cluster type and operational state so that only live OpenShift clusters are assessed, and then reports those where serviceEndpoints.publicServiceEndpointEnabled is true.

A publicly reachable OpenShift API server is directly exposed to credential stuffing, token replay and exploitation of any flaw in the API server itself. That API is the control plane for every workload in the cluster, so an attacker who authenticates against it can create privileged pods, read every secret in every project and pivot into the surrounding network. Public exposure also makes the cluster continuously discoverable by internet-wide scanning, removing the attacker's need to first establish a foothold inside the account.

As a remediation, enable the private service endpoint for the cluster and then disable the public service endpoint using the ibmcloud oc cluster master private-service-endpoint and public-service-endpoint commands. Refresh the cluster master afterward, and provide operators with VPN or bastion access to the private network so that administrative workflows continue to function.

### Remediation

**Manual steps:**

IBM Kubernetes Cluster - Manual remediation steps:

An OpenShift cluster can be made private only at the time of creation. To create a private

OpenShift cluster follow below URL:

<https://cloud.ibm.com/docs/openshift?topic=openshift-cluster-create-vpc-gen2\\&interface=ui#clusters\\_vpcg2\\_ui> Please make sure to select 'Private endpoint only' at 'Master service endpoint' section.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://cortex-docs.paloaltonetworks.com/posture-rules/cloud-saas-active-directory-posture-rules/cortex-posture-query-based-rules/detection-rules-by-name/ibm-cloud-openshift-cluster-is-accessible-by-using-public-endpoint.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
