-
Notifications
You must be signed in to change notification settings - Fork 349
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
use v2 proxy in gcloud sql connect
#1659
Comments
gcloud sql connect
Hi @aimichal thanks for the question! 😄 Currently the We need to make a few more slight changes to v2 before we can port/sync it over to be used with gcloud. I have updated this issue to a feature request to help track the work and progress. We hope to have this work done sometime in q2 so that users can leverage the v2 proxy with the |
Thanks for confirming this, @jackwotherspoon! Good to know work is in progress. 👍 In the mean time, we'll tell folks in our org who need to use |
Also, would be great if |
You've to the right place -- we're the team that updates that component. We're working on generally upgrading gcloud components to use v2 across the board. We're a small team and there are some other high priorities, but this is coming up the list. |
Generally, I'd recommend getting the Proxy from the releases page here, as gcloud will probably always be a minor version or two behind. |
Great! (Though in this case, was just asking for the latest 1.3.x for now)
@enocom yes, but in an environment where the user is unable or unwilling to bypass the OS X restrictions on running unsigned binaries, doing this with unsigned binaries is sometimes challenging. If the answer is always to "just" download the binary from the GH release (as suggested in #95), vs. publishing a homebrew recipe for it or keeping the version in the gcloud CLI up to date, then Google may want to invest in signing / notarizing the Apple binaries properly, which I don't think is the case today. [context: we were suggested to try the newer version in this issue, though in the end, using it didn't "fix" the problem] |
I realize this is a bit of a digression; I opened #1712 to request the signing. |
Sounds good. Thanks for the feature request. I'm running on Linux so don't know -- does the gcloud components path cause any headaches for macOS users with the need to notarize binaries? |
Can move this discussion to the other thread if that makes more sense. I'm using a homebrew / cask install of the
There is a process to allow unsigned binaries, if your system gives you permissions to do it. On my work machine, I also had to manually run As best I understand, the preferred / best practice is to sign the binaries, though I see |
Thanks for the information. This is super helpful. I'll look into getting a properly signed binary in place. Until then we'll also be working on upgrading to v2 in gcloud. |
FYI V2 Proxy is now available as a component in gcloud. |
I just helped someone connect to a Cloud SQL database from a new macOS laptop. The command We overwrote the 2.x version of the Cloud SQL Proxy with the 1.x line and the above Is there a schedule when gcloud's |
@aimichal Yes, I am beginning the work to move |
Question
When I connect to a Cloud SQL instance with the "gcloud" command, like this:
I see it starting the Cloud SQL Proxy like this:
This worked with version 1.33.2, but does not work with version 2.0.0.
The reason is that the argument
-instances
is now--instances
, and using-instances
shows the error:(There may be other incompatibilities as well.)
If this is a bug with the "gcloud" command, where should I file the issue? I looked for a while and couldn't find a place, so if you have a pointer, I'll gladly re-post there.
Additional Context
I can't see others bringing this up in the issues; searching for "shorthand" in https://github.com/GoogleCloudPlatform/cloudsql-proxy/issues shows no matching open or closed issues.
In the StackOverflow discussion about this problem, https://stackoverflow.com/questions/75465023/error-unknown-shorthand-flag-n-in-nstances-when-trying-to-connect-google, but there's no mention of the "gcloud" command triggering this problem.
The text was updated successfully, but these errors were encountered: