Uploaded image for project: 'Insights Experiences'
  1. Insights Experiences
  2. HMS-4870

iqe-provisioning: failures in pubkey tests

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • None
    • None
    • Provisioning
    • None
    • EnVision Sprint 63
    • 3
    • None

      We are testing using unsecure keys (not a big issue in tests), but the rsa library is now complaining about it

       

      See https://ci.int.devshift.net/job/RHEnVision-provisioning-backend-pr-check/2205/testReport/junit/tests/test_pubkeys/test_create_pubkeys_512_/

      ```

      request = <SubRequest 'pubkey_data' for <Function test_create_pubkeys[512]>> application = <iqe.base.application.Application object at 0x7f3e63ee67d0> @pytest.fixture(scope="function") def pubkey_data(request, application): > yield from pubkey_create(request, application) /iqe_venv/lib/python3.11/site-packages/iqe_provisioning/fixtures/helpers.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /iqe_venv/lib/python3.11/site-packages/iqe_provisioning/fixtures/helpers.py:30: in pubkey_create key = rsa.generate_private_key( /iqe_venv/lib64/python3.11/site-packages/cryptography/hazmat/primitives/asymmetric/rsa.py:142: in generate_private_key _verify_rsa_parameters(public_exponent, key_size) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ public_exponent = 65537, key_size = 512 def _verify_rsa_parameters(public_exponent: int, key_size: int) -> None: if public_exponent not in (3, 65537): raise ValueError( "public_exponent must be either 3 (for legacy compatibility) or " "65537. Almost everyone should choose 65537 here!" ) if key_size < 1024: > raise ValueError("key_size must be at least 1024-bits.") E ValueError: key_size must be at least 1024-bits.

      /iqe_venv/lib64/python3.11/site-packages/cryptography/hazmat/primitives/asymmetric/rsa.py:154: ValueError

      ```

              oezr@redhat.com Ondrej Ezr
              oezr@redhat.com Ondrej Ezr
              None
              None
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: