Commit Graph

30 Commits

Author SHA1 Message Date
Anders Pitman
7f45316928 Update todo 2020-11-24 19:21:59 -07:00
Anders Pitman
b7579f9a4e Update todo 2020-11-03 14:09:11 -07:00
Anders Pitman
a7d1edcdbf Update go.sum 2020-10-31 09:52:14 -06:00
Anders Pitman
98a6ff52fc Delete tokens when user is deleted
Also added DeleteUser to API
2020-10-30 18:50:24 -06:00
Anders Pitman
d0f3ab89db Output login link on first start 2020-10-29 18:49:59 -06:00
Anders Pitman
6b9f9aa413 Implement creating users and tokens from REST API 2020-10-29 17:56:38 -06:00
Anders Pitman
0f3482f836 Reorder todo 2020-10-28 12:59:40 -06:00
Anders Pitman
4fd830167f Fix more security holes 2020-10-27 15:21:56 -06:00
Anders Pitman
3a705cf252 Fix QR codes not rendering for admin 2020-10-27 14:51:59 -06:00
Anders Pitman
f6fee2b8c0 Check permissions for deleting tunnels 2020-10-27 14:39:44 -06:00
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
8e8045cde7 Update notes and todo 2020-10-26 11:11:14 -06:00
Anders Pitman
1abc141d13 Make client selection a dropdown
Also implemented adding and deleting clients through the API.
2020-10-24 16:48:53 -06:00
Anders Pitman
8477391273 Implement using custom SSH keys 2020-10-23 20:56:55 -06:00
Anders Pitman
4158ea5777 Improve shadows on logo 2020-10-22 10:08:20 -06:00
Anders Pitman
0014ad5ce9 Add a couple shadows to logo 2020-10-21 15:01:57 -06:00
Anders Pitman
80d7f2115b Clean up UI a ton 2020-10-19 12:25:04 -06:00
Anders Pitman
0df20b2e1e Update notes and todo 2020-10-18 10:48:23 -06:00
Anders Pitman
2d7f985311 Fix Firefox silently deleted tunnels
Debugging notes:

* The act of refreshing a page can delete tunnels created by other UI
  sessions, I think because it has local CSS checkbox state.
  * Happens on firefox desktop and mobile. Here's how to reproduce:
    1. Load the UI in Chrome and FF.
    2. Delete the last tunnel from FF.
    3. Add it back in Chrome.
    4. Refresh FF. The tunnel will be silently deleted.
  * I'm pretty sure this is bugged behavior in FF, because the checkboxes have
    completely unique ids, but it's treating them like the same checkbox.
  * Setting autocomplete='off' on the input elements seems to fix the problem.
    Not sure if it will work correctly in all browsers.
2020-10-17 09:48:29 -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
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
cfcd781276 Filter UI requests through API
API is now the central control point for making authorized
requests. The current architecture is:

* db simply returns all data
* api uses tokens to filter data from db. It includes methods for
  returning objects, and HTTP endpoints for return JSON.
* ui calls the api functions to get filtered data.
2020-10-14 09:17:04 -06:00
Anders Pitman
f6faa9c6a7 Add tokens page 2020-10-13 10:32:46 -06:00
Anders Pitman
ffc0d27338 Start implementing remote-controlled clients 2020-10-09 10:05:31 -06:00
Anders Pitman
84b7c0828e Start implementing custom client
Basic SSH plumbing in place. Go makes this way too easy.
2020-09-30 23:49:03 -06:00
Anders Pitman
17b37ab2ed Remove SirTunnel stuff from readme 2020-09-29 15:53:10 -06:00
Anders Pitman
42f4695381 Start implementing auth 2020-09-28 22:46:35 -06:00
Anders Pitman
f24b5fe77b Integrate CertMagic for auto TLS certs 2020-09-27 22:24:03 -06:00
Anders Pitman
09770d2c7a Split into separate files and add todo 2020-09-26 15:56:57 -06:00