Skip to content
This repository has been archived by the owner on Feb 20, 2020. It is now read-only.

Read-only signingKeyLocation file #131

Open
SimonSapin opened this issue Nov 12, 2018 · 1 comment
Open

Read-only signingKeyLocation file #131

SimonSapin opened this issue Nov 12, 2018 · 1 comment

Comments

@SimonSapin
Copy link

On a macOS worker, in an attempt to reduce unneeded permissions given to tasks, I tried to make as many configuration files as possible owned by root with the user running generic-worker only granted read accoss through a Unix group.

This fails, I assume because generic-worker tries to take ownership of the file configured through signingKeyLocation:

err = os.Chown(
config.SigningKeyLocation,
uid,
gid,
)

2018/11/12 14:12:50  *********** PANIC occurred! *********** 
2018/11/12 14:12:50 chown /etc/generic-worker/key: operation not permitted

Would it be acceptable to not try to take ownership and only check that the file is not world-readable?

@petemoore
Copy link
Member

@SimonSapin I think the solution for this will be to use the multiuser engine for macOS, which finally has been created. This works just like the Windows releases, and creates task users on the fly for the tasks, but the generic-worker runs as root. There are some setup/installation instructions here. Let me know if you'd like any assistance/guidance etc.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants