Skip to content

Istio and Serving Job/Deployment running as root #3001

Closed

Description

@Justin2997

Proposal

For security is best practice to remove every Deployment running as root that does not need it. I do not know really if some of the containers that are in root really need it. We maybe can change de config in ko when building knative serving so that docker image do not default to USER 0.

There is the list of the container that runs as root in Knative v0.30 :

Istio :

  • hyperkub
  • statsd-prom-bridge
  • validator
  • istio-proxy
  • mixer
  • discovery
  • citadel
  • sidecar-injector-webhook

Knative :

  • activator
  • autoscaler
  • controller
  • webhook
  • eventing-controller
  • dispatcher
  • manager

Activity

  1. added
    area/build
    kind/question
    on Jan 25, 2019
  2. tcnghia commented on Jan 25, 2019

    @tcnghia
    Contributor

    /cc @mattmoor do we have a larger issue / epic regarding restricting ACLs ?

  3. mattmoor commented on Jan 28, 2019

    @mattmoor
    Contributor

    We don't ship Istio, so that's between you and them.

    For Knative, we can change this in the Deployments themselves trivially, I think. Worth a try.

    ko doesn't allow configuring this, but it should respect whatever the base image has configured.

  4. added
    area/test-and-release
    and removed
    area/build
    on Jan 28, 2019
  5. added this to the Ice Box milestone on Jan 28, 2019
  6. Justin2997 commented on Jan 28, 2019

    @Justin2997
    Author

    @mattmoor where can I find out about the Deployment process if I want to do a PR ? Thanks !

  7. Justin2997 commented on Jan 29, 2019

    @Justin2997
    Author

    UPDATE: I test for Istio and all the container need write access.

  8. Justin2997 commented on Sep 5, 2019

    @Justin2997
    Author

    Because of @bradhoekstra PR I think we can close that.

  9. removed this from the Ice Box milestone on Oct 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/test-and-releasekind/question

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions