-
Notifications
You must be signed in to change notification settings - Fork 46
Description
The current implementation unconditionally uses -rwxr-xr-x. and root:root for the application files.
It would be nice to be able to:
- control the umask (permission filter)
- control the user/group of these files (and their containing directory).
The umask could be made settable through a property, like ContainerAppUMask.
When set, the effective permissions of a file/directory are the result of using the file's owner permission for owner, group and other, and applying ContainerAppUMask to it. That means, the effective permissions are as if the application was published under umask $(ContainerAppUMask).
Controlling the user/group of these files would allow to match their ownership with the app user, and thus allowing that user to change the files on a running container. It could be done through properties like: ContainerAppOwner, ContainerGroup which are set to a uid/gid. Or some property like: ContainerAppOwnedByUser=true which makes the ownership match with the app user and group.