News for hackers. Stuff that matters.
Re:How to properly manage SSH keys for server access by quicksilver03 on Saturday September 26, 2020 @03:17PM (#24601398)
The blast radius of storing ssh keys in LDAP is very big, if your LDAP is down you cannot ssh into your servers anymore.

To overcome this issue, you end up storing a set of public keys in the servers themselves, thereby going back to where you started.

Re:How to properly manage SSH keys for server access by ctrlc-root on Saturday September 26, 2020 @03:25PM (#24601464)
A common way to implement this is through SSSD which can cache keys locally when the LDAP server is not responding.

https://access.redhat.com/documentation/en-us/red_hat_enterp...

Re:How to properly manage SSH keys for server access by _jal on Saturday September 26, 2020 @05:21PM (#24602237)
If LDAP is down in an LDAP environment, you cannot authenticate anyway.

Our systems people get local accounts on machines for disasters like LDAP-down. Everyone else is LDAP-only, including ssh keys.

This is nowhere close to "where we started". Now we have a handful of privileged accounts and centralized auth management across thousands of other accounts.

Centralized logging and centralized auth are pretty much mandatory above some size. Without them, you literally do not know who is doing what.

Re:How to properly manage SSH keys for server access by antoinealb on Sunday September 27, 2020 @05:16AM (#24605312)
A way to work around this is to normally work with short term certificate (24h) and allow your systems people to generate longer term certificates (one month) that are stored encrypted on their laptop or usb key.

That way you get both emergency access in case LDAP is broken, as well as a way to make sure old personal access gets revoked after one month.

Re:How to properly manage SSH keys for server access by _jal on Sunday September 27, 2020 @10:52AM (#24607061)
Yep. I'm a big fan of Hashicorp Vault; that's the next step.

There are of course also DR considerations for that, as always, it is turtles all the way down.

Re:How to properly manage SSH keys for server access by CameronNemo on Saturday September 26, 2020 @03:50PM (#24601614)
You can have backdoor keys for the root account that you configure during provisioning. The use of these keys/account would trigger a security alert and only be for break glass scenarios. Other situations would use LDAP stored keys for authn/authz and LDAP stored sudo rules for additional authz.
Re:How to properly manage SSH keys for server access by mrintegrity on Sunday September 27, 2020 @07:47AM (#24605927)
Well absolutely there has to be an alternative way in, be it serial console or a dedicated admin user who does not have keys in ldap. With sshd you would specify a local key instead of ldap for that specific user, for example
Re:How to properly manage SSH keys for server access by jdhzzz on Sunday September 27, 2020 @05:11AM (#24605285)
Where I work if LDAP (AD) is down, the world stops. In 16 years AD "got stupid" once. So this is a good solution for us.