Bug 2065166 - GCP - Less privileged service accounts are created with Service Account User role
Summary: GCP - Less privileged service accounts are created with Service Account User ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Image Registry
Version: 4.6
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.13.0
Assignee: Oleg Bulatov
QA Contact: XiuJuan Wang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-03-17 12:45 UTC by alegros
Modified: 2023-05-17 22:47 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-05-17 22:46:32 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
GCP SA console (42.87 KB, image/jpeg)
2022-03-17 12:45 UTC, alegros
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github openshift cluster-image-registry-operator pull 824 0 None open Bug 2065166: Remove roles/iam.serviceAccountUser role 2022-12-12 16:52:45 UTC
Red Hat Product Errata RHSA-2023:1326 0 None None None 2023-05-17 22:47:39 UTC

Description alegros 2022-03-17 12:45:24 UTC
Created attachment 1866436 [details]
GCP SA console

Description of problem:

Customer wants to have some explanation about the following fact. The security team is highly concerned about this and is waiting for answers for a year now.

"On GCP, the installer Service Account has a lot of permissions, as requested in the documentation. This Service Account create other service accounts for the registry, the machine operator, the masters, etc.

Why all of these less privileged service accounts are created with "Service Account User role"? This permission allows for privilege escalation (allowing them to use the highly privileged installer account) and defeat the purpose of having dedicated service accounts for privilege separation."

In this BZ I am focusing on the image registry operator. Here you can see the hard-coded role assigned to the service account: https://github.com/openshift/cluster-image-registry-operator/blob/release-4.6/manifests/01-registry-credentials-request-gcs.yaml#L17

Could you please explain why is Service Account User role necessary ? Is it expected ?

I attach a screenshot of the service accounts in customer GCP console.

Regards,

Comment 6 errata-xmlrpc 2023-05-17 22:46:32 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 (Important: OpenShift Container Platform 4.13.0 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-2023:1326


Note You need to log in before you can comment on or make changes to this bug.