perun.proxy.utils 3.1.1__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.1 → perun_proxy_utils-3.2.0}/PKG-INFO +3 -21
  2. {perun_proxy_utils-3.1.1 → perun_proxy_utils-3.2.0}/perun/proxy/utils/nagios/webserver_availability.py +9 -1
  3. {perun_proxy_utils-3.1.1 → perun_proxy_utils-3.2.0}/perun_proxy_utils.egg-info/PKG-INFO +3 -21
  4. {perun_proxy_utils-3.1.1 → perun_proxy_utils-3.2.0}/setup.cfg +1 -1
  5. {perun_proxy_utils-3.1.1 → perun_proxy_utils-3.2.0}/LICENSE +0 -0
  6. {perun_proxy_utils-3.1.1 → perun_proxy_utils-3.2.0}/README.md +0 -0
  7. {perun_proxy_utils-3.1.1 → perun_proxy_utils-3.2.0}/perun/proxy/utils/__init__.py +0 -0
  8. {perun_proxy_utils-3.1.1 → perun_proxy_utils-3.2.0}/perun/proxy/utils/metadata_expiration.py +0 -0
  9. {perun_proxy_utils-3.1.1 → perun_proxy_utils-3.2.0}/perun/proxy/utils/nagios/__init__.py +0 -0
  10. {perun_proxy_utils-3.1.1 → perun_proxy_utils-3.2.0}/perun/proxy/utils/nagios/check_custom_command.py +0 -0
  11. {perun_proxy_utils-3.1.1 → perun_proxy_utils-3.2.0}/perun/proxy/utils/nagios/check_dockers.py +0 -0
  12. {perun_proxy_utils-3.1.1 → perun_proxy_utils-3.2.0}/perun/proxy/utils/nagios/check_exabgp_propagation.py +0 -0
  13. {perun_proxy_utils-3.1.1 → perun_proxy_utils-3.2.0}/perun/proxy/utils/nagios/check_ldap.py +0 -0
  14. {perun_proxy_utils-3.1.1 → perun_proxy_utils-3.2.0}/perun/proxy/utils/nagios/check_ldap_syncrepl.py +0 -0
  15. {perun_proxy_utils-3.1.1 → perun_proxy_utils-3.2.0}/perun/proxy/utils/nagios/check_mongodb.py +0 -0
  16. {perun_proxy_utils-3.1.1 → perun_proxy_utils-3.2.0}/perun/proxy/utils/nagios/check_nginx.py +0 -0
  17. {perun_proxy_utils-3.1.1 → perun_proxy_utils-3.2.0}/perun/proxy/utils/nagios/check_oidc_login.py +0 -0
  18. {perun_proxy_utils-3.1.1 → perun_proxy_utils-3.2.0}/perun/proxy/utils/nagios/check_pgsql.py +0 -0
  19. {perun_proxy_utils-3.1.1 → perun_proxy_utils-3.2.0}/perun/proxy/utils/nagios/check_php_syntax.py +0 -0
  20. {perun_proxy_utils-3.1.1 → perun_proxy_utils-3.2.0}/perun/proxy/utils/nagios/check_privacyidea.py +0 -0
  21. {perun_proxy_utils-3.1.1 → perun_proxy_utils-3.2.0}/perun/proxy/utils/nagios/check_rpc_status.py +0 -0
  22. {perun_proxy_utils-3.1.1 → perun_proxy_utils-3.2.0}/perun/proxy/utils/nagios/check_saml.py +0 -0
  23. {perun_proxy_utils-3.1.1 → perun_proxy_utils-3.2.0}/perun/proxy/utils/nagios/check_user_logins.py +0 -0
  24. {perun_proxy_utils-3.1.1 → perun_proxy_utils-3.2.0}/perun/proxy/utils/oracle2postgresql.py +0 -0
  25. {perun_proxy_utils-3.1.1 → perun_proxy_utils-3.2.0}/perun/proxy/utils/print_docker_versions.py +0 -0
  26. {perun_proxy_utils-3.1.1 → perun_proxy_utils-3.2.0}/perun/proxy/utils/run_probes.py +0 -0
  27. {perun_proxy_utils-3.1.1 → perun_proxy_utils-3.2.0}/perun/proxy/utils/run_version_script.py +0 -0
  28. {perun_proxy_utils-3.1.1 → perun_proxy_utils-3.2.0}/perun/proxy/utils/separate_oidc_logs.py +0 -0
  29. {perun_proxy_utils-3.1.1 → perun_proxy_utils-3.2.0}/perun/proxy/utils/separate_ssp_logs.py +0 -0
  30. {perun_proxy_utils-3.1.1 → perun_proxy_utils-3.2.0}/perun/proxy/utils/sync_usable_token_types.py +0 -0
  31. {perun_proxy_utils-3.1.1 → perun_proxy_utils-3.2.0}/perun_proxy_utils.egg-info/SOURCES.txt +0 -0
  32. {perun_proxy_utils-3.1.1 → perun_proxy_utils-3.2.0}/perun_proxy_utils.egg-info/dependency_links.txt +0 -0
  33. {perun_proxy_utils-3.1.1 → perun_proxy_utils-3.2.0}/perun_proxy_utils.egg-info/entry_points.txt +0 -0
  34. {perun_proxy_utils-3.1.1 → perun_proxy_utils-3.2.0}/perun_proxy_utils.egg-info/requires.txt +9 -9
  35. {perun_proxy_utils-3.1.1 → perun_proxy_utils-3.2.0}/perun_proxy_utils.egg-info/top_level.txt +0 -0
  36. {perun_proxy_utils-3.1.1 → perun_proxy_utils-3.2.0}/setup.py +0 -0
@@ -1,32 +1,14 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: perun_proxy_utils
3
- Version: 3.1.1
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~=7.1
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
 
@@ -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
2
  Name: perun-proxy-utils
3
- Version: 3.1.1
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~=7.1
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
 
@@ -1,5 +1,5 @@
1
1
  [metadata]
2
- version = 3.1.1
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,21 +1,21 @@
1
- setuptools
2
- pymongo~=4.3
1
+ PyYAML<7.0,>=5.4
3
2
  asyncssh~=2.13
4
- docker~=7.1
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