Skip to content
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

frappe ssh authorized_keys removed & UFW #125

Open
casesolved-co-uk opened this issue Sep 5, 2024 · 0 comments
Open

frappe ssh authorized_keys removed & UFW #125

casesolved-co-uk opened this issue Sep 5, 2024 · 0 comments

Comments

@casesolved-co-uk
Copy link

casesolved-co-uk commented Sep 5, 2024

It appears there must be a scheduled job on servers to remove the frappe user authorized_keys in favour of using the root user for all management via ssh and ansible.

This is not a great security policy in general and is dangerous if people are unaware and install their keys under the frappe user for emergency purposes.

You could install your own user on each server, but in a large deployment this is not feasible.

I also suggest you deploy UFW on every server to match the AWS security group, with a ufw limit ... rule for rate limiting ssh and for defence in depth.

ufw limit OpenSSH
ufw allow “Nginx Full”
ufw allow from 10.1.0.0/16 comment "internal vpc"
ufw allow from 172.17.0.0/16 comment "internal docker"
@casesolved-co-uk casesolved-co-uk changed the title frappe ssh authorized_keys removed frappe ssh authorized_keys removed & UFW Sep 5, 2024
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

No branches or pull requests

1 participant