Code Monkey home page Code Monkey logo

Comments (6)

mariushosting avatar mariushosting commented on July 22, 2024 8

You can also add two environment variables with username and password. Easy for all people.

from flame.

pawelmalak avatar pawelmalak commented on July 22, 2024 6

It will take some time to implement but my idea is as follows:

  1. After creating conatiner user can console into it and run script like node createMasterPassword.js which will enable password protection and save it to the database
  2. User can then visit flame.domain.tld/auth and login with given password which will return JWT token
  3. Things like add/edit buttons or weather settings can be then rendered only if token is present in localStorage and is valid. /settings route will still be available for guests but only Theme tab will be accessible.
  4. Token will be valid for let's say 30 days and when it's invalid app will emit notification with error.

from flame.

rgriffogoes avatar rgriffogoes commented on July 22, 2024

Some user authorization in the app might be a good idea, but you could also secure the whole application using a reverse proxy - if you don't need really public access to flame

from flame.

sharpsounds avatar sharpsounds commented on July 22, 2024

I hadn't considered this issue before now. Previously using Homer which is configured through .yaml without a config page and random people on the internet from changing my settings wasn't an issue so I had no auth set up.

I had the thought to just change my reverse proxy's (pomerium) oauth settings to only require authentication on a config page or something. E.g https://domain.me/settings requires authentication via reverse proxy. Which would kind of work except that the add and edit popovers do not have their own URL.
I suppose you could still do the above with the:

  • /settings
  • /applications
  • /bookmarks

pages but then that would mean that would mean any bookmarks or apps that aren't pinned to the homepage are behind auth as well, and not just the add/edit popovers. Less than ideal but it is better than nothing.

EDIT: Doesn't work. If manually navigate to /settings I get prompted for auth but if I click it on the Flame homepage it goes there without auth.

from flame.

LeonChris88 avatar LeonChris88 commented on July 22, 2024

I would like to suggest a different approach if possible, adding a label we can add to the docker-compose file.

HIDE-SETTINGS=True/False

from flame.

i-iooi-i avatar i-iooi-i commented on July 22, 2024

I really need this. I don't want to be modified by others.

from flame.

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.