Skip to content

Choose which user the should the app run as in production #238

Description

@tom93

Currently the Ruby process runs as user "deploy" (I can't find where we set that user, so I assume it's due to auto detection).
But while deploying recent changes I noticed that APP_USER was originally set to "nztrain" (and also isolock's group was "nztrain" turns out that was recent and unintentional).
The "nztrain" user exists, has a near-empty home dir, and doesn't own any other files.

Does anyone have an opinion on whether we should keep using the "deploy" user or switch to the "nztrain" user?

Personally I think that there might be a small security benefit in switching to a user with read-only access to the app's code, but I don't think it's worth the effort (need to give the "nztrain" user write access to the uploads directory and probably more; it already has database access).

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions