Uploaded image for project: 'RHEL Conversions'
  1. RHEL Conversions
  2. RHELC-1525 Passing username/password using CLI with org/key in config is broken
  3. RHELC-1543

passing username/password using CLI with org/key in config is broken - Integration tests

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Done-Errata
    • Icon: Minor Minor
    • 2.1.0
    • None
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • 1
    • Testable

      The parent issue RHELC-1525 has the label that triggered autocreation of this subtask to track the relative story point estimation for the integration test part of the issue.

      The parent issue description at the time of creation of this issue was:
      When user has org and/or activation key set in the C2R config file and calls the convert2rhel with --password and --username on command line then it fails exits with CRITICAL error:

      /usr/bin/convert2rhel -y --serverurl subscription.rhsm.stage.redhat.com --username ***** --password ***** --pool 2c9435a18dcbf599018e0db3afc547f3 --debug
      [2024-05-03T19:31:02+0000] DEBUG - Found username in /root/.convert2rhel.ini
      [2024-05-03T19:31:02+0000] DEBUG - Found password in /root/.convert2rhel.ini
      [2024-05-03T19:31:02+0000] DEBUG - Found activation_key in /root/.convert2rhel.ini
      [2024-05-03T19:31:02+0000] DEBUG - Found org in /root/.convert2rhel.ini
      WARNING - Passing the RHSM password or activation key through the --activationkey or --password options is insecure as it leaks the values through the list of running processes. We recommend using the safer --config-file option instead.
      WARNING - You have passed the RHSM username through both the command line and the configuration file. We're going to use the command line values.
      WARNING - You have passed either the RHSM password or activation key through both the command line and the configuration file. We're going to use the command line values.
      CRITICAL - Either the --org or the --activationkey option is missing. You can't use one without the other.
      Either the --org or the --activationkey option is missing. You can't use one without the other.
      

              rolivier@redhat.com Rodolfo Olivieri
              rhel-process-autobot RHEL Jira bot
              Martin Litwora
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: