Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-40892

ipa-server-install: token_password_file read in kra.install_check after calling hsm_validator in ca.install_check

    • ipa-4.12.1-3.el10
    • None
    • Moderate
    • 5
    • sst_idm_ipa
    • ssg_idm
    • 22
    • 24
    • 3
    • QE ack, Dev ack
    • False
    • Hide

      None

      Show
      None
    • No
    • 2024-Q2-Bravo-S6, 2024-Q3-Bravo-S1, 2024-Q3-Bravo-S2, 2024-Q3-Bravo-S3, 2024-Q3-Bravo-S4
    • Unspecified Release Note Type - Unknown
    • None

      Cloned from upstream issue https://pagure.io/freeipa/issue/9603

      ipa-server-install: token_password_file read in kra.install_check after calling hsm_validator in ca.install_check

      https://github.com/freeipa/freeipa/blob/master/ipaserver/install/ca.py#L366

                  hsm_validator(
                      options.token_name, options.token_library_path,
                      options.token_password)

      https://github.com/freeipa/freeipa/blob/master/ipaserver/install/ca.py#L416 (only if replica_config is not None)

              if options.token_password_file:
                  with open(options.token_password_file, "r") as fd:
                      options.token_password = fd.readline().strip()

      https://github.com/freeipa/freeipa/blob/master/ipaserver/install/kra.py#L61

      if options.token_password_file:
          with open(options.token_password_file, "r") as fd:
              options.token_password = fd.readline().strip()

      https:/https://github.com/freeipa/freeipa/blob/master/ipaserver/install/server/install.py#L733

      if setup_ca:
          ca.install_check(False, None, options)
      if options.setup_kra:
          kra.install_check(api, None, options)

       

            rhn-engineering-rcrit Rob Crittenden
            rhn-engineering-rcrit Rob Crittenden
            Florence Renaud Florence Renaud
            Rizwan Shaikh Rizwan Shaikh
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: