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 / 24.10-RC.1 / Move discovery auth from per-portal to system-wide #14198

Merged
merged 2 commits into from
Aug 13, 2024

Conversation

bmeagherix
Copy link
Contributor

@bmeagherix bmeagherix commented Aug 12, 2024

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)

- 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
@bugclerk
Copy link
Contributor

@bugclerk bugclerk changed the title Move discovery auth from per-portal to system-wide NAS-130390 / 24.10 / Move discovery auth from per-portal to system-wide Aug 12, 2024
@bmeagherix bmeagherix requested a review from a team August 12, 2024 16:20
@anodos325 anodos325 merged commit 5447c45 into stable/electriceel Aug 13, 2024
2 checks passed
@anodos325 anodos325 deleted the NAS-130390 branch August 13, 2024 13:57
@bugclerk
Copy link
Contributor

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

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
@bmeagherix bmeagherix changed the title NAS-130390 / 24.10 / Move discovery auth from per-portal to system-wide NAS-130390 / 24.10-RC.1 / Move discovery auth from per-portal to system-wide Aug 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants