You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`central.url`|`STACKROX_MCP__CENTRAL__URL`| string | Yes | central.stackrox:8443| URL of StackRox Central instance |
73
+
|`central.url`|`STACKROX_MCP__CENTRAL__URL`| string | Yes | central.stackrox:443| URL of StackRox Central instance |
74
74
|`central.auth_type`|`STACKROX_MCP__CENTRAL__AUTH_TYPE`| string | No |`passthrough`| Authentication type: `passthrough` (use token from MCP client headers) or `static` (use configured token) |
75
75
|`central.api_token`|`STACKROX_MCP__CENTRAL__API_TOKEN`| string | Conditional | - | API token for static authentication (required when `auth_type` is `static`, must not be set when `passthrough`) |
76
76
|`central.insecure_skip_tls_verify`|`STACKROX_MCP__CENTRAL__INSECURE_SKIP_TLS_VERIFY`| bool | No |`false`| Skip TLS certificate verification (use only for testing) |
@@ -130,7 +130,7 @@ Start the server with a configuration file:
# Guide for Setting Up StackRox MCP OpenShift Lightspeed Integration
2
+
3
+
Guide tested with OpenShift Lightspeed version `1.0.8`.
4
+
5
+
### 1. Set Up OpenShift Lightspeed
6
+
- Set up your OpenShift Lightspeed integration with a large language model (LLM) service. Detailed documentation can be found in the [Red Hat OpenShift Lightspeed Configuration Guide](https://docs.redhat.com/en/documentation/red_hat_openshift_lightspeed/1.0/html/configure/ols-configuring-openshift-lightspeed).
7
+
- After OpenShift Lightspeed integration with the LLM is configured and tested, you can continue with StackRox MCP setup.
8
+
9
+
### 2. Set Up StackRox MCP
10
+
- Install StackRox MCP with Helm:
11
+
```bash
12
+
# Create temp directory and checkout repository with Helm chart.
13
+
tmp_stackrox_mcp_dir="stackrox-mcp-${RANDOM}"
14
+
git clone --depth 1 --branch main https://github.com/stackrox/stackrox-mcp.git "${tmp_stackrox_mcp_dir}"
15
+
16
+
# Assuming that StackRox Central is installed on the same cluster in "stackrox" namespace.
>**Note:** For advanced helm chart configuration options, see the [StackRox MCP Helm Chart README](../charts/stackrox-mcp/README.md). For OpenShift-specific deployment settings, refer to the [OpenShift Deployment](../charts/stackrox-mcp/README.md#openshift-deployment) section.
24
+
25
+
- Verify the MCP server is running:
26
+
```bash
27
+
kubectl run -i --tty --rm debug --image=curlimages/curl --restart=Never -- \
28
+
curl http://stackrox-mcp.stackrox-mcp:8080/health
29
+
```
30
+
You should get `{"status":"ok"}` as a response.
31
+
32
+
### 3. Set Up Integration of StackRox MCP with OpenShift Lightspeed
33
+
- Create an API token in StackRox Central with appropriate permissions.
34
+
- Create Authorization Header Secret
35
+
- Create a Base64 value for the authorization header secret:
36
+
```bash
37
+
stackrox_api_token="<StackRox API Token>"
38
+
echo -n "Bearer ${stackrox_api_token}"| base64
39
+
```
40
+
- Create secret `stackrox-mcp-authorization-header`in the `openshift-lightspeed` namespace:
41
+
```yaml
42
+
kind: Secret
43
+
apiVersion: v1
44
+
metadata:
45
+
name: stackrox-mcp-authorization-header
46
+
namespace: openshift-lightspeed
47
+
data:
48
+
header: "<Base64 value for authorization header>"
49
+
type: Opaque
50
+
```
51
+
- Configure OpenShift Lightspeed by editing the `OLSConfig` configuration for your OpenShift Lightspeed installation and add this section to `spec`:
52
+
```yaml
53
+
featureGates:
54
+
- MCPServer
55
+
mcpServers:
56
+
- name: stackrox-mcp
57
+
streamableHTTP:
58
+
enableSSE: false
59
+
headers:
60
+
authorization: stackrox-mcp-authorization-header
61
+
sseReadTimeout: 30
62
+
timeout: 60
63
+
url: 'http://stackrox-mcp.stackrox-mcp:8080/mcp'
64
+
```
65
+
- After completing the setup, test your integration with a simple prompt: "List all clusters secured by StackRox"
66
+
67
+
### Troubleshooting
68
+
If you encounter issues, refer to the [Troubleshooting](../charts/stackrox-mcp/README.md#troubleshooting) section in the Helm chart documentation.
0 commit comments