Menu

Lint your Dockerfile and K8s manifests against Pod Security Standards in one call
📰

Lint your Dockerfile and K8s manifests against Pod Security Standards in one call

DEV Community: kubernetes·hybridforgelab·13 days ago
#WwqxPs6N
#devtokubernetes#devto#dev#shipshape#nginx
Reading 0:00
15s threshold

Disclosure: we're Hybrid Forge Lab and we built Shipshape, the API in this post. There's a free plan and a no-signup demo, so you can check everything below yourself.

Take the nginx Deployment from the Kubernetes docs ( deployment.yaml ), the one most of us copied at some point. Run it through Shipshape and it gets a D, 42/100 :

13 findings in total: 5 medium, 6 low and 2 info.

4 of the mediums are Pod Security Standards "restricted" checks: capabilities not dropped, privilege escalation allowed, runAsNonRoot not set, no seccomp profile.

The fifth medium is the missing memory limit .

That's not a criticism of the docs: the example is there to show a Deployment, not a hardened one. But it's what a lot of real manifests look like.

What Shipshape checks

You POST a Dockerfile or one or more Kubernetes manifests (YAML or JSON, multi-document is fine).…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.