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

[master] Fixing ssh auth options #66332

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mguegan
Copy link

@mguegan mguegan commented Apr 9, 2024

What does this PR do?

This PR is an up-to-date version of #60770 which was closed for inactivity:
This should fix the behavior of ssh_auth when dealing with authorized_keys provided by files (source) and using the 'options' inside functions like 'ssh_auth.present'.

What issues does this PR fix or reference?

This fixes issue #60769

Previous Behavior

Inside test functions, using options inside a SLS was not taken into account (ie. tests results always says that the key has to be changed).
Secondly, the filehasoptions variable was misleading: regular expression that is used is explicitly matching keys that has NO options.

Merge requirements satisfied?

[NOTICE] Bug fixes or features added to Salt require tests.

  • Changelog
  • Tests written/updated

Commits signed with GPG?

No

@mguegan mguegan requested a review from a team as a code owner April 9, 2024 09:33
@mguegan mguegan requested review from felippeb and removed request for a team April 9, 2024 09:33
@salt-project-bot-prod-environment salt-project-bot-prod-environment bot changed the title Fixing ssh auth options [master] Fixing ssh auth options Apr 9, 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

Successfully merging this pull request may close these issues.

None yet

1 participant