Skip to content

Commit 4c0f966

Browse files
authored
Merge branch 'master' into master
2 parents 813c476 + f7e0794 commit 4c0f966

File tree

11 files changed

+35
-29
lines changed

11 files changed

+35
-29
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ jobs:
219219
deploy:
220220
docker:
221221
# The primary container is an instance of the first list image listed. Your build commands run in this container.
222-
- image: circleci/ruby:2.6
222+
- image: circleci/ruby:2.7
223223
working_directory: /tmp/deploy
224224
environment:
225225
- DISTROS: "bionic focal el7 el8"

CHANGELOG.rst

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,17 @@ Fixed
2929

3030
* Update cryptography 3.4.7 -> 39.0.1, pyOpenSSL 21.0.0 -> 23.1.0, paramiko 2.10.5 -> 2.11.0 (security). #6055
3131

32-
* Bumped `eventlet` to `0.33.3` and `gunicorn` to `21.2.0` to fix `RecursionError` bug in setting `SSLContext` `minimum_version` property. #6061
32+
* Bumped `eventlet` to `0.33.3` and `gunicorn` to `21.2.0` to fix `RecursionError` bug in setting `SSLContext` `minimum_version` property. (security) #6061
3333
Contributed by @jk464
3434

35+
* Update orquesta to v1.6.0 to fix outdated dependencies (security). #6050
36+
37+
* Fix KV value lookup in actions when RBAC is enabled #5934
38+
39+
* Update version 3.1.15 of ``gitpython`` to 3.1.18 for py3.6 and to 3.1.37 for py3.8 (security). #6063
40+
3541
Added
3642
~~~~~
37-
* Added Schwarz Digits to ADOPTERS.md by Ronnie Hoffmann (@ZoeLeah Schwarz IT KG)
38-
3943
* Move `git clone` to `user_home/.st2packs` #5845
4044

4145
* Error on `st2ctl status` when running in Kubernetes. #5851
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
orquesta@ git+https://github.com/StackStorm/orquesta.git@v1.5.0
1+
orquesta@ git+https://github.com/StackStorm/orquesta.git@v1.6.0

contrib/runners/orquesta_runner/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
# If you want to update depdencies for a single component, modify the
66
# in-requirements.txt for that component and then run 'make requirements' to
77
# update the component requirements.txt
8-
orquesta@ git+https://github.com/StackStorm/orquesta.git@v1.5.0
8+
orquesta@ git+https://github.com/StackStorm/orquesta.git@v1.6.0

fixed-requirements.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ cryptography==39.0.1
1212
# depend on rely
1313
eventlet==0.33.3
1414
flex==6.14.1
15-
gitpython==3.1.15
15+
# Note: installs gitpython==3.1.37 (security fixed) under py3.8 and gitpython==3.1.18 (latest available, vulnerable) under py3.6
16+
# TODO: Pin to 3.1.37 or higher after dropping python3.6 support
17+
gitpython<=3.1.37
1618
# Needed by gitpython, old versions used to bundle it
1719
gitdb==4.0.2
1820
# Note: greenlet is used by eventlet
@@ -26,8 +28,8 @@ lockfile==0.12.2
2628
# >=0.23 was from jinja2
2729
MarkupSafe<2.1.0,>=0.23
2830
mongoengine==0.23.0
29-
# networkx v2.6 does not support Python3.6. Update networkx to match orquesta
30-
networkx>=2.5.1,<2.6
31+
# required by orquesta (networkx<2.6 for py3.6, networkx<3 for py3.8)
32+
networkx<3
3133
# networkx requires decorator>=4.3,<5 which should resolve to version 4.4.2
3234
# but the wheel on pypi does not say it supports python3.8, so pip gets
3335
# confused. For now, pin decorator to work around pip's confusion.

requirements-pants.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ mongoengine
3131
# networkx version is constrained in orquesta.
3232
networkx
3333
orjson
34-
orquesta @ git+https://github.com/StackStorm/orquesta.git@v1.5.0
34+
orquesta @ git+https://github.com/StackStorm/orquesta.git@v1.6.0
3535
# NOTE: Recent version substantially affect the performance and add big import time overhead
3636
# See https://github.com/StackStorm/st2/issues/4160#issuecomment-394386433 for details
3737
oslo.config>=1.12.1,<1.13

requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ dnspython>=1.16.0,<2.0.0
2020
eventlet==0.33.3
2121
flex==6.14.1
2222
gitdb==4.0.2
23-
gitpython==3.1.15
23+
gitpython<=3.1.37
2424
greenlet==1.0.0
2525
gunicorn==21.2.0
2626
importlib-metadata==3.10.1
@@ -32,12 +32,12 @@ lockfile==0.12.2
3232
logshipper@ git+https://github.com/StackStorm/logshipper.git@stackstorm_patched ; platform_system=="Linux"
3333
mock==4.0.3
3434
mongoengine==0.23.0
35-
networkx>=2.5.1,<2.6
35+
networkx<3
3636
nose
3737
nose-parallel==0.4.0
3838
nose-timer==1.0.1
3939
orjson==3.5.2
40-
orquesta@ git+https://github.com/StackStorm/orquesta.git@v1.5.0
40+
orquesta@ git+https://github.com/StackStorm/orquesta.git@v1.6.0
4141
oslo.config>=1.12.1,<1.13
4242
oslo.utils<5.0,>=4.0.0
4343
paramiko==2.11.0

st2actions/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ MarkupSafe<2.1.0,>=0.23
99
apscheduler==3.7.0
1010
chardet<3.1.0
1111
eventlet==0.33.3
12-
gitpython==3.1.15
12+
gitpython<=3.1.37
1313
jinja2==2.11.3
1414
kombu==5.0.2
1515
lockfile==0.12.2

st2common/in-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ mongoengine
1414
networkx
1515
# used by networkx
1616
decorator
17-
orquesta@ git+https://github.com/StackStorm/orquesta.git@v1.5.0
17+
orquesta@ git+https://github.com/StackStorm/orquesta.git@v1.6.0
1818
st2-rbac-backend@ git+https://github.com/StackStorm/st2-rbac-backend.git@master
1919
oslo.config
2020
paramiko

st2common/requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,17 @@ dnspython>=1.16.0,<2.0.0
1717
eventlet==0.33.3
1818
flex==6.14.1
1919
gitdb==4.0.2
20-
gitpython==3.1.15
20+
gitpython<=3.1.37
2121
greenlet==1.0.0
2222
jinja2==2.11.3
2323
jsonpath-rw==1.4.0
2424
jsonschema==2.6.0
2525
kombu==5.0.2
2626
lockfile==0.12.2
2727
mongoengine==0.23.0
28-
networkx>=2.5.1,<2.6
28+
networkx<3
2929
orjson==3.5.2
30-
orquesta@ git+https://github.com/StackStorm/orquesta.git@v1.5.0
30+
orquesta@ git+https://github.com/StackStorm/orquesta.git@v1.6.0
3131
oslo.config>=1.12.1,<1.13
3232
paramiko==2.11.0
3333
pyOpenSSL==23.1.0

st2common/st2common/services/keyvalues.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -191,17 +191,17 @@ def _get_kv(self, key):
191191
if kvp:
192192
LOG.debug("Got value %s from datastore.", kvp.value)
193193

194-
# Check that user has permission to the key value pair.
195-
# If RBAC is enabled, this check will verify if user has system role with all access.
196-
# If RBAC is enabled, this check guards against a user accessing another user's kvp.
197-
# If RBAC is enabled, user needs to be explicitly granted permission to view a system kvp.
198-
# The check is sufficient to allow decryption of the system kvp.
199-
rbac_utils = get_rbac_backend().get_utils_class()
200-
rbac_utils.assert_user_has_resource_db_permission(
201-
user_db=UserDB(name=self._user),
202-
resource_db=kvp,
203-
permission_type=PermissionType.KEY_VALUE_PAIR_VIEW,
204-
)
194+
# Check that user has permission to the key value pair.
195+
# If RBAC is enabled, this check will verify if user has system role with all access.
196+
# If RBAC is enabled, this check guards against a user accessing another user's kvp.
197+
# If RBAC is enabled, user needs to be explicitly granted permission to view a system kvp.
198+
# The check is sufficient to allow decryption of the system kvp.
199+
rbac_utils = get_rbac_backend().get_utils_class()
200+
rbac_utils.assert_user_has_resource_db_permission(
201+
user_db=UserDB(name=self._user),
202+
resource_db=kvp,
203+
permission_type=PermissionType.KEY_VALUE_PAIR_VIEW,
204+
)
205205

206206
return kvp.value if kvp else ""
207207

0 commit comments

Comments
 (0)