-
Notifications
You must be signed in to change notification settings - Fork 449
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Step CA connects to IPs instead of KMS URL #2001
Comments
My kms plugin was also updated from 0.11.4 to 0.11.5 at the same time as step-ca.Edit: kms plugin 0.11.5 with step-ca 0.27.2 works. |
Hey @GBBx, thank you for opening the issue. Do you have example logs of your proxy? Based on some quick triage our verdict was that we didn't change code related to handling HTTP with or without proxies directly, at least not knowingly. It's possible that a dependency upgrade in a lower level has changed the behavior, though. I did a quick test with both the CA as well as the KMS plugin, but I didn't hit your problem. Note that the KMS plugin isn't used by the CA, but it does use shared code from our Is it possible your usage of the KMS plugin doesn't go through the proxy? Are you executing the CA and the KMS from the same machine, using the same user and the same GCP credentials? |
Hi @hslatman, thanks for your questions.
Yes. Here's what I see on the proxy using step-ca 0.27.2 - a single line when step-ca is started:
And here's what I get with step-ca 0.27.4:
It definitely goes through the proxy. I cannot connect to GCP if it is not through the proxy. |
Can you run the CA and KMS with E.g. for KMS: |
I guess the badger... lines are not relevant. If I add STEPDEBUG=1 it says:
The KMS command works:
|
The issue persists with Step CA 0.27.5. |
This is still an issue on 0.28.0. @hslatman , anything else I could check? |
Hi, Here's how I do it:
Error message:
Proxy logs:
These addresses correspond to
Maybe a shared dependency was updated in step-ca between 0.27.2 and 0.27.4 and in step-kms-plugin between 0.11.5 and 0.11.6? |
Now step-ca 0.28.1 works, but this still fails:
I use step_cli 0.28.2 and step-kms-plugin 0.11.7. step-kms-plugin 0.11.5 works. |
Steps to Reproduce
Your Environment
step-ca
Version - 0.27.4Expected 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).
The text was updated successfully, but these errors were encountered: