Bug 1954696

Summary: [API-1009] apirequestcounts should indicate useragent
Product: OpenShift Container Platform Reporter: David Eads <deads>
Component: kube-apiserverAssignee: David Eads <deads>
Status: CLOSED ERRATA QA Contact: Xingxing Xia <xxia>
Severity: high Docs Contact:
Priority: high    
Version: 4.8CC: aos-bugs, kewang, mfojtik, xxia
Target Milestone: ---   
Target Release: 4.8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-07-27 23:04:34 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description David Eads 2021-04-28 15:40:32 UTC
useragent helps distinguish different containers using the same credentials in a pod.

Comment 2 Xingxing Xia 2021-05-06 06:32:46 UTC
Tested in 4.8.0-0.nightly-2021-05-06-003426, there are not only userName, but also userAgent:
oc get apirequestcount -o yaml | grep -A1 userAgent

          userAgent: oauth-server/v0.0.0
          username: system:serviceaccount:openshift-authentication:oauth-openshift
--
          userAgent: oc/4.8.0
          username: testuser-41
--
          userAgent: olm/v0.0.0
          username: system:serviceaccount:openshift-operator-lifecycle-manager:olm-operator-serviceaccount

Comment 5 errata-xmlrpc 2021-07-27 23:04:34 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: OpenShift Container Platform 4.8.2 bug fix and security update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2021:2438