Skip to content

feat(security): enable secure defaults for kagent chart#1468

Draft
tzhukov wants to merge 3 commits intokagent-dev:mainfrom
tzhukov:tzhukov/security-context
Draft

feat(security): enable secure defaults for kagent chart#1468
tzhukov wants to merge 3 commits intokagent-dev:mainfrom
tzhukov:tzhukov/security-context

Conversation

@tzhukov
Copy link
Contributor

@tzhukov tzhukov commented Mar 10, 2026

Add security context defaults to improve pod and container security:

  • Set runAsNonRoot: true for pod security context
  • Set readOnlyRootFilesystem: true for container security context
  • Add UI-specific security context overrides
  • Add emptyDir volumes for Next.js cache and tmp (required for read-only filesystem)
  • Update tool charts (grafana-mcp, querydoc) to make securityContext optional
  • Add comprehensive security context tests

This change enables secure-by-default configuration while maintaining backward compatibility through values.yaml overrides.

tzhukov and others added 3 commits March 9, 2026 15:36
Add security context defaults to improve pod and container security:
- Set runAsNonRoot: true for pod security context
- Set readOnlyRootFilesystem: true for container security context
- Add UI-specific security context overrides
- Add emptyDir volumes for Next.js cache and tmp (required for read-only filesystem)
- Update tool charts (grafana-mcp, querydoc) to make securityContext optional
- Add comprehensive security context tests

This change enables secure-by-default configuration while maintaining
backward compatibility through values.yaml overrides.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Signed-off-by: Timofey Zhukov-Khovanskiy <tzhukov87@gmail.com>
Signed-off-by: Timofey Zhukov-Khovanskiy <tzhukov87@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants