-
-
Notifications
You must be signed in to change notification settings - Fork 368
Description
Is there an existing issue for this?
- There is no existing issue for this feature
What are you currently unable to do
I'm working on building an app deployment utility on top of Incus. We make heavy use of user constrained projects where the user represents a "stack" of applications that are getting deployed. Similar to how a docker compose file manages a group of apps that work together.
Currently, this results in a lot of projects on the system named like "user-1234" which is a real hit to discoverability/usability as there is a constant need to mentally map the project name to the stack.
Instead, we'd like to be able to set or change the project name arbitrarily for a user constrained project (like any other project) and request that Incus changes to using config or metadata to find a user's project instead of the project's name.
What do you think would need to be added
When Incus needs to create or find a user constrained project, first look for a config or metadata entry on projects.
For example, add a config entry on project's named restricted.constrained-uid that gets set to the system user's uid when the project is created for that user.
For backwards compatibility, if no project is found using the above method, then fall back to the current method of looking for a matching project name.
FWIW, we pre-create the project for our stack users so we'd set the project name differently from the beginning and set the config value to that user's UID so Incus knows how to link it when the user connects to Incus.