Bug 1611823

Summary: Service Serving Certificate Secrets should be recreated when serviceServingCert.signer.certFile is recreated or replaced.
Product: OpenShift Container Platform Reporter: Ryan Howe <rhowe>
Component: apiserver-authAssignee: Matt Rogers <mrogers>
Status: CLOSED DUPLICATE QA Contact: Chuan Yu <chuyu>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.9.0CC: aos-bugs, evb, jialiu, jokerman, mmccomas, nagrawal, xtian
Target Milestone: ---   
Target Release: 4.1.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: 2019-03-07 14:54:29 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 Ryan Howe 2018-08-02 20:15:44 UTC
Description of problem:

When redeploying certs in a cluster, if the service-signer.crt is recreated due to expiring or other reasons, all secrets created based on this are no longer trusted.

Steps to Reproduce:
1.oc adm ca create-signer-cert --cert="/etc/origin/master/service-signer.crt" --key="/etc/origin/master/service-signer.key" --name="/etc/origin/master/openshift-service-serving-signer"   --serial=/etc/origin/master/service-signer.serial.txt --overwrite


Actual results:
OpenShift no longer trusts these certs. 

Expected results:
Either some controller checking and recreating secrets created from this or a `oc adm` command that can be called that would regenerate the secrets. 


Additional info:

Similar bugs via docs or installer that resolve this by manually asking user to recreate all secrets. 

  https://bugzilla.redhat.com/show_bug.cgi?id=1550250
  https://bugzilla.redhat.com/show_bug.cgi?id=1592303

Comment 1 Neelesh Agrawal 2019-03-07 14:54:29 UTC

*** This bug has been marked as a duplicate of bug 1683061 ***