Skip to content

Commit 3e903fd

Browse files
committed
Merge branch 'master' into network-mode
2 parents 64894e3 + 2e57bef commit 3e903fd

13 files changed

+71
-43
lines changed

CHANGES.rst

+27
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,29 @@ Changes
99
`Unreleased <https://github.com/Ouranosinc/Magpie/tree/master>`_ (latest)
1010
------------------------------------------------------------------------------------
1111

12+
* Nothing new for the moment.
13+
14+
.. _changes_4.1.1:
15+
16+
`4.1.1 <https://github.com/Ouranosinc/Magpie/tree/4.1.1>`_ (2024-07-23)
17+
------------------------------------------------------------------------------------
18+
19+
Features / Changes
20+
~~~~~~~~~~~~~~~~~~~~~
21+
22+
* Update docker with latest ``python:3.11-alpine3.20`` base.
23+
* Pin ``setuptools>=71.0.3`` for CVE-2024-6345.
24+
* Pin ``requests>=2.32.3`` for CVE-2024-35195.
25+
* Pin ``urllib3>=2.2.2`` for CVE-2024-37891.
26+
* Pin ``zipp>=3.19.1`` for CVE-2024-5569.
27+
* Pin ``pyramid-twitcher>=0.10.0`` and ``birdhouse/twitcher:v0.10.0`` for same security updates as above
28+
(relates to `bird-house/twitcher#136 <https://github.com/bird-house/twitcher/pull/136>`_).
29+
30+
.. _changes_4.1.0:
31+
32+
`4.1.0 <https://github.com/Ouranosinc/Magpie/tree/4.1.0>`_ (2024-06-11)
33+
------------------------------------------------------------------------------------
34+
1235
Features / Changes
1336
~~~~~~~~~~~~~~~~~~
1437

@@ -18,6 +41,10 @@ Features / Changes
1841
* Add CLI helper ``batch_update_permissions`` that allows registering one or more `Permission` configuration files
1942
against a running `Magpie` instance.
2043
* Security fix: bump Docker base ``python:3.11-alpine3.19``.
44+
* Update ``authomatic[OpenID]==1.3.0`` to resolve temporary workarounds
45+
(relates to `authomatic/authomatic#195 <https://github.com/authomatic/authomatic/issues/195>`_
46+
and `authomatic/authomatic#233 <https://github.com/authomatic/authomatic/issues/233>`_,
47+
fixes `#583 <https://github.com/Ouranosinc/Magpie/issues/583>`_).
2148

2249
Bug Fixes
2350
~~~~~~~~~

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.11-alpine3.19
1+
FROM python:3.11-alpine3.20
22
LABEL Description="Runs Magpie AuthN/AuthZ service for REST-API and UI interfaces."
33
LABEL Maintainer="Francis Charette-Migneault <francis.charette-migneault@crim.ca>"
44
LABEL Vendor="CRIM"

Dockerfile.adapter

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# docker run will need to override ini file with mounted volume
44
# using config 'twitcher.adapter = magpie.adapter.MagpieAdapter'
55
#
6-
FROM birdhouse/twitcher:v0.9.0
6+
FROM birdhouse/twitcher:v0.10.0
77
LABEL Description="Configures MagpieAdapter on top of Twitcher application."
88
LABEL Maintainer="Francis Charette-Migneault <francis.charette-migneault@crim.ca>"
99
LABEL Vendor="CRIM"

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ MAKEFILE_NAME := $(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST))
1919
# Application
2020
APP_ROOT := $(abspath $(lastword $(MAKEFILE_NAME))/..)
2121
APP_NAME := magpie
22-
APP_VERSION ?= 4.0.0
22+
APP_VERSION ?= 4.1.1
2323
APP_INI ?= $(APP_ROOT)/config/$(APP_NAME).ini
2424

2525
# guess OS (Linux, Darwin,...)

README.rst

+30-13
Original file line numberDiff line numberDiff line change
@@ -19,29 +19,46 @@ Behind the scene, it uses `Ziggurat-Foundations`_ and `Authomatic`_.
1919
:widths: 10,90
2020

2121
* - dependencies
22-
- | |py_ver_support| |py_ver_recommend| |dependencies|
22+
- | |py_ver_recommend| |py_ver_support| |py_ver_legacy| |dependencies|
2323
* - tests status
2424
- | |github_latest| |github_tagged| |coverage| |codacy|
2525
* - docker status
2626
- | |docker_build_mode| |docker_build_status| |docker_latest_tag| |docker_semver_tag|
2727
* - releases
2828
- | |version| |commits-since|
2929

30-
.. |py_ver_support| image:: https://img.shields.io/badge/python%20%28legacy%20support%29-3.5%2B-orange.svg
30+
.. list-table::
31+
:header-rows: 1
32+
:widths: 15,85
33+
34+
* - Python Versions
35+
- Description
36+
* - *Legacy*
37+
- Older versions could still work, but maintenance is dropped.
38+
* - *Supported*
39+
- Tested by the CI and maintained for backward compatibility.
40+
* - *Recommended*
41+
- Prefered minimal version to use for latest security updates and performance enhancements.
42+
43+
.. |py_ver_legacy| image:: https://img.shields.io/badge/python%20%28legacy%29-3.5%20%2D%2D%203.7-orange.svg
3144
:alt: Python 3.5+ supported (legacy)
3245
:target: https://www.python.org/getit
3346

34-
.. |py_ver_recommend| image:: https://img.shields.io/badge/python%20%28recommended%29-3.7%2B-blue.svg
35-
:alt: Python 3.7+ recommended
47+
.. |py_ver_support| image:: https://img.shields.io/badge/python%20%28supported%29-3.8%2B-yellow.svg
48+
:alt: Python 3.8+ supported
49+
:target: https://www.python.org/getit
50+
51+
.. |py_ver_recommend| image:: https://img.shields.io/badge/python%20%28recommended%29-3.11%2B-blue.svg
52+
:alt: Python 3.11+ recommended
3653
:target: https://www.python.org/getit
3754

38-
.. |commits-since| image:: https://img.shields.io/github/commits-since/Ouranosinc/Magpie/4.0.0.svg
55+
.. |commits-since| image:: https://img.shields.io/github/commits-since/Ouranosinc/Magpie/4.1.1.svg
3956
:alt: Commits since latest release
40-
:target: https://github.com/Ouranosinc/Magpie/compare/4.0.0...master
57+
:target: https://github.com/Ouranosinc/Magpie/compare/4.1.1...master
4158

42-
.. |version| image:: https://img.shields.io/badge/tag-4.0.0-blue.svg?style=flat
59+
.. |version| image:: https://img.shields.io/badge/tag-4.1.1-blue.svg?style=flat
4360
:alt: Latest Tag
44-
:target: https://github.com/Ouranosinc/Magpie/tree/4.0.0
61+
:target: https://github.com/Ouranosinc/Magpie/tree/4.1.1
4562

4663
.. |dependencies| image:: https://pyup.io/repos/github/Ouranosinc/Magpie/shield.svg
4764
:alt: Dependencies Status
@@ -51,9 +68,9 @@ Behind the scene, it uses `Ziggurat-Foundations`_ and `Authomatic`_.
5168
:alt: Github Actions CI Build Status (master branch)
5269
:target: https://github.com/Ouranosinc/Magpie/actions?query=workflow%3ATests+branch%3Amaster
5370

54-
.. |github_tagged| image:: https://img.shields.io/github/actions/workflow/status/Ouranosinc/Magpie/tests.yml?label=4.0.0&branch=4.0.0
71+
.. |github_tagged| image:: https://img.shields.io/github/actions/workflow/status/Ouranosinc/Magpie/tests.yml?label=4.1.1&branch=4.1.1
5572
:alt: Github Actions CI Build Status (latest tag)
56-
:target: https://github.com/Ouranosinc/Magpie/actions?query=workflow%3ATests+branch%3A4.0.0
73+
:target: https://github.com/Ouranosinc/Magpie/actions?query=workflow%3ATests+branch%3A4.1.1
5774

5875
.. |readthedocs| image:: https://img.shields.io/readthedocs/pavics-magpie
5976
:alt: Readthedocs Build Status (master branch)
@@ -81,7 +98,7 @@ Behind the scene, it uses `Ziggurat-Foundations`_ and `Authomatic`_.
8198

8299
.. |docker_semver_tag| image:: https://img.shields.io/docker/v/pavics/magpie?label=version&sort=semver
83100
:alt: Docker Version Tag
84-
:target: https://hub.docker.com/r/pavics/magpie/tags?page=1&ordering=last_updated&name=4.0.0
101+
:target: https://hub.docker.com/r/pavics/magpie/tags?page=1&ordering=last_updated&name=4.1.1
85102

86103
.. end-badges
87104
@@ -125,8 +142,8 @@ Following most recent variants are available:
125142
* - Magpie
126143
- Twitcher |br|
127144
(with integrated ``MagpieAdapter``)
128-
* - ``pavics/magpie:4.0.0``
129-
- ``pavics/twitcher:magpie-4.0.0``
145+
* - ``pavics/magpie:4.1.1``
146+
- ``pavics/twitcher:magpie-4.1.1``
130147
* - ``pavics/magpie:latest``
131148
- ``pavics/twitcher:magpie-latest``
132149

magpie/__init__.py

-10
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,6 @@
77

88
import sys
99

10-
# FIXME: patch workaround for Python 3.12 issue with vendor-specific 'six.moves'
11-
# Inspired from https://github.com/dpkp/kafka-python/issues/2401#issuecomment-1760208950
12-
# Applied here such that anything importing 'magpie' does it first, to avoid patch everywhere importing 'authomatic'.
13-
# Official fix required (see https://github.com/authomatic/authomatic/issues/233).
14-
if sys.version_info >= (3, 12, 0):
15-
import six
16-
sys.modules["authomatic.six.moves"] = six.moves
17-
sys.modules["authomatic.six.moves.urllib"] = six.moves.urllib
18-
sys.modules["authomatic.six.moves.urllib.parse"] = six.moves.urllib.parse
19-
2010

2111
def includeme(config):
2212
# import needs to be here, otherwise ImportError happens during setup.py install (modules not yet installed)

magpie/__meta__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
General meta information on the magpie package.
33
"""
44

5-
__version__ = "4.0.0"
5+
__version__ = "4.1.1"
66
__title__ = "Magpie"
77
__package__ = "magpie" # pylint: disable=W0622
88
__author__ = "Francois-Xavier Derue, Francis Charette-Migneault"

requirements-dev.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ mock>4
1414
pylint>=2.11,!=2.12,!=2.15
1515
pylint-quotes
1616
# bird-house/twticher, must match version in Dockerfile.adapater
17-
pyramid-twitcher>=0.9.0
17+
pyramid-twitcher>=0.10.0
1818
pytest
1919
pytest-httpserver==1.0.10
2020
safety

requirements-doc.txt

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# these are doc-only requirements
33
# we actually need to install all requirements during docs build because of OpenAPI generation
44
# (see 'docs/conf.py')
5+
-r requirements.txt
56
astroid<2.12 # pin to resolve sphinx-autoapi (see https://github.com/readthedocs/sphinx-autoapi/issues/349)
67
pycodestyle>=2.6.0,<3
78
# sphinx-autoapi dropped 3.5 support at 1.3.0

requirements-sys.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
pip
2-
setuptools>=65.5.1
2+
packaging>=22.0
3+
setuptools>=71.0.3

requirements.txt

+4-12
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,6 @@
11
-r requirements-sys.txt
22
alembic>=1.10
3-
# TODO: remove when merged
4-
# until fix merged and deployed (https://github.com/authomatic/authomatic/pull/195)
5-
# old variants:
6-
# -e git+https://github.com/fmigneault/authomatic.git@httplib-port#egg=Authomatic
7-
# https://github.com/fmigneault/authomatic/archive/httplib-port.zip#egg=Authomatic-1.0.1
8-
# - new authomatic handles openid install correctly
9-
# - https://github.com/authomatic/authomatic/tree/master includes #195 (http-po#rt)
10-
# via https://github.com/authomatic/authomatic/pull/227
11-
# However, this is not the latest tag https://github.com/authomatic/authomatic/tree/1.2.1 (done before #227).
12-
# - Requires https://github.com/authomatic/authomatic/issues/233 for Python 3.12 (temporary patch in magpie.__init__)
13-
authomatic[OpenID] @ https://github.com/fmigneault/authomatic/archive/httplib-port.zip
3+
authomatic[OpenID]==1.3.0
144
bcrypt>=3.1.6
155
# FIXME: integrate when implemnted by official package (see https://github.com/bbangert/beaker/issues/201)
166
beaker @ https://github.com/crim-ca/beaker/archive/0ac88bcd8cca063a571fc385ffbe9bcc8acaa690.zip
@@ -40,7 +30,7 @@ pyramid_retry==2.1.1
4030
pyramid_tm>=2.2.1
4131
python-dotenv
4232
pyyaml>=5.1
43-
requests
33+
requests>=2.32.3
4434
requests_file
4535
simplejson
4636
six>=1.12.0
@@ -51,8 +41,10 @@ sqlalchemy-utils==0.39.0 # pyup: ignore
5141
threddsclient>=0.4.2
5242
transaction
5343
typing_extensions
44+
urllib3>=2.2.2
5445
wheel>=0.38
5546
webob
5647
ziggurat_foundations==0.9.1
5748
zope.interface>=4.7.2,<5
5849
zope.sqlalchemy==1.6
50+
zipp>=3.19.1

setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 4.0.0
2+
current_version = 4.1.1
33
commit = True
44
tag = True
55
tag_name = {new_version}

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ def _extra_requirements(base_requirements, other_requirements):
217217
"Programming Language :: Python :: 3.11",
218218
"Programming Language :: Python :: 3.12",
219219
],
220-
python_requires=">=3.5, <4",
220+
python_requires=">=3.8, <4",
221221

222222
# -- Package structure -------------------------------------------------
223223
packages=[__meta__.__package__],

0 commit comments

Comments
 (0)