-
Notifications
You must be signed in to change notification settings - Fork 33
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
Stop revoking privileges #15
Comments
Some background: For security compliance, we want to be able to manage user privileges in the database. At any point in time, we should be able to query CKAN for users and their authorization level. Having sysadmins in config, but organization admins in the database is confusing to auditors. Also having the sysadmins in config means our audit log for sysadmin changes is different than the audit log for other privileged users. |
I agree, also in scenarios where local login is also enabled this is not ideal. I think that the approach should be if |
Yeah, that code does quite some. I'll move it to the helper instead. |
Thanks, looks good. |
If you manually promote a user as sysadmin this extension will revoke these privileges in the next login
User's email must be explicitly defined in the
ckanext.saml2auth.sysadmins_list
listThis may not be intuitive and could be interpreted as a bug.
Proposed solution
If
ckanext.saml2auth.sysadmins_list
is empty or not defined then we don't change any privileges at login time.The text was updated successfully, but these errors were encountered: