Skip to content

Seccomp profile in queue-proxy incompatible with gvisor #13471

Closed

Description

@daraghlowe

What version of Knative?

1.8.0

Expected Behavior

Pods should be able to start on GKE nodes running gvisor.

Actual Behavior

Gvisor refuses to allow the pods to start as a seccomp profile has been set, the following error is shown in events which refuses to allow the pod to start:

Seccomp is not supported

#13376 added the config below to queue-proxy containers by default, however gvisor won't allow any profile or even a blank profile to be set.

          seccompProfile:
            type: RuntimeDefault

Maybe this could be configurable in a config map whether it gets added to the queue proxy?

Steps to Reproduce the Problem

Create a Knative service running on node running gvisor on a cluster running Knative 1.8.0.

Activity

  1. added
    kind/bug
    on Nov 15, 2022
  2. dprotaso commented on Nov 24, 2022

    @dprotaso
    Member
  3. dprotaso commented on Nov 24, 2022

    @dprotaso
    Member

    @daraghlowe I'm assuming you're dropping the seccompProfile from the installation yamls correct?

  4. dprotaso commented on Nov 24, 2022

    @dprotaso
    Member
  5. dprotaso commented on Nov 24, 2022

    @dprotaso
    Member

    /triage accepted

  6. added
    triage/accepted
    on Nov 24, 2022
  7. added this to the v1.9.0 milestone on Nov 24, 2022
  8. daraghlowe commented on Nov 24, 2022

    @daraghlowe
    Author

    I'm assuming you're dropping the seccompProfile from the installation yamls correct?

    We run the Knative control plane on a non gvisor node pool so we didn't have any issues upgrading. Our Knative services run on a gvisor node pool however so we only saw the problem with the queue-proxy container.

  9. skonto commented on Nov 24, 2022

    @skonto
    Contributor

    @dprotaso
    My proposal would be:
    a) rollback since it breaks gvisor which does not allow any profile, so upgrades are unblocked for services.
    b) make this configurable (if not already) because people may want to add the profile only for Knative and not for all workloads.

  10. dprotaso commented on Nov 24, 2022

    @dprotaso
    Member

    I created a PR to address a)

    I think b) would be covered by Evan's PR #13398

  11. dprotaso commented on Nov 24, 2022

    @dprotaso
    Member

    I wonder if we should remove the default profile in our control plane release yamls as well.

    If someone is running the Knative control plane in gVisor or an earlier OpenShift release it will fail to upgrade.

    I think the sensible thing is to wait till our k8s min version supports 1.25 to introduce these defaults. I'm assuming that's when they have an effect.

    Though in the gVisor situation it'll never work so maybe we encourage folks adopt the operator that can toggle this on and off. Or they do their own post processing of our yamls.

  12. daraghlowe commented on Nov 25, 2022

    @daraghlowe
    Author

    Thanks for the fix @dprotaso

  13. nak3 commented on Nov 25, 2022

    @nak3
    Contributor

    EDIT: The comment is just same with Dave's #13471 (comment) 😅 I think release yaml should have the consistency.

  14. dprotaso commented on Nov 25, 2022

    @dprotaso
    Member

    Created a new issue

  15. dprotaso commented on Nov 28, 2022

    @dprotaso
    Member

    From: #13512 (comment)

    Seeing how prolific this setting is (many Knative repos and even their dependencies) it's not worth the hassle. Even if we make the changes end-users will have to customize yamls (ie. cert-manager) for this to work.

  16. kevinGC commented on Dec 2, 2022

    @kevinGC

    @daraghlowe can you clarify what version of GKE you're using?

  17. daraghlowe commented on Dec 5, 2022

    @daraghlowe
    Author

    @daraghlowe can you clarify what version of GKE you're using?

    @kevinGC We're using 1.24.4-gke.800 at the moment in the project we ran into this issue.

  18. kevinGC commented on Dec 6, 2022

    @kevinGC

    Looks like knative rolled this back, but anyways per the GKE bug tracker RuntimeDefault and Unconfined are allowed in GKE Sandbox starting in 1.26.

  19. daraghlowe commented on Dec 6, 2022

    @daraghlowe
    Author

    Great stuff, thanks @kevinGC

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

    kind/bugtriage/accepted

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions