azukaar / Cosmos-Server

☁️ The Most Secure and Easy Selfhosted Home Server. Take control of your data and privacy without sacrificing security and stability (Authentication, anti-DDOS, anti-bot)
https://cosmos-cloud.io
Other
3.65k stars 130 forks source link

[FEAT]: Single User Apps #248

Open mjtechguy opened 7 months ago

mjtechguy commented 7 months ago

Feature Description

As a user, I would like single user apps (Dashy, Firefox, etc) to have an option to check a box for something like "Single Use App" when deploying. Then, when each user logs in, a unique DNS name if generated for them and a container for that is spun up only for their use.

The use case is that my wife and I share the Cosmos Server and for those apps we end up sharing the same container and possibly conflicting with each others use.

azukaar commented 7 months ago

You can install the app multiple time with different service name and it will let you have both on different domain names

mjtechguy commented 7 months ago

Got it. Thanks!

Can they be locked to a specific user? Or will all users who login see both profiles?

azukaar commented 7 months ago

They can see both

BearTS commented 5 months ago

Should this be closed, as I dont think this may be possible given how cosmos and docker works?

azukaar commented 5 months ago

Should this be closed, as I dont think this may be possible given how cosmos and docker works?

It's definitely possible, but it definitely requires some additional thoughts around it. Either way it's not top priority as of now

BearTS commented 5 months ago

Should this be closed, as I dont think this may be possible given how cosmos and docker works?

It's definitely possible, but it definitely requires some additional thoughts around it. Either way it's not top priority as of now

hmm, we could add additional tags and stuff and make it work?

mjtechguy commented 5 months ago

You can close if this is totally out of scope, but I really feel like this would be a killer feature.

https://docs.docker.com/engine/security/userns-remap/ https://github.com/nestybox/sysbox

azukaar commented 5 months ago

no need for external tools, it would basically be implemented in the reverse proxy, if the option to have per-user containers is on, there would be multiple strategy... either use tags, or for example containers with names like "{servicename}_{username}", etc..

mjtechguy commented 5 months ago

True. I was probably overthinking it lol. :)