saltstack-formulas / users-formula

Configure users via pillar
http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html
Other
99 stars 362 forks source link

[FEATURE] Consider to employ ssh_auth.manage state within `ssh_auth_sources` #232

Open mikhailmaximov opened 5 months ago

mikhailmaximov commented 5 months ago

Is your feature request related to a problem?

Current implementation of ssh_auth_sources relies on explicit use of ssh_auth_sources.absent to remove obsolete SSH public keys from .ssh/authorized_keys file. SaltStack v3000 introduced a new state ssh_auth.manage to explicitly enumerate keys that should be in .ssh/authorized_keys file

Describe the solution you'd like

There are two possible options:

Describe alternatives you've considered

This is not critical, one can use Salt's ssh_auth.manage directly

Additional context