NAS-130390 / 25.04 / Move discovery auth from per-portal to system-wide #14160
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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. A sentinel file is used to communicate the various alerts generated on DB migration (as
middlewared
is not running at that point).iscsi.discoveryauth.*
APIsiscsi.portal.*
APIs, for later removalPassing CI runs 1848 (initial commit) and 1850 (after 2 subsequent commits).