kamal icon indicating copy to clipboard operation
kamal copied to clipboard

asset_path with SELinux label

Open bugthing opened this issue 6 months ago • 1 comments

I am using Kamal to deploy to a Fedora CoreOS server which uses SELinux.

Volume mounts are required to have a :z or :Z on the end so SELinux does not deny access.

I can not find a way to tell Kamal to apply the :z to the end of the asset_path, if I just add it (as i do for volumes:), it treats it as part of the path

Could not find the file /rails/public/assets:z/. in container

I had a quick hunt about the source but could not see a way this would be possible.

I there an existing way to specify this?

bugthing avatar Jun 26 '25 11:06 bugthing

Related to https://github.com/basecamp/kamal/issues/1575, though not exaclty the same

djmb avatar Nov 07 '25 11:11 djmb