Skip to content

Conversation

@tom93
Copy link
Contributor

@tom93 tom93 commented Jan 1, 2024

Previously the scripts assumed that the group name is the same as the username, but that's not necessarily the case.

This came up in #223.

Merge using "rebase".

tom93 added 4 commits January 2, 2024 01:35
Currently, this configuration variable doesn't *cause* the app to run
as that username. We just ask for it so that we can set the correct
ownership on some files.
Previously the scripts assumed that the group name is the same as the
username, but that's not necessarily the case.
Previously the scripts assumed that the group name is the same as the
username, but that's not necessarily the case.
It only needs to be setuid, like isolate.
@tom93 tom93 changed the title Set correct group name for isolate/isolock Use correct group name for isolate/isolock Jan 1, 2024
@tom93 tom93 merged commit a82e461 into master Jan 1, 2024
@tom93 tom93 deleted the isolate-app-group branch January 1, 2024 13:46
tom93 added a commit that referenced this pull request Jan 1, 2024
Currently, this configuration variable doesn't *cause* the app to run
as that username. We just ask for it so that we can set the correct
ownership on some files.
tom93 added a commit that referenced this pull request Jan 1, 2024
Previously the scripts assumed that the group name is the same as the
username, but that's not necessarily the case.
tom93 added a commit that referenced this pull request Jan 1, 2024
Previously the scripts assumed that the group name is the same as the
username, but that's not necessarily the case.
@tom93
Copy link
Contributor Author

tom93 commented Jan 2, 2024

Deployed new permissions of isolock manually.
Manually added APP_GROUP to script/install.cfg.
While doing that, I noticed APP_USER was set to "nztrain", which is odd because the web server currently runs as the "deploy" user (I couldn't find where we set that user, so I assume it's due to auto detection). I changed it to "deploy" (though it doesn't really matter because APP_USER is basically unused).
I'll open an issue to decide if we want to make the app run as the "nztrain" user. (#238)
I also noticed that isolock's group was set to "nztrain" (update from chat: turns out that was recent and unintentional). I changed that to "deploy" for now to avoid breakage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants