Repository navigation
Conversation
|
@pweil- I think we should make ginkgo tests for origin that test the knobs for docker in conjunction with the policy. Long-term we need to have that for everything, we can start with just the scenarios being added (IE, SupplementalGroups and FSGroup). Thoughts? |
|
are you proposing carrying upstream ginko tests that work with our carried scc or just adding them to security policy when it goes in the exp api? |
|
@pweil- Short term, i'm proposing e2es for origin that are probably similar to the ones for the knobs we make upstream that work in concert w/ the origin policy but don't share code with the upstream E2Es. Ideally we would be able to intercept and decorate namespace creation in origin to set up policy but I don't want to have to work through that to solve the problem of just adding E2E for this feature in origin. |
6b70c77 to
92f5e78
Compare
|
latest update has supplemental groups in providers and strategies along with tests (still just the last two commits) |
92f5e78 to
1b20829
Compare
|
provider using restricted scc to default the supplemental group to the first value of the allowable range |
d198bb8 to
8263e00
Compare
|
@smarterclayton @pmorie @swagiaal @liggitt - fsgroup integration is in for SCC. The last two commits in this branch are what needs eyes, the rest are changes from @pmorie and @swagiaal that will be reviewed and submitted separately. |
8263e00 to
3521175
Compare
d98da45 to
3892ede
Compare
|
@swagiaal @pmorie - a couple of things I'm noticing:
|
3892ede to
3f4f092
Compare
|
took care of the feedback for making constant field names in the provider. Awaiting other reviews. reviewers: please pay attention to the conversions. Since the upstream has diverged (it is now PSC) there is not a nice way to auto generate these so a double check would be good. |
|
Add one integration test that validates that the default behavior is to allocate the group id into the container |
3f4f092 to
4944fc5
Compare
|
added v1/v1beta3 defaults if new group strategy types are empty. Defaults will be for a restricted, namespace allocated strategy (mustRunAs with no ranges set). added integration test that submits pods with and without requested groups and ensures the groups are allocated if necessary and that they end up on the docker host config. |
4944fc5 to
85dd7e7
Compare
85dd7e7 to
edfaecd
Compare
|
you can't run pods in integration... it doesn't start with sudo, so it can't use tmpfs |
is the router test somehow excluded then? It starts a router pod. I thought we used the docker build flag specifically to run things with docker. |
|
never mind, it starts it itself I think edit: yup, it starts the container directly, not as a pod :-( |
7f93957 to
89a4f77
Compare
|
modified the int test to launch the pod but then not check for the docker host config. It will now simulate what the kubelet does to craft the host config using the sc provider and checks the modified host config. |
This should be fixable on jenkins, right? |
89a4f77 to
4eeee70
Compare
There was a problem hiding this comment.
This leaves me unsatisfied. I'd rather see an extended test get its pod created or fix the integration test invocation to allow running pods.
There was a problem hiding this comment.
if tmpfs for the SA token is the issue, you can create a volume mount at the expected SA token mount path and the SA token won't get added.
There was a problem hiding this comment.
I'll give that a shot. Worse comes to worse I can move this to an extended test.
4eeee70 to
f7aa7a5
Compare
|
edit: removing bad extended tag |
|
|
re[test][extended:core] |
|
let's try this again without the bad tag....re[test] |
|
@pmorie @deads2k @swagiaal - this didn't seem to work in jenkins although it worked fine locally. I'm going to add a bit more logging to the test to try and work it out. Does anyone know the docker version that jenkins runs? @swagiaal I recall you saying previously that if the version was too low it would just ignore the parameters. |
cbbafe9 to
78f821d
Compare
@danmcp Do you know offhand? |
78f821d to
712d4c8
Compare
|
and search for docker. docker.x86_64 1.7.1-115.el7 |
712d4c8 to
131fe33
Compare
|
@pmorie @deads2k I added a check on the extended test to check the version before running or skip. Please take a glance. New local output is showing the step for ensuring the feature is supported: https://gist.github.com/pweil-/9a783b6f4946e54e4933 quick testing for the supported method: https://play.golang.org/p/qsNpcRVnkm |
|
flake timeout on jenkins in unrelated tests. re[test] |
|
Evaluated for origin test up to 131fe33 |
@pweil- that is correct |
|
it is correctly skipping the test now by checking the docker version: It failed on unrelated extended tests. @pmorie if you want to double check the last three commits to make sure you have the latest I'm fine with closing this out in favor of your updated PR. Final status here: |
|
Add to that my LGTM 👍 |
|
Closing in favor of #5169 🎂 |
This is based on @pmorie 's WIP branch #5169. The last two commits are what I'm working on.
Contains:
@pmorie @swagiaal @liggitt @smarterclayton
Remaining Work:
v1beta3PodSpecshas rippled into a lot of objects now not getting fuzzed. At the very least, we need an issue find a way to testv1beta3 -> internal -> v1beta3with fidelity. See the ripples here: https://github.com/openshift/origin/pull/5079/files#diff-394377845c8dfd9eec363c059cdde354R379DeepCopyof the pod. This would help readability and its only going to happen on pod creation. I'm not convinced that an in-memory copy of data we already have, just for creates of pods, will show up on profiling, but it be a big improvement for inspectability of this code.reconcile-sccsto help admins update correctly.