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

SOS report plugin option 'userconfs' set to 'off' for ssh doesn't work.

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Normal Normal
    • None
    • rhel-8.10
    • sos
    • No
    • Moderate
    • rhel-sst-cee-supportability
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • Yes
    • None
    • Bug Fix
    • Hide
      .per-user SSH configuration is now disabled by default

      Previously, the `ssh` plugin in `sos` collected detailed information from all local user `.ssh` directories by default. This resulted in significantly prolonged execution time, especially in environments with a large number of local users. With this update, the `ssh` plugin no longer collects per-user `.ssh` configuration data by default. To capture user configurations, enable it explicitly by setting `ssh.userconfs=on`.
      Show
      .per-user SSH configuration is now disabled by default Previously, the `ssh` plugin in `sos` collected detailed information from all local user `.ssh` directories by default. This resulted in significantly prolonged execution time, especially in environments with a large number of local users. With this update, the `ssh` plugin no longer collects per-user `.ssh` configuration data by default. To capture user configurations, enable it explicitly by setting `ssh.userconfs=on`.
    • Done
    • Done
    • Done
    • Unspecified
    • x86_64
    • None

      What were you trying to do that didn't work?

      I want to run sosreport without collecting user .ssh config using plugin option as follows:  sos report -k ssh.userconfs=off

      What is the impact of this issue to you?

      A customer with almost 200 local users faces long time to collect sos report. 32 mins with ssh plugin. Out of this time almost 30 minutes are taken only by ssh plugin to pack and then commands `s -alZ /home/<>/.ssh` . The plugin option '-k ssh.userconfs=off'  would have allowed the plugin ssh to finish quicker. 

      Please provide the package NVR for which the bug is seen:

      sos-4.8.2-1.el8_10.noarch

      How reproducible is this bug?:

      100%

      Steps to reproduce

      1. Run command  `sos report -k ssh.userconfs=off`
      2. Check the sos_logs/sos.log file.

      Expected results

      The option userconfs set to off should cause the sos report ssh plugin to not collect the output of `ls -alZ /home/<user>/.ssh`.

      Actual results

      We see the `ls_-alZ_/home/<user>/.ssh` collected, completely ignoring the used option

              rhn-support-pmoravec Pavel Moravec
              rhn-support-plawate Pranav Lawate
              se cee-supportability se cee-supportability
              Daniel Zalezak Daniel Zalezak
              Gabriela Necasova Gabriela Necasova
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

                Created:
                Updated:
                Resolved: