Skip to content

Commit 41440c8

Browse files
committed
Add helm chart
1 parent 53e4b0b commit 41440c8

File tree

14 files changed

+1055
-3
lines changed

14 files changed

+1055
-3
lines changed

.github/workflows/style.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,33 @@ jobs:
3636
uses: hadolint/hadolint-action@v3.3.0
3737
with:
3838
dockerfile: Dockerfile
39+
40+
- name: Create ../results directory for SARIF report files
41+
shell: bash
42+
run: mkdir -p ../results
43+
44+
- name: Scan Helm with kube-linter
45+
uses: stackrox/kube-linter-action@v1.0.7
46+
id: kube-linter-helm-scan
47+
with:
48+
directory: charts/stackrox-mcp
49+
format: sarif
50+
output-file: ../results/kube-linter.sarif
51+
# This allows the following upload-sarif action to still upload the results to your GitHub repo.
52+
continue-on-error: true
53+
54+
- name: Upload SARIF report files to GitHub
55+
uses: github/codeql-action/upload-sarif@v4
56+
57+
# Ensure the workflow eventually fails if files did not pass kube-linter checks.
58+
- name: Verify kube-linter-action succeeded
59+
shell: bash
60+
run: |
61+
echo "If this step fails, kube-linter found issues. Check the output of the scan step above."
62+
[[ "${{ steps.kube-linter-helm-scan.outcome }}" == "success" ]]
63+
64+
- name: Set up chart-testing
65+
uses: helm/chart-testing-action@v2.8.0
66+
67+
- name: Run chart-testing (lint)
68+
run: ct lint charts/stackrox-mcp --validate-maintainers=false --all

Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,12 @@ WORKDIR /app
5050
# Copy binary from builder
5151
COPY --from=builder /tmp/stackrox-mcp /app/stackrox-mcp
5252

53-
# Set ownership to non-root user
54-
RUN chown -R 4000:4000 /app
53+
# Set ownership for OpenShift arbitrary UID support
54+
# Files owned by 4000, group 0 (root), with group permissions matching user
55+
RUN chown -R 4000:0 /app && \
56+
chmod -R g=u /app
5557

56-
# Switch to non-root user
58+
# Switch to non-root user (can be overridden by OpenShift SCC)
5759
USER 4000
5860

5961
# Expose port for MCP server

charts/stackrox-mcp/.helmignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Patterns to ignore when packaging
2+
.git/
3+
.gitignore
4+
*.swp
5+
*.bak
6+
*.tmp
7+
.DS_Store

charts/stackrox-mcp/Chart.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
apiVersion: v2
2+
name: stackrox-mcp
3+
description: A Helm chart for StackRox Model Context Protocol (MCP) Server
4+
type: application
5+
version: 0.1.0
6+
appVersion: "dev"
7+
home: https://github.com/stackrox/stackrox-mcp
8+
sources:
9+
- https://github.com/stackrox/stackrox-mcp
10+
keywords:
11+
- stackrox
12+
- mcp
13+
- security
14+
- vulnerability

0 commit comments

Comments
 (0)