deis / deis/slugrunner

Too open permissions for mounted secrets

Open
#58 2 comments 0 reactions 0 assignees View on GitHub
in progress security
Dominant language
Makefile
Stars
13
Forks
18
PR merge metrics
No merged PRs in 30d

Description

Hi. After a little dig into the Workflow I discovered that every application container that is running on `deis/slugrunner` has an object store credentials volume attached to it. I know that a `slugrunner` need an access to S3 storage to download a slug tarball, but shouldn't this be considered as a security issue that every user on this container (including application itself) has a read access to those files?

We thought that we could use a [`defaultMode` option](http://kubernetes.io/docs/user-guide/secrets/#using-secrets) in Kubernetes that restrict permissions for mounted volumes to a `root` user, but it seems that both the init and execution processes of the `slugrunner` are running as user `slug`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.