warpgate icon indicating copy to clipboard operation
warpgate copied to clipboard

Use a custom config path target when running unattended-setup

Open krishardy opened this issue 9 months ago • 1 comments

The issue:

When setting up warpgate to run as a non-root user, warpgate unattended-setup fails with insufficient permissions because it needs to create /etc/warpgate.yaml and the data path. To work around this, you must currently run it as root and then change permissions of the data path and ensure that /etc/warpgate.yaml can be read by the user that warpgate will run as.

The expected behaviour:

warpgate unattended-setup should support a custom config path (such as warpgate unattended-setup --config <custom_path> ...). This will save the configuration yaml file to the provided custom path.

I am intending to implement this change, and an opening this issue in order to start any necessary communications.

krishardy avatar Apr 01 '25 00:04 krishardy

You can use warpgate --config unattended-setup

And that seems to make it happy

Christian-Little-Tava avatar Apr 23 '25 18:04 Christian-Little-Tava