Bug 1823934 - Make default SCC manifests create-only by CVO
Summary: Make default SCC manifests create-only by CVO
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: apiserver-auth
Version: 4.4
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
: 4.4.0
Assignee: Abu Kashem
QA Contact: scheng
Depends On: 1823933
TreeView+ depends on / blocked
Reported: 2020-04-14 19:52 UTC by Abu Kashem
Modified: 2020-05-04 11:49 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1823933
Last Closed: 2020-05-04 11:49:19 UTC
Target Upstream Version:

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Github openshift cluster-kube-apiserver-operator pull 835 0 None closed [release-4.4] Bug 1823934: Make default SCCs create-only by CVO 2020-10-29 07:44:29 UTC
Github openshift cluster-kube-apiserver-operator pull 836 0 None closed Bug 1823934: Make default SCCs create-only by CVO 2020-10-29 07:44:44 UTC
Red Hat Product Errata RHBA-2020:0581 0 None None None 2020-05-04 11:49:41 UTC

Description Abu Kashem 2020-04-14 19:52:34 UTC
+++ This bug was initially created as a clone of Bug #1823933 +++

Description of problem:
In OpenShift 4.4, the default SCCs are managed by CVO. This means any changes to it are stomped by CVO.

We have customers who change the default SCCs for their workload. when a cluster upgrades from 4.3 -> 4.4, user's changes to the default SCCs will be stomped by CVO and customer workload will face outages consequently.

Version-Release number of selected component (if applicable):
OpenShift 4.4

How reproducible:

Steps to Reproduce:
1. Install OpenShift 4.3

2. Change the default SCC 
    oc patch scc privileged --type json -p '[{"op": "add", "path": "/users/-", "value": "kubeadmin"}]'
    oc patch scc anyuid --type json -p '[{"op": "add", "path": "/users/-", "value": "kubeadmin"}]'

3. do a 4.3 -> 4.4 upgrade

Actual results:
Changes to the default SCCs will be lost as a result of the upgrade.

Expected results:
The upgrade should retain the changes made by the user

Additional info:
- https://bugzilla.redhat.com/show_bug.cgi?id=1823921

Comment 1 Abu Kashem 2020-04-16 16:47:48 UTC
Waiting for the PR in master https://github.com/openshift/cluster-kube-apiserver-operator/pull/831 to merge. Then it will be cherry-picked into 4.4.

Comment 7 errata-xmlrpc 2020-05-04 11:49:19 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, and where to find the updated
files, follow the link below.

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


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