[Feature Request]: ability to configure image pull secrets and linking of them to dynamically-created serviceaccounts #1351
Labels
community
feature/ds-projects
Data Science Projects feature (formerly Data Science Groupings - DSG)
kind/enhancement
New functionality request (existing augments or new additions)
needs-info
Further information is requested from the reporter or from another source
priority/normal
An issue with the product; fix when possible
Feature description
Goal: allowing authenticated image pulling from an enterprise docker registry. Context on-premise, airgapped, enterprise environments hosting mirrored ODH docker images in general including the notebook images (the ones used in the imagestreams).
Currently, image-pulling using dynamic, notebook-specific serviceaccounts
a) in jupyter tile, user name based
b) in data science projects, workbench name based
linked to notebooks is not possible when using an image registry source that requires authenticated access.
@andrewballantyne @VaishnaviHire @LaVLaS some thoughts on how to achieve this
a) dockerconfigjson secret creation would need to be done after data science project creation.
Necesssary infos for that (repopath, username, userpassword/token) could come from OdhDashboardConfig or an already-existing Openshift secret in the main open data hub namespace. I am not sure how secure OdhDashboardConfig would be for putting authentication-relevant fields in there. But, on the other hand, an Openshift secret once generated is not exactly secure either. All admins of a project can decode and see its base64 contents. Edit type users can see secrets, but not decode the content, though I guess they could do a manual base64 decode.
b) linking up the image pull secret by name with the notebook-specific dynamic serviceaccount. Currently, odh notebook controller handles the creation of dynamic new notebok serviceaccounts. We could probably pass the image pull secret name to odh-notebook-controller as well, similar to workbench / notebook name.
https://github.com/opendatahub-io/kubeflow/blob/v1.6-branch/components/odh-notebook-controller/controllers/notebook_oauth.go#L46
That would require a change in assembleNotebook, though in odh dashboard. Either a label or annotation for image pull secret name.
related issue in odh manifests, where for static serviceaccounts,
https://github.com/opendatahub-io/odh-manifests/issues/833
Describe alternatives you've considered
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: