Skip to content

Add e2e test for creating a service with ImagePullSecrets #5934

Open

Description

@taragu

/area API
/area test-and-release

As part of #5866, we need to add an e2e test for creating a service with ImagePullSecrets after #5917 is merged.

/assign
FYI @dgerd

Activity

  1. added
    kind/feature
    on Nov 4, 2019
  2. added
    area/API
    area/test-and-release
    on Nov 4, 2019
  3. knative-housekeeping-robot commented on Feb 3, 2020

    @knative-housekeeping-robot

    Issues go stale after 90 days of inactivity.
    Mark the issue as fresh by adding the comment /remove-lifecycle stale.
    Stale issues rot after an additional 30 days of inactivity and eventually close.
    If this issue is safe to close now please do so by adding the comment /close.

    Send feedback to Knative Productivity Slack channel or file an issue in knative/test-infra.

    /lifecycle stale

  4. added
    lifecycle/stale
    on Feb 3, 2020
  5. markusthoemmes commented on Feb 3, 2020

    @markusthoemmes
    Contributor

    @taragu are you still working on this? If so, please remove the stale status.

  6. taragu commented on Feb 3, 2020

    @taragu
    ContributorAuthor

    /remove-lifecycle stale

  7. removed
    lifecycle/stale
    on Feb 3, 2020
  8. taragu commented on Feb 10, 2020

    @taragu
    ContributorAuthor

    I'm trying to construct the e2e test for creating a service with an image of a private registry. However, I'm running into a problem. It seems the only way to create a docker registry secret is with plain username and password (https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#-em-secret-docker-registry-em-), and we shouldn't have those information in any of our e2e tests or scripts. Does anyone know a workaround for this problem?

  9. karlkfi commented on Feb 19, 2020

    @karlkfi

    You can use a GCR _json_key in a docker registry secret, but it will also be in clear text (it gets base64 encoded). To make docker use a _json_key you use _json_key as the username and the keyfile json as the password.
    https://cloud.google.com/container-registry/docs/advanced-authentication#json-key

    For an e2e test, tho, you'll probably want to deploy a local disposable private registry and generate credentials for it on-demand when you set up the test.
    https://docs.docker.com/registry/deploying/#native-basic-auth

  10. taragu commented on Feb 20, 2020

    @taragu
    ContributorAuthor

    @karlkfi thanks for your suggestion!
    /unassign
    I currently don't have the bandwidth for this. Anyone else please feel free to pick up this issue.

  11. knative-housekeeping-robot commented on May 21, 2020

    @knative-housekeeping-robot

    Issues go stale after 90 days of inactivity.
    Mark the issue as fresh by adding the comment /remove-lifecycle stale.
    Stale issues rot after an additional 30 days of inactivity and eventually close.
    If this issue is safe to close now please do so by adding the comment /close.

    Send feedback to Knative Productivity Slack channel or file an issue in knative/test-infra.

    /lifecycle stale

  12. added
    lifecycle/stale
    on May 21, 2020
  13. knative-housekeeping-robot commented on Jun 20, 2020

    @knative-housekeeping-robot

    Stale issues rot after 30 days of inactivity.
    Mark the issue as fresh by adding the comment /remove-lifecycle rotten.
    Rotten issues close after an additional 30 days of inactivity.
    If this issue is safe to close now please do so by adding the comment /close.

    Send feedback to Knative Productivity Slack channel or file an issue in knative/test-infra.

    /lifecycle rotten

  14. added
    lifecycle/rotten
    and removed
    lifecycle/stale
    on Jun 20, 2020
  15. mattmoor commented on Aug 17, 2020

    @mattmoor
    Contributor

    /lifecycle frozen

  16. added
    lifecycle/frozen
    and removed
    lifecycle/rotten
    on Aug 17, 2020
  17. mattmoor commented on Aug 17, 2020

    @mattmoor
    Contributor

    They are ugly, but two options that work with GCR:

    1. Use _json_key and an IAM role that just has read access to a specific bucket.
    2. Use _json_key and an IAM role with NO access, but full from a bucket that's ACL'd with allAuthenticatedUsers (vs. allUsers).
  18. evankanderson commented on Mar 22, 2021

    @evankanderson
    Member

    One other thought (though this appears quite stale and maybe just needs to be killed?):

    It might be possible to run a simple registry on-cluster using the https://hub.docker.com/_/registry image and a static private key?

    /triage accepted

  19. added
    triage/accepted
    on Mar 22, 2021
  20. dprotaso commented on Nov 3, 2021

    @dprotaso
    Member

    This type of e2e test would be useful since there are edge case that we need to exercise

    ie. multiple secrets doesn't seem to work
    google/go-containerregistry#723

  21. added this to the Icebox milestone on Nov 3, 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/APIarea/test-and-releasekind/featurelifecycle/frozentriage/accepted

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions