kserve / kserve/website

docs: document security hardening (PSS restricted profile, PYTHONPATH blocking)

Open
#724 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
MDX
Stars
113
Forks
193
Avg merge
5d 20h
Merged PRs (30d)
3

Description

## Summary

KServe v0.18 added two security hardening features that are not documented:

1. **Pod Security Standards (PSS) restricted profile enforcement** for LLMInferenceService default templates — workload pods now run with minimal privileges by default (no root, dropped Linux capabilities, no privilege escalation)
2. **PYTHONPATH environment variable blocking** in ISVC and ServingRuntime webhooks — prevents potential code injection via PYTHONPATH manipulation

## What needs to be documented

- PSS restricted profile enforcement behavior and implications for custom containers
- PYTHONPATH blocking: what users should know if they were previously setting PYTHONPATH
- Any workarounds or configuration options if users need to customize security contexts

## Related PRs

- https://github.com/kserve/kserve/pull/5302 (PSS restricted profile)
- https://github.com/kserve/kserve/pull/5340 (PYTHONPATH blocking)

## Since

KServe v0.18

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading related PRs 5302 and 5340 to confirm the PSS restricted profile and PYTHONPATH blocking behavior. Locate the relevant KServe user documentation sections, then document custom-container implications, previously configured PYTHONPATH behavior, and supported workarounds or configuration options. Done means users can understand both security changes and how to adapt their deployments.

Written by the indexing model from the issue text.

Assessment

Tech stack
kubernetes
Domain
documentation, security
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.