Porter fails auth for installation image pull with Kubernetes driver #2339
Labels
1 - 🍫
Eat chocolate _after_ emergency donuts
enhancement
New code incoming!
gap
We missed a spot
operator
Required by the Porter Operator
v1.1.0
Projects
Describe the bug
Porter does not use service account auth for private registries when run with
kubernetes driver.
This is seen when running via the Porter Operator.
Digging into the I'm hitting this error...
porter/pkg/cnab/cnab-to-oci/registry.go
Line 77 in 9b9cadd
Which uses
porter/pkg/cnab/cnab-to-oci/registry.go
Line 250 in 9b9cadd
I'm wondering if the issue is the use of
dockerconfig.LoadDefaultConfigFile
.From what I can tell https://pkg.go.dev/github.com/cnabio/cnab-to-oci@v0.3.6/remotes#CreateResolver
remotes.CreateResolver expects a docker cli configfile. https://pkg.go.dev/github.com/docker/cli/cli/config/configfile
To Reproduce
Steps to reproduce the behavior:
Install Porter Operator
Create Agent Image with latest kubernetes driver
Setup docker auth for private registry on the
namespace default service account
Create porter.sh/Installation with bundle from private registry
PorterConfig porter.yaml from this repository or gist
AgentConfig
Run this porter installation
Installation error
Expected behavior
Porter should be able to install via the Porter Operator using it's
kubernetes driver when the installationService account is set and has
docker auth creds.
Porter Command and Output
installation.yaml
Job spec
Note: SERVICE_ACCOUNT is set for cnab kubernetes driver
Job output
Version
v1.0.0-beta.1
The text was updated successfully, but these errors were encountered: