[Bug 43106] New: Patrons used for SIP clients should have separate permission
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43106 Bug ID: 43106 Summary: Patrons used for SIP clients should have separate permission Initiative type: --- Sponsorship --- status: Product: Koha Version: unspecified Hardware: All OS: All Status: NEW Severity: normal Priority: P5 - low Component: SIP2 Assignee: koha-bugs@lists.koha-community.org Reporter: dcook@prosentient.com.au QA Contact: testopia@bugs.koha-community.org Target Milestone: --- I note that there's only 1 permission currently used for SIP clients and that's the "circulate" permission as per "api_auth" called in "login_core" in C4::SIP;:Sip::MsgType. I think we could keep it backwards compatible, but it would be better I think to have an explicit "sip_client" permission, since it seems very very common that people over-permission their SIP accounts. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43106 Marion Durand <marion.durand@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |marion.durand@biblibre.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43106 Andrew Fuerste-Henry <andrew@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |andrew@bywatersolutions.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43106 hebah@bywatersolutions.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hebah@bywatersolutions.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43106 --- Comment #1 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- I like the idea of a distinct SIP permission. I'm a little unsure of the upgrade path, though. In order to ensure that no existing SIP setup breaks, we'd need to give the new SIP permission to every user who currently has "circulate" permissions. That will surely give the new SIP permission to a bunch of actual human users. Which I guess doesn't break or change anything, but seems odd. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43106 --- Comment #2 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- (In reply to Andrew Fuerste-Henry from comment #1)
I like the idea of a distinct SIP permission. I'm a little unsure of the upgrade path, though. In order to ensure that no existing SIP setup breaks, we'd need to give the new SIP permission to every user who currently has "circulate" permissions. That will surely give the new SIP permission to a bunch of actual human users. Which I guess doesn't break or change anything, but seems odd.
Though the 25.11 upgrade migrated all server-side SIP config into the UI, so we can safely assume all post-25.11 SIP setup is in the UI rather than just in the koha-conf. That means at upgrade we could give the new permission to any patron that has "circulate" and is associated with a SIP account in the DB. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43106 Andrew Fuerste-Henry <andrew@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |Needs Signoff Assignee|koha-bugs@lists.koha-commun |andrew@bywatersolutions.com |ity.org | -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43106 --- Comment #3 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- Created attachment 212413 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212413&action=edit Bug 43106: Database update - add sip_client permission Adds the new top-level permission 'sip_client' (bit 34). So existing SIP2 setups keep working, patrons linked to a SIP2 account (sip_accounts.login_id = borrowers.userid) who have the top-level circulate permission are granted sip_client. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43106 --- Comment #4 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- Created attachment 212414 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212414&action=edit Bug 43106: Add sip_client permission for SIP2 client accounts SIP2 logins currently require the circulate permission. This adds a dedicated top-level permission, sip_client, and makes SIP2 authentication require it instead of circulate. The database update grants sip_client to SIP2 account patrons that have circulate, so existing setups keep working. This also stops the login_core() test's api_auth mock from leaking into later subtests (Test::MockModule shares one object per package). Test plan: 1. Before applying, make sure a SIP2 account's patron has the top-level circulate permission (KTD's term1 does) 2. Apply patches, run updatedatabase, confirm it reports granting sip_client to that patron 3. Confirm "Authenticate as a SIP2 client (sip_client)" appears as a top-level permission on the patron's set permissions page, and is checked for that patron 4. Log in with that account via misc/sip_cli_emulator.pl, confirm login succeeds 5. Remove circulate from the patron, leaving only sip_client, confirm login still succeeds 6. Remove sip_client and give the patron circulate, confirm login fails 7. prove t/db_dependent/SIP/MsgType.t Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43106 Andrew Fuerste-Henry <andrew@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |44235 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44235 [Bug 44235] Prompt to add sip_client permission to patron when creating SIP account and alert if permission is missing on existing SIP account -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43106 Andrew Fuerste-Henry <andrew@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #212413|0 |1 is obsolete| | Attachment #212414|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43106 --- Comment #5 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- Created attachment 212440 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212440&action=edit Bug 43106: Database update - add sip_client permission Adds the new top-level permission 'sip_client' (bit 34). So existing SIP2 setups keep working, patrons linked to a SIP2 account (sip_accounts.login_id = borrowers.userid) who have the top-level circulate permission are granted sip_client. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43106 --- Comment #6 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- Created attachment 212441 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212441&action=edit Bug 43106: Add sip_client permission for SIP2 client accounts SIP2 logins currently require the circulate permission. This adds a dedicated top-level permission, sip_client, and makes SIP2 authentication require it instead of circulate. The database update grants sip_client to SIP2 account patrons that have circulate, so existing setups keep working. This also stops the login_core() test's api_auth mock from leaking into later subtests (Test::MockModule shares one object per package). Test plan: 1. Before applying, make sure a SIP2 account's patron has the top-level circulate permission (KTD's term1 does) 2. Apply patches, run updatedatabase, confirm it reports granting sip_client to that patron 3. Confirm "Authenticate as a SIP2 client (sip_client)" appears as a top-level permission on the patron's set permissions page, and is checked for that patron 4. Log in with that account via misc/sip_cli_emulator.pl, confirm login succeeds 5. Remove circulate from the patron, leaving only sip_client, confirm login still succeeds 6. Remove sip_client and give the patron circulate, confirm login fails 7. prove t/db_dependent/SIP/MsgType.t Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43106 --- Comment #7 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- Created attachment 212442 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212442&action=edit Bug 43106: Name the sip_client permission in the SIP2 account tooltip The help text for a SIP2 account's staff userid said the user needs "appropriate circulation permissions". SIP2 authentication now requires the sip_client permission, so say that instead. Test plan: 1. Apply patches, run yarn js:build 2. Go to Administration > SIP2 > Accounts > New account 3. Hover the help icon next to "Staff userid for SIP2 authentication" 4. Confirm it names the 'Authenticate as a SIP2 client' (sip_client) permission Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43106 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43106 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #212440|0 |1 is obsolete| | Attachment #212441|0 |1 is obsolete| | Attachment #212442|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43106 --- Comment #8 from David Nind <david@davidnind.com> --- Created attachment 212462 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212462&action=edit Bug 43106: Database update - add sip_client permission Adds the new top-level permission 'sip_client' (bit 34). So existing SIP2 setups keep working, patrons linked to a SIP2 account (sip_accounts.login_id = borrowers.userid) who have the top-level circulate permission are granted sip_client. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: David Nind <david@davidnind.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43106 --- Comment #9 from David Nind <david@davidnind.com> --- Created attachment 212463 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212463&action=edit Bug 43106: Add sip_client permission for SIP2 client accounts SIP2 logins currently require the circulate permission. This adds a dedicated top-level permission, sip_client, and makes SIP2 authentication require it instead of circulate. The database update grants sip_client to SIP2 account patrons that have circulate, so existing setups keep working. This also stops the login_core() test's api_auth mock from leaking into later subtests (Test::MockModule shares one object per package). Test plan: 1. Before applying, make sure a SIP2 account's patron has the top-level circulate permission (KTD's term1 does) 2. Apply patches, run updatedatabase, confirm it reports granting sip_client to that patron 3. Confirm "Authenticate as a SIP2 client (sip_client)" appears as a top-level permission on the patron's set permissions page, and is checked for that patron 4. Log in with that account via misc/sip_cli_emulator.pl, confirm login succeeds 5. Remove circulate from the patron, leaving only sip_client, confirm login still succeeds 6. Remove sip_client and give the patron circulate, confirm login fails 7. prove t/db_dependent/SIP/MsgType.t Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: David Nind <david@davidnind.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43106 --- Comment #10 from David Nind <david@davidnind.com> --- Created attachment 212464 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212464&action=edit Bug 43106: Name the sip_client permission in the SIP2 account tooltip The help text for a SIP2 account's staff userid said the user needs "appropriate circulation permissions". SIP2 authentication now requires the sip_client permission, so say that instead. Test plan: 1. Apply patches, run yarn js:build 2. Go to Administration > SIP2 > Accounts > New account 3. Hover the help icon next to "Staff userid for SIP2 authentication" 4. Confirm it names the 'Authenticate as a SIP2 client' (sip_client) permission Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: David Nind <david@davidnind.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43106 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Text to go in the| |This adds a new dedicated release notes| |top-level permission for | |SIP2, "Authenticate as a | |SIP2 client (sip_client)" | |and makes this required for | |SIP2 accounts (instead of | |circulate). | | | |Without this new | |permission, SIP2 accounts | |are no longer be able to | |login to run SIP2 commands. | | | |Upgrade notes: | |- Existing patron accounts | |with the "Check out and | |check in items (circulate)" | |permission and linked to a | |SIP2 account (SIP accounts | |Administration > Patrons | |and circulation > | |Self-service circulation | |(SIP2)) are automatically | |updated with the new | |permission. | |- When creating or editing | |a SIP2 account, the help | |tooltip for the "Staff | |userid for SIP2 | |authentication" field now | |has updated text with the | |permissions that the patron | |accountrequires: "Must | |match the userid of an | |existing Koha user with the | |'Authenticate as a SIP2 | |client' (sip_client) | |permission". Version|unspecified |Main CC| |david@davidnind.com Keywords| |release-notes-needed --- Comment #11 from David Nind <david@davidnind.com> --- I've attempted a release note - please update as required to correct my errors. Testing notes (using KTD): 1. Before applying the patch, set up an SIP2 institution and account (linked to the existing term1 (koha_sip) patron account): - koha_sip only has "Check out and check in items (circulate)" permissions - if you don't do this, then the database update doesn't add the new permission (Authenticate as a SIP2 client (sip_client)) 2. Example command to check authentication with the SIP emulator (there is probably a better more generic one): /kohadevbox/koha/misc/sip_cli_emulator.pl -a localhost -p 6001 -l CPL -su term1 -sp term1 -m hold --patron 23529000035676 --item 39999000001310 --hold-mode + -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43106 --- Comment #12 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- (In reply to David Nind from comment #11)
I've attempted a release note - please update as required to correct my errors.
Testing notes (using KTD): 1. Before applying the patch, set up an SIP2 institution and account (linked to the existing term1 (koha_sip) patron account): - koha_sip only has "Check out and check in items (circulate)" permissions - if you don't do this, then the database update doesn't add the new permission (Authenticate as a SIP2 client (sip_client)) 2. Example command to check authentication with the SIP emulator (there is probably a better more generic one): /kohadevbox/koha/misc/sip_cli_emulator.pl -a localhost -p 6001 -l CPL -su term1 -sp term1 -m hold --patron 23529000035676 --item 39999000001310 --hold-mode +
Thanks for the release notes and the extended testing notes! I set my KTD to always create a SIP institution and account and lost sight of the fact that's not standard. I'm not averse to giving sip_client to all users to circulate if folks think that'd be simpler or more desirable -- that'd be a more strictly accurate continuation of pre-upgrade functionality. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43106 Andrew Fuerste-Henry <andrew@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |44292 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44292 [Bug 44292] OMNIBUS: SIP2 administration interface improvements -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43106 Lisette Scheer <lisette@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- QA Contact|testopia@bugs.koha-communit |martin.renvoize@openfifth.c |y.org |o.uk -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org