certificates
certificates copied to clipboard
[Bug]: cloudKMS connects to IPs and fails
Steps to Reproduce
- start step-ca
step-ca ...ca.json --password-file ...password
- get error message
context deadline exceeded
cloudKMS GetPublicKey failed
go.step.sm/crypto/kms/cloudkms.(*Signer).preloadKey
go.step.sm/[email protected]/kms/cloudkms/signer.go:46
go.step.sm/crypto/kms/cloudkms.NewSigner
go.step.sm/[email protected]/kms/cloudkms/signer.go:31
go.step.sm/crypto/kms/cloudkms.(*CloudKMS).CreateSigner
go.step.sm/[email protected]/kms/cloudkms/cloudkms.go:162
github.com/smallstep/certificates/authority.(*instrumentedKeyManager).CreateSigner
github.com/smallstep/certificates/authority/meter.go:86
github.com/smallstep/certificates/authority.(*Authority).init
github.com/smallstep/certificates/authority/authority.go:426
github.com/smallstep/certificates/authority.New
github.com/smallstep/certificates/authority/authority.go:149
github.com/smallstep/certificates/ca.(*CA).Init
github.com/smallstep/certificates/ca/ca.go:200
github.com/smallstep/certificates/ca.New
github.com/smallstep/certificates/ca/ca.go:162
github.com/smallstep/certificates/commands.appAction
github.com/smallstep/certificates/commands/app.go:254
github.com/urfave/cli.HandleAction
github.com/urfave/[email protected]/app.go:524
github.com/urfave/cli.Command.Run
github.com/urfave/[email protected]/command.go:175
main.main.func3
./main.go:202
github.com/urfave/cli.HandleAction
github.com/urfave/[email protected]/app.go:524
github.com/urfave/cli.(*App).Run
github.com/urfave/[email protected]/app.go:286
main.main
./main.go:205
runtime.main
runtime/proc.go:272
runtime.goexit
runtime/asm_amd64.s:1700
Your Environment
- OS - Linux
-
step-ca
Version - 0.27.4
Expected Behavior
step-ca should start
Actual Behavior
step-ca crashes
Additional Context
I use a corporate proxy. Step-ca runs as a systemd service and the HTTPS_PROXY variable is set in the unit file. On the proxy, the necessary KMS URLs are whitelisted, e.g. cloudkms.googleapis.com.
Since an update from 0.27.2 to 0.27.4 I see in the proxy logs that step-ca is trying to connect to IPs instead of the URL. I.e. if I do nslookup cloudkms.googleapis.com
- these are the IPs I see in the proxy logs.
Contributing
Vote on this issue by adding a 👍 reaction. To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).