perun.proxy.utils 3.0.0__tar.gz → 3.1.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {perun.proxy.utils-3.0.0 → perun_proxy_utils-3.1.1}/PKG-INFO +3 -3
- {perun.proxy.utils-3.0.0 → perun_proxy_utils-3.1.1}/perun/proxy/utils/nagios/check_saml.py +1 -1
- {perun.proxy.utils-3.0.0 → perun_proxy_utils-3.1.1}/perun/proxy/utils/run_probes.py +21 -0
- {perun.proxy.utils-3.0.0 → perun_proxy_utils-3.1.1}/perun/proxy/utils/separate_oidc_logs.py +4 -3
- {perun.proxy.utils-3.0.0 → perun_proxy_utils-3.1.1}/perun/proxy/utils/separate_ssp_logs.py +4 -3
- {perun.proxy.utils-3.0.0/perun.proxy.utils.egg-info → perun_proxy_utils-3.1.1/perun_proxy_utils.egg-info}/PKG-INFO +3 -3
- {perun.proxy.utils-3.0.0/perun.proxy.utils.egg-info → perun_proxy_utils-3.1.1/perun_proxy_utils.egg-info}/SOURCES.txt +7 -7
- {perun.proxy.utils-3.0.0/perun.proxy.utils.egg-info → perun_proxy_utils-3.1.1/perun_proxy_utils.egg-info}/requires.txt +1 -1
- {perun.proxy.utils-3.0.0 → perun_proxy_utils-3.1.1}/setup.cfg +1 -1
- {perun.proxy.utils-3.0.0 → perun_proxy_utils-3.1.1}/setup.py +2 -2
- {perun.proxy.utils-3.0.0 → perun_proxy_utils-3.1.1}/LICENSE +0 -0
- {perun.proxy.utils-3.0.0 → perun_proxy_utils-3.1.1}/README.md +0 -0
- {perun.proxy.utils-3.0.0 → perun_proxy_utils-3.1.1}/perun/proxy/utils/__init__.py +0 -0
- {perun.proxy.utils-3.0.0 → perun_proxy_utils-3.1.1}/perun/proxy/utils/metadata_expiration.py +0 -0
- {perun.proxy.utils-3.0.0 → perun_proxy_utils-3.1.1}/perun/proxy/utils/nagios/__init__.py +0 -0
- {perun.proxy.utils-3.0.0 → perun_proxy_utils-3.1.1}/perun/proxy/utils/nagios/check_custom_command.py +0 -0
- {perun.proxy.utils-3.0.0 → perun_proxy_utils-3.1.1}/perun/proxy/utils/nagios/check_dockers.py +0 -0
- {perun.proxy.utils-3.0.0 → perun_proxy_utils-3.1.1}/perun/proxy/utils/nagios/check_exabgp_propagation.py +0 -0
- {perun.proxy.utils-3.0.0 → perun_proxy_utils-3.1.1}/perun/proxy/utils/nagios/check_ldap.py +0 -0
- {perun.proxy.utils-3.0.0 → perun_proxy_utils-3.1.1}/perun/proxy/utils/nagios/check_ldap_syncrepl.py +0 -0
- {perun.proxy.utils-3.0.0 → perun_proxy_utils-3.1.1}/perun/proxy/utils/nagios/check_mongodb.py +0 -0
- {perun.proxy.utils-3.0.0 → perun_proxy_utils-3.1.1}/perun/proxy/utils/nagios/check_nginx.py +0 -0
- {perun.proxy.utils-3.0.0 → perun_proxy_utils-3.1.1}/perun/proxy/utils/nagios/check_oidc_login.py +0 -0
- {perun.proxy.utils-3.0.0 → perun_proxy_utils-3.1.1}/perun/proxy/utils/nagios/check_pgsql.py +0 -0
- {perun.proxy.utils-3.0.0 → perun_proxy_utils-3.1.1}/perun/proxy/utils/nagios/check_php_syntax.py +0 -0
- {perun.proxy.utils-3.0.0 → perun_proxy_utils-3.1.1}/perun/proxy/utils/nagios/check_privacyidea.py +0 -0
- {perun.proxy.utils-3.0.0 → perun_proxy_utils-3.1.1}/perun/proxy/utils/nagios/check_rpc_status.py +0 -0
- {perun.proxy.utils-3.0.0 → perun_proxy_utils-3.1.1}/perun/proxy/utils/nagios/check_user_logins.py +0 -0
- {perun.proxy.utils-3.0.0 → perun_proxy_utils-3.1.1}/perun/proxy/utils/nagios/webserver_availability.py +0 -0
- {perun.proxy.utils-3.0.0 → perun_proxy_utils-3.1.1}/perun/proxy/utils/oracle2postgresql.py +0 -0
- {perun.proxy.utils-3.0.0 → perun_proxy_utils-3.1.1}/perun/proxy/utils/print_docker_versions.py +0 -0
- {perun.proxy.utils-3.0.0 → perun_proxy_utils-3.1.1}/perun/proxy/utils/run_version_script.py +0 -0
- {perun.proxy.utils-3.0.0 → perun_proxy_utils-3.1.1}/perun/proxy/utils/sync_usable_token_types.py +0 -0
- {perun.proxy.utils-3.0.0/perun.proxy.utils.egg-info → perun_proxy_utils-3.1.1/perun_proxy_utils.egg-info}/dependency_links.txt +0 -0
- {perun.proxy.utils-3.0.0/perun.proxy.utils.egg-info → perun_proxy_utils-3.1.1/perun_proxy_utils.egg-info}/entry_points.txt +0 -0
- {perun.proxy.utils-3.0.0/perun.proxy.utils.egg-info → perun_proxy_utils-3.1.1/perun_proxy_utils.egg-info}/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
|
-
Name:
|
|
3
|
-
Version: 3.
|
|
2
|
+
Name: perun_proxy_utils
|
|
3
|
+
Version: 3.1.1
|
|
4
4
|
Summary: Utilities and monitoring probes for Perun ProxyIdP
|
|
5
5
|
Home-page: https://gitlab.ics.muni.cz/perun/perun-proxyidp/perun-proxy-utils.git
|
|
6
6
|
Requires-Python: >=3.9
|
|
@@ -9,7 +9,7 @@ License-File: LICENSE
|
|
|
9
9
|
Requires-Dist: setuptools
|
|
10
10
|
Requires-Dist: pymongo~=4.3
|
|
11
11
|
Requires-Dist: asyncssh~=2.13
|
|
12
|
-
Requires-Dist: docker~=
|
|
12
|
+
Requires-Dist: docker~=7.1
|
|
13
13
|
Requires-Dist: beautifulsoup4~=4.12
|
|
14
14
|
Requires-Dist: requests~=2.31
|
|
15
15
|
Requires-Dist: PyYAML<7.0,>=5.4
|
|
@@ -362,7 +362,7 @@ class SAMLChecker:
|
|
|
362
362
|
saml_response = base64.b64decode(form_data["SAMLResponse"]).decode("utf-8")
|
|
363
363
|
|
|
364
364
|
if (
|
|
365
|
-
'
|
|
365
|
+
'StatusCode Value="urn:oasis:names:tc:SAML:2.0:status:Success"'
|
|
366
366
|
not in saml_response
|
|
367
367
|
):
|
|
368
368
|
self.finish("Login was not successful, non-success response", "CRITICAL")
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/python3
|
|
2
|
+
import argparse
|
|
2
3
|
import re
|
|
3
4
|
import subprocess
|
|
4
5
|
import sys
|
|
@@ -73,9 +74,27 @@ def run_probe(probe_name, command, timeout):
|
|
|
73
74
|
return result.returncode
|
|
74
75
|
|
|
75
76
|
|
|
77
|
+
def parse_arguments():
|
|
78
|
+
parser = argparse.ArgumentParser()
|
|
79
|
+
parser.add_argument(
|
|
80
|
+
"-p",
|
|
81
|
+
"--probes",
|
|
82
|
+
nargs="+",
|
|
83
|
+
default=[],
|
|
84
|
+
help="Optional list of probes to run from the config."
|
|
85
|
+
"If not specified, all probes will be run.",
|
|
86
|
+
)
|
|
87
|
+
args = parser.parse_args()
|
|
88
|
+
return args
|
|
89
|
+
|
|
90
|
+
|
|
76
91
|
def main():
|
|
92
|
+
args = parse_arguments()
|
|
93
|
+
probes_to_run = args.probes
|
|
94
|
+
|
|
77
95
|
config_filepath = "/etc/run_probes_cfg.yaml"
|
|
78
96
|
config = yaml.safe_load(open_file(config_filepath))
|
|
97
|
+
|
|
79
98
|
if not config:
|
|
80
99
|
return
|
|
81
100
|
|
|
@@ -83,6 +102,8 @@ def main():
|
|
|
83
102
|
for _, options in config["checks"].items():
|
|
84
103
|
module = options["module"]
|
|
85
104
|
for name, args in options.get("runs").items():
|
|
105
|
+
if probes_to_run and name not in probes_to_run:
|
|
106
|
+
continue
|
|
86
107
|
command = ["python3", "-m", module]
|
|
87
108
|
timeout = global_timeout
|
|
88
109
|
if args is not None:
|
|
@@ -69,9 +69,10 @@ def main():
|
|
|
69
69
|
final_log_file.close()
|
|
70
70
|
|
|
71
71
|
# Zip old log file
|
|
72
|
-
with
|
|
73
|
-
full_log_absolute_name
|
|
74
|
-
|
|
72
|
+
with (
|
|
73
|
+
open(full_log_absolute_name, "rb") as f_in,
|
|
74
|
+
gzip.open(full_log_absolute_name + ".gz", "wb") as f_out,
|
|
75
|
+
):
|
|
75
76
|
shutil.copyfileobj(f_in, f_out)
|
|
76
77
|
|
|
77
78
|
# Remove unzip file
|
|
@@ -79,9 +79,10 @@ def main():
|
|
|
79
79
|
final_log_file.close()
|
|
80
80
|
|
|
81
81
|
# Zip old log file
|
|
82
|
-
with
|
|
83
|
-
full_log_absolute_name
|
|
84
|
-
|
|
82
|
+
with (
|
|
83
|
+
open(full_log_absolute_name, "rb") as f_in,
|
|
84
|
+
gzip.open(full_log_absolute_name + ".gz", "wb") as f_out,
|
|
85
|
+
):
|
|
85
86
|
shutil.copyfileobj(f_in, f_out)
|
|
86
87
|
|
|
87
88
|
# Remove unzip file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
|
-
Name: perun
|
|
3
|
-
Version: 3.
|
|
2
|
+
Name: perun-proxy-utils
|
|
3
|
+
Version: 3.1.1
|
|
4
4
|
Summary: Utilities and monitoring probes for Perun ProxyIdP
|
|
5
5
|
Home-page: https://gitlab.ics.muni.cz/perun/perun-proxyidp/perun-proxy-utils.git
|
|
6
6
|
Requires-Python: >=3.9
|
|
@@ -9,7 +9,7 @@ License-File: LICENSE
|
|
|
9
9
|
Requires-Dist: setuptools
|
|
10
10
|
Requires-Dist: pymongo~=4.3
|
|
11
11
|
Requires-Dist: asyncssh~=2.13
|
|
12
|
-
Requires-Dist: docker~=
|
|
12
|
+
Requires-Dist: docker~=7.1
|
|
13
13
|
Requires-Dist: beautifulsoup4~=4.12
|
|
14
14
|
Requires-Dist: requests~=2.31
|
|
15
15
|
Requires-Dist: PyYAML<7.0,>=5.4
|
|
@@ -2,12 +2,6 @@ LICENSE
|
|
|
2
2
|
README.md
|
|
3
3
|
setup.cfg
|
|
4
4
|
setup.py
|
|
5
|
-
perun.proxy.utils.egg-info/PKG-INFO
|
|
6
|
-
perun.proxy.utils.egg-info/SOURCES.txt
|
|
7
|
-
perun.proxy.utils.egg-info/dependency_links.txt
|
|
8
|
-
perun.proxy.utils.egg-info/entry_points.txt
|
|
9
|
-
perun.proxy.utils.egg-info/requires.txt
|
|
10
|
-
perun.proxy.utils.egg-info/top_level.txt
|
|
11
5
|
perun/proxy/utils/__init__.py
|
|
12
6
|
perun/proxy/utils/metadata_expiration.py
|
|
13
7
|
perun/proxy/utils/oracle2postgresql.py
|
|
@@ -32,4 +26,10 @@ perun/proxy/utils/nagios/check_privacyidea.py
|
|
|
32
26
|
perun/proxy/utils/nagios/check_rpc_status.py
|
|
33
27
|
perun/proxy/utils/nagios/check_saml.py
|
|
34
28
|
perun/proxy/utils/nagios/check_user_logins.py
|
|
35
|
-
perun/proxy/utils/nagios/webserver_availability.py
|
|
29
|
+
perun/proxy/utils/nagios/webserver_availability.py
|
|
30
|
+
perun_proxy_utils.egg-info/PKG-INFO
|
|
31
|
+
perun_proxy_utils.egg-info/SOURCES.txt
|
|
32
|
+
perun_proxy_utils.egg-info/dependency_links.txt
|
|
33
|
+
perun_proxy_utils.egg-info/entry_points.txt
|
|
34
|
+
perun_proxy_utils.egg-info/requires.txt
|
|
35
|
+
perun_proxy_utils.egg-info/top_level.txt
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import setuptools
|
|
2
2
|
|
|
3
3
|
setuptools.setup(
|
|
4
|
-
name="
|
|
4
|
+
name="perun_proxy_utils",
|
|
5
5
|
python_requires=">=3.9",
|
|
6
6
|
url="https://gitlab.ics.muni.cz/perun/perun-proxyidp/perun-proxy-utils.git",
|
|
7
7
|
description="Utilities and monitoring probes for Perun ProxyIdP",
|
|
@@ -11,7 +11,7 @@ setuptools.setup(
|
|
|
11
11
|
"setuptools",
|
|
12
12
|
"pymongo~=4.3",
|
|
13
13
|
"asyncssh~=2.13",
|
|
14
|
-
"docker~=
|
|
14
|
+
"docker~=7.1",
|
|
15
15
|
"beautifulsoup4~=4.12",
|
|
16
16
|
"requests~=2.31",
|
|
17
17
|
"PyYAML>=5.4,<7.0",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{perun.proxy.utils-3.0.0 → perun_proxy_utils-3.1.1}/perun/proxy/utils/metadata_expiration.py
RENAMED
|
File without changes
|
|
File without changes
|
{perun.proxy.utils-3.0.0 → perun_proxy_utils-3.1.1}/perun/proxy/utils/nagios/check_custom_command.py
RENAMED
|
File without changes
|
{perun.proxy.utils-3.0.0 → perun_proxy_utils-3.1.1}/perun/proxy/utils/nagios/check_dockers.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{perun.proxy.utils-3.0.0 → perun_proxy_utils-3.1.1}/perun/proxy/utils/nagios/check_ldap_syncrepl.py
RENAMED
|
File without changes
|
{perun.proxy.utils-3.0.0 → perun_proxy_utils-3.1.1}/perun/proxy/utils/nagios/check_mongodb.py
RENAMED
|
File without changes
|
|
File without changes
|
{perun.proxy.utils-3.0.0 → perun_proxy_utils-3.1.1}/perun/proxy/utils/nagios/check_oidc_login.py
RENAMED
|
File without changes
|
|
File without changes
|
{perun.proxy.utils-3.0.0 → perun_proxy_utils-3.1.1}/perun/proxy/utils/nagios/check_php_syntax.py
RENAMED
|
File without changes
|
{perun.proxy.utils-3.0.0 → perun_proxy_utils-3.1.1}/perun/proxy/utils/nagios/check_privacyidea.py
RENAMED
|
File without changes
|
{perun.proxy.utils-3.0.0 → perun_proxy_utils-3.1.1}/perun/proxy/utils/nagios/check_rpc_status.py
RENAMED
|
File without changes
|
{perun.proxy.utils-3.0.0 → perun_proxy_utils-3.1.1}/perun/proxy/utils/nagios/check_user_logins.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{perun.proxy.utils-3.0.0 → perun_proxy_utils-3.1.1}/perun/proxy/utils/print_docker_versions.py
RENAMED
|
File without changes
|
|
File without changes
|
{perun.proxy.utils-3.0.0 → perun_proxy_utils-3.1.1}/perun/proxy/utils/sync_usable_token_types.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|