Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EmptyDir security context #3038

Merged
merged 1 commit into from Jun 17, 2015

Conversation

pmorie
Copy link
Contributor

@pmorie pmorie commented Jun 10, 2015

Depends on #3037

@pmorie
Copy link
Contributor Author

pmorie commented Jun 10, 2015

@smarterclayton @pweil- FYI but not really ready for review yet.

@pmorie pmorie force-pushed the emptydir-security-context branch from 0c242b2 to f562011 Compare June 10, 2015 06:44
@smarterclayton smarterclayton modified the milestone: 1.0.0 Jun 11, 2015
@smarterclayton smarterclayton added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 11, 2015
@smarterclayton
Copy link
Contributor

Did this get merged in SCC?

@pweil-
Copy link
Contributor

pweil- commented Jun 15, 2015

The permissions portion of this was merged in #3115. The context setting portion is still in the works by @pmorie.

@smarterclayton
Copy link
Contributor

What is the ETA?

@pmorie
Copy link
Contributor Author

pmorie commented Jun 15, 2015

@smarterclayton I'm working on it now, hope to have it working / tested tonight.

@pmorie pmorie force-pushed the emptydir-security-context branch 7 times, most recently from b797514 to 6a805c8 Compare June 16, 2015 20:09
@pmorie
Copy link
Contributor Author

pmorie commented Jun 16, 2015

@smarterclayton @pweil- @liggitt I'm getting clean e2e runs with this code. Adding tests now.

@pmorie pmorie force-pushed the emptydir-security-context branch from 6a805c8 to 3a6b77e Compare June 16, 2015 20:31
@pmorie
Copy link
Contributor Author

pmorie commented Jun 16, 2015

@smarterclayton @pweil- I'm probably going to extract an interface for a thing that does chcon so we can test that the right context was passed to it in the unit tests

@pmorie pmorie force-pushed the emptydir-security-context branch from 3a6b77e to c82073e Compare June 16, 2015 20:45
@pmorie
Copy link
Contributor Author

pmorie commented Jun 16, 2015

@smarterclayton Should we rename 'Level' to 'Range' ?

@pmorie
Copy link
Contributor Author

pmorie commented Jun 16, 2015

@smarterclayton Since Level really represents the Range

@pmorie pmorie force-pushed the emptydir-security-context branch 4 times, most recently from d9baae0 to 93743dd Compare June 16, 2015 23:53
@smarterclayton
Copy link
Contributor

I'm ok with the changes, have you validated creating an empty dir with enforcing set? We need to re enable SELinux as a follow up in vagrant (please spawn an issue for that).

@pmorie pmorie force-pushed the emptydir-security-context branch from 93743dd to ff16ed0 Compare June 17, 2015 01:07
@pmorie
Copy link
Contributor Author

pmorie commented Jun 17, 2015

@smarterclayton creating an emptyDir w/ enforcing works. I'm running through the e2e w/ enforcing on now but the registry's running an accepting pushes, secrets are working, etc so far.

@pmorie
Copy link
Contributor Author

pmorie commented Jun 17, 2015

@smarterclayton E2E passes with selinux enforcing. I still have a few more tests I want to write.

@pmorie
Copy link
Contributor Author

pmorie commented Jun 17, 2015

@smarterclayton it's no sleep till brooklyn for me wrt this tonight

@smarterclayton
Copy link
Contributor

K, follow up for an integration test in test-integration-docker.sh or something in our e2e to explicitly verify we can write to the empty dir. Let me know when done.

On Jun 16, 2015, at 9:38 PM, Paul Morie notifications@github.com wrote:

@smarterclayton creating an emptyDir w/ enforcing works. I'm running through the e2e w/ enforcing on now but the registry's running an accepting pushes, secrets are working, etc so far.


Reply to this email directly or view it on GitHub.

@pmorie
Copy link
Contributor Author

pmorie commented Jun 17, 2015

@smarterclayton It's exercised in the e2e because the registry uses an emptyDir directly for its storage

@pmorie pmorie force-pushed the emptydir-security-context branch 2 times, most recently from 9800d67 to 27dbfb9 Compare June 17, 2015 03:15
@pmorie
Copy link
Contributor Author

pmorie commented Jun 17, 2015

[test]

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin/3225/)

@pmorie
Copy link
Contributor Author

pmorie commented Jun 17, 2015

@smarterclayton Does jenkins run with SELinux enabled?

@pmorie pmorie force-pushed the emptydir-security-context branch from 27dbfb9 to bff15af Compare June 17, 2015 03:28
@smarterclayton
Copy link
Contributor

No, it needs to be reenabled after we cut 3.0

On Jun 16, 2015, at 11:24 PM, Paul Morie notifications@github.com wrote:

@smarterclayton Does jenkins run with SELinux enabled?


Reply to this email directly or view it on GitHub.

@pmorie
Copy link
Contributor Author

pmorie commented Jun 17, 2015

@smarterclayton I think this is ready for final review:

  1. E2E passes with SELinux enforcing
  2. Upstream E2E for emptyDir works

Oops, I forgot to run the upstream secrets E2E, but I'm positive it will work since the use-cases for secrets are obviously working in the e2e.

@pmorie
Copy link
Contributor Author

pmorie commented Jun 17, 2015

Upstream e2e for secrets doesn't work because the service account has to reference the secret.

@smarterclayton
Copy link
Contributor

LGTM [merge]

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_requests_origin/2477/) (Image: devenv-fedora_1821)

@openshift-bot
Copy link
Contributor

Evaluated for origin up to bff15af

@pmorie pmorie changed the title WIP: Emptydir security context EmptyDir security context Jun 17, 2015
openshift-bot pushed a commit that referenced this pull request Jun 17, 2015
@openshift-bot openshift-bot merged commit bddfd6a into openshift:master Jun 17, 2015
@pmorie
Copy link
Contributor Author

pmorie commented Jun 17, 2015

For: kubernetes/kubernetes#9844

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants