SCAutolib 3.4.0__tar.gz → 3.4.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.

Potentially problematic release.


This version of SCAutolib might be problematic. Click here for more details.

Files changed (46) hide show
  1. {scautolib-3.4.0/SCAutolib.egg-info → scautolib-3.4.1}/PKG-INFO +1 -1
  2. {scautolib-3.4.0 → scautolib-3.4.1}/SCAutolib/controller.py +3 -3
  3. {scautolib-3.4.0 → scautolib-3.4.1}/SCAutolib/models/CA.py +3 -17
  4. {scautolib-3.4.0 → scautolib-3.4.1/SCAutolib.egg-info}/PKG-INFO +1 -1
  5. {scautolib-3.4.0 → scautolib-3.4.1}/setup.py +1 -1
  6. {scautolib-3.4.0 → scautolib-3.4.1}/LICENSE +0 -0
  7. {scautolib-3.4.0 → scautolib-3.4.1}/MANIFEST.in +0 -0
  8. {scautolib-3.4.0 → scautolib-3.4.1}/README.md +0 -0
  9. {scautolib-3.4.0 → scautolib-3.4.1}/SCAutolib/__init__.py +0 -0
  10. {scautolib-3.4.0 → scautolib-3.4.1}/SCAutolib/cli_commands.py +0 -0
  11. {scautolib-3.4.0 → scautolib-3.4.1}/SCAutolib/enums.py +0 -0
  12. {scautolib-3.4.0 → scautolib-3.4.1}/SCAutolib/exceptions.py +0 -0
  13. {scautolib-3.4.0 → scautolib-3.4.1}/SCAutolib/isDistro.py +0 -0
  14. {scautolib-3.4.0 → scautolib-3.4.1}/SCAutolib/models/__init__.py +0 -0
  15. {scautolib-3.4.0 → scautolib-3.4.1}/SCAutolib/models/authselect.py +0 -0
  16. {scautolib-3.4.0 → scautolib-3.4.1}/SCAutolib/models/card.py +0 -0
  17. {scautolib-3.4.0 → scautolib-3.4.1}/SCAutolib/models/file.py +0 -0
  18. {scautolib-3.4.0 → scautolib-3.4.1}/SCAutolib/models/gui.py +0 -0
  19. {scautolib-3.4.0 → scautolib-3.4.1}/SCAutolib/models/log.py +0 -0
  20. {scautolib-3.4.0 → scautolib-3.4.1}/SCAutolib/models/user.py +0 -0
  21. {scautolib-3.4.0 → scautolib-3.4.1}/SCAutolib/templates/ca.cnf +0 -0
  22. {scautolib-3.4.0 → scautolib-3.4.1}/SCAutolib/templates/gnome_disable_welcome +0 -0
  23. {scautolib-3.4.0 → scautolib-3.4.1}/SCAutolib/templates/softhsm2.conf +0 -0
  24. {scautolib-3.4.0 → scautolib-3.4.1}/SCAutolib/templates/sssd.conf-10 +0 -0
  25. {scautolib-3.4.0 → scautolib-3.4.1}/SCAutolib/templates/sssd.conf-8or9 +0 -0
  26. {scautolib-3.4.0 → scautolib-3.4.1}/SCAutolib/templates/user.cnf +0 -0
  27. {scautolib-3.4.0 → scautolib-3.4.1}/SCAutolib/templates/virt_cacard.service +0 -0
  28. {scautolib-3.4.0 → scautolib-3.4.1}/SCAutolib/templates/virtcacard.cil +0 -0
  29. {scautolib-3.4.0 → scautolib-3.4.1}/SCAutolib/utils.py +0 -0
  30. {scautolib-3.4.0 → scautolib-3.4.1}/SCAutolib.egg-info/SOURCES.txt +0 -0
  31. {scautolib-3.4.0 → scautolib-3.4.1}/SCAutolib.egg-info/dependency_links.txt +0 -0
  32. {scautolib-3.4.0 → scautolib-3.4.1}/SCAutolib.egg-info/entry_points.txt +0 -0
  33. {scautolib-3.4.0 → scautolib-3.4.1}/SCAutolib.egg-info/requires.txt +0 -0
  34. {scautolib-3.4.0 → scautolib-3.4.1}/SCAutolib.egg-info/top_level.txt +0 -0
  35. {scautolib-3.4.0 → scautolib-3.4.1}/requirements.txt +0 -0
  36. {scautolib-3.4.0 → scautolib-3.4.1}/setup.cfg +0 -0
  37. {scautolib-3.4.0 → scautolib-3.4.1}/test/test_ca.py +0 -0
  38. {scautolib-3.4.0 → scautolib-3.4.1}/test/test_card.py +0 -0
  39. {scautolib-3.4.0 → scautolib-3.4.1}/test/test_cli.py +0 -0
  40. {scautolib-3.4.0 → scautolib-3.4.1}/test/test_controller.py +0 -0
  41. {scautolib-3.4.0 → scautolib-3.4.1}/test/test_file.py +0 -0
  42. {scautolib-3.4.0 → scautolib-3.4.1}/test/test_openssl_conf.py +0 -0
  43. {scautolib-3.4.0 → scautolib-3.4.1}/test/test_sssd_conf.py +0 -0
  44. {scautolib-3.4.0 → scautolib-3.4.1}/test/test_user.py +0 -0
  45. {scautolib-3.4.0 → scautolib-3.4.1}/test/test_utils.py +0 -0
  46. {scautolib-3.4.0 → scautolib-3.4.1}/tox.ini +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: SCAutolib
3
- Version: 3.4.0
3
+ Version: 3.4.1
4
4
  Summary: Python library for automation tests of smart cards using virtualization.
5
5
  Home-page: https://github.com/redhat-qe-security/SCAutolib
6
6
  Author: Pavel Yadlouski
@@ -163,7 +163,7 @@ class Controller:
163
163
  run("dnf -y copr enable jjelen/vsmartcard{0}".format(extra_args))
164
164
 
165
165
  # Add IPA packages if needed
166
- if any([u["user_type"] != UserType.local
166
+ if any([u["user_type"] == UserType.ipa
167
167
  for u in self.lib_conf["users"]]):
168
168
  packages += self._general_steps_for_ipa()
169
169
 
@@ -563,9 +563,9 @@ class Controller:
563
563
  logger.debug("idm:DL1 module is installed")
564
564
 
565
565
  if isDistro('fedora'):
566
- return ["freeipa-client"]
566
+ return ["e2fsprogs", "freeipa-client"]
567
567
  else:
568
- return ["ipa-client"]
568
+ return ["e2fsprogs", "ipa-client"]
569
569
 
570
570
  def get_user_dict(self, name):
571
571
  """
@@ -9,7 +9,7 @@ import json
9
9
  import os
10
10
  import python_freeipa
11
11
  from cryptography import x509
12
- from hashlib import md5
12
+ from hashlib import sha256
13
13
  from pathlib import Path, PosixPath
14
14
  from python_freeipa import exceptions
15
15
  from python_freeipa.client_meta import ClientMeta
@@ -578,8 +578,6 @@ class IPAServerCA(BaseCA):
578
578
  f.write(cnt)
579
579
  logger.info(
580
580
  "IPA server is added to /etc/resolv.conf as first nameserver")
581
- run("chattr -i /etc/resolv.conf")
582
- logger.info("File /etc/resolv.conf is blocked for editing")
583
581
 
584
582
  with open("/etc/resolv.conf", "r") as f:
585
583
  logger.debug(f"New resolv.conf\n{f.read()}")
@@ -608,18 +606,6 @@ class IPAServerCA(BaseCA):
608
606
  from invoke import Responder
609
607
  from fabric.connection import Connection
610
608
 
611
- class __PKeyChild(paramiko.PKey):
612
- """This child class is need to fix SSH connection with MD5 algorithm
613
- in FIPS mode
614
-
615
- This is just workaround until PR in paramiko would be accepted
616
- https://github.com/paramiko/paramiko/issues/396. After this PR is
617
- merged, delete this class
618
- """
619
-
620
- def get_fingerprint_improved(self):
621
- return md5(self.asbytes(), usedforsecurity=False).digest()
622
-
623
609
  kinitpass = Responder(
624
610
  pattern=f"Password for admin@{self._ipa_server_realm}: ",
625
611
  response=f"{self._ipa_server_admin_passwd}\n")
@@ -628,11 +614,11 @@ class IPAServerCA(BaseCA):
628
614
  with Connection(self._ipa_server_ip, user="root",
629
615
  connect_kwargs={
630
616
  "password": self._ipa_server_root_passwd}) as c:
631
- # Delete this block when PR in paramiko will be accepted
617
+ # TODO Delete this block when PR in paramiko will be accepted
632
618
  # https://github.com/paramiko/paramiko/issues/396
633
619
  #### noqa:E266
634
620
  paramiko.PKey.get_fingerprint = \
635
- self.__PKeyChild.get_fingerprint_improved
621
+ lambda x: sha256(x.asbytes()).digest()
636
622
  c.client = paramiko.SSHClient()
637
623
  c.client.set_missing_host_key_policy(paramiko.AutoAddPolicy())
638
624
  #### noqa:E266
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: SCAutolib
3
- Version: 3.4.0
3
+ Version: 3.4.1
4
4
  Summary: Python library for automation tests of smart cards using virtualization.
5
5
  Home-page: https://github.com/redhat-qe-security/SCAutolib
6
6
  Author: Pavel Yadlouski
@@ -24,7 +24,7 @@ graphical_reqs = [
24
24
 
25
25
  setup(
26
26
  name="SCAutolib",
27
- version="3.4.0",
27
+ version="3.4.1",
28
28
  description=description,
29
29
  long_description=long_description,
30
30
  long_description_content_type='text/markdown',
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes