show-certs.sh doesn't show oidc client's oidc-auth-apps-certificate

Bug #2038585 reported by ayyappa
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
Low
ayyappa

Bug Description

Brief Description
-----------------
show-certs.sh doesn't show oidc client's oidc-auth-apps-certificate

Severity
------
Minor - this is a minor inconsistency, but is causing user confusion

Steps to Reproduce
-------------------
1)apply oidc app
2)run "show-certs.sh" script

sysadmin@controller-0:~$ sudo show-certs.sh | grep -A 9 "oidc-auth-apps-certificate"
grep: (standard input): binary file matches
grep: (standard input): binary file matches
grep: (standard input): binary file matches
grep: (standard input): binary file matches

Expected Behavior
----------------

the script should show the oidc certificate in the output

Actual Behavior
--------------
the script is failing to show the oidc cert in the output

Reproducibility
-------------------
100% Reproducible

System Configuration
------------------

all lab types

Load info (eg: 2022-03-10_20-00-07)

stx.8.0

Branch/Pull Time/Commit
-----------------------
NA.

Last Pass
--------
N/A Day one config

Timestamp/Logs
------------
NA.

Alarms
------
N/A

Test Activity
--------------
Debugging Request

Workaround
-----------
Not required.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to utilities (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/starlingx/utilities/+/897498

Changed in starlingx:
status: New → In Progress
Ghada Khalil (gkhalil)
Changed in starlingx:
importance: Undecided → Low
assignee: nobody → ayyappa (mantri425)
tags: added: stx.9.0 stx.security
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to utilities (master)

Reviewed: https://review.opendev.org/c/starlingx/utilities/+/897498
Committed: https://opendev.org/starlingx/utilities/commit/be3aa5503d635670627b3e98f50554c656cc9ecd
Submitter: "Zuul (22348)"
Branch: master

commit be3aa5503d635670627b3e98f50554c656cc9ecd
Author: amantri <email address hidden>
Date: Thu Oct 5 18:16:02 2023 -0400

    Fix to show the oidc certificates in the output of
    show-certs.sh script

    When oidc is applied, the show-certs script not showing
    the app certificates because the grep is failing, this fix
    addresses this issue by using '-a' option with grep to handle
    binary as text

    Test Cases:
    PASS: Apply oidc app and run the show-certs.sh script, verify
          oidc certificate is shown in the output

    Closes-Bug: 2038585

    Change-Id: Iea612b4d3dfe1aa24f09f8154720531f41a381ef
    Signed-off-by: amantri <email address hidden>

Changed in starlingx:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.