kyverno / policies

Kyverno policies for security and best practices
Apache License 2.0
329 stars 236 forks source link

[Sample] Prevent `kubectl cp` command #1169

Open JimBugwadia opened 3 days ago

JimBugwadia commented 3 days ago

Problem Statement

Block kubectl cp command:

Solution Description

A policy that blocks users from copying files to and from containers

Example "Good" Resource

No response

Example "Bad" Resource

No response

Other Comments

No response

Slack discussion

No response

Troubleshooting

lavishpal commented 14 hours ago

/assign