Skip to content
This repository was archived by the owner on Apr 30, 2025. It is now read-only.

Commit 215f8e7

Browse files
Fixed many dependabot warnings (#89)
1 parent 399467f commit 215f8e7

File tree

8 files changed

+824
-694
lines changed

8 files changed

+824
-694
lines changed

doc/changes/changes_0.2.0.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,5 @@ n/a
2929
## Security
3030

3131
- #77: Update Ubuntu packages and added `cloudformation:ListStacks` to the roles for the CI runs
32+
- #88: Updated many dependencies in poetry.lock file for security reason (Ansible and ansible-core not updated because it requires python version change)
3233

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22

33
apt_dependencies:
4-
- apt-transport-https=2.0.9
4+
- apt-transport-https=2.0.10
55
- ca-certificates=20230311ubuntu0.20.04.1
6-
- software-properties-common=0.99.9.11
6+
- software-properties-common=0.99.9.12

exasol_script_languages_developer_sandbox/runtime/ansible/roles/jupyter/files/requirements_jupyter.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
jupyterlab==3.4.3
1+
jupyterlab==3.6.7
22
# enable interactive Javascript widgets in the notebooks
33
ipywidgets==7.7.1
44
pexpect==4.8.0

exasol_script_languages_developer_sandbox/runtime/ansible/roles/jupyter/tasks/motd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
set_fact:
1313
jupyter_server_hashed_password: "{{ jupyter_server_config_jsondata | json_query(password_query) }}"
1414
vars:
15-
password_query: 'ServerApp.password'
15+
password_query: 'IdentityProvider.hashed_password'
1616

1717
- name: Put motd python script in place
1818
ansible.builtin.template:

exasol_script_languages_developer_sandbox/runtime/ansible/roles/jupyter/templates/etc/update-motd.d/999-jupyter

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ server_config_file = pathlib.Path("{{jupyter_server_config_file}}")
1414

1515
if server_config_file.exists():
1616
with open(server_config_file) as f:
17-
hashed_server_password = json.load(f)["ServerApp"]["password"]
17+
hashed_server_password = json.load(f)["IdentityProvider"]["hashed_password"]
1818
# server_hashed_password was set by ansible (see motd.yml)
1919
if hashed_server_password == "{{jupyter_server_hashed_password}}":
2020
print(motd_message)
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22

33
apt_dependencies:
4-
- curl=7.68.0-1ubuntu2.18
5-
- python3.8-venv=3.8.10-0ubuntu1~20.04.8
6-
- python3-pip=20.0.2-5ubuntu1.9
4+
- curl=7.68.0-1ubuntu2.21
5+
- python3.8-venv=3.8.10-0ubuntu1~20.04.9
6+
- python3-pip=20.0.2-5ubuntu1.10

poetry.lock

Lines changed: 811 additions & 682 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/test_motd_jupyter_template.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ def test_motd_jupyter_template_prints_password_message(motd_file):
4040
"""
4141
python_file, jupyter_server_config_file = motd_file
4242
mock_data = {
43-
"ServerApp": {
44-
"password": "dummy_password_hash"
43+
"IdentityProvider": {
44+
"hashed_password": "dummy_password_hash"
4545
}
4646
}
4747
with open(jupyter_server_config_file, "w") as f:
@@ -58,8 +58,8 @@ def test_motd_jupyter_template_prints_password_message_not_if_passward_was_chang
5858
"""
5959
python_file, jupyter_server_config_file = motd_file
6060
mock_data = {
61-
"ServerApp": {
62-
"password": "NOT_MATCHING_PASSWORD"
61+
"IdentityProvider": {
62+
"hashed_password": "NOT_MATCHING_PASSWORD"
6363
}
6464
}
6565
with open(jupyter_server_config_file, "w") as f:

0 commit comments

Comments
 (0)