GoogleContainerTools / kpt-backstage-plugins

Apache License 2.0
54 stars 29 forks source link

Pull images using PAT for the Github repository #87

Open 4molybdenum2 opened 2 years ago

4molybdenum2 commented 2 years ago

Currently Github authentication requires us to create a Personal Access Token (PAT). This same token can be used to pull images from ghcr. Another alternative is configuring a default secret at the service account level: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#add-imagepullsecrets-to-a-service-account which will help us in fetching the image on a private registry

PS: Is it possible to remove the requirement for PAT altogether and use something like Github Authentication Provider for Backstage? https://backstage.io/docs/auth/github/provider#docsNav

ChristopherFry commented 2 years ago

Created GoogleContainerTools/kpt#3434 to add support to Porch for authenticated container repositories. Once this is complete, I'll be able to add support to the UI.