Package: invenio-config-tuw
Invenio module for tweaking InvenioRDM to the needs of TU Wien.We use this module to customize the following:Permission policiesOIDC authentication handlingE-Mail notification on errorsConfiguration valuesDetailsPermission policiesCurrently, we are still operating on a friendly-user basis.
That is, while we cannot lose any data that has been uploaded by our users, we do not
allow every registered user to create record drafts, upload data, or publish records
from the get-go.
Instead, we require users to have thetrusted-userrole in order to be able to
create record drafts and upload data.
Similarly, we have thetrusted-publisherrole as a requirement for publishing
records.
Generally, these roles have to be assigned to users manually by an administrator.On the test system, we give out these permissions automatically if we detect that a
newly registered user is an employee of TU Wien.OIDC authentication handlingBecause we have some special requirements regarding the authentication and signup
process, we have customized some of the handler functions for the OAuth client
that’s integrated in InvenioRDM.
These customizations are contained in the files inauth/.E-Mail notification on errorsThis module defines a custom log handler for error-level logs which sends out
notifications as e-mail to a set of configured recipient addresses.Configuration valuesLast but not least, we also set some default configuration values for deployments
of InvenioRDM at TU Wien.
The relevant files here areconfig.pyandext.py.ChangesVersion 2023.2 (released 2023-04-24, updated 2023-12-22)v11 compat: Update permission policies and disable archive downloadSet affiliation (hard-coded) to TU Wien inuser.profileSet a default template for thedescriptionmetadata fieldAdd a null check for the current_user in the logging formatterPrevent the logging formatter from blowing up outside of a request contextAdd utilities and a celery task for updating thenamesvocabulary with information from TISSEnable sending of registration mailsAllow edits to owners of published records even if they only havetrusted-userroleFix a typo in the config generated by theTUWSSOSettingsHelperFix function to fetch user by usernameAdd record curation preferences to user settingsVersion 2023.1 (released 2023-01-13)Update definition of the default creator for new uploadsVersion 2022.3 (released 2022-10-28, updated 2022-11-30)v10 compat: Discard imports of removed Admin/SuperUser generatorsRework the initialization procedure used for some custom overridesMigrate from setup.py to setup.cfgMove Flask config override from Invenio-Theme-TUW to Invenio-Config-TUWUpdate “Terms of Use” link in registration formVersion 2022.2 (released 2022-07-19, updated 2022-10-22)v9 compat: Chase changes in Invenio-{Accounts,OAuthClient} 2.xv9 compat: Update permission policiesv9 compat: Hack in permission policy for communitiesRefactor permissions and configRemove leftover views.pySet deposit form file size limitsFix permissionsReverse contents of CHANGES.rst (recent changes are shown on top)Attach SMTP error handler to the application in production modeAdd custom logging formatterAuto-confirm newly registered users’ e-mail addresses ifSECURITY_CONFIRMABLEisFalseSet default user preferences (visibility=public,email_visibility=restricted)Set default value forversionmetadata to1.0.0Add config item to put the system into “read-only mode”Version 2022.1 (released 2022-03-23, updated 2022-04-06)Update permissions for creating and editing draftsUse the OAI metadata implementation from Invenio-RDM-RecordsChange the default file size and bucket quota limits to 75GBVersion 2021.2 (released 2021-12-07, updated 2021-12-20)Make ready for InvenioRDM v7Add requests permission policyEnforce a rate limit for HTTP requestsChange method of overriding the record permission policyAdd datacite and oai_datacite metadataPrefixes to the OAI endpointVersion 2021.1 (released 2021-07-15)Initial public release.Update the list of citation styles