-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TLS - Private key (insecure) copy fails when ansible is ran as a regular user #139
Comments
fee-mendes
changed the title
TLS - Private key (insecure) copy fails ansible is ran as a regular user
TLS - Private key (insecure) copy fails when ansible is ran as a regular user
Jul 4, 2022
fee-mendes
added a commit
to fee-mendes/scylla-ansible-roles
that referenced
this issue
Jul 4, 2022
… scylla user When the source playbook is executed with `become: True` its relevant TLS certificates will be owned by root. This causes a problem, because later on when trying to copy we are unable to read the resulting private key file, as it is (correctly) created by default with mode 0600. This commit let Ansible generate each PKI component with mode 0644. Then, ensure these are copied to the remote machine's with strict permissions to scylla user/group. Finally, ensure that the private key is only readable by its target user - both locally and remotely. Fixes scylladb#139
fee-mendes
added a commit
to fee-mendes/scylla-ansible-roles
that referenced
this issue
Jul 4, 2022
… scylla user When the source playbook is executed with `become: True` its relevant TLS certificates will be owned by root. This causes a problem, because later on when trying to copy we are unable to read the resulting private key file, as it is (correctly) created by default with mode 0600. This commit let Ansible generate each PKI component with mode 0644. Then, ensure these are copied to the remote machine's with strict permissions to scylla user/group. Finally, ensure that the private key is only readable by its target user - both locally and remotely. Fixes scylladb#139
fee-mendes
added a commit
to fee-mendes/scylla-ansible-roles
that referenced
this issue
Jul 5, 2022
… scylla user When the source playbook is executed with `become: True` its relevant TLS certificates will be owned by root. This causes a problem, because later on when trying to copy we are unable to read the resulting private key file, as it is (correctly) created by default with mode 0600. This commit let Ansible generate each PKI component with mode 0644. Then, ensure these are copied to the remote machine's with strict permissions to scylla user/group. Finally, ensure that the private key is only readable by its target user - both locally and remotely. Fixes scylladb#139
What's the status of this issue? it looks like quite old and I have the same issue with latest version. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Seen at:
As private keys are created with
become: True
these will naturally default to theroot
user:Therefore task
Copy the certificates into their proper locations
throws.This issue should:
The text was updated successfully, but these errors were encountered: