-
Notifications
You must be signed in to change notification settings - Fork 499
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
proxy private ssh-only repo #1450
Comments
We also have a similar need. We have a git server that only support SSH access. So the server doesn't support We got similar issues with this stack question. With Git
But we cannot do
Is there a way for athens to translate If not, @arschles @marwan-at-work, are you open to a contribution to add this feature? |
@linzhp right now, Athens doesn't fetch code from VCS systems by any means other than If you've tried this, and it doesn't work, we would absolutely open to a contribution to add this feature (I'd also like to see some more details on what went wrong 😄) |
The main issue here is A solution I can see here is for Athens to do the HTTPS to SSH translation on its own and check out from Git using SSH directly, without using |
@linzhp I see what you mean now, thanks. You can configure Athens to respect $ export ATHENS_GO_BINARY_ENV_VARS='GOPRIVATE=code.example.internal'` or set it in the config file: GoBinaryEnvVars = ["GOPRIVATE=code.example.internal"] And then Athens will set |
The issue is less about |
@linzhp the gitconfig would be to prevent |
When we run
Most of these request will return 404 Not Found, but one of them, e.g., However, if the VCS doesn't support HTTPS, the 4
The As a workaround, we forked Athens to add a |
@linzhp I'm not understanding perfectly because you said above that when you run If Athens ran that same command on the server, would |
To sum up: |
@linzhp @mrgleeco would a vanity import server like this one solve your use case? https://github.com/GoogleCloudPlatform/govanityurls If not, I'd love to know why and I'm happy to consider potential additions to Athens for this. |
@marwan-at-work thanks for the suggestion. I took a look.
|
@xytan0056 if the project that @marwan-at-work mentioned works for you, we will add documentation for when and how to use it. I'm looking forward to seeing how |
Sorry, I misunderstood your first comment. I'm not sure how we can make this work if you can't host a vanity server(s) at the same domains as your modules (e.g. |
We had an internal discussion on this vanityurl idea. Here is what we found out:
|
@linzhp regarding (2), using a self-signed cert with the sidecar is the only thing that comes to mind. it would mean that you'd need to add TLS support to govanityurls as well. |
@arschles I'm having a similar issue and I've tried just this, but it seems like Athens is either not picking up on the env vars or it just doesn't work. I've described my issue in #1618 but it might be similar to this one. |
hello but this fork is public ? |
No. After we migrate all Go code to a monolithic repository, this is no longer needed. So we are deleting the fork internally |
Ok thank you, but I don't think it's enough Modify the url for download surely the procedure to create the zipper must be modified too Right? |
I understand the hack of switching to ssh from https via the .gitconfig
insteadOf
syntax.However, in some cases, only SSH access is available to the repo. Is it possible to proxy a local private repo that does not have ANY http/s? It seems the request for the package
<meta name="go-import"...
is always necessary, as per golang module spec.The text was updated successfully, but these errors were encountered: