Commit Graph
17 Commits
Author SHA1 Message Date
Anders Pitman b3f1636be6 Fix some security issues
* The CSS styles were leaking information about tunnels, even for
  things like the login page, which can be sent to anyone.
* Tokens could be created for any user by any user.
2020-10-26 12:18:51 -06:00
Anders Pitman 8477391273 Implement using custom SSH keys 2020-10-23 20:56:55 -06:00
Anders Pitman fd0451fa3b Implement password-protected tunnels 2020-10-20 20:03:59 -06:00
Anders Pitman 9882017d5a Add ClientAddress
Allows tunnels to specify what address the client with connect to
for upstream connections.

Also changed the tunnel-adder UI.

Also fixed a bug where invalid domains would crash. Needed to
properly return an error dialog.
2020-10-20 18:52:32 -06:00
Anders Pitman 80d7f2115b Clean up UI a ton 2020-10-19 12:25:04 -06:00
Anders Pitman 0e39e9dd57 Add QR code login URLs for tokens
Also set cookies to max age of a year rather than session cookies.
2020-10-18 18:39:30 -06:00
Anders Pitman ca89553354 Make UI more consistent 2020-10-17 09:19:59 -06:00
Anders Pitman 18e09120a7 Change delete to work without a page navigation.
Uses more CSS checkbox hackery.
2020-10-17 08:42:29 -06:00
Anders Pitman e51b304275 Make tunnel delete buttons pure CSS 2020-10-16 09:40:46 -06:00
Anders Pitman 7df93c0821 Highlight selected page
Needed to change HTML architecture to inline multiple independent
copies of the menu. There might be a cleaner way to do this, but
it will work for now.
2020-10-15 13:01:15 -06:00
Anders Pitman 20b473e61f Switch to monochrome buttons 2020-10-15 10:42:38 -06:00
Anders Pitman f911ca3b1a Implement logout button 2020-10-15 10:05:09 -06:00
Anders Pitman 4c78059e66 Overhaul UI architecture
Learned about the :target CSS selector, which can be used to
replace content depending on the current URL hash. This allows
making a sort of single page app without JavaScript.

Currently experimenting with returning all the pages in a single
request, then switching between them with :target. Seems to be
working quite well so far.
2020-10-15 09:50:12 -06:00
Anders Pitman f6faa9c6a7 Add tokens page 2020-10-13 10:32:46 -06:00
Anders Pitman 238b66fb9b Handle webui auth in central location 2020-10-12 19:13:43 -06:00
Anders Pitman d04804e8ac Include styles on login page 2020-10-11 14:10:30 -06:00
Anders Pitman 1b4e6beb61 Implement confirm dialog
Also moved shared styles to separate file which is included by
templates.
2020-10-11 13:32:10 -06:00