Skip to content
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

[fish_config] Listen on non-localhost interfaces #1916

Closed
pwr22 opened this issue Jan 26, 2015 · 16 comments
Closed

[fish_config] Listen on non-localhost interfaces #1916

pwr22 opened this issue Jan 26, 2015 · 16 comments

Comments

@pwr22
Copy link

pwr22 commented Jan 26, 2015

I use fish on a lot of headless machines and for this usecase it would be a lot easier if I could configure fish_config to listen on a public interface

@ridiculousfish
Copy link
Member

This could be a parameter to fish_config.

@ridiculousfish ridiculousfish added this to the fish-future milestone Jan 26, 2015
@pwr22
Copy link
Author

pwr22 commented Jan 27, 2015

Sounds sensible, I'm willing to look at adding this myself when I have time

@zanchey
Copy link
Member

zanchey commented Jan 27, 2015

Care will be required. At present fish_config binds to all interfaces but rejects non-localhost connections. The API allows the execution of arbitrary code and should be adequately protected.

@pwr22
Copy link
Author

pwr22 commented Jan 27, 2015

@zanchey I have no intention of changing the default behaviour

@silverhook
Copy link

Being able to run fish_config on the server and connect to it with a web browser from the desktop/laptop might be a very user-friendly solution, yes.

I like it, but it has to also be made secure. Editing the shell settings via unencrypted HTTP without any authorisation doesn’t seems like a good idea.

A different solution to this issue is being discussed also in bug #3625.

@zanchey
Copy link
Member

zanchey commented Dec 17, 2016

Editing the shell settings via unencrypted HTTP without any authorisation doesn’t seems like a good idea.

cf. CVE-2014-2914

@mqudsi
Copy link
Contributor

mqudsi commented Sep 30, 2018

I think we should just agree to suggest something like ngrok for this use case. It's too much of a can of worms otherwise.

@t3kk
Copy link

t3kk commented Aug 16, 2020

I was able to do fish_config remotely by:

  • viewing the temp file fish creates to see what port the webserver is bound to (I had 8000)
  • opening a second ssh session and tunneling the port to localhost. example:
    ssh -L 8000:localhost:8000 user@host
  • opening my browser to the link referenced in the temp file.

@alienzj
Copy link

alienzj commented Sep 18, 2020

I was able to do fish_config remotely by:

* viewing the temp file fish creates to see what port the webserver is bound to (I had 8000)

* opening a second ssh session and tunneling the port to localhost.  example:
  `ssh -L 8000:localhost:8000 user@host`

* opening my browser to the link referenced in the temp file.

code 403, message Forbidden

@alienzj
Copy link

alienzj commented Sep 19, 2020

I see, we need http://localhost:8000/xxxxxx.
The real url can get from rg href <file address returned by fish_config>.
Now, worked.
Thanks ~

@LiSongMWO
Copy link

The trailing slash is apparently also required if you use the SSH tunnel.

But in all honestly, this configuration experience is really bad for headless machines.

@yifeikong
Copy link

Is there a command line version of fish_config? Web ui is good, but CLI is also needed.

@krobelus
Copy link
Member

krobelus commented Dec 6, 2021 via email

@yifeikong
Copy link

yifeikong commented Dec 6, 2021 via email

@silverhook
Copy link

Personally, I find the existence of the CLI command since 3.3.0 enough to not need the functionality that is described in this issue.

@faho
Copy link
Member

faho commented Sep 26, 2022

I do not want to touch this with a ten foot pole, especially given that webconfig isn't all that loved (we need to get off angularjs!). For the headless use case we now have the fish_config CLI.

So I'm closing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests