Skip to content

Issue with runAsNonRoot #146

Closed
Closed

Description

@jclarksnps

Not entirely sure that your check for runAsNonRoot is working, or we mis-understand exactly what it's checking. We have a pod running which is set at the pod level as below, yet reactive is still saying it shouldn't run as root... which it isn't. Since the securityContext at the container level is only for overriding what is set at the pod level I hope that being set at the pod level is enough. Any ideas?

securityContext:
runAsNonRoot: true
runAsUser: 5000

Activity

  1. self-assigned this
    on Jun 12, 2019
  2. endzyme commented on Jun 12, 2019

    @endzyme
    Contributor

    Thanks @jclarksnps - after looking into this, it does look to be a bug. I have been able reproduce locally. I think the missing context here is that the securityContext is not set on the Container but it is set at the pod level. This is innate kube logic which is missing from polaris (since the validator is only checking the config at the container level, and not referencing anything at the pod level for this check). I can file this as a bug and we'll look at fixing this up in the validation logic. Thanks for the note!!

  3. jclarksnps commented on Jun 12, 2019

    @jclarksnps
    Author

    Thanks!

  4. endzyme commented on Jun 13, 2019

    @endzyme
    Contributor

    #149 Linking

  5. added a commit that references this issue on Jun 18, 2019
  6. jclarksnps commented on Jun 20, 2019

    @jclarksnps
    Author

    Thanks for fixing this, any eta on a release?

  7. endzyme commented on Jun 20, 2019

    @endzyme
    Contributor

    Hi @jclarksnps - I'll get back to you shortly on the timing 😃 - Thanks again!

  8. endzyme commented on Jun 20, 2019

    @endzyme
    Contributor

    @jclarksnps - I am planning on cutting a release tomorrow if that works for you! :)

  9. jclarksnps commented on Jun 20, 2019

    @jclarksnps
    Author

    Thanks! Yep, we'll deploy and check it out.

  10. endzyme commented on Jun 21, 2019

    @endzyme
    Contributor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions