-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
fix: shared secret should be read from environmental variable #701
Conversation
Could we possibly get a flag introduced to revert to pre-9.1.16 behavior? This isn't a concern for me on single-user systems. |
@nateify that's fine by me. what should the flag be? |
I think something like |
an environment variable to revert behavior would be nice too |
TBH I tried
all the time , getting creating
|
I found that croc became completely unusable after the upgrade. Both the sender and the receiver are using version v9.6.17. On the receiver side, I have tried
or
The result is always: Delete my self-host relay config didn't help. |
@lazylua @fanxianluotuo make sure both clients are v9.6.17 I can replicate your errors, but only if one client is <=v9.6.15. also make an issue for your issue please to compartmentalize discussions |
I updated to v10 to signal a breaking change: https://github.com/schollz/croc/releases |
@schollz I'd also like to have the old behaviour somewhat back. |
those arguments are still on the command line and show up on ps though? |
sure, that would be the issue that we reintroduce the vulnerability in case you use this option. As @nateify mentioned this may not be an issue if you're on a single-user system. But I would follow your suggestion, since I also understand the issue with this vulnerability and, though it may take some time to get used to it, would be fine with giving the code via environment variable or in the croc prompt. but what I don't really understand currently, is macOS not affected by this vulnerability? |
yes good point, macOS is, fixed in latest v10.0.5 also added |
When just providing the classic flag, the given error message is confusing:
|
@DerDennisOP why |
@DerDennisOP I guess you're using croc the wrong way. The |
I thought that the classic flags needs to be set on both sides (sending and receiving) and the error message when trying to use --classic on the sending sides suggests to use the none classic sending command. |
Using an environment variable doesn't help much. A process can parse the plaintext out of |
@bb010g using an environmental variable protects against other users on a multiuser system since |
Fixes #598