Find your next open-source project

Search by name, purpose, or keyword — or paste a GitHub repository URL
All skills

gke-workload-security

Audit and harden GKE workload security with network policies, Pod Security Standards, gVisor sandboxing, and Secret Manager mounts.

  • Part of google/skills
  • 6.3k installs
  • DevOps & Self-hosting · Containers and clusters

When to use it

You have a GKE namespace running workloads and need to lock it down, for example by applying a default-deny network policy or the restricted Pod Security Standard.

For example

You say

Use gke-workload-security to isolate my payments namespace on GKE: apply default-deny network policies, enforce the restricted Pod Security Standard, and mount the db-password secret from Secret Manager via CSI.

You get
  • Default-deny NetworkPolicy applied
  • Restricted PSS namespace label
  • SecretProviderClass and pod volume mount

How it works

  • Network Policy enforcement is built into Dataplane V2 clusters, so the add-on enable step is skipped there.
  • Dataplane V2 clusters can log allowed and denied connections through a NetworkLogging resource.

Before installing

The audit script needs an authenticated gcloud CLI and jq installed; Secret Manager CSI mounts require the Secret Manager CSI driver enabled on the cluster.

This skill includes a script your assistant may run on your computer.