Coder Social home page Coder Social logo

Comments (7)

routerino avatar routerino commented on May 26, 2024 1

Try saving your API key and then opening an incognito window or a browser on another profile.

from headscale-ui.

zbjdonald avatar zbjdonald commented on May 26, 2024 1

work as expected
Snipaste_2022-09-26_16-32-29

from headscale-ui.

routerino avatar routerino commented on May 26, 2024

Bearer token is saved to browser cache, which is about as much auth as you can have without a backend to facilitate it.

from headscale-ui.

zbjdonald avatar zbjdonald commented on May 26, 2024

Thank you. For example, vpn.xxxx.com is login url, vpn.xxxx.com/web can manage all tailscale client. I think vpn.xxxx.com/web need a login page, otherwise people who can visit vpn.xxxx.com also can manage all tailscale client.

from headscale-ui.

joshuataylor avatar joshuataylor commented on May 26, 2024

If you want to stop random access to this page, you have a few options depending on what you use.

nginx: Use basic auth (easiest), or oauth through https://github.com/oauth2-proxy/oauth2-proxy

Caddy: Use basic auth, maybe https://github.com/greenpau/caddy-security/blob/main/README.md (Personally haven't tested this for Caddy).

from headscale-ui.

routerino avatar routerino commented on May 26, 2024

If you want to stop random access to this page, you have a few options depending on what you use.

nginx: Use basic auth (easiest), or oauth through https://github.com/oauth2-proxy/oauth2-proxy

Caddy: Use basic auth, maybe https://github.com/greenpau/caddy-security/blob/main/README.md (Personally haven't tested this for Caddy).

Mostly it should be irrelevant, as anything sensitive is saved to the local browser cache.

It's not ideal as if there's a security issue with the client code, it can cause leaks of sensitive data. However, this is mitigated by the fact that client code is effectively signed by the hash signature of the compiled code.

This isn't ideal and should be better served by a client-server model, but that is functionally impossible with a pure client side solution such as headscale-ui. This is a problem that needs to be solved via integration with headscale.

from headscale-ui.

joshuataylor avatar joshuataylor commented on May 26, 2024

yeah, i really don't see the point, unless you really don't want someone or a random bot to find it, but what are they going to do? 🤷

from headscale-ui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.