A certificate issuing system and related equipment

By using trusted identity keys and encryption technology in Kubernetes clusters, the problems of cumbersome certificate signing processes and low security are solved, higher identity authentication and certificate issuance security is achieved, and third-party masquerading and certificate leakage are prevented.

CN115473648BActive Publication Date: 2024-09-20XFUSION DIGITAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210940260.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-05
Publication Date
2024-09-20
Estimated Expiration
2042-08-05

AI Technical Summary

Technical Problem

After the Kubernetes cluster uses TLS authentication, the kubelet component of the working node needs to communicate with the control node through a valid certificate issued by the CA of kube-apiserver, resulting in a cumbersome certificate signing process and the risk of low security. Third parties can use leaked users The information is disguised as a normal node to join the cluster and obtain sensitive information.

Method used

Use trusted identity keys for identity authentication instead of fixed Tokens. Trusted units encrypt identity information, generate trusted identity keys, and carry login credentials in certificate signing requests for verification, improving the security of certificate issuance.

Benefits of technology

It enhances the security of identity authentication and certificate issuance, prevents illegal node masquerade and certificate leakage, and improves the overall security of the Kubernetes cluster.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115473648B
    Figure CN115473648B
Patent Text Reader

Abstract

A certificate issuance system includes a first computing device and a second computing device, the first computing device includes a trusted unit for storing information for generating a trusted identity key, and the second computing device is used to authenticate the first computing device and issue a certificate. Specifically, the first computing device sends an identity authentication request to the second computing device, the request carries a trusted identity key; the second computing device performs authentication according to the trusted identity key carried in the request; if the authentication is successful, the second computing device sends a login credential to the first computing device; thereafter, the first computing device can apply for a certificate from the second computing device through the login credential. In an embodiment of the present application, the first computing device can implement trusted identity authentication based on a trusted unit through a trusted identity key, rather than using a fixed token for identity authentication, thereby improving the security of identity authentication, and further improving the security of certificate issuance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a certificate issuing system and related equipment. Background Art

[0002] Kubernetes is an open source platform for automated deployment, expansion, and operation and maintenance of container clusters. It has functions such as disaster recovery, horizontal expansion (elastic scaling), service discovery, load balancing, version rollback, storage orchestration, etc., and is widely used in the construction and management of computer clusters.

[0003] The Kubernetes cluster mainly includes control nodes and worker nodes. When the cluster has enabled transport layer security (TLS) authentication, the kubelet component of each worker node must use a valid certificate to communicate with the kube-apiserver in the control node. The valid certificate is issued by the kube-controller-manager in the control node.

[0004] In order to improve the efficiency of certificate signing, Kubernetes launched the TLS bootstrapping function to automatically sign certificates for kubelet. The TLS bootstrapping function requires a low-privilege user to be preset for the Kubernetes cluster (kube-apiserver and each worker node). After that, the kubelet of the worker node can use the token of the low-privilege user for identity authentication and apply for a certificate from the kube-apiserver. In this case, if the user information (the token of the preset user, etc.) is leaked, a third party can also apply for a certificate from the kube-apiserver through this user information, and then pretend to be a normal worker node to join the cluster, and then obtain sensitive information in the cluster, resulting in low security. Summary of the invention

[0005] The embodiments of the present application disclose a certificate issuance system and related equipment for improving the security of identity authentication and the security of certificate issuance.

[0006] The first aspect discloses a certificate issuance system, which may include a first computing device and a second computing device, wherein the first computing device includes a trusted unit for storing information for generating a trusted identity key; and the second computing device is used to authenticate the first computing device and issue a certificate. Specifically: the first computing device sends an identity authentication request to the second computing device; wherein the identity authentication request carries a trusted identity key; the identity authentication request is used to obtain a login credential; the second computing device authenticates the first computing device according to the trusted identity key carried in the identity authentication request; if the first computing device passes the authentication, the second computing device sends the login credential to the first computing device; the first computing device sends a certificate signing request to the second computing device; the certificate signing request carries the login credential; the certificate signing request is used to obtain a signing certificate; the second computing device verifies the first computing device according to the login credential carried in the certificate signing request; if the first computing device passes the authentication, the second computing device sends a signing certificate to the first computing device; and the first computing device receives the signing certificate.

[0007] In the embodiment of the present application, the first computing device can implement trusted identity authentication based on the trusted unit through the trusted identity key, instead of using a fixed token for identity authentication, thereby improving the security of identity authentication, and further improving the security of certificate issuance. In addition, the second computing device also verifies the first computing device based on the login credentials carried in the certificate signing request, so that the security of certificate issuance can be further improved.

[0008] It should be understood that the first computing device may be any working node in a computing cluster, and the second computing device may be any management and control node in a management and control plane of the computing cluster.

[0009] As a possible implementation, the information for generating a trusted identity key includes the identity information of the first computing device and the first public key of the first computing device; before the first computing device sends an identity authentication request to the second computing device, it includes: the first computing device uses the trusted unit to encrypt the identity information; the first device encapsulates the first public key and the encrypted identity information into a trusted identity key.

[0010] In the embodiment of the present application, since the security of the trusted unit is relatively high, a third party cannot directly obtain the information inside the trusted unit. Therefore, the first computing device encrypts the identity information through the trusted unit to ensure the security of the identity information, thereby ensuring the security of identity authentication. In addition, encapsulating the first public key and the encrypted identity information as a trusted identity key can shield the dependence of different types of trusted units, thereby supporting multiple types of trusted units and meeting the specified format requirements.

[0011] As a possible implementation, the trusted identity key also encapsulates a digital signature of the first computing device.

[0012] In the embodiment of the present application, by carrying the digital signature of the first computing device in the trusted identity key, the authenticity and integrity of the information can be verified, thereby improving the security of identity authentication.

[0013] As a possible implementation, the key for encrypting the identity information is the public key of the second computing device.

[0014] In the embodiment of the present application, since the private key of the second computing device has a higher security, it is possible to prevent a third party from decrypting and obtaining the identity information of the first computing device, and it is possible to prevent a third party from forging a digital signature.

[0015] As a possible implementation, the second computing device authenticates the first computing device based on the trusted identity key carried in the identity authentication request, including: the second computing device parses the trusted identity key to obtain encrypted identity information and a first public key of the first computing device; the second computing device decrypts the encrypted identity information; and the second computing device determines whether the decrypted identity information and the first public key match the preset identity information and the first public key.

[0016] In the embodiment of the present application, since the second computing device stores the information of the legitimate device in advance, after the second computing device parses and obtains the first public key and identity information of the first computing device, it can determine whether the first computing device is a legitimate device based on the first public key and identity information of the first computing device, thereby preventing illegal nodes from passing authentication.

[0017] As a possible implementation, after the second computing device receives the certificate signing request, the method further includes: the second computing device creates the signing request resource based on the signing request; in response to creating the signing request resource, the second computing device verifies the login credential.

[0018] In an embodiment of the present application, after the second computing device creates a signing request resource, it can trigger the verification of the login credentials, so that the first computing device can be verified through the login credentials, thus improving the security of certificate issuance.

[0019] As a possible implementation, if the first computing device passes the verification, the second computing device sends a signed certificate to the first computing device, including: if the first computing device passes the verification, the second computing device approves the certificate signing request resource; when the certificate signing request resource is approved, the second computing device modifies the status of the certificate signing request resource to passed; the second computing device signs the certificate signing request resource with a status of passed to generate a signed certificate; the second computing device sends the signed certificate to the first computing device.

[0020] As a possible implementation, after the first computing device receives the signature certificate, the method further includes: the first computing device storing the signature certificate in a memory of the first computing device.

[0021] In the embodiment of the present application, since the memory is a volatile memory, the data will be lost when the power is off. Therefore, the first computing node will not permanently save the signature certificate. In this way, the security of the certificate can be improved and the certificate leakage can be avoided.

[0022] The second aspect discloses a first computing device, which includes a trusted chip and a processor; the trusted chip is coupled to the processor; the trusted chip is used to store information for generating a trusted identity key; the processor is used to execute: sending an identity authentication request to a second computing device; wherein the identity authentication request carries the trusted identity key; the identity authentication request is used to obtain login credentials; receiving the login credentials from the second computing device; sending a certificate signing request to the second computing device; the certificate signing request carries the login credentials; the certificate signing request is used to obtain a signing certificate; receiving the signing certificate from the second computing device.

[0023] In an embodiment of the present application, the first computing device can implement trusted identity authentication based on a trusted chip through a trusted identity key, rather than using a fixed token for identity authentication, thereby improving the security of identity authentication and further improving the security of certificate issuance.

[0024] As a possible implementation, before the processor executes sending an identity authentication request to the second computing device, the processor is also used to execute: responding to a trusted identity key acquisition request; sending a key acquisition request to the trusted chip; receiving a key sent by the trusted chip; the key includes the encrypted identity information and the first public key; and encapsulating the key into a trusted identity key.

[0025] In the embodiment of the present application, since the security of the trusted unit is relatively high, a third party cannot directly obtain information inside the trusted chip. Therefore, the first computing device encrypts the identity information through the trusted chip to ensure the security of the identity information, thereby ensuring the security of identity authentication.

[0026] As a possible implementation, the trusted identity key also encapsulates a digital signature of the first computing device.

[0027] As a possible implementation, the key for encrypting the identity information is the public key of the second computing device.

[0028] As a possible implementation, after receiving the signed certificate from the second computing device, the processor is further configured to execute: storing the signed certificate in a memory of the first computing device.

[0029] In the embodiment of the present application, since the memory is a volatile memory, the data will be lost when the power is off. Therefore, the first computing node will not permanently save the signature certificate. In this way, the security of the certificate can be improved and the certificate leakage can be avoided.

[0030] As a possible implementation, the first computing device also includes a memory, which is coupled to the processor, and the memory stores a computer program or computer instructions. When the computer program or computer instructions are executed, the processor executes the steps described in any implementation of the second aspect.

[0031] A third aspect discloses a second computing device, which includes a processor. The processor is used to execute: receiving an identity authentication request from a first computing device, the identity authentication request carrying a trusted identity key; authenticating the first computing device according to the trusted identity key carried in the identity authentication request; if the first computing device passes the authentication, sending a login credential to the first computing device; receiving a certificate signing request from the first computing device, the login credential carried in the certificate signing request; verifying the first computing device according to the login credential carried in the certificate signing request; if the first computing device passes the authentication, sending a signing certificate to the first computing device.

[0032] As a possible implementation, the processor authenticates the first computing device based on the trusted identity key carried in the identity authentication request, including: parsing the trusted identity key to obtain encrypted identity information and a first public key of the first computing device; decrypting the encrypted identity information; and determining whether the decrypted identity information and the first public key match the preset identity information and the first public key.

[0033] As a possible implementation, after the processor receives the certificate signing request, the processor is further configured to execute: creating the signing request resource based on the signing request; and verifying the login credential in response to creating the signing request resource.

[0034] As a possible implementation, if the first computing device passes the verification, the processor sends a signed certificate to the first computing device, including: if the first computing device passes the verification, approving the certificate signing request resource; when the certificate signing request resource is approved, changing the status of the certificate signing request resource to passed; signing the certificate signing request resource with a status of passed to generate a signed certificate; and sending the signed certificate to the first computing device.

[0035] A fourth aspect discloses a computer-readable storage medium having a computer program or computer instructions stored thereon. When the computer program or computer instructions are executed, the steps disclosed in any of the above-mentioned embodiments are implemented.

[0036] A fifth aspect discloses a chip, comprising a processor for executing a program stored in a memory. When the program is executed, the chip executes the steps disclosed in any of the above embodiments.

[0037] As a possible implementation, the memory is located outside the chip.

[0038] A sixth aspect discloses a computer program product, which includes a computer program code. When the computer program code is executed, the steps disclosed in any of the above-mentioned embodiments are executed.

[0039] It is understandable that the computer-readable storage medium provided in the fourth aspect, the chip provided in the fifth aspect, and the computer program product provided in the sixth aspect can all be used to execute the steps disclosed in any possible implementation of any aspect of the present application. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding implementation, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0041] Figure 1 It is a schematic diagram of a system architecture disclosed in an embodiment of the present application;

[0042] Figure 2 It is a flow chart of a certificate issuance method disclosed in an embodiment of the present application;

[0043] Figure 3 It is a flowchart of another certificate issuance method disclosed in an embodiment of the present application;

[0044] Figure 4 It is a flowchart of another certificate issuance method disclosed in the embodiment of the present application;

[0045] Figure 5 It is a flowchart of another certificate issuance method disclosed in the embodiment of the present application;

[0046] Figure 6 is a structural schematic diagram of a first computing device disclosed in an embodiment of the present application;

[0047] Figure 7 is a structural schematic diagram of a second computing device disclosed in an embodiment of the present application;

[0048] Figure 8 It is a structural diagram of a certificate issuance system disclosed in an embodiment of the present application. DETAILED DESCRIPTION

[0049] The embodiment of the present invention discloses a certificate issuance system and related equipment. The technical solution in the embodiment of the present application will be described clearly and completely below in conjunction with the accompanying drawings in the embodiment of the present application.

[0050] In order to better understand the embodiments of the present application, the relevant terms and related technologies of the embodiments of the present application are described below.

[0051] Transport layer security (TLS) is a communication security protocol that aims to provide security and data integrity for Internet communications. TLS can carry application layer protocols such as hypertext transfer protocol (HTTP), simple mail transfer protocol (SMTP), and post office protocol version 3 (POP3). Among them, the application layer protocol can run transparently on the TLS protocol. When transmitting data, the TLS protocol will encrypt the transmitted data to ensure the privacy and integrity of the communication and prevent eavesdropping by third parties.

[0052] Digital signature is a technical means to verify the authenticity and integrity of a message. The sender can convert the information to be sent into a fixed-length, unique string (i.e., message digest) through a hash algorithm, and then encrypt the message digest with its own private key to obtain a ciphertext, which is the digital signature corresponding to the message. It should be understood that the process of generating a message digest is generally irreversible, that is, the plaintext cannot be inferred from the message digest.

[0053] A digital certificate is a digital file that is digitally signed by a certificate authority (CA) and contains a public key, public key owner information, issuer information, validity period, and some extended information. It can be used to verify the identity of network users in a computer network. A digital certificate can also be called a public key certificate, an electronic certificate, or simply a certificate.

[0054] Identity authentication refers to the process of confirming the identity of the sender or receiver of information on the Internet (i.e., identity verification).

[0055] Trusted computing (TC) is a technology promoted and developed by the Trusted Computing Group (TCG). Its essence is to ensure the integrity of the entire system and applications by enhancing the security of the existing device architecture. In terms of implementation, it is mainly to embed trusted modules in various devices such as desktops, laptops, and smart phones, and provide security assurance with trusted modules as the center. Trusted modules can establish a trusted computing environment through a series of means such as storage, measurement, and reporting, and realize trusted authentication, secure distribution, and key management.

[0056] Among them, common trusted modules mainly include trusted platform module (TPM), trusted cryptography module (TCM), trusted platform control module (TPCM), etc.

[0057] For TPM, each TPM will be injected with an endorsement key (EK) when it is produced. EK is unique for each TPM and cannot be changed or deleted. In addition, EK can include a private key (i.e., EK private key) and a public key (i.e., EK public key). The private key is stored inside the TPM and will not be exposed outside the TPM, which can ensure the security of the private key. The public key can be registered with a privacy certificate authority (PCA) to obtain an EK certificate signed by the PCA. Under normal circumstances, when a device with a TPM sends information, it needs to use the EK private key to sign it so that the integrity and authenticity of the information sent can be guaranteed. However, if the EK private key is used to sign each time a message is sent, after signing hundreds of thousands, millions or more times, a third party may decrypt the EK private key. Therefore, in order to further ensure the security of the EK private key, the TPM can dynamically generate an attestation identity key (AIK) based on the EK, and then the AIK can be used for signing. AIK can also include a private key and a public key. The public key can be registered with PCA to obtain an AIK certificate signed by PCA. A TPM can have one or more AIKs.

[0058] Container: A virtualization technology in computer operating systems. This technology allows processes to run in a relatively independent and isolated environment (including independent file systems, namespaces, resource views, etc.), thereby simplifying the software deployment process, enhancing software portability and security, and improving system resource utilization. Container technology is widely used in service-oriented scenarios in the field of cloud computing, and container development has gradually become a mainstream application development technology.

[0059] Kubernetes is an open source platform for automated deployment, expansion, and operation and maintenance of container clusters. It has functions such as disaster recovery, horizontal expansion (elastic scaling), service discovery, load balancing, version rollback, storage orchestration, etc., and is widely used in the construction and management of computer clusters.

[0060] Kubernetes cluster mainly includes control nodes and worker nodes. Worker nodes can include components such as node agent (i.e. kubelet) and network agent (i.e. kube-proxy), while control nodes can include components such as controller manager (i.e. kube-controller-manager) and application programming interface (API) server (i.e. kube-apiserver).

[0061] Kubernetes clusters have high security requirements. When TLS authentication is enabled in a Kubernetes cluster, the kubelet component of each working node must use a valid certificate issued by the CA used by the kube-apiserver (i.e., the certificate issued by the kube-controller-manager described below) to communicate with the kube-apiserver in the control node. Therefore, when creating a Kubernetes cluster or adding a new working node to the cluster, you need to sign a certificate for each working node separately. When there are many working nodes, it is very cumbersome to sign a certificate for each working node separately. In addition, when adding a new working node to the Kubernetes cluster, the cluster administrator may need to manually create a key pair (i.e., a pair of matching private and public keys) for the new node, and then sign the public key, configure kubelet parameters, and so on. The whole process involves a lot of manual operations.

[0062] In order to solve the above-mentioned cumbersome kubelet certificate configuration problem, Kubernetes launched the TLS bootstrapping function to realize automatic certificate signing for kubelet. The main idea of ​​TLS bootstrapping is to let kubelet first use a preset low-privilege user to connect to kube-apiserver, and then apply for a certificate from kube-apiserver. After that, the kubelet certificate is dynamically signed by kube-controller-manager. TLS bootstrapping greatly simplifies the installation and expansion of the cluster. The following is a brief introduction to it:

[0063] The control node stores a token.csv file, which is a user description file that stores information such as tokens, user names, user identity documents (UIDs), and user groups. The token.csv file is loaded when the kube-apiserver starts. At this time, it is equivalent to creating a preset low-privilege user kubelet-bootstrap in the cluster. At the same time, the working node stores the bootstarp.kubeconfig configuration file, which stores information such as the token of the preset user in token.csv and the CA certificate of the kube-apiserver.

[0064] When the kubelet in the working node starts, the kubelet can read the bootstarp.kubeconfig configuration file, and then use the information in the configuration file (the preset user's token, the kube-apiserver's CA, etc.) to authenticate the kube-apiserver. Specifically, the kubelet can communicate with the kube-apiserver through the kube-apiserver's CA certificate and send the preset user's token to the kube-apiserver for authentication.

[0065] When kube-apiserver passes the identity authentication of kubelet, kube-apiserver can return a login credential to kubelet. Accordingly, kubelet can receive the login credential from kube-apiserver. The login credential can be used by kubelet to apply for certificate signing from kube-apiserver.

[0066] Afterwards, kubelet can send a certificate signing request (CSR) to kube-apiserver with the login credentials. The CSR can include kubelet's public key and some other information (such as relevant information about the working node to which kubelet belongs). Correspondingly, kube-apiserver can receive the CSR from kubelet. Among them, the CSR request initiated by kubelet can be roughly divided into the following three types:

[0067] 1. nodeclient:kubelet, CSR request in the form of O=system:nodes and CN=system:node:(node ​​name).

[0068] 2. selfnodeclient: kubelet, updates the CSR request initiated by its own client certificate.

[0069] 3. selfnodeserver:kubelet, updates the CSR request initiated by its own server certificate.

[0070] After kube-apiserver receives the CSR from kubelet, it can create a CSR resource (object) for kubelet based on the CSR. However, by default, the preset user corresponding to the Token in bootstrap.kubeconfig does not have any permissions, including the permission to create CSR resources. Therefore, when using the role-based access control (RBAC) permission model, kube-apiserver can first create a ClusterRoleBinding to bind the preset user kubelet-bootstrap to the built-in ClusterRole system:node-bootstrapper (that is, grant the preset user kubelet-bootstrap the cluster role of system:node-bootstrapper). Since system:node-bootstrapper has the permission to create CSR resources, accordingly, after kube-apiserver receives the CSR from kubelet, it can create the corresponding CSR resource.

[0071] After kube-apiserver creates the CSR resource, the status of the CSR resource is empty and the CSR resource needs to be approved. There are two ways of approval: one is manual approval by the administrator through the kubectl command, and the other is automatic approval by kube-controller-manager. In the case of automatic approval by kube-controller-manager, corresponding permission configuration needs to be performed through the RBAC permission model so that kube-controller-manager can know which CSR objects can be approved. The following are three different permission configurations:

[0072] 1. Grant the cluster role of approve-node-client-csr to the user group system:bootstrappers. approve-node-client-csr has the permission to automatically approve nodeclient type CSR requests. The preset user kubelet-bootstrap belongs to the user group system:bootstrappers. Therefore, kube-controller-manager can automatically approve the CSR resource initiated by kubelet for the first signing of the client certificate.

[0073] 2. Grant the cluster role of approve-node-client-renewal-csr to the user group system:nodes. approve-node-client-renewal-csr has the permission to automatically approve CSR requests of type selfnodeclient. Therefore, kube-controller-manager can automatically approve CSR resources initiated by kubelet to update client certificates.

[0074] 3. Grant the cluster role of approve-node-server-renewal-csr to the user group system:nodes. approve-node-server-renewal-csr has the permission to automatically approve CSR requests of type selfnodeserver. Therefore, kube-controller-manager can automatically approve CSR resources (including first signing and renewal certificates) initiated by kubelet to sign server certificates (port 10250).

[0075] The above client certificate can be used for kubelet to communicate with kube-apiserver, and the server certificate can be used to publish its own private API service (port 10255).

[0076] The status of the CSR resource approved by the kube-controller-manager will be changed to approved (approved). After that, the kube-controller-manager can sign the CSR resource with the status of approved, obtain the signature certificate of the kubelet, and then send the signature certificate to the kubelet. Correspondingly, the kubelet can receive the signature certificate from the kube-controller-manager and save the signature certificate in plain text in the local directory. After that, the kubelet can communicate with the kube-apiserver through the signature certificate. Since the signature certificate is generally time-limited, when the signature certificate expires, the kubelet can re-initiate a CSR request to update the certificate to the kube-apiserver in order to obtain an updated signature certificate.

[0077] It can be seen that the TLS bootstrapping function requires a low-privilege user to be preset for the Kubernetes cluster (kube-apiserver and each worker node). After that, the kubelet can authenticate through the token of the low-privilege user and apply for a certificate from the kube-apiserver. In this case, if the user information (the token of the preset user, etc.) is leaked, a third party can also apply for a certificate from the kube-apiserver through this user information, and then pretend to be a normal worker node to join the cluster. After that, sensitive information in the cluster can be obtained, and even privilege escalation attacks can be carried out. In addition, the kubelet signing certificate on the worker node is saved in plain text in the local directory (that is, the local file system). Therefore, a third party can obtain the signing certificate and forge the signing certificate through some means, thereby attacking the cluster.

[0078] In order to solve the security problem of the above-mentioned cluster, in an embodiment of the present application, kubelet can implement trusted identity authentication through a trusted module in the working node instead of using a fixed token for identity authentication, thereby improving the security of identity authentication and further improving the security of certificate issuance.

[0079] In order to better understand the embodiments of the present application, the system architecture used in the embodiments of the present application is first described below.

[0080] See also Figure 1 , Figure 1 Schematic diagram of a system architecture disclosed in the embodiment of this application. Figure 1 As shown, the system architecture may include a control node and a worker node, and the control node and the worker node may communicate (i.e., exchange data). Figure 1 Only one working node and one control node are illustrated, but in the embodiments of the present application, multiple control nodes and multiple working nodes may be included, and multiple control nodes may form a control plane (CP), and in some embodiments, the control nodes in the CP may be divided into one or more master nodes and one or more slave nodes. The control node may communicate with multiple working nodes, and these control nodes and working nodes may form a computer cluster (such as a Kubernetes cluster).

[0081] The control node is mainly responsible for managing and maintaining the entire cluster, so that each node can work together. For example, the control node needs to schedule resources, detect and respond to cluster events so that the services running on the cluster can work normally.

[0082] A working node, also referred to as a node, is a carrier responsible for running user containers (i.e. various service processes) in a cluster.

[0083] Furthermore, the management and control nodes may include components such as kube-apiserver, kube-controller-manager, identity information management system, and trusted authentication service.

[0084] Trusted authentication service (TAS), also known as trusted authentication server, mainly provides authentication or verification services, including identity authentication of kubelet, verification of login credentials, etc. The trusted authentication server can include an identity information management system plug-in, which can be used to support the trusted authentication server to adapt to different identity information management systems so that data can be exchanged with different identity information management systems. For example, the plug-in can adapt to the TPM identity information management system (such as PCA).

[0085] The identity information management system can be a PCA or other trusted third party (such as a trusted third party based on TCM), which can issue relevant certificates for the client (such as TPM) and manage the issued certificates, including the storage, update and cancellation of client certificates. The identity information management system also stores relevant information of the client (such as the first public key of the trusted module and client information described below).

[0086] The kube-apiserver mainly acts as the API gateway of the cluster, receiving requests from clients and other system components. In response to these requests, resources can be created, modified (update) or deleted (delete) in the cluster. At the same time, the kube-apiserver also connects to TAS so that trusted authentication can be achieved through TAS.

[0087] The kube-controller-manager is mainly responsible for maintaining the status of the cluster, such as service deployment arrangements, fault detection, automatic expansion, rolling updates, etc. In the embodiment of the present application, the kube-controller-manager is also responsible for approving CSR resources and signing approved CSR resources. At the same time, the kube-controller-manager is also connected to TAS so that trusted approval can be achieved.

[0088] A working node may include components such as kubelet, trusted authentication client, and trusted modules.

[0089] The trusted attestation client (TAC) is mainly responsible for providing and managing the trusted identity key (TIK) of kubelet. In an embodiment of the present application, TAC may include a trusted module plug-in, which can be used to support TAC to adapt to different trusted modules so that data can be interacted with different trusted modules, thereby achieving trusted identity authentication. For example, the plug-in can adapt to TPM.

[0090] The trusted module may be a variety of trusted computing devices such as TPM, TCM, TPCM, software dongle, etc. In some embodiments, the trusted module may also be implemented in software.

[0091] Kubelet is mainly responsible for managing and maintaining node containers, such as maintaining the container life cycle, managing container creation, updating, and destruction, etc. In the embodiment of the present application, kubelet is also responsible for managing and storing the node's certificate and private key, which will store the node's certificate and private key in memory.

[0092] In some embodiments, the control node may also include components such as etcd and scheduler (i.e., kube-scheduler). etcd is mainly responsible for data storage and maintenance (such as storage of various resources in the cluster), and kube-scheduler is mainly responsible for cluster system resource scheduling. The working node may also include kube-Proxy components, which are mainly responsible for maintaining the network and achieving load balancing.

[0093] It should be noted that Figure 1 The system architecture shown is only an exemplary description and does not constitute a limitation. In other embodiments of the present application, the management node or the working node may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure can be implemented in hardware, software, or a combination of software and hardware.

[0094] Based on the above system architecture, please refer to Figure 2 , Figure 2 Schematic diagram of a certificate issuance method disclosed in the embodiment of this application. Figure 2 As shown, the certificate issuance method may include but is not limited to the following steps:

[0095] 201.kubelet sends a TIK acquisition request to TAC.

[0096] After TLS authentication is enabled in the Kubernetes cluster, the working nodes need to use a valid certificate issued by kube-controller-manager to communicate with the kube-apiserver in the control node. Therefore, when kubelet is started, kubelet can first check whether there is a certificate issued by kube-controller-manager stored locally. If the corresponding certificate is stored, it can access the API open to kube-apiserver through the certificate. If the corresponding certificate is not stored, it can send a trusted identity key (TIK) acquisition request to TAC for subsequent certificate application. The TIK acquisition request is used to obtain the TIK.

[0097] Among them, the TIK of different working nodes is different, which can be used as the identity credential of the working node. TIK may include a first public key (i.e., the public key of the first computing device) and encrypted client information, and the first public key can be registered in the identity information management system. Specifically, the first public key can be a public key built into the trusted module, or it can be a public key dynamically generated by the trusted module. The client information can be the information of the trusted module, or it can be used as the identity information of the first computing device, which can uniquely identify the trusted module, and specifically can include the serial number (serial number, SN) of the trusted module, the generation manufacturer and other information.

[0098] 202.TAC sends a key acquisition request to the trusted module.

[0099] After TAC receives the TIK acquisition request from kubelet, TAC can send a key acquisition request to the trusted module. The key acquisition request is used to obtain the first public key of the trusted module and the encrypted client information.

[0100] 203. The trusted module sends a key to the TAC, where the key includes the first public key and the client information encrypted using the public key of the identity information management system.

[0101] After receiving the key acquisition request from the TAC, the trusted module may send the key (ie, the first public key of the trusted module and the encrypted client information) to the TAC.

[0102] For example, when the trusted module is a TPM, the first public key sent by the TPM to the TAC may be the AIK public key of the TPM, and the client information sent may be the SN, manufacturer, etc. of the TPM. For another example, when the trusted module is a TCM, the first public key that the TCM may send to the TAC may be the public key of its own platform identity key (PIK), and the client information sent may be the SN, manufacturer, etc. of the TCM.

[0103] The trusted module can use the public key of the identity information management system (i.e., the public key of the second computing device) to encrypt the client information to obtain the encrypted client information. In addition, in order to ensure the integrity and authenticity of the information, the trusted module can also convert the information to be sent (such as client information) into a message digest through a hash algorithm, and then use its own private key (such as the private key corresponding to the first public key) to encrypt the message digest to obtain a digital signature, and then send the digital signature, public key and encrypted client information together to TAC. Among them, since the private key of the identity information management system and the private key of the trusted module are highly secure, it is possible to prevent a third party from decrypting the client information and to prevent a third party from forging a digital signature.

[0104] 204.TAC encapsulates the key into TIK.

[0105] After TAC receives the first public key and the encrypted client information from the trusted module, it can encapsulate the first public key and the encrypted client information into TIK according to a preset format. It should be understood that TAC encapsulates the key into TIK to shield the dependencies of different categories of trusted modules and support multiple categories of trusted modules on the one hand, and to meet the format requirements specified by kube-apiserver on the other hand. In some embodiments, the digital signature of the trusted module is also encapsulated in TIK.

[0106] Here is a packaging method:

[0107]

[0108] Among them, type can be used to indicate the type of the docked trusted module or key type. For example, the above type 1 can be "TPM", "TCM", "TPCM", etc., or "AIK", "PIK", etc. data is the payload of TIK, which includes the above first public key and encrypted client information.

[0109] 205.TAC sends TIK to kubelet.

[0110] After TAC encapsulates TIK, it can send TIK to kubelet.

[0111] 206.kubelet sends an authentication request to kube-apiserver, and the authentication request includes TIK.

[0112] After receiving the TIK from the TAC, the kubelet can send an authentication request to the kube-apiserver, which can include the TIK. The authentication request is used for identity authentication.

[0113] 207.kube-apiserver passes the authentication request to TAS.

[0114] After kube-apiserver receives the authentication request from kubelet, it can pass the authentication request to TAS.

[0115] 208. TAS sends a key verification request to the identity information management system, where the key verification request includes a key.

[0116] After receiving the identity authentication request from kube-apiserver, TAS can extract the first public key and the encrypted client information in TIK according to the preset format. After that, TAS can send a key verification request to the identity information management system, and the key verification request can include the key (i.e., the first public key and the encrypted client information). In some embodiments, the key verification request can also include the digital signature of the trusted module.

[0117] 209. The identity information management system verifies the key and obtains the identity authentication result.

[0118] After receiving the key verification request from the TAS, the identity information management system can decrypt it with its own private key to obtain the first public key and the client's information, and then verify the first public key and the client's information. In some embodiments, the identity information management system can also verify the authenticity and integrity of the client information through the digital signature carried in the key verification request.

[0119] A possible implementation method for the identity information management system to verify the first public key and the client's information is: the identity information management system can verify whether the first public key and the client's information belong to a legitimate working node based on the stored information of the legitimate working node (i.e., the public key and client information of the legitimate working node). If it belongs to a legitimate working node, it can be determined that the kubelet identity authentication has passed (i.e., the working node to which the kubelet belongs has passed the authentication). If it does not belong to a legitimate working node, it can be determined that the kubelet identity authentication has not passed. It is understandable that the client information of the legitimate working node and the corresponding public key can be stored in advance in the identity information management system.

[0120] 210. The identity information management system sends the identity authentication result to TAS.

[0121] After the identity information management system obtains the identity authentication result, it can send the identity authentication result to the TAS.

[0122] 211. If the identity authentication is successful, TAS generates login credentials.

[0123] After TAS receives the authentication result from the identity information management system, it can first determine whether the kubelet authentication is passed. If the kubelet authentication is passed, TAS can generate login credentials for the kubelet. If the authentication fails, TAS can return the authentication result to the kubelet through the kube-apiserver, or it can respond without response. The login credentials are used by the kubelet to apply for certificate signing.

[0124] The login credential can be a set of random numbers generated by TAS, such as a 20-digit random number. At the same time, in order to ensure the security of the login credential, the login credential has a validity period (such as 2 hours, 30 minutes, etc.), and the login credential that exceeds the validity period will be directly invalidated. In addition, in order to further ensure the security of the login credential, each login credential can only be used once.

[0125] 212.TAS sends login credentials to kube-apiserver.

[0126] After TAS generates the login credentials, it can send the login credentials to kube-apiserver.

[0127] 213.kube-apiserver passes the login credentials to kubelet.

[0128] After kube-apiserver receives the login credentials from TAS, it can pass the login credentials to kubelet.

[0129] In some embodiments, TAS or kube-apiserver can use the public key of kubelet (such as the second public key described below) to encrypt the login credentials to improve the security of the login credentials.

[0130] 214.kubelet sends a certificate signing request to kube-apiserver, which includes the second public key and login credentials.

[0131] After receiving the login credentials from the kube-apiserver, the kubelet can determine that it has passed the identity authentication. At this time, the kubelet can create CRS resources through the kube-apiserver. Therefore, after receiving the login credentials from the kube-apiserver, the kubelet can send a certificate signing request (CSR) to the kube-apiserver. The CSR may include the login credentials and the second public key to be signed. The second public key may be a public key generated by the kubelet.

[0132] 215.kube-apiserver creates CSR resources based on the certificate signing request.

[0133] After receiving the CSR from kubelet, kube-apiserver can create a CSR resource (i.e. resource object) based on the CSR. The status of the newly created CSR resource is empty.

[0134] 216.kube-apiserver notifies kube-controller-manager of the newly created CSR resource.

[0135] Since kube-controller-manager monitors changes in various resources in the cluster (including the creation and modification of CSR resources), when kube-apiserver creates a CSR resource, it can send a notification to kube-controller-manager so that kube-controller-manager can perform corresponding processing according to the preset process based on the changes in CSR resources.

[0136] 217.kube-controller-manager sends a login credential verification request to TAS, which includes the login credentials carried in the CSR.

[0137] After kube-controller-manager determines that there is a newly created CSR resource in the cluster, it can send a login credential verification request to TAS, which may include the login credential of the CSR resource (i.e., the login credential carried in the CSR).

[0138] 218.TAS verifies the login credentials and obtains the login credential verification result.

[0139] After TAS receives the login credential verification request from kube-controller-manager, it can verify the login credential carried in the login credential verification request. Specifically, TAS can determine whether the login credential carried in the login credential verification request is the login credential generated by itself before and whether the login credential is valid (that is, whether it has been used or expired). If the login credential was generated by itself before, and has not been used and has not expired, it can be determined that the login credential verification has passed. If the login credential was not generated by itself before, or has been used or expired, it can be determined that the login credential verification has not passed.

[0140] 219.TAS sends the login credential verification result to kube-controller-manager.

[0141] After TAS obtains the login credential verification result, it can send the login credential verification result to kube-controller-manager.

[0142] 220. If the login credentials are verified, kube-controller-manager approves the CSR resource.

[0143] Specifically, after kube-controller-manager receives the login credential verification result from TAS, it can first determine whether the login credential is verified. If the login credential is verified, kube-controller-manager can approve the CSR resource. If the login credential is not verified, kube-controller-manager can delete the CSR resource through kube-apiserver.

[0144] 221. If the CSR resource is approved, kube-controller-manager changes the status of the CSR resource to approved through kube-apiserver.

[0145] Specifically, if the CSR resource is approved, kube-controller-manager can modify the status of the CSR resource to approved through kube-apiserver. approved is used to indicate that the CSR resource has been approved.

[0146] It should be understood that in some embodiments, the corresponding permission configuration can be performed through the RBAC permission model, so that the kube-controller-manager can automatically approve some specific categories of CSR resources (such as CSR resources for the first application of client certificates), and reference can be made to the above-mentioned related descriptions. It should also be understood that in addition to the RBAC permission model, the attribute-based access control (ABAC) permission model can also be used for corresponding permission configuration.

[0147] 222.kube-controller-manager signs the CSR resource with the approved status and generates a signed certificate.

[0148] Specifically, kube-controller-manager can monitor the status changes of CSR resources (such as the CSR resource status changes to approved), and then sign the CSR resource with the approved status to generate a signed certificate, that is, sign the second public key carried in the CSR to generate a signed certificate.

[0149] In some embodiments, the CSR sent by the kubelet may also include some other information of the working node, such as the identity document (ID) of the working node. The kube-controller-manager may sign the second public key and the information carried in the CSR together.

[0150] 223.kube-controller-manager sends the signed certificate to kube-apiserver.

[0151] After kube-controller-manager generates a signed certificate, it can send the signed certificate to kube-apiserver. Specifically, after kube-controller-manager generates a signed certificate, it can modify the CSR resource through kube-apiserver and add the status.certificate field of the CSR resource. The value of this field is the signed certificate.

[0152] 224.kube-apiserver sends the signed certificate to kubelet.

[0153] After receiving the signed certificate from kube-controller-manager, kube-apiserver can send the signed certificate to kubelet. In turn, kubelet can receive the signed certificate from kube-apiserver, and then kubelet can save the certificate to memory.

[0154] Specifically, after kubelet creates a CSR resource in the cluster through kube-apiserver, it can continuously send query requests to kube-apiserver to query the status of the CSR resource. When kubelet determines that the CSR resource is signed, kubelet can request the signed CSR resource from kube-apiserver and obtain the signing certificate from the status.certificate field of the CSR resource.

[0155] It should be understood that the memory can be dynamic random access memory (DRAM), synchronous dynamic random-access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), etc.

[0156] Since the memory is volatile, that is, the data will be lost when the power is off, the working node will not persist the certificate signed by the kube-controller-manager. The kubelet can automatically apply for a new certificate according to the above process every time it starts. In this way, the security of the certificate can be improved and the certificate leakage can be avoided.

[0157] In the above-mentioned certificate issuance method, based on the certificate issuance process defined in the TLS bootstrapping specification, kubelet can send a TIK acquisition request to TAC. After TAC receives the TIK acquisition request from kubelet, it can obtain the first public key and the encrypted client information from the trusted module, and encapsulate the obtained first public key and the encrypted client information into TIK, and then send TIK to kubelet. After kubelet receives the TIK from TAC, it can send an authentication request (including TIK) to kube-apiserver for authentication. After kube-apiserver receives the authentication request from kube-apiserver, it can verify the TIK carried in the authentication request through TAS, and then generate login credentials for kubelet if the verification passes. Among them, since the private key of the identity information management system has a high security, the client information encrypted by the public key of the identity information management system has a high security, thereby improving the security of authentication, and then improving the security of certificate issuance. In addition, the above-mentioned process has good specification compliance and feasibility.

[0158] Based on the above system architecture, please refer to Figure 3 , Figure 3 FIG. 1 is a flow chart of another certificate issuance method disclosed in an embodiment of the present application. Figure 3 As shown, the certificate issuance method may include but is not limited to the following steps:

[0159] 301.kubelet sends a request to TAC to obtain login credentials.

[0160] Because kubelet needs the login credentials generated by TAS to apply for certificate signing, when kubelet starts, kubelet can send a login credential acquisition request to TAC, and the login credential acquisition request is used to obtain the login credentials.

[0161] 302.TAC sends a key acquisition request to the trusted module.

[0162] After TAC receives the login credential acquisition request from kubelet, TAC can send a key acquisition request to the trusted module. The key acquisition request is used to obtain the first public key of the trusted module and the encrypted client information.

[0163] 303. The trusted module sends a key to the TAC, where the key includes the first public key and the client information encrypted using the public key of the identity information management system.

[0164] After receiving the key acquisition request from the TAC, the trusted module may send its own first public key and the encrypted client information to the TAC. Step 303 is the same as step 203, and the relevant description of step 203 may be referred to.

[0165] 304.TAC encapsulates the key into TIK.

[0166] After TAC receives the first public key and the encrypted client information from the trusted module, it can encapsulate the first public key and the encrypted client information into TIK according to the preset format. In addition, in the following process, after TAC encapsulates TIK, it does not need to send TIK to kubelet, and then request identity authentication to kube-apiserver through kubelet. Therefore, when TAC encapsulates the key, it does not need to encapsulate it in the way required by kube-apiserver.

[0167] In some embodiments, the TAC can directly use the first public key and the encrypted client information as the TIK without packaging. For example, when the trusted module is a TPM and the identity information management system is a PCA, the TAC can directly use the AIK public key of the trusted module and the encrypted client information as the TIK.

[0168] 305.TAC sends an identity authentication request to TAS, where the identity authentication request includes TIK.

[0169] After the TAC encapsulates the TIK, it can send an identity authentication request to the TAS, and the identity authentication request may include the TIK. The identity authentication request is used for identity authentication.

[0170] 306. TAS sends a key verification request to the identity information management system, where the key verification request includes the key.

[0171] 307. The identity information management system verifies the key and obtains the identity authentication result.

[0172] 308. The identity information management system sends the identity authentication result to TAS.

[0173] 309. When the identity authentication is successful, TAS generates login credentials.

[0174] Steps 306-309 are the same as steps 208-211, and the relevant description of the above steps 208-211 may be referred to, which will not be repeated here.

[0175] 310.TAS sends login credentials to TAC.

[0176] After TAS generates the login credentials, it can send the login credentials to TAC.

[0177] 311.TAC passes the login credentials to kubelet.

[0178] After TAC receives the login credentials from TAS, it can pass the login credentials to kubelet.

[0179] 312.kubelet sends a certificate signing request to kube-apiserver, which includes the second public key and login credentials.

[0180] 313.kube-apiserver creates CSR resources based on the certificate signing request.

[0181] 314.kube-apiserver notifies kube-controller-manager of the newly created CSR resource.

[0182] 315.kube-controller-manager sends a login credential verification request to TAS, which includes the login credentials carried in the CSR.

[0183] 316.TAS verifies the login credentials and obtains the login credential verification result.

[0184] 317.TAS sends the login credential verification result to kube-controller-manager.

[0185] 318. If the login credentials are verified, kube-controller-manager approves the CSR resource.

[0186] 319. If the CSR resource is approved, kube-controller-manager changes the status of the CSR resource to approved through kube-apiserver.

[0187] 320.kube-controller-manager signs the CSR resource with the status of approved and generates a signed certificate.

[0188] 321.kube-controller-manager sends the signed certificate to kube-apiserver.

[0189] 322.kube-apiserver sends the signed certificate to kubelet.

[0190] After receiving the signed certificate from kube-controller-manager, kube-apiserver can send the signed certificate to kubelet. In turn, kubelet can receive the signed certificate from kube-apiserver, and then kubelet can save the certificate to memory.

[0191] Steps 312-322 are the same as steps 214-224, and the relevant description of the above steps 214-224 may be referred to, which will not be repeated here.

[0192] Based on the above system architecture, please refer to Figure 4 , Figure 4 FIG. 1 is a flow chart of another method for issuing a certificate disclosed in an embodiment of the present application. Figure 4 As shown, the certificate issuance method may include but is not limited to the following steps:

[0193] 401.kubelet sends a TIK acquisition request to TAC.

[0194] 402.TAC sends a key acquisition request to the trusted module.

[0195] Steps 401-402 are the same as the above steps 201-202, and reference may be made to the above steps 201 and 202.

[0196] 403. The trusted module sends a key to the TAC, where the key includes the first public key and the first client information encrypted using the public key of the TAS.

[0197] After the trusted module receives the key acquisition request from the TAC, it can send a key (i.e., the first public key of the trusted module and the encrypted first client information) to the TAC. The first public key can be registered in the identity information management system. Specifically, the first public key can be a public key built into the trusted module, or a public key dynamically generated by the trusted module. The first client information can be information of the trusted module, which can uniquely identify the trusted module, and can specifically include the serial number (SN) of the trusted module, the manufacturer that generated it, and other information.

[0198] The trusted module can use the public key of TAS (i.e., the public key of the second computing device) to encrypt the first client information to obtain the encrypted first client information. In addition, in order to ensure the integrity and authenticity of the information, the trusted module can also use its own private key (such as the private key corresponding to the first public key) to generate a digital signature, and then send the digital signature, public key and the encrypted first client information to TAC. Among them, since the private key of TAS and the private key of the trusted module are highly secure, it is possible to prevent a third party from decrypting the first client information and to prevent a third party from forging a digital signature.

[0199] 404.TAC encapsulates the key into TIK.

[0200] 405.TAC sends TIK to kubelet.

[0201] 406.kubelet sends an authentication request to kube-apiserver, which includes TIK.

[0202] 407.kube-apiserver passes the authentication request to TAS.

[0203] Steps 404-407 are the same as steps 204-207, and reference may be made to the relevant description of the above steps 204-207.

[0204] 408. TAS decapsulates TIK according to a preset format, obtains the first public key and the encrypted first client information in TIK, and then decrypts the first client information using its own private key to obtain the first client information, where the first client information includes a trusted module identifier.

[0205] After TAS receives the authentication request from kube-apiserver, it can extract the first public key and the encrypted first client information in TIK according to the preset format. Afterwards, TAS can use its own private key to decrypt and obtain the first client information, which includes a trusted module identifier. The trusted module identifier can be the SN of the trusted module included in the first client information. Different trusted modules have different trusted module identifiers.

[0206] 409. TAS sends a client information acquisition request to the identity information management system, where the client information acquisition request includes a trusted module identifier.

[0207] After obtaining the first client information, the TAS may send a client information obtaining request to the identity information management system, where the client information obtaining request is used to obtain the second client information.

[0208] In some embodiments, the first public key carried in the TIK may also be used as a trusted module identifier.

[0209] 410. The identity information management system sends the second client information to the TAS, where the second client information is information corresponding to the trusted module identifier.

[0210] After the identity information management system receives the client information acquisition request from the TAS, it can determine the second client information according to the trusted module identifier. Among them, one trusted module identifier can correspond to one trusted module. The second client information can be understood as the information of the trusted module corresponding to the trusted module identifier, which can include the SN of the corresponding trusted module, the manufacturer, the EK public key, the first public key and other information.

[0211] It is understandable that the identity information management system may store the client information and corresponding public key of the legal working node in advance. Therefore, if the identity information management system does not find the information corresponding to the trusted module identifier, it indicates that it may be an illegal working node, and an empty result may be returned to TAS. When TAS receives an empty result from the identity information management system, TAS can determine that the node initiating the identity authentication is an illegal node.

[0212] 411. TAS verifies the first client information and the first public key according to the second client information to obtain an identity authentication result.

[0213] Specifically, after TAS receives the second client information from the identity information management system, it can determine whether the first public key in the second client information is the same as the first public key carried in TIK, and whether the other information (SN, manufacturer) in the second client information is the same as the first client information. If they are all the same, TAS can determine that the work node initiating the authentication is a legal work node, and it can be determined that the kubelet identity authentication has passed. If any of the information is different (such as different SNs), TAS can determine that the work node initiating the authentication is an illegal work node, and it can be determined that the kubelet identity authentication has not passed.

[0214] In some embodiments, the TAS may also verify the authenticity and integrity of the first client information through a digital signature carried in the TIK.

[0215] 412. If the identity authentication is successful, TAS generates login credentials.

[0216] 413.TAS sends login credentials to kube-apiserver.

[0217] 414.kube-apiserver passes the login credentials to kubelet.

[0218] 415.kubelet sends a certificate signing request to kube-apiserver, which includes the second public key and login credentials.

[0219] 416.kube-apiserver creates CSR resources based on the certificate signing request.

[0220] 417.kube-apiserver notifies kube-controller-manager of the newly created CSR resource.

[0221] 418.kube-controller-manager sends a login credential verification request to TAS, which includes the login credentials carried in the CSR.

[0222] 419.TAS verifies the login credentials and obtains the login credential verification result.

[0223] 420.TAS sends the login credential verification result to kube-controller-manager.

[0224] 421. If the login credentials are verified, kube-controller-manager approves the CSR resource.

[0225] 422. If the CSR resource is approved, kube-controller-manager changes the status of the CSR resource to approved through kube-apiserver.

[0226] 423.kube-controller-manager signs the CSR resource with the status of approved and generates a signed certificate.

[0227] 424.kube-controller-manager sends the signed certificate to kube-apiserver.

[0228] 425.kube-apiserver sends the signed certificate to kubelet.

[0229] Steps 412-425 are the same as steps 211-224, and reference may be made to the relevant descriptions in the above steps 211-224.

[0230] In the above certificate issuance method, TAS can obtain the information of the corresponding trusted module (i.e., the second client information) from the identity information management system through the trusted module identifier carried in TIK, and then can authenticate the kubelet based on the second client information. At the same time, TAS can authenticate the login credentials. In this way, the authentication service can be concentrated on TAS, and the identity information management system can only provide the second client information.

[0231] Based on the above system architecture, please refer to Figure 5 , Figure 5 FIG. 1 is a flow chart of another method for issuing a certificate disclosed in an embodiment of the present application. Figure 5 As shown, the certificate issuance method may include but is not limited to the following steps:

[0232] 501. Kubelet sends a request to TAC to obtain login credentials.

[0233] Step 501 is the same as step 301 , and reference may be made to the relevant description of step 301 .

[0234] 502.TAC sends a key acquisition request to the trusted module.

[0235] 503. The trusted module sends a key to the TAC, where the key includes the first public key and the first client information encrypted with the public key of the TAS.

[0236] 504.TAC encapsulates the key into TIK.

[0237] Steps 502-504 are the same as steps 402-404, and reference may be made to the relevant description of steps 402-404.

[0238] 505.TAC sends an identity authentication request to TAS, where the identity authentication request includes TIK.

[0239] Step 505 is the same as step 305, and reference may be made to the relevant description of step 305.

[0240] 506. TAS decapsulates TIK according to a preset format, obtains the first public key and the encrypted first client information in TIK, and then decrypts the first client information using its own private key to obtain the first client information, where the first client information includes a trusted module identifier.

[0241] 507. TAS sends a client information acquisition request to the identity information management system, where the client information acquisition request includes a trusted module identifier.

[0242] 508. The identity information management system sends the second client information to the TAS, where the second client information is information corresponding to the trusted module identifier.

[0243] 509. TAS verifies the first client information and the first public key according to the second client information to obtain an identity authentication result.

[0244] Steps 506-509 are the same as steps 408-411, and reference may be made to the relevant description of steps 408-411.

[0245] 510. If the identity authentication is successful, TAS generates login credentials.

[0246] 511.TAS sends login credentials to TAC.

[0247] 512.TAC passes the login credentials to kubelet.

[0248] Steps 510-512 are the same as steps 309-311, and reference may be made to the relevant description of the above steps 309-311.

[0249] 513.kubelet sends a certificate signing request to kube-apiserver, which includes the second public key and login credentials.

[0250] 514.kube-apiserver creates CSR resources based on the certificate signing request.

[0251] 515.kube-apiserver notifies kube-controller-manager of the newly created CSR resource.

[0252] 516.kube-controller-manager sends a login credential verification request to TAS, which includes the login credentials carried in the CSR.

[0253] 517.TAS verifies the login credentials and obtains the login credential verification result.

[0254] 518.TAS sends the login credential verification result to kube-controller-manager.

[0255] 519. If the login credentials are verified, kube-controller-manager approves the CSR resources.

[0256] 520. If the CSR resource is approved, kube-controller-manager changes the status of the CSR resource to approved through kube-apiserver.

[0257] 521.kube-controller-manager signs the CSR resource with the status of approved and generates a signed certificate.

[0258] 522.kube-controller-manager sends the signed certificate to kube-apiserver.

[0259] 523.kube-apiserver sends the signed certificate to kubelet.

[0260] Steps 513-523 are the same as steps 214-224. Please refer to the relevant description of the above steps 214-224, which will not be repeated here.

[0261] It should be noted that the relevant information (ie, the same information or similar information) and the relevant descriptions in the above different embodiments may refer to each other.

[0262] Based on the above system architecture, please refer to Figure 6 , Figure 6 6 is a schematic diagram of a first computing device disclosed in an embodiment of the present application. The first computing device 600 may include: a processor 601, a communication interface 602, a memory 603, and a trusted module 605. The processor 601, the communication interface 602, and the memory 603 may be interconnected or connected to each other through a bus 604.

[0263] Exemplarily, the memory 603 is used to store computer programs and data of the first computing device 600, and the memory 603 may include but is not limited to random access memory (RAM), read-only memory (ROM), erasable programmable read only memory (EPROM) or portable read only memory (CD-ROM), etc. The communication interface 602 is used to support the first computing device 600 to communicate, such as receiving or sending data.

[0264] Exemplarily, the processor 601 may be a CPU, a complex programmable logic device, a general purpose processor, a digital signal processor, an application specific integrated circuit, a field programmable gate array or other programmable logic device, a transistor logic device, a hardware component or any combination thereof. The processor may also be a combination that implements a computing function, such as a combination of one or more microprocessors, a combination of a digital signal processor and a microprocessor, and the like.

[0265] Exemplarily, the trusted module 605 (i.e., the trusted chip) can be a trusted module such as TPM, TCM, TPCM, etc. The trusted module 605 can assist the first computing device 600 in implementing trusted identity authentication, and the trusted module 605 can be used to store information for generating a trusted identity key. In some embodiments, the first computing device 600 can be a server. Among them, the server can be a file server, a domain control server, a database server, a mail server, a web server, a multimedia server, a communication server, a terminal server, an infrastructure server, a virtualization server, etc. The server can be a tower, a rack, a blade, etc. The trusted module 605 can be a chip on the motherboard of the first computing device 600.

[0266] In one embodiment, the first computing device 600 may be a working node, and the processor 601 may be used to read the program stored in the memory 603 and execute the program Figure 2 , Figure 3 , Figure 4 and Figure 5 In the method embodiment shown in the figure, the components kubelet and TAC in the working node perform operations, and the trusted module 605 can perform the above Figure 2 , Figure 3 , Figure 4 and Figure 5 The operations performed by the trusted module in the working node in the method embodiment shown can refer to the above related descriptions and will not be described in detail here.

[0267] It should be noted that Figure 6 The first computing device 600 shown is only one implementation of the embodiment of the present application. In actual applications, the first computing device 600 may also include more or fewer components, which is not limited here.

[0268] Based on the above system architecture, please refer to Figure 7 , Figure 7 700 is a schematic diagram of a second computing device disclosed in an embodiment of the present application. The second computing device 700 may include: a processor 701, a communication interface 702, and a memory 703. The processor 701, the communication interface 702, and the memory 703 may be connected to each other or connected to each other through a bus 704.

[0269] Exemplarily, the memory 703 is used to store computer programs and data of the second computing device 700, and the memory 703 may include but is not limited to random access memory (RAM), read-only memory (ROM), erasable programmable read only memory (EPROM) or portable read only memory (CD-ROM), etc. The communication interface 702 is used to support the second computing device 700 to communicate, such as receiving or sending data.

[0270] Exemplarily, the processor 701 may be a CPU, a complex programmable logic device, a general purpose processor, a digital signal processor, an application specific integrated circuit, a field programmable gate array or other programmable logic device, a transistor logic device, a hardware component or any combination thereof. The processor may also be a combination that implements a computing function, such as a combination of one or more microprocessors, a combination of a digital signal processor and a microprocessor, and the like.

[0271] In one embodiment, the second computing device 700 may be a control node, and the processor 701 may be used to read the program stored in the memory 703 and execute the program. Figure 2 , Figure 3 , Figure 4 and Figure 5 The operations performed by the management and control node or the components in the management and control node in the method embodiment shown can refer to the above related descriptions and will not be described in detail here.

[0272] It should be noted that Figure 7 The second computing device 700 shown is only one implementation of the embodiment of the present application. In actual applications, the second computing device 700 may also include more or fewer components, which is not limited here.

[0273] Based on the above system architecture, please refer to Figure 8 , Figure 8 Schematic diagram of the structure of a certificate issuance system disclosed in the embodiment of this application. Figure 8As shown, the certificate issuance system may include a first computing device 801 and a second computing device 802. The first computing device 801 includes a trusted unit for storing information for generating a trusted identity key, and the second computing device 802 is used to authenticate the first computing device and issue a certificate. The first computing device 801 may be any management node in the cluster, and the second computing device 802 may be any working node in the cluster. The second computing device may initiate identity authentication to the first computing device through its own trusted module, and accordingly, the first computing device may perform trusted authentication on the identity of the second computing device.

[0274] Specifically, in one embodiment, the first computing device may send an identity authentication request to the second computing device; wherein the identity authentication request carries a trusted identity key; the identity authentication request is used to obtain login credentials; the second computing device may authenticate the first computing device based on the trusted identity key carried in the identity authentication request; if the first computing device passes the authentication, the second computing device may send the login credentials to the first computing device; the first computing device sends a certificate signing request to the second computing device; the certificate signing request carries the login credentials; the certificate signing request is used to obtain a signing certificate; the second computing device verifies the first computing device based on the login credentials carried in the certificate signing request; if the first computing device passes the verification, the second computing device sends a signing certificate to the first computing device; the first computing device receives the signing certificate.

[0275] In one embodiment, the information for generating the trusted identity key includes the identity information of the first computing device and the first public key of the first computing device; before the first computing device sends an identity authentication request to the second computing device, it includes: the first computing device uses the trusted unit to encrypt the identity information; the first device encapsulates the first public key and the encrypted identity information into a trusted identity key.

[0276] In one embodiment, the trusted identity key also encapsulates a digital signature of the first computing device.

[0277] In one embodiment, the key used to encrypt the identity information is a public key of the second computing device.

[0278] In one embodiment, the public key of the second computing device is the public key of the above-mentioned identity information management system or the public key of TAS.

[0279] In one embodiment, the second computing device authenticates the first computing device based on the trusted identity key carried in the identity authentication request, including: the second computing device parses the trusted identity key to obtain encrypted identity information and a first public key of the first computing device; the second computing device decrypts the encrypted identity information; the second computing device determines whether the decrypted identity information and the first public key match the preset identity information and the first public key.

[0280] In one embodiment, after the second computing device receives the certificate signing request, the method further includes: the second computing device creates the signing request resource based on the signing request; and in response to creating the signing request resource, the second computing device verifies the login credential.

[0281] In one embodiment, if the first computing device passes the verification, the second computing device sends a signed certificate to the first computing device, including: if the first computing device passes the verification, the second computing device approves the certificate signing request resource; when the certificate signing request resource is approved, the second computing device modifies the status of the certificate signing request resource to passed; the second computing device signs the certificate signing request resource with a status of passed to generate a signed certificate; the second computing device sends the signed certificate to the first computing device.

[0282] In one embodiment, after the first computing device receives the signature certificate, the method further includes: the first computing device storing the signature certificate in a memory of the first computing device.

[0283] For a more detailed description of the first computing device 801 and the second computing device 802, please refer to the above Figure 2 , Figure 3 , Figure 4 and Figure 5 The relevant descriptions of the control node or the components in the control node, and the working node or the components in the working node in the method embodiment shown are directly obtained and are not repeated here.

[0284] The embodiment of the present application also discloses a computer-readable storage medium having instructions stored thereon, and when the instructions are executed, the method in the above method embodiment is executed.

[0285] The embodiment of the present application also discloses a computer program product including instructions, which, when executed, execute the method in the above method embodiment.

[0286] Obviously, the embodiments described above are only a part of the embodiments of the present application, rather than all the embodiments. The reference to "embodiment" herein means that the specific features, structures or characteristics described in conjunction with the embodiments may be included in at least one embodiment of the present embodiment application. The phrase appearing in various positions in the specification is not necessarily the same embodiment, nor is it an independent or alternative embodiment mutually exclusive with other embodiments. It can be understood by those skilled in the art explicitly and implicitly that the embodiments described herein can be combined with other embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application. The terms "first", "second", "third", etc. in the specification, claims and drawings of the present application are distinguished from different objects, rather than being used to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a series of steps or units are included, or alternatively, steps or units not listed are also included, or other steps or units inherent to these processes, methods, products or devices are also included.

[0287] It is to be understood that only the part relevant to the present application but not all the contents are shown in the accompanying drawings. It should be understood that some exemplary embodiments are described as the processing or method described as a flow chart. Although the flow chart describes each operation (or step) as a sequential processing, many operations therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of each operation can be rearranged. When its operation is completed, the processing can be terminated, but it can also have additional steps not included in the accompanying drawings. The processing can correspond to a method, a function, a procedure, a subroutine, a subprogram, etc.

[0288] As used in this specification, the terms "component", "module", "system", "unit", etc. are used to represent computer-related entities, hardware, firmware, a combination of hardware and software, software, or software in execution. For example, a unit can be, but is not limited to, a process running on a processor, a processor, an object, an executable file, an execution thread, a program, and / or distributed between two or more computers. In addition, these units can be executed from various computer-readable media having various data structures stored thereon. Units can communicate through local and / or remote processes, for example, based on signals having one or more data packets (e.g., data from a second unit interacting with another unit in a local system, a distributed system, and / or a network. For example, the Internet interacts with other systems via signals).

[0289] The specific implementation methods described above further illustrate the purpose, technical solutions and beneficial effects of the present application in detail. It should be understood that the above description is only the specific implementation methods of the present application and is not intended to limit the scope of protection of the present application. Any modifications, equivalent substitutions, improvements, etc. made on the basis of the technical solutions of the present application should be included in the scope of protection of the present application.

Claims

1. A certificate issuing system, characterized in that: The system includes a first computing device and a second computing device; the first computing device includes a trusted unit for storing information for generating a trusted identity key; The second computing device is used to authenticate the first computing device and issue a certificate; The first computing device sends an identity authentication request to the second computing device; wherein the identity authentication request carries a trusted identity key; and the identity authentication request is used to obtain a login credential; The second computing device receives the identity authentication request; The second computing device authenticates the first computing device according to the trusted identity key carried in the identity authentication request; if the first computing device passes the authentication, the second computing device sends a login credential to the first computing device; The first computing device sends a certificate signing request to the second computing device; the certificate signing request carries the login credential; the certificate signing request is used to obtain a signing certificate; The second computing device receives the certificate signing request; The second computing device verifies the first computing device according to the login credentials carried by the certificate signing request; If the first computing device passes the verification, the second computing device sends a signed certificate to the first computing device; The first computing device receives the signed certificate; the information for generating the trusted identity key includes the identity information of the first computing device and the first public key of the first computing device; Before the first computing device sends an identity authentication request to the second computing device, the method includes: The first computing device encrypts the identity information using the trusted unit; The first device encapsulates the first public key and the encrypted identity information into the trusted identity key; The key used to encrypt the identity information is the public key of the second computing device.

2. The system according to claim 1, characterized in that The second computing device authenticates the first computing device according to the trusted identity key carried in the identity authentication request, including: The second computing device parses the trusted identity key to obtain the encrypted identity information and the first public key of the first computing device; The second computing device decrypts the encrypted identity information; The second computing device determines whether the decrypted identity information and the first public key match the preset identity information and the first public key.

3. The system according to claim 1, characterized in that: After the second computing device receives the certificate signing request, the further step further includes: The second computing device creates a certificate signing request resource based on the certificate signing request; In response to creating the certificate signing request resource, the second computing device verifies the login credentials.

4. The system according to claim 1, characterized in that If the first computing device passes the verification, the second computing device sends the signed certificate to the first computing device, including: If the first computing device passes the verification, the second computing device approves the certificate signing request resource; When the certificate signing request resource is approved, the second computing device modifies the status of the certificate signing request resource to passed; The second computing device signs the certificate signing request resource with a status of passed to generate a signed certificate; The second computing device sends the signed certificate to the first computing device.

5. The system according to any one of claims 1 to 4, characterized in that: After the first computing device receives the signature certificate, the method further includes: The first computing device stores the signing certificate in a memory of the first computing device.

6. A first computing device, characterized in that: The first computing device includes a trusted chip and a processor; the trusted chip is coupled to the processor; the trusted chip is used to store information for generating a trusted identity key; the processor is used to execute: Sending an identity authentication request to a second computing device; wherein the identity authentication request carries the trusted identity key; the identity authentication request is used to obtain a login credential; receiving login credentials from the second computing device; Sending a certificate signing request to the second computing device; the certificate signing request carries the login credential; the certificate signing request is used to obtain a signing certificate; receiving a signed certificate from the second computing device; Before the processor executes sending the identity authentication request to the second computing device, the processor is further configured to execute: In response to the trusted identity key acquisition request, sending a key acquisition request to the trusted chip; Receive a key sent by a trusted chip; the key includes the encrypted identity information of the first computing device and a first public key of the first computing device; encapsulating the key as a trusted identity key; The key used to encrypt the identity information is the public key of the second computing device.

7. The first computing device according to claim 6, characterized in that: After receiving the signed certificate from the second computing device, the processor is further configured to execute: The signing certificate is stored in a memory of the first computing device.