Skip to content

Commit 38edfee

Browse files
authored
Remove permissionProfile from K8s examples (#230)
Signed-off-by: Dan Barr <6922515+danbarr@users.noreply.github.com> Co-authored-by: Dan Barr <6922515+danbarr@users.noreply.github.com>
1 parent d7e546f commit 38edfee

File tree

10 files changed

+1
-91
lines changed

10 files changed

+1
-91
lines changed

docs/toolhive/guides-cli/build-containers.mdx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,9 +222,6 @@ you want to pre-build containers before deploying them.
222222
spec:
223223
image: ghcr.io/myorg/mcp-git:v1.0.0
224224
transport: stdio
225-
permissionProfile:
226-
type: builtin
227-
name: network
228225
```
229226
230227
### CI/CD integration

docs/toolhive/guides-k8s/run-mcp-k8s.mdx

Lines changed: 1 addition & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,6 @@ spec:
120120
transport: streamable-http
121121
targetPort: 8080
122122
port: 8080
123-
permissionProfile:
124-
type: builtin
125-
name: network
126123
resources:
127124
limits:
128125
cpu: '100m'
@@ -222,9 +219,6 @@ spec:
222219
transport: streamable-http
223220
targetPort: 8080
224221
port: 8080
225-
permissionProfile:
226-
type: builtin
227-
name: network
228222
podTemplateSpec:
229223
spec:
230224
containers:
@@ -285,9 +279,6 @@ spec:
285279
image: ghcr.io/github/github-mcp-server
286280
transport: stdio
287281
port: 8080
288-
permissionProfile:
289-
type: builtin
290-
name: network
291282
secrets:
292283
- name: github-token
293284
key: token
@@ -334,9 +325,6 @@ spec:
334325
image: ghcr.io/github/github-mcp-server
335326
transport: stdio
336327
port: 8080
337-
permissionProfile:
338-
type: builtin
339-
name: network
340328
secrets:
341329
- name: github-token
342330
key: token
@@ -398,9 +386,6 @@ spec:
398386
image: docker.io/mcp/filesystem
399387
transport: stdio
400388
port: 8080
401-
permissionProfile:
402-
type: builtin
403-
name: none
404389
podTemplateSpec:
405390
spec:
406391
volumes:
@@ -449,18 +434,6 @@ to learn how to connect to MCP servers using different clients.
449434
`MCPServer` Custom Resource Definition (CRD)
450435
- [Deploy the operator using Helm](./deploy-operator-helm.md) - Install the
451436
ToolHive operator
452-
- [Custom permissions](../guides-cli/custom-permissions.mdx) - Configure
453-
permission profiles
454-
455-
:::info[Important]
456-
457-
Outbound network filtering using permission profiles isn't currently implemented
458-
in the ToolHive Operator. This is a roadmap feature planned for future releases.
459-
460-
Contributions to help implement this feature are welcome! You can contribute by
461-
visiting our [GitHub repository](https://github.com/stacklok/toolhive).
462-
463-
:::
464437

465438
## Troubleshooting
466439

@@ -530,7 +503,7 @@ Common causes include:
530503
- **Missing secrets**: Ensure required secrets exist and are properly referenced
531504
- **Resource constraints**: Check if the pod has sufficient CPU and memory
532505
resources
533-
- **Permission issues**: Verify the security context and permission profile are
506+
- **Permission issues**: Verify the security context and RBAC permissions are
534507
correctly configured
535508
- **Invalid arguments**: Check if the `args` field contains valid arguments for
536509
the MCP server
@@ -622,33 +595,6 @@ Common causes include:
622595

623596
</details>
624597

625-
<details>
626-
<summary>Permission profile errors</summary>
627-
628-
If the MCP server fails due to permission profile issues:
629-
630-
```bash
631-
# Check if ConfigMap exists (for custom profiles)
632-
kubectl -n <NAMESPACE> get configmap <CONFIGMAP_NAME>
633-
634-
# Verify ConfigMap content
635-
kubectl -n <NAMESPACE> describe configmap <CONFIGMAP_NAME>
636-
637-
# Check operator logs for permission errors
638-
kubectl -n toolhive-system logs -l app.kubernetes.io/name=toolhive-operator | grep -i permission
639-
```
640-
641-
Common causes include:
642-
643-
- **Invalid profile name**: Ensure built-in profile names are correct (`none`,
644-
`network`)
645-
- **ConfigMap not found**: Create the ConfigMap with the custom permission
646-
profile
647-
- **Invalid JSON**: Verify the permission profile JSON is valid
648-
- **Missing key**: Ensure the specified key exists in the ConfigMap
649-
650-
</details>
651-
652598
<details>
653599
<summary>Resource limit issues</summary>
654600

docs/toolhive/guides-mcp/context7.mdx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,6 @@ spec:
112112
image: ghcr.io/stacklok/dockyard/npx/context7:1.0.14
113113
transport: stdio
114114
port: 8080
115-
permissionProfile:
116-
type: builtin
117-
name: network
118115
```
119116
120117
Apply the manifest to your cluster:
@@ -138,9 +135,6 @@ spec:
138135
- 'YOUR_API_KEY'
139136
transport: stdio
140137
port: 8080
141-
permissionProfile:
142-
type: builtin
143-
name: network
144138
```
145139
146140
</TabItem>

docs/toolhive/guides-mcp/fetch.mdx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,6 @@ spec:
8484
transport: streamable-http
8585
targetPort: 8080
8686
port: 8080
87-
permissionProfile:
88-
type: builtin
89-
name: network
9087
```
9188
9289
Apply the manifest to your Kubernetes cluster:

docs/toolhive/guides-mcp/filesystem.mdx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,6 @@ spec:
124124
image: mcp/filesystem:latest
125125
transport: stdio
126126
port: 8080
127-
permissionProfile:
128-
type: builtin
129-
name: none # Note, network isolation in K8s is not implemented yet
130127
args:
131128
- '/projects' # Update if you use a different mountPath below
132129
podTemplateSpec:

docs/toolhive/guides-mcp/github.mdx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,6 @@ spec:
144144
image: ghcr.io/github/github-mcp-server:v0.13.0
145145
transport: stdio
146146
port: 8080
147-
permissionProfile:
148-
type: builtin
149-
name: network
150147
secrets:
151148
- name: github-token
152149
key: token

docs/toolhive/guides-mcp/k8s.mdx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,6 @@ spec:
137137
targetPort: 8080
138138
port: 8080
139139
serviceAccount: mkp-sa
140-
permissionProfile:
141-
type: builtin
142-
name: network
143140
---
144141
apiVersion: v1
145142
kind: ServiceAccount

docs/toolhive/guides-mcp/osv.mdx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,6 @@ spec:
7979
transport: streamable-http
8080
targetPort: 8080
8181
port: 8080
82-
permissionProfile:
83-
type: builtin
84-
name: network
8582
```
8683
8784
Apply the manifest to your Kubernetes cluster:

docs/toolhive/guides-mcp/playwright.mdx

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,6 @@ spec:
156156
args:
157157
- '--port'
158158
- '8931'
159-
permissionProfile:
160-
type: builtin
161-
name: network
162159
```
163160
164161
Apply the manifest to your Kubernetes cluster:
@@ -185,9 +182,6 @@ spec:
185182
- '8931'
186183
- '--allowed-origins'
187184
- 'example.com;trusted-domain.org'
188-
permissionProfile:
189-
type: builtin
190-
name: network
191185
```
192186
193187
Mount a persistent volume to save browser output files like screenshots and
@@ -211,9 +205,6 @@ spec:
211205
- '/browser-output'
212206
- '--save-trace'
213207
- '--save-session'
214-
permissionProfile:
215-
type: builtin
216-
name: network
217208
podTemplateSpec:
218209
spec:
219210
volumes:

docs/toolhive/tutorials/vault-integration.mdx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,6 @@ spec:
168168
image: ghcr.io/github/github-mcp-server:latest
169169
transport: stdio
170170
port: 9095
171-
permissionProfile:
172-
type: builtin
173-
name: network
174171
resources:
175172
limits:
176173
cpu: '100m'

0 commit comments

Comments
 (0)