Comments (6)
You can also add two environment variables with username and password. Easy for all people.
from flame.
It will take some time to implement but my idea is as follows:
- 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 - User can then visit
flame.domain.tld/auth
and login with given password which will return JWT token - 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. - Token will be valid for let's say 30 days and when it's invalid app will emit notification with error.
from flame.
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.
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.
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 really need this. I don't want to be modified by others.
from flame.
Related Issues (20)
- How to set a local image as the background? HOT 2
- [FEATURE] Add category in Application HOT 4
- Active Fork? HOT 2
- Support a container registry other than Docker Hub
- .
- [BUG] ERR_OSSL_EVP_UNSUPPORTED while building
- [BUG] Won't run on Hetzners new arm64 platform
- Custom Theme Input Too Small
- [BUG] Inconsistent interface naming
- [NEW FEATURE] PING status HOT 1
- Change Number of Columns don't work on 2.3.1 anymore HOT 3
- Custom CSS app details setting on 2.3.1 not working HOT 8
- Provide class names for major elements for custom CSS HOT 3
- CSS not being honored HOT 2
- [BUG] Search for a bookmark or application with an accent (e.g.: รฉรจ....)
- bookmark grid
- Possibility to use local icons HOT 2
- Other forms of auth possible?
- [FEATURE REQUEST] NixOS package / `services.flame` options
- Lost all settings after a server restart
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flame.