-
Notifications
You must be signed in to change notification settings - Fork 552
Add authentication for private index images #1878
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add authentication for private index images #1878
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @anik120 for picking this up.
Please see operator-framework/api#79 (comment) for my thoughts on the approach and an alternate solution.
I think the implementation here looks good, if this is the way we choose to go. The concern I raised in #1878 (comment) or as @ecordell put it
is a valid concern. Is creating a per-catalog SA and using it too much of a change in behavior? It at least isolates the secrets a bit more. |
Fixes Issue operator-framework#1536 operator-framework#1505 This PR attaches the secrets in the spec.Secrets field of the CatalogSource to the default service account in the CatalogSource's namespace, to allow for pulling of index images that are backed by authentication.
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: anik120, kevinrizza The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@exdx @ecordell updated the PR to use per catalog SA instead of the default SA. PTAL, thanks! |
/lgtm per the docs
So just to be clear, for the openshift default catalogs, those are still managed by the marketplace operator right? Those have their own authentication not based on SAs. So this change is for custom catalogs only. I think this is good, once we get some good docs on the |
/retest Please review the full test history for this PR and help us cut down flakes. |
1 similar comment
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest |
/retest Please review the full test history for this PR and help us cut down flakes. |
1 similar comment
/retest Please review the full test history for this PR and help us cut down flakes. |
/QE-approved |
In operator-framework#1878, the secrets passed in `spec.secrets` field of a catalogsource were attached to the catsrc's corresponding SA that was used by the registry pod, thereby having access to the secrets. This allowed for pulling of private index images. However, the job that unpacks the bundle images did not have access to the secrets, and as a result private bundle image included in the catsrc were not installable using the secrets. This PR attaches the secrets from the catsrc to the job that unpacks the bundles, thereby allowing the inclusion of private bundle images within index from private indexes.
Description of the change:
Closes #1536 #1505
This PR attaches the secrets in the
spec.Secrets
field of theCatalogSource to the CatalogSource's service account in the
same namespace, to allow for pulling of index images that
are backed by authentication.
Motivation for the change:
Reviewer Checklist
/docs