perun.proxy.utils 3.1.0__tar.gz → 3.2.0__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.
Files changed (36) hide show
  1. {perun.proxy.utils-3.1.0 → perun_proxy_utils-3.2.0}/PKG-INFO +4 -22
  2. {perun.proxy.utils-3.1.0 → perun_proxy_utils-3.2.0}/perun/proxy/utils/nagios/check_saml.py +1 -1
  3. {perun.proxy.utils-3.1.0 → perun_proxy_utils-3.2.0}/perun/proxy/utils/nagios/webserver_availability.py +9 -1
  4. {perun.proxy.utils-3.1.0/perun.proxy.utils.egg-info → perun_proxy_utils-3.2.0/perun_proxy_utils.egg-info}/PKG-INFO +4 -22
  5. {perun.proxy.utils-3.1.0/perun.proxy.utils.egg-info → perun_proxy_utils-3.2.0/perun_proxy_utils.egg-info}/SOURCES.txt +7 -7
  6. {perun.proxy.utils-3.1.0/perun.proxy.utils.egg-info → perun_proxy_utils-3.2.0/perun_proxy_utils.egg-info}/requires.txt +9 -9
  7. {perun.proxy.utils-3.1.0 → perun_proxy_utils-3.2.0}/setup.cfg +1 -1
  8. {perun.proxy.utils-3.1.0 → perun_proxy_utils-3.2.0}/setup.py +2 -2
  9. {perun.proxy.utils-3.1.0 → perun_proxy_utils-3.2.0}/LICENSE +0 -0
  10. {perun.proxy.utils-3.1.0 → perun_proxy_utils-3.2.0}/README.md +0 -0
  11. {perun.proxy.utils-3.1.0 → perun_proxy_utils-3.2.0}/perun/proxy/utils/__init__.py +0 -0
  12. {perun.proxy.utils-3.1.0 → perun_proxy_utils-3.2.0}/perun/proxy/utils/metadata_expiration.py +0 -0
  13. {perun.proxy.utils-3.1.0 → perun_proxy_utils-3.2.0}/perun/proxy/utils/nagios/__init__.py +0 -0
  14. {perun.proxy.utils-3.1.0 → perun_proxy_utils-3.2.0}/perun/proxy/utils/nagios/check_custom_command.py +0 -0
  15. {perun.proxy.utils-3.1.0 → perun_proxy_utils-3.2.0}/perun/proxy/utils/nagios/check_dockers.py +0 -0
  16. {perun.proxy.utils-3.1.0 → perun_proxy_utils-3.2.0}/perun/proxy/utils/nagios/check_exabgp_propagation.py +0 -0
  17. {perun.proxy.utils-3.1.0 → perun_proxy_utils-3.2.0}/perun/proxy/utils/nagios/check_ldap.py +0 -0
  18. {perun.proxy.utils-3.1.0 → perun_proxy_utils-3.2.0}/perun/proxy/utils/nagios/check_ldap_syncrepl.py +0 -0
  19. {perun.proxy.utils-3.1.0 → perun_proxy_utils-3.2.0}/perun/proxy/utils/nagios/check_mongodb.py +0 -0
  20. {perun.proxy.utils-3.1.0 → perun_proxy_utils-3.2.0}/perun/proxy/utils/nagios/check_nginx.py +0 -0
  21. {perun.proxy.utils-3.1.0 → perun_proxy_utils-3.2.0}/perun/proxy/utils/nagios/check_oidc_login.py +0 -0
  22. {perun.proxy.utils-3.1.0 → perun_proxy_utils-3.2.0}/perun/proxy/utils/nagios/check_pgsql.py +0 -0
  23. {perun.proxy.utils-3.1.0 → perun_proxy_utils-3.2.0}/perun/proxy/utils/nagios/check_php_syntax.py +0 -0
  24. {perun.proxy.utils-3.1.0 → perun_proxy_utils-3.2.0}/perun/proxy/utils/nagios/check_privacyidea.py +0 -0
  25. {perun.proxy.utils-3.1.0 → perun_proxy_utils-3.2.0}/perun/proxy/utils/nagios/check_rpc_status.py +0 -0
  26. {perun.proxy.utils-3.1.0 → perun_proxy_utils-3.2.0}/perun/proxy/utils/nagios/check_user_logins.py +0 -0
  27. {perun.proxy.utils-3.1.0 → perun_proxy_utils-3.2.0}/perun/proxy/utils/oracle2postgresql.py +0 -0
  28. {perun.proxy.utils-3.1.0 → perun_proxy_utils-3.2.0}/perun/proxy/utils/print_docker_versions.py +0 -0
  29. {perun.proxy.utils-3.1.0 → perun_proxy_utils-3.2.0}/perun/proxy/utils/run_probes.py +0 -0
  30. {perun.proxy.utils-3.1.0 → perun_proxy_utils-3.2.0}/perun/proxy/utils/run_version_script.py +0 -0
  31. {perun.proxy.utils-3.1.0 → perun_proxy_utils-3.2.0}/perun/proxy/utils/separate_oidc_logs.py +0 -0
  32. {perun.proxy.utils-3.1.0 → perun_proxy_utils-3.2.0}/perun/proxy/utils/separate_ssp_logs.py +0 -0
  33. {perun.proxy.utils-3.1.0 → perun_proxy_utils-3.2.0}/perun/proxy/utils/sync_usable_token_types.py +0 -0
  34. {perun.proxy.utils-3.1.0/perun.proxy.utils.egg-info → perun_proxy_utils-3.2.0/perun_proxy_utils.egg-info}/dependency_links.txt +0 -0
  35. {perun.proxy.utils-3.1.0/perun.proxy.utils.egg-info → perun_proxy_utils-3.2.0/perun_proxy_utils.egg-info}/entry_points.txt +0 -0
  36. {perun.proxy.utils-3.1.0/perun.proxy.utils.egg-info → perun_proxy_utils-3.2.0/perun_proxy_utils.egg-info}/top_level.txt +0 -0
@@ -1,32 +1,14 @@
1
1
  Metadata-Version: 2.1
2
- Name: perun.proxy.utils
3
- Version: 3.1.0
2
+ Name: perun_proxy_utils
3
+ Version: 3.2.0
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
7
7
  Description-Content-Type: text/markdown
8
- License-File: LICENSE
9
- Requires-Dist: setuptools
10
- Requires-Dist: pymongo~=4.3
11
- Requires-Dist: asyncssh~=2.13
12
- Requires-Dist: docker~=6.0
13
- Requires-Dist: beautifulsoup4~=4.12
14
- Requires-Dist: requests~=2.31
15
- Requires-Dist: PyYAML<7.0,>=5.4
16
- Requires-Dist: check_nginx_status~=1.0
17
- Requires-Dist: pyotp~=2.9
18
- Requires-Dist: perun.connector~=3.8
19
- Requires-Dist: privacyidea~=3.9
20
- Requires-Dist: flask~=1.1
21
- Requires-Dist: idpyoidc~=2.1
22
- Requires-Dist: sqlalchemy~=1.4
23
8
  Provides-Extra: ldap
24
- Requires-Dist: ldap3~=2.9.1; extra == "ldap"
25
- Requires-Dist: check_syncrepl_extended~=2020.13; extra == "ldap"
26
- Provides-Extra: postgresql
27
- Requires-Dist: psycopg2-binary~=2.9; extra == "postgresql"
28
9
  Provides-Extra: oracle
29
- Requires-Dist: cx-Oracle~=8.3; extra == "oracle"
10
+ Provides-Extra: postgresql
11
+ License-File: LICENSE
30
12
 
31
13
  # Perun proxy utils
32
14
 
@@ -362,7 +362,7 @@ class SAMLChecker:
362
362
  saml_response = base64.b64decode(form_data["SAMLResponse"]).decode("utf-8")
363
363
 
364
364
  if (
365
- '<samlp:StatusCode Value="urn:oasis:names:tc:SAML:2.0:status:Success"/>'
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")
@@ -18,6 +18,9 @@ def get_args():
18
18
  )
19
19
  parser.add_argument("-p", "--port", help="webserver port")
20
20
 
21
+ parser.add_argument("--username", help="username for basic auth")
22
+ parser.add_argument("--password", help="password for basic auth")
23
+
21
24
  return parser.parse_args()
22
25
 
23
26
 
@@ -32,7 +35,12 @@ def main():
32
35
  status_txt = "ERROR"
33
36
 
34
37
  try:
35
- res = requests.get(url, allow_redirects=False)
38
+ if args.username and args.password:
39
+ res = requests.get(
40
+ url, auth=(args.username, args.password), allow_redirects=False
41
+ )
42
+ else:
43
+ res = requests.get(url, allow_redirects=False)
36
44
  if res.status_code == 200 or res.status_code == 301:
37
45
  status = 0
38
46
  status_txt = "OK"
@@ -1,32 +1,14 @@
1
1
  Metadata-Version: 2.1
2
- Name: perun.proxy.utils
3
- Version: 3.1.0
2
+ Name: perun-proxy-utils
3
+ Version: 3.2.0
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
7
7
  Description-Content-Type: text/markdown
8
- License-File: LICENSE
9
- Requires-Dist: setuptools
10
- Requires-Dist: pymongo~=4.3
11
- Requires-Dist: asyncssh~=2.13
12
- Requires-Dist: docker~=6.0
13
- Requires-Dist: beautifulsoup4~=4.12
14
- Requires-Dist: requests~=2.31
15
- Requires-Dist: PyYAML<7.0,>=5.4
16
- Requires-Dist: check_nginx_status~=1.0
17
- Requires-Dist: pyotp~=2.9
18
- Requires-Dist: perun.connector~=3.8
19
- Requires-Dist: privacyidea~=3.9
20
- Requires-Dist: flask~=1.1
21
- Requires-Dist: idpyoidc~=2.1
22
- Requires-Dist: sqlalchemy~=1.4
23
8
  Provides-Extra: ldap
24
- Requires-Dist: ldap3~=2.9.1; extra == "ldap"
25
- Requires-Dist: check_syncrepl_extended~=2020.13; extra == "ldap"
26
- Provides-Extra: postgresql
27
- Requires-Dist: psycopg2-binary~=2.9; extra == "postgresql"
28
9
  Provides-Extra: oracle
29
- Requires-Dist: cx-Oracle~=8.3; extra == "oracle"
10
+ Provides-Extra: postgresql
11
+ License-File: LICENSE
30
12
 
31
13
  # Perun proxy utils
32
14
 
@@ -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,21 +1,21 @@
1
- setuptools
2
- pymongo~=4.3
1
+ PyYAML<7.0,>=5.4
3
2
  asyncssh~=2.13
4
- docker~=6.0
5
3
  beautifulsoup4~=4.12
6
- requests~=2.31
7
- PyYAML<7.0,>=5.4
8
4
  check_nginx_status~=1.0
9
- pyotp~=2.9
10
- perun.connector~=3.8
11
- privacyidea~=3.9
5
+ docker~=7.1
12
6
  flask~=1.1
13
7
  idpyoidc~=2.1
8
+ perun.connector~=3.8
9
+ privacyidea~=3.9
10
+ pymongo~=4.3
11
+ pyotp~=2.9
12
+ requests~=2.31
13
+ setuptools
14
14
  sqlalchemy~=1.4
15
15
 
16
16
  [ldap]
17
- ldap3~=2.9.1
18
17
  check_syncrepl_extended~=2020.13
18
+ ldap3~=2.9.1
19
19
 
20
20
  [oracle]
21
21
  cx-Oracle~=8.3
@@ -1,5 +1,5 @@
1
1
  [metadata]
2
- version = 3.1.0
2
+ version = 3.2.0
3
3
  license_files = LICENSE
4
4
  long_description = file: README.md
5
5
  long_description_content_type = text/markdown
@@ -1,7 +1,7 @@
1
1
  import setuptools
2
2
 
3
3
  setuptools.setup(
4
- name="perun.proxy.utils",
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~=6.0",
14
+ "docker~=7.1",
15
15
  "beautifulsoup4~=4.12",
16
16
  "requests~=2.31",
17
17
  "PyYAML>=5.4,<7.0",