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-130390 / 25.04 / Move discovery auth from per-portal to system-wide (by bmeagherix) #14212

Merged
merged 3 commits into from
Aug 13, 2024

Conversation

bugclerk
Copy link
Contributor

In CORE discovery authentication was tied to portals. This is not the case for SCALE, where it is system-wide.

This PR covers the first step in modifying SCALE to reflect reality. We will continue to re-use the Authorized Access groups which are also used in target auth. Multiple groups can be specified for discovery auth & will be combined, with one caveat ... only a single peeruser/peersecret can be in use (for Mutual CHAP). (Actually, this caveat is not new.)

Alerts will be generated both on migration and subsequently if multiple mutual CHAP peers are defined. The keyvalue plugin used to communicate the various alerts generated on DB migration (as middlewared is not running at that point).

  • Perform database migration
  • Generate alerts from migration if appropriate
  • Add new iscsi.discoveryauth.* APIs
  • Stub out auth aspect of iscsi.portal.* APIs, for later removal

This is the 2nd generation of this PR, now being made against stable/electriceel. (A earlier similar but abandoned PR was #14160)

Original PR: #14198
Jira URL: https://ixsystems.atlassian.net/browse/NAS-130390

- Perform database migration
- Generate alerts from migration if appropriate.  Uses keyvalue
- Add new iscsi.discoveryauth.* APIs
- Stub out auth aspect of iscsi.portal.* APIs, for later removal
- Add code to clear ISCSIDiscoveryAuth alerts

(cherry picked from commit e001b2c)
(cherry picked from commit 2189137)
@bmeagherix bmeagherix merged commit 9485b70 into master Aug 13, 2024
3 checks passed
@bmeagherix bmeagherix deleted the NAS-130390-25.04 branch August 13, 2024 20:03
@bugclerk
Copy link
Contributor Author

JIRA ticket https://ixsystems.atlassian.net/browse/NAS-130390 is targeted to the following versions which have not received their corresponding PRs: 24.10-RC.1

@bugclerk
Copy link
Contributor Author

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 Aug 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants