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 #14160

Closed
wants to merge 5 commits into from

Conversation

bmeagherix
Copy link
Contributor

@bmeagherix bmeagherix commented Aug 7, 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. A sentinel file is 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

Passing CI runs 1848 (initial commit) and 1850 (after 2 subsequent commits).

- 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
@bmeagherix bmeagherix added the WIP label Aug 7, 2024
@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 7, 2024
@bugclerk
Copy link
Contributor

bugclerk commented Aug 7, 2024

@bmeagherix bmeagherix self-assigned this Aug 7, 2024
@bmeagherix bmeagherix removed the WIP label Aug 7, 2024
@bmeagherix bmeagherix requested a review from a team August 7, 2024 19:47
Also avoid adding the same authgroup to discoveryauth multiple
times.
@yocalebo yocalebo changed the title NAS-130390 / 24.10 / Move discovery auth from per-portal to system-wide NAS-130390 / 25.04 / Move discovery auth from per-portal to system-wide Aug 12, 2024
@bmeagherix
Copy link
Contributor Author

Closing PR, as will be generating another one against a different branch first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants