File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ require (
66 cloud.google.com/go/compute/metadata v0.2.3
77 github.com/google/go-cmp v0.5.9
88 github.com/google/uuid v1.3.0
9- github.com/googleapis/enterprise-certificate-proxy v0.2.1
9+ github.com/googleapis/enterprise-certificate-proxy v0.2.2
1010 github.com/googleapis/gax-go/v2 v2.7.0
1111 go.opencensus.io v0.24.0
1212 golang.org/x/net v0.0.0-20221014081412-f15817d10f9b
Original file line number Diff line number Diff line change @@ -44,8 +44,8 @@ github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeN
4444github.com/google/uuid v1.1.2 /go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo =
4545github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I =
4646github.com/google/uuid v1.3.0 /go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo =
47- github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg =
48- github.com/googleapis/enterprise-certificate-proxy v0.2.1 /go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k =
47+ github.com/googleapis/enterprise-certificate-proxy v0.2.2 h1:jUqbmxlR+gGPQq/uvQviKpS1bSQecfs2t7o6F14sk9s =
48+ github.com/googleapis/enterprise-certificate-proxy v0.2.2 /go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k =
4949github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ =
5050github.com/googleapis/gax-go/v2 v2.7.0 /go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8 =
5151github.com/pmezard/go-difflib v1.0.0 /go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4 =
Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ package cert
1515import (
1616 "crypto/tls"
1717 "errors"
18- "os"
1918
2019 "github.com/googleapis/enterprise-certificate-proxy/client"
2120)
@@ -36,8 +35,7 @@ type ecpSource struct {
3635func NewEnterpriseCertificateProxySource (configFilePath string ) (Source , error ) {
3736 key , err := client .Cred (configFilePath )
3837 if err != nil {
39- if errors .Is (err , os .ErrNotExist ) {
40- // Config file missing means Enterprise Certificate Proxy is not supported.
38+ if errors .Is (err , client .ErrCredUnavailable ) {
4139 return nil , errSourceUnavailable
4240 }
4341 return nil , err
You can’t perform that action at this time.
0 commit comments