Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions cds_ils/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,20 @@ def query_params_modifier(extra_params):
"""Enable logging of Python warnings to Sentry."""
LOGGING_SENTRY_CELERY = False
"""Configure Celery to send logging to Sentry."""
LOGGING_SENTRY_INIT_KWARGS = {
"data_collection": {"user_info": True},
}
"""
Custom args for the Sentry SDK.

data_collection.user_info is True by default, but we keep this here just to be explicit and
clarify what is happening. This transmits the CDS ID, email, and username of the logged-in
user, as well as the real client IP address. It does not transmit additional CERN-specific
data like group membership.

For detailed docs, see: https://docs.sentry.io/platforms/python/integrations/flask/#configure
and https://docs.sentry.io/platforms/python/data-management/data-collected/#information-about-logged-in-user
"""
SENTRY_DSN = None
"""Set SENTRY_DSN environment variable."""
# Sentry uses env var SENTRY_ENVIRONMENT and SENTRY_RELEASE
Expand Down
193 changes: 90 additions & 103 deletions requirements.pinned.txt
Original file line number Diff line number Diff line change
@@ -1,77 +1,69 @@
alembic==1.16.5
amqp==5.3.1
alembic==1.20.1
amqp==5.4.2
appdirs==1.4.4
arrow==1.4.0
asttokens==3.0.2
async-timeout==5.0.1
attrs==26.1.0
babel==2.18.0
babel-edtf==1.2.2
base32-lib==1.1.1
billiard==4.2.4
bleach==6.2.0
billiard==4.3.2
bleach==6.4.0
blinker==1.9.0
cachelib==0.14.0
cachelib==0.17.2
cds-dojson==0.13.0
celery==5.4.0
certifi==2026.10.23
cffi==2.0.0
cffi==2.1.1
charset-normalizer==3.5.2
click==8.1.8
click==8.5.1
click-default-group==1.2.4
click-didyoumean==0.3.1
click-plugins==1.1.1.2
click-repl==0.4.1
commonmark==0.9.1
counter-robots==2025.11
cryptography==47.0.0
dbus-python==1.2.18
decorator==5.3.1
Deprecated==1.3.1
cryptography==50.0.2
deprecated==3.0.1
dictdiffer==0.10.0
distlib==0.3.8
dnspython==2.7.0
dnspython==2.9.2
dojson==1.7.1
edtf==5.0.0
email-validator==2.3.0
Events==0.5
exceptiongroup==1.3.1
edtf==5.0.2
email-validator==2.4.0
events==0.5
executing==2.3.0
filelock==3.13.1
Flask==3.1.3
Flask-Alembic==3.1.1
flask==3.1.3
flask-alembic==3.1.1
flask-babel==4.0.0
Flask-Caching==2.3.1
Flask-CeleryExt==0.5.1
Flask-Collect-Invenio==1.4.1
flask-caching==2.5.1
flask-celeryext==0.5.1
flask-collect-invenio==1.4.1
flask-cors==6.0.5
Flask-DebugToolbar==0.16.0
Flask-KVSession-Invenio==1.0.1
Flask-Limiter==3.11.0
Flask-Login==0.6.3
Flask-Mail==0.9.1
flask-debugtoolbar==0.16.0
flask-kvsession-invenio==1.0.1
flask-limiter==4.1.1
flask-login==0.6.3
flask-mail==0.9.1
flask-menu==2.0.1
Flask-OAuthlib-Invenio==2.0.0
Flask-Principal==0.4.0
flask-oauthlib-invenio==2.0.0
flask-principal==0.4.0
flask-resources==1.3.1
Flask-Security-Invenio==4.2.5
flask-security-invenio==4.2.5
flask-shell-ipython==0.5.3
Flask-SQLAlchemy==3.1.1
flask-sqlalchemy==3.1.1
flask-talisman==0.8.1
flask-webpackext==2.1.1
Flask-WTF==1.2.2
flask-wtf==1.3.0
fs==2.4.16
ftfy==6.3.1
future==1.0.0
fuzzywuzzy==0.18.0
geojson==3.2.0
github3.py==4.0.1
gpg==1.15.1
greenlet==3.2.5
geojson==3.3.0
github3-py==4.0.1
greenlet==3.5.6
idna==3.20
idutils==1.7.2
importlib_metadata==8.7.1
importlib_resources==6.5.2
importlib-metadata==10.2.0
importlib-resources==7.1.0
infinity==1.5
intervals==0.9.2
invenio-access==5.1.0
Expand All @@ -92,7 +84,7 @@ invenio-formatter==4.1.0
invenio-i18n==3.6.0
invenio-indexer==4.0.0
invenio-jsonschemas==2.1.1
invenio-logging==4.1.1
invenio-logging==4.3.1
invenio-mail==2.3.2
invenio-oaiserver==4.1.0
invenio-oauth2server==4.0.0
Expand All @@ -113,114 +105,109 @@ invenio-search-ui==4.3.1
invenio-stats==6.2.0
invenio-theme==4.9.0
invenio-userprofiles==5.1.0
ipython==8.18.1
ipython_pygments_lexers==1.1.1
isbnlib2==3.11.7
ipython==9.18.1
ipython-pygments-lexers==1.1.1
isbnlib2==3.11.26
itsdangerous==2.2.0
jedi==0.19.2
Jinja2==3.1.6
jedi==0.20.1
jinja2==3.1.6
jsmin==3.0.1
jsonpatch==1.33
jsonpointer==3.0.0
jsonpatch==1.48
jsonpointer==3.12
jsonref==1.1.0
jsonresolver==0.5.2
jsonschema==4.25.1
jsonschema==4.26.0
jsonschema-specifications==2025.9.1
kombu==5.6.2
libcomps==0.1.18
kombu==5.7.0
lazy-importer==0.1.0
libpass==1.9.4
limits==4.2
limits==5.8.0
lorem==0.1.1
luqum==1.0.0
lxml==6.1.3
Mako==1.3.12
markdown-it-py==3.0.0
MarkupSafe==3.0.4
mako==1.4.3
markdown-it-py==4.3.0
markupsafe==3.0.4
marshmallow==3.26.2
marshmallow-oneofschema==3.2.0
marshmallow-utils==0.15.4
matplotlib-inline==0.2.2
maxminddb==2.8.2
maxminddb==3.3.0
maxminddb-geolite2==2018.703
mdurl==0.1.2
msgpack==1.1.2
msgpack==1.2.4
oauthlib==4.0.1
opensearch-dsl==2.1.0
opensearch-py==2.8.0
ordered-set==4.1.0
ordereddict==1.1
packaging==24.2
packaging==26.3
parso==0.8.7
passlib==1.7.4
pexpect==4.9.0
pillow==11.3.0
platformdirs==4.4.0
pluggy==1.6.0
pillow==13.0.0
pluggy==1.7.0
ply==3.11
polib==1.2.0
prompt_toolkit==3.0.52
prompt-toolkit==3.0.53
psutil==7.2.2
psycopg2-binary==2.9.12
psycopg2-binary==2.9.13
ptyprocess==0.7.0
pure_eval==0.2.4
pure-eval==0.2.4
pyasn1==0.6.5
pyasn1_modules==0.4.2
pyasn1-modules==0.4.2
pycountry==24.6.1
pycparser==2.23
Pygments==2.21.0
PyJWT==2.15.1
PyMySQL==1.2.4
pycparser==3.12
pygments==2.21.0
pyjwt==2.15.1
pymysql==1.2.4
pynpm==0.3.2
pyparsing==3.3.3
pyPEG2==2.15.2
python-dateutil==2.9.0.post0
pypeg2==2.15.2
python-dateutil==4.0.0
python-geoip==1.2
python-ldap==3.4.8
pytz==2024.1
pywebpack==2.4.0
PyYAML==6.0.3
redis==7.0.1
referencing==0.36.2
requests==2.32.5
pyyaml==6.0.3
redis==8.1.0
referencing==0.37.0
requests==2.34.2
requests-oauthlib==2.0.0
rich==13.9.4
rich==15.0.0
rich-click==1.9.9
rpds-py==0.27.1
rpm==4.16.1.3
sentry-sdk==1.45.1
rpds-py==2026.9.1
sentry-sdk==2.75.0
setuptools==84.2.1
simplejson==3.20.2
simplekv==0.14.1
six==1.17.0
speaklater==1.3
SQLAlchemy==2.0.58
SQLAlchemy-Continuum==1.5.2
SQLAlchemy-Utils==0.41.2
sqlalchemy==2.0.58
sqlalchemy-continuum==1.5.2
sqlalchemy-utils==0.41.2
stack-data==0.6.3
systemd-python==234
tinycss2==1.4.0
tomli==2.4.1
traitlets==5.15.1
typing_extensions==4.16.0
tinycss2==1.5.1
traitlets==5.16.1
typing-extensions==4.16.0
tzdata==2026.6
ua-parser==1.0.1
ua-parser-builtins==0.18.0.post1
ua-parser==1.0.2
ua-parser-builtins==202610
uritemplate==4.2.0
uritools==5.0.0
urllib3==1.26.20
validators==0.35.0
uritools==7.0.1
urllib3==2.8.0
validators==0.36.0
vine==5.1.0
virtualenv==20.25.1
Wand==0.6.13
watchdog==6.0.0
wand==0.6.13
watchdog==7.1.0
wcwidth==0.9.4
webargs==8.7.1
webencodings==0.5.1
Werkzeug==3.1.9
webencodings==0.6.1
werkzeug==3.1.9
wrapt==2.5.2
WTForms==3.2.1
WTForms-Alchemy==0.19.1
WTForms-Components==0.11.0
wtforms==3.3.2
wtforms-alchemy==0.19.1
wtforms-components==0.12.0
xmltodict==0.12.0
zipp==3.23.1
zipp==4.1.2
zipstream-ng==1.9.3
zxcvbn==4.5.0
1 change: 0 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ install_requires =
fuzzywuzzy>=0.18.0
python-ldap>=3.4.0,<3.5.0
invenio-app-ils[lorem,opensearch2]>=9.0.0,<10.0.0
sentry-sdk>=1.45,<2.0.0

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the docker build is using requirements.pinned.txt (see), does sentry-sdk have to be updated there? or what is the target version, why can this be removed?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh wow good catch thank you, I didn't notice that we were using this file. I think this is acting as a sort of lock file? I will update it.

We added the manual pin here so that we continued using the v1 Sentry SDK which was compatible with the old Sentry server without any custom config needed. invenio-app-ils now depends on invenio-logging which depends on sentry-sdk v2, so we can remove this pin here which will mean we use the v2 SDK instead.

# invenio-xrootd requires it
fs>=2.0.10,<3.0
# migrator deps
Expand Down