Skip to content

Commit d81c551

Browse files
authored
Merge pull request #92357 from mburke5678/mco-manage-ca-cert
OSDOCS:13709 Clarify any references to root-ca/Manage the MCS ignition-ca cert
2 parents 36911bb + dd936a4 commit d81c551

File tree

1 file changed

+19
-5
lines changed

1 file changed

+19
-5
lines changed

security/certificate_types_descriptions/machine-config-operator-certificates.adoc

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@ This certificate authority is used to secure connections from nodes to Machine C
1212

1313
There are two certificates:
1414

15-
* A self-signed CA, the MCS CA
16-
* A derived certificate, the MCS cert
15+
. A self-signed CA, the `machine-config-server-ca` config map (MCS CA)
16+
. A derived certificate, the `machine-config-server-tls` secret (MCS cert)
1717

18+
[id="cert-types-machine-config-operator-certificates-details"]
1819
=== Provisioning details
1920

2021
{product-title} installations that use {op-system-first} are installed by using Ignition. This process is split into two parts:
@@ -24,33 +25,46 @@ There are two certificates:
2425

2526
include::snippets/mcs-endpoint-limitation.adoc[]
2627

28+
[role="_additional-resources"]
2729
.Additional resources
2830

2931
* xref:../../machine_configuration/index.adoc#machine-config-operator_machine-config-overview[Machine Config Operator].
3032

3133
* xref:../../networking/ovn_kubernetes_network_provider/about-ovn-kubernetes.adoc#about-ovn-kubernetes[About the OVN-Kubernetes network plugin]
3234

35+
[id="cert-types-machine-config-operator-certificates-trust"]
3336
=== Provisioning chain of trust
3437

3538
The MCS CA is injected into the Ignition configuration under the `security.tls.certificateAuthorities` configuration field. The MCS then provides the complete configuration using the MCS cert presented by the web server.
3639

3740
The client validates that the MCS cert presented by the server has a chain of trust to an authority it recognizes. In this case, the MCS CA is that authority, and it signs the MCS cert. This ensures that the client is accessing the correct server. The client in this case is Ignition running on a machine in the initramfs.
3841

42+
[id="cert-types-machine-config-operator-certificates-materials"]
3943
=== Key material inside a cluster
4044

41-
The MCS CA appears in the cluster as a config map in the `kube-system` namespace, `root-ca` object, with `ca.crt` key. The private key is not stored in the cluster and is discarded after the installation completes.
45+
The following objects are stored in the `openshift-machine-config-operator` namespace:
4246

43-
The MCS cert appears in the cluster as a secret in the `openshift-machine-config-operator` namespace and `machine-config-server-tls` object with the `tls.crt` and `tls.key` keys.
47+
* The MCS CA bundle is stored as the `machine-config-server-ca` config map. The MCS CA bundle stores all valid CAs for the `MachineConfigServer` TLS certificate.
48+
* The MCS CA signing key is stored as the `machine-config-server-ca` secret. The MCS CA signing key is used to sign the `MachineConfigServer` TLS certificate.
49+
* The MCS cert is stored as the `machine-config-server-tls` secret, which contains the `MachineConfigServer` TLS certificate and key.
4450

51+
The `machine-config-server-ca` config map is used in the following ways:
52+
53+
* The certificate controller updates the `*-user-data` secrets in the `openshift-machine-api` namespace any time the `machine-config-server-ca` configmap is updated.
54+
* The Machine Config Operator renders the `master-user-data-managed` and `worker-user-data-managed` secrets from the `machine-config-server-ca` configmap.
55+
56+
[id="cert-types-machine-config-operator-certificates-mgmt"]
4557
== Management
4658

4759
At this time, directly modifying either of these certificates is not supported.
4860

61+
[id="cert-types-machine-config-operator-certificates-exp"]
4962
== Expiration
50-
The MCS CA is valid for 10 years.
63+
The MCS CA and MCS cert are valid for 10 years and are automatically rotated by the MCO at 8 years.
5164

5265
The issued serving certificates are valid for 10 years.
5366

67+
[id="cert-types-machine-config-operator-certificates-custom"]
5468
== Customization
5569

5670
You cannot customize the Machine Config Operator certificates.

0 commit comments

Comments
 (0)