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

NAS-129123 / 24.10 / Expand error recovery in AD health checks #13781

Merged
merged 1 commit into from
May 29, 2024

Conversation

anodos325
Copy link
Contributor

This primarily adds two new features to our AD health checks

  • Check whether the secrets.tdb file exists and has a valid machine account password. If it's missing, then try to restore from backup.

  • Check whether we have a stored kerberos keytab for the AD domain. If it's missing, reconstruct it from our machine account password in the secrets.tdb file.

This commit also refactors the kerberos plugin to move many methods into general-purpose krb5 utils that can be tested more easily in isolation.

@bugclerk
Copy link
Contributor

@bugclerk bugclerk changed the title Expand error recovery in AD health checks NAS-129123 / 24.10 / Expand error recovery in AD health checks May 22, 2024
Copy link
Contributor

@mgrimesix mgrimesix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was not a detailed review. I might circle back.

@anodos325 anodos325 force-pushed the NAS-129123 branch 2 times, most recently from f9271ce to e1aa30c Compare May 26, 2024 12:01
Copy link
Contributor

@bmeagherix bmeagherix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving because all comments are suggestions/cleanup, and not essential.

Copy link
Contributor

@mgrimesix mgrimesix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approve also since most my suggestions were flake8 fixes.

This primarily adds two new features to our AD health checks

* Check whether the secrets.tdb file exists and has a valid machine
  account password. If it's missing, then try to restore from backup.

* Check whether we have a stored kerberos keytab for the AD domain.
  If it's missing, reconstruct it from our machine account password
  in the secrets.tdb file.
@anodos325 anodos325 merged commit 0a706f4 into master May 29, 2024
2 of 3 checks passed
@anodos325 anodos325 deleted the NAS-129123 branch May 29, 2024 17:30
@bugclerk
Copy link
Contributor

This PR has been merged and conversations have been locked.
If you would like to discuss more about this issue please use our forums or raise a Jira ticket.

@truenas truenas locked as resolved and limited conversation to collaborators May 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
4 participants