Secret management
By creating and managing super secrets in the Kubernetes environment, the problem of needing to restart application pods when adding or removing secrets is solved, enabling secret management without restarting application pods, improving service reliability and customer satisfaction.
Patent Information
- Application Number
- CN202410107240.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-03-09
- Filing Date
- 2024-01-25
- Publication Date
- 2024-09-10
AI Technical Summary
In containerized software environments such as Kubernetes, adding or removing secrets requires restarting the application pod, causing service interruption and affecting service quality and customer satisfaction.
By creating super secrets in the virtual software environment, monitoring and managing the metadata tags and namespaces of secrets, you can add or remove secrets without restarting the application pod, and use super secrets to mount to application pods to provide access to secrets. access.
It avoids service interruptions due to secret management, improves service reliability and customer satisfaction, simplifies the secret management process, and reduces service downtime.
Smart Images

Figure CN118627103A
Abstract
Description
Technical Field
[0001] Various embodiments of the present technology generally relate to the management of secrets within a software container environment such as Kubernetes (sometimes stylized as K8s). More specifically, embodiments of the present technology relate to systems and methods for adding or removing secrets from an application pod without restarting the application pod. Background Art
[0002] In a containerized software environment such as Kubernetes, a secret can be a data object that contains sensitive data such as a digital certificate, a key, or a password. A computing pod or application can use secrets to access or control access to restricted resources, such as by providing a token or a digital authentication certificate. In order to provide access to secrets to a pod or application, it may be necessary to mount the secret to the pod or software, thereby creating a directory or volume accessible to the pod or application. However, adding new secrets or removing existing secrets may require restarting the pod and associated microservices or applications. Restarting a pod in this manner may result in service impact or potential service downtime, thereby reducing the quality of service and degrading customer satisfaction. Thus, there is a need for improved secret management.
[0003] The information provided in this section is presented as background information and is intended to assist any understanding of the present disclosure only. No determination has been made and no assertion has been made as to whether any of the above might be applicable as prior art with respect to the present disclosure. Summary of the invention
[0004] This summary is provided to introduce selected concepts in a simplified form, which are further described in the detailed description below. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used as an aid in determining the scope of the claimed subject matter.
[0005] Various embodiments herein relate to systems, methods, and computer-readable storage media for performing secret management. In an embodiment, a secret management system may include one or more processors, and a memory having instructions stored thereon, which, when executed by the one or more processors, cause the one or more processors to implement a secret management process to enable secrets to be added to an application pod without restarting the application pod of a virtual software environment, the secret comprising a data object containing sensitive data. The secret management system may monitor the creation of a first secret in a virtual software environment, append the name of the first secret to a key file from the first secret to generate an appended key file, and store the appended key file to a super secret, the super secret comprising a dedicated secret configured to contain key files from multiple secrets.
[0006] In some embodiments, the secret management system may determine whether the first secret includes the selected metadata tag, and in response to the first secret not including the selected metadata tag, not append the name of the first secret to the key file or not store the appended key file to the super secret. Additionally, the secret management system may, in response to determining that the first secret includes the selected metadata tag, determine a first value associated with the selected metadata tag and a first namespace associated with the first secret, and determine whether the first value corresponds to an existing super secret in the first namespace. In response to determining that the first value corresponds to an existing super secret in the first namespace, the secret management system may store the appended key file to the super secret as the existing super secret. In some embodiments, the secret management system may detect creation of a second secret having a second namespace associated with the second secret, the selected metadata tag, and a second value associated with the selected metadata tag that is the same as the first value. The secret management system may determine whether the second namespace is the same as the first namespace, and when the second namespace is different from the first namespace, generate a new super secret in the second namespace, and store a second appended key file from the second secret to the new super secret. When the second namespace is the same as the first namespace, the secret management system may store a second appended key file from the second secret to the super secret in the first namespace. In response to determining that the first value does not correspond to an existing super secret in the first namespace, the secret management system may generate a super secret, including setting a name of the super secret based on the first value, and mounting the super secret to the application pod during initialization of the application pod, including storing the appended key file to a directory accessible to the application pod. In some embodiments, the secret management system may detect the creation of the second secret in the virtual software environment, append the second name of the second secret to the second key file from the second secret to generate a second appended key file, and store the second appended key file to the super secret. In another example embodiment, the secret management system may receive a digital certificate at a certificate manager, and generate the first secret based on the digital certificate via the certificate manager. In some embodiments, the secret management system may initiate a virtual software environment as a Kubernetes cluster, initiate an application pod after the initiation of the Kubernetes cluster, mount the super secret to the application pod during the initiation of the application pod, add the secret key file to the super secret without restarting the application pod, and remove the secret key file from the super secret without restarting the application pod.
[0007] In an alternative embodiment, a method may include operating a secret management system to enable a secret to be added to an application pod of a virtual software environment without restarting the application pod, the secret comprising a data object containing sensitive data, the operation comprising monitoring the virtual software environment for creation of a first secret, appending a name of the first secret to a key file from the first secret to produce an appended key file, and storing the appended key file to a super secret, the super secret comprising a dedicated secret configured to contain key files from multiple secrets. BRIEF DESCRIPTION OF THE DRAWINGS
[0008] Many aspects of the present disclosure may be better understood with reference to the following drawings. The components in the drawings are not necessarily drawn to scale. In addition, in the drawings, the same reference numerals designate corresponding parts in several views. Although several embodiments are described in conjunction with these drawings, the present disclosure is not limited to the embodiments disclosed herein. On the contrary, it is intended to cover all alternatives, modifications and equivalents.
[0009] Figure 1 is a diagram of a system configured to perform secret management according to certain embodiments of the present disclosure;
[0010] Figure 2 is a diagram of a system configured to perform secret management according to certain embodiments of the present disclosure;
[0011] Figure 3 is a diagram of a system configured to perform secret management according to certain embodiments of the present disclosure;
[0012] Figure 4 is a diagram of a system configured to perform secret management according to certain embodiments of the present disclosure;
[0013] Figure 5 is a diagram of a system configured to perform secret management according to certain embodiments of the present disclosure;
[0014] Figure 6 is a diagram of a system configured to perform secret management according to certain embodiments of the present disclosure;
[0015] Figure 7 is a diagram of a system configured to perform secret management according to certain embodiments of the present disclosure;
[0016] Figure 8 depicts a flow chart of an example method for performing secrets management according to certain embodiments of the present disclosure;
[0017] Fig. 9 depicts a flowchart of an example method for performing secret management according to certain embodiments of the present disclosure; and
[0018] Fig.10 A computing system configured to perform secret management in accordance with some embodiments of the present technology is illustrated.
[0019] For the purpose of discussing some embodiments of the present technology, some components or operations may be divided into different boxes or combined into a single box. In addition, although the present technology may be revised into various modifications and alternative forms, specific embodiments have been shown by way of example in the accompanying drawings and described in detail below. However, it is not intended to limit the present technology to the specific embodiments described. On the contrary, the present technology is intended to cover all modifications, equivalents, and alternatives that fall within the scope of the present technology as defined by the appended claims. DETAILED DESCRIPTION
[0020] In the following detailed description of certain embodiments, reference is made to the accompanying drawings which form a part thereof and are shown in the drawings by way of illustration of example embodiments. It should also be understood that features of the embodiments and examples herein may be combined, exchanged or removed, other embodiments may be utilized or created, and structural changes may be made without departing from the scope of the present disclosure. The following description and associated drawings teach the best mode of the present invention. Some aspects of the best mode may be simplified or omitted for the purpose of teaching the principles of the invention.
[0021] According to various embodiments, the methods and functions described herein may be implemented as one or more software programs running on a computer processor or controller. Special hardware implementations including but not limited to application-specific integrated circuits, programmable logic arrays, and other hardware devices may also be constructed to implement the methods and functions described herein. The methods and functions may be performed by modules or nodes, which may include one or more physical components (e.g., logic, circuits, processors, etc.) of a computing device configured to perform a specific task or job, or may include instructions that, when executed, cause a processor to perform a specific task or job, or any combination thereof. In addition, the methods described herein may be implemented as a computer-readable storage medium or memory device including instructions that, when executed, cause a processor to perform the methods.
[0022] Figure 1is a diagram of a system 100 configured to perform secret management according to certain embodiments of the present disclosure. The example system 100 may include a Kubernetes container orchestration system, but the present disclosure may be applied to other containerized application systems. A container may refer to a virtualized software execution environment in which an application running within a container can only access resources allocated to the container, rather than all resources of the underlying physical computing system on which the container is running. For example, a container may include a Linux executable packaged with all necessary dependencies and configuration files so that the container can be self-sufficient with respect to all applications running the container. The system 100 may include a Kubernetes cluster 102, which may receive one or more digital certificates 106 from one or more certificate authorities (CAs) 104, for example, via one or more network connections.
[0023] CA 104 can be a trusted third-party entity that stores, signs and issues digital certificates 106 for the purpose of cryptography and digital identity or authorization verification. Digital certificates 106 (sometimes referred to as public key certificates or identity certificates) can prove the ownership of the public key by the named subject of the certificate. The certificate allows other parties to rely on the signature or assertions made about the private key corresponding to the certified public key, such as by verifying that the certificate is issued by a trusted CA. In some examples, certificates 106 can be specified by the X.509 International Telecommunication Union (ITU) standard or the EMV (Europay, Mastercard and Visa) smart card standard. CA 104 can be implemented via one or more devices, systems or modules that can issue or verify digital certificates 106. Digital certificates 106 can include an electronic document that provides information about the public key, the identity of the owner (sometimes referred to as the subject) and the digital signature of the CA (sometimes referred to as the issuer).
[0024] Kubernetes cluster 102 may include a set of components for implementing containerized applications. Cluster 102 may include a control plane 108 and one or more nodes, such as node 1 110 and node 2 112.
[0025] Nodes 110, 112 may include worker machines that each host one or more pods, such as Pod A 120 and PodB 122 of Node 1 110 and Pod C 124 of Node 2 112. A pod may model an application-specific "logical host": and may contain one or more applications (with shared storage and network resources), as well as specifications for how to run containers. The contents of a pod may be co-located and co-scheduled, and may run in a shared context. Pods may be grouped according to namespaces, such as Namespace 1 126 and Namespace 2 128.
[0026] Namespaces 126, 129 may provide a mechanism for isolating groups of resources within a single cluster 102. The names of resources may need to be unique within a namespace, but not between different namespaces. Namespaces may provide a way to divide cluster 102 resources among multiple users (e.g., via resource quotas). A namespace may include multiple pods distributed across multiple nodes, or may include only one or more pods from a single node. Figure 1 In the depicted example, Namespace 1 125 may include Pod A 120 from Node 1 110 and Pod C 124 from Node 2 112 , while Namespace 2 128 may include only Pod B 122 from Node 1 110 .
[0027] The control plane 108 may include one or more components, such as software modules and data structures, that may manage the worker nodes 110, 112 and pods 120-124 of the cluster 102. The control plane 108 (and its components) may run across multiple computers. In the depicted example of the system 100, the control plane 108 may include a certificate manager 114 (or certificate manager), a secret manager 116, and an event log 118.
[0028] The certificate manager 114 can be a certificate controller that is configured to obtain certificates 106 from one or more CAs 104 (e.g., both public and private issuers), ensure that the certificates are valid and up-to-date, and renew the certificates before they expire. In order for the application pods 120-124 to use the certificates 106, the certificate manager 114 can "consume" the certificates 106 (e.g., by extracting information from the certificates) to generate a secret that includes data elements related to the certificates.
[0029] In one embodiment, secrets generated by the certificate manager 114 may be mounted for use by one or more pods 120-124. When a new certificate is required for an already running pod 120-124, the certificate manager 114 may create a new secret and the application pod may need to mount the secret and restart the application pod. Similarly, when a mounted secret needs to be removed or deleted, it may need to be unmounted from the application pod(s), which may then require a restart of the application pod. The process of creating and mounting secrets and application pod restarts will be described in detail in the following sections. Figure 2 Discuss in more detail.
[0030] Figure 2is a diagram of a system 200 configured to perform secret management according to certain embodiments of the present disclosure. In particular, the example system 200 may depict data objects representing secrets 202 and a directory 204 that may create secrets 202 when the secrets are mounted for use by an application pod.
[0031] When the certificate manager 114 receives the digital certificate 106, it can generate a secret 202 based on the certificate. The secret 202 may include a data object having various fields, such as an API Version, a "kind" of the object, a "type", several metadata fields (e.g., including the "name" of the object, and several annotations), and several "data" fields. The data field may include a file or object associated with the secret 202 or the certificate 106. For example, the secret 202 may include objects specifying "ca.crt", "tls.crt", and "tls.key", each of which may include a hash or other value field that may represent a cryptographic value used for authentication, verification, or encryption.
[0032] The application pods 120-124 can access the secret 202 through a volume mount operation, which can mount a volume or directory 204 to the pod 120-124. A volume can be a type of directory 204 accessible to the containers in the pods 120-124. The directory 204 can be located at a "mount path" and can show a number of files equal to the key in the "data" field of the secret 202. For example, the directory 204 can include files for "tls.key", "tls.crt", and "ca.crt" as in the secret 202.
[0033] Adding a new certificate may require mounting a new secret 202 to a directory 204 so that it can be accessed by pods 120-124. However, the new secret 202 cannot be mounted in the same location or directory 204 as the first secret because the new secret may contain the same fields as the first secret (e.g., tls.key, tls.crt, ca.crt), resulting in an attempt to place multiple "files" with the same name in the same location. Therefore, in order to access the new secret, a new volume mount (volumeMount) with a new mount path (MountPath) may be required, which in turn may require restarting (one or more) pods 120-124. Similarly, removing an existing certificate 106 may include deleting the existing volume mount directory 204, which may also require restarting (one or more) pods 120-124.
[0034] Although the examples provided herein relate to secrets created from digital certificates 106, the need to restart application pods 120-124 may also apply to other types of secrets. The process of restarting application pods 120-124 each time a new secret needs to be mounted or deleted may cause service interruptions or other problems. Alternative embodiments that avoid restarting pods 120-124 are discussed herein.
[0035] Back to Figure 1 In another embodiment, a secret manager 116 can be added to the Kubernetes cluster 102. The secret manager 116 can include a customized operator (which in turn can have a customized controller) that can be added to the control plane 108. The secret manager can create new types of secrets, which can be referred to as super secrets or SuperSecrets, such as SuperSecret1 130, SuperSecret2 132, and SuperSecret1 134. SuperSecrets can enable secrets to be added to or removed from pods 120-124 without restarting the pods.
[0036] When a secret is generated by the credential manager 114, details about the secret may be added to the event log 118. There may be a separate event log 118 for each namespace 126, 128, or a single event log may cover multiple namespaces. The secret manager 116 may monitor (one or more) event logs 118 (perhaps for multiple or all namespaces 126, 128), and may filter events to retrieve only secrets containing a specified metadata tag known to the secret manager. For example, a metadata tag "secret-manager.io / identifier:<identifier name>" may be added to a secret by the credential manager 114 and recorded in the event log 118 along with the newly created event, which may be used by the secret manager 116 to filter events 118 for related secrets. The secret manager may be configured to recognize or use other key / value pairs of searchable metadata or tags. Based on an identifier tag value (e.g., <identifier name> value), the secret manager 116 may create a new super secret with that tag value as its own name to act as a compilation of other secrets.
[0037] Supersecrets may need to have unique names within a single namespace 126, 128, but not across namespaces. For example, a supersecret with the name SuperSecret1 130 may be created in namespace 1 126, and another supersecret with the same name SuperSecret1 134 may be created in namespace 2 128. Another supersecret SuperSecret2 132 with a different name may be added to the same namespace 1 126 as SuperSecret1 130. All pods within a namespace can access supersecrets for that namespace, even across nodes 110, 112. For example, Pod A 120 and Pod C 124 in namespace 1 126 can access SuperSecret1 130 and SuperSecret 2 132. The creation of supersecrets will be about Figure 3 Discuss in more detail.
[0038] Figure 3 is a diagram of a system 300 configured to perform secret management, according to certain embodiments of the present disclosure. In particular, the example system 300 may depict data objects representing a secret (secret1(secret1)) 302 and a supersecret (SuperSecret1) 304.
[0039] The certificate manager 114 may create secret1 302 (e.g., based on receipt of the certificate 106). The certificate manager 114 may be configured to include a selected or specified metadata key / value identifier tag in secret1 302. In this example, the identifier tag may be "secret-manager.io / identifier" and the identifier value may be "SuperSecret1". Secret1 302 may also include several data elements, such as "ca.crt", "tls.crt", and "tls.key". The creation of secret1 302 may be added to the event log 118, which may record some or all of the contents of secret1 302 including the tag.
[0040] The secret manager 116 can monitor the event log 118 filtered by the identifier tag (e.g., secret-manager.io / identifier). When a secret with the expected identifier tag is found, the secret manager 116 can determine the namespace of the secret and the value of the identifier. In this case, secret1 302 was created in namespace1 and the identifier value is SuperSecret1.
[0041] The secret manager 116 can determine whether there is a super secret with a name equal to the identifier value in the determined namespace. If not, the secret manager 116 can create a new super secret in the identified namespace with a name set to the identifier value from secret1 302. In this case, the secret manager 302 will create a super secret named SuperSecret1 304 in namespace 1. Secrets (including super secrets) can be created to have various "types". The type of secret1 302 can be TLS (e.g., kubernetes.io / tls), which can always include the three data elements or keys described in this document (e.g., ca.crt, tls.crt, and tls.key, where the value from the key is a password string as depicted). SuperSecret1 304 can be created with type "opaque", which can give flexibility to define any number of keys with any number of values. The secret manager 116 may also copy the data elements from Secret1 302 to SuperSecret1 304, appending the name of Secret1 to the data field. For example, this may add three data elements to SuperSecret1 304, namely Secret1-ca.crt, Secret1-tls.crt, and Secret1-tls.key. The value of the key may be transferred unchanged from Secret1 302 to SuperSecret1 304. The newly created SuperSecret1 304 may be mounted for access by one or more pods, perhaps during the initial creation or startup of the pod.
[0042] However, if a super secret with an identifier value from Secret1 302 already exists in the namespace from Secret1, the secret manager 116 may perform the same steps as described above with respect to Figure 4 Describe the process.
[0043] Figure 4 is a diagram of a system 400 configured to perform secret management, according to certain embodiments of the present disclosure. In particular, the example system 400 may depict data objects representing a secret (secret2(secret2)) 406 and a supersecret (SuperSecret1) 404.
[0044] The certificate manager 114 may create a new secret Secret2 406. Similar to Secret1 302, Secret2 406 may be created in namespace1 with an identifier label secret-manager.io / identifier and an identifier label SuperSecret1. Secret2 406 may include the same key elements (e.g., ca.crt, tls.crt, and tls.key) as Secret1 302, but with different values.
[0045] The secret manager 116 may detect the creation of Secret2 406 from the event log 118 based on Secret2 including the selected identifier tag. Because the namespace and identifier value of Secret2 406 match the existing super secret, the secret manager 116 may not create a new super secret, but may update the existing SuperSecret1 404. The secret manager 116 may update SuperSecret1 404 by copying the key / value data elements from Secret2 406 and appending the name of Secret2 to the key name (e.g., Secret2-ca.crt, Secret2-tls.crt, and Secret2-tls.key) as described above. Thus, SuperSecret1 404 may include key / value data elements from both Secret1 302 and Secret2 406. Furthermore, since SuperSecret1 404 is already mounted for use by the pod, when Secret2 406 data elements are added to SuperSecret1 404, the pod may not need to be restarted, unlike when Secret2 406 must be mounted separately. Similarly, data elements may be removed from SuperSecret1 404 without restarting any associated pods. Figure 5 Discuss secret mounts.
[0046] Figure 5 is a diagram of a system 500 configured to perform secret management according to certain embodiments of the present disclosure. In particular, the example system 500 may depict data objects representing SuperSecret1 in its initial creation state 502 and after being updated 504 with additional data objects, and corresponding initial directory 506 and updated directory 508.
[0047] The super secrets created by the secret manager 116 should be available to any (one or more) pods in the same namespace as the super secret. Super secrets can be mounted on (one or more) pods via volume mounts at specific mount paths, which essentially creates a directory for the key / value data elements of the super secret to be available as files within the directory. Any additions, deletions, or updates performed to the super secret can create or delete equivalent files from the mount path directory. Since the addition, deletion, or update of secret data elements results in changes within the existing mount path directory, there is no need to restart the pod to which the secret is mounted for the changes to take effect.
[0048] like Figure 3 As described in the example of , when SuperSecret1 502 is initially created, it may include three key / value pair data elements corresponding to Secret1 302: Secret1-ca.crt, Secret1-tls.crt, and Secret1-tls.key. SuperSecret1 502 may be mounted at the selected mount path, thereby creating a directory 506 including three files therein, corresponding to the three data keys from SuperSecret1 502.
[0049] like Figure 4 As described in the example of , SuperSecret1 504 can be updated with three additional key / value data elements corresponding to Secret2 406: Secret2-ca.crt, Secret2-tls.crt, and Secret2-tls.key. Updating SuperSecret1 504 does not change the mount path, but rather simply adds additional files to the updated directory 508 that correspond to the new keys from Secret2 406. No mount or unmount is required to update directory 508 with the additional secret data elements, and accordingly no pods have to be restarted to access those data elements. Figure 6 Discusses an example procedure for adding new secrets with the same identifier tag value in different namespaces.
[0050] Figure 6is a diagram of a system 600 configured to perform secret management in accordance with certain embodiments of the present disclosure. In particular, the example system 600 may depict a data object representing a first secret Secret1 602 created in a first namespace (namespace1) and resulting in the creation of a first super secret SuperSecret1(namespace1) 604 in the first namespace. Additionally, the system 600 may include a data object representing a second secret Secret2 606 created in a second namespace (namespace2(namespace2)) and resulting in the creation of a second super secret SuperSecret1(namespace2) in namespace2, the second super secret sharing the same name as the super secret from namespace1.
[0051] As described above, a super secret created by the secret manager 116 may be created or updated in the same namespace as a secret for which the secret manager receives event notifications. While two secrets with the same name cannot exist in a single namespace, two secrets with the same name can exist in different namespaces. Thus, two super secrets with the same name (e.g., SuperSecret1) can exist in two different namespaces.
[0052] As an example, Secret1 602 may be created in namespace 1 with an identifier tag value of "SuperSecret1." The secret manager 116 may detect an event for creating Secret1 602 in namespace 1, and when there is no existing super secret named SuperSecret1, may create SuperSecret1(namespace1) 604. The secret manager 116 may then detect an event for creating Secret2 606 in namespace 2, which also has an identifier tag value of SuperSecret1. Even though SuperSecret1 604 exists in namespace 1, SuperSecret1 may not exist in namespace 2, and thus the secret manager 116 may generate SuperSecret1(namespace2) 608 without causing any name conflicts in the Kubernetes cluster. About Figure 7 Describes examples of secret and supersecret generation in the context of digital certificates.
[0053] Figure 7is a diagram of a system 700 configured to perform secret management in accordance with certain embodiments of the present disclosure. In particular, the example system 700 may depict data objects representing a certificate 702, a secret 704, and a super secret 706. The system 700 depicts an example embodiment of how receiving a certificate 702 at a Kubernetes cluster may result in the generation of a secret 704, which may result in the generation of a super secret 706.
[0054] The certificate 702 may be received by the certificate manager 114 in the Kubernetes cluster 102. The certificate 702 may include several metadata fields, such as a name (e.g., example-com) and a namespace for providing the certificate. In addition, the certificate 702 metadata may be configured to specify a secretName (for providing a name used in the creation of the secret 704) and a secretTemplate with one or more labels. The labels may be configured to include an identifier label (e.g., secret-manager.io / identifier) and a label value (e.g., "SuperSecret1") for the creation of the secret 704, and ultimately for the creation of the super secret 706. For example, when configuring a new certificate 702 with the certificate manager 114, elements such as the label "secret-manager.io / identifier" may be added to the certificate.yaml file. YAML may refer to a human-readable data serialization language and may be used in configuration files and in applications where data is being stored or transmitted.
[0055] The certificate manager 114 can receive the certificates 702 and extract the relevant metadata, and in turn create secrets 704. For each certificate received, the certificate manager 114 can create an associated secret as an example of a source of secrets that can be made available to the pod via the secret manager 116 described herein. In this example, the name of the secret 704 can be set based on the secretName field of the certificate 702 (e.g., example-com-tls), and the namespace of the secret 704 can be set based on the namespace identified in the certificate 702. In addition, a tag metadata field can be added to the secret 704, such as to provide an identifier tag recognized by the secret manager 116 (e.g., secret-manager.io / identifier) and an associated tag value (e.g., SuperSecret1) that can identify to which super secret the key from the secret 704 should be added.
[0056] When secret 704 is generated, an event may be created or recorded, such as in event log 118. Secret manager 116 may monitor the event log and filter events for secrets that include one or more identified identifier tags. Based on the namespace and identifier tag value from secret 704, secret manager 116 may update or create a new super secret 706, as described herein. The name of super secret 706 may be set based on the identifier tag value, and the data key element or file from secret 704 may be copied to super secret 706, such as by storing them in a mounted directory for super secret 706. The secret manager may append the name of secret 704 to the file or element name of the data key so that multiple data keys may be stored in the same directory or volume mount without conflict. This may be achieved because each secret generated for a namespace may have a unique name, so the appended and updated data key names will also be unique within the namespace.
[0057] Figure 8 A flowchart 800 of an example method for performing secret management according to certain embodiments of the present disclosure is depicted. In particular, Figure 8 A process flow can be illustrated in which a super secret can be generated or updated when a new secret is generated, which can be accessed by the application pod without restarting the pod. The method can be implemented by the devices and systems described herein (such as Figure 1 The control plane 108 and secret manager 116) are executed.
[0058] The method may start at 802 and include monitoring events within the cluster for the creation or addition of a secret that includes a selected metadata tag at 804. At 806, it may be determined whether a particular secret includes the selected metadata tag. If not, the method may include continuing monitoring for the appropriate secret at 804.
[0059] When the secret includes the selected metadata tag at 806, the method may include determining a namespace and tag value for the secret at 808. The method may include determining whether the metadata tag value is new to the namespace at 810. For example, the method may include checking whether there are any existing secrets or supersecrets with names matching the metadata tag that have been created or mounted in a particular namespace.
[0060] When the metadata tag value is new (e.g., does not match an existing secret), the method may include generating a new super secret with the tag value as a name in the namespace at 812, and potentially mounting the new super secret to one or more pods in the namespace (e.g., via a volume mount operation to a selected mount path accessible to the one or more pods within the namespace). On the other hand, if the metadata tag value from the secret at 810 is not new to the namespace, the method may include updating an existing super secret with the tag value as a name in the namespace at 816.
[0061] After creating a new super secret at 812 and 814, or updating an existing super secret at 816, the method may include appending the name of the secret to the key data element from the secret at 818. This may ensure that each key data element from a different secret has a unique name within the namespace. At 820, the method may include storing the data element with the appended name to the super secret, or to a directory or mount path for the super secret. The method may then end at 822, or return to monitoring events for the secret at 804. Fig. 9 Describes an example of super secret creation based on received credentials.
[0062] Fig. 9 A flowchart 900 of an example method for performing secret management according to certain embodiments of the present disclosure is depicted. In particular, Fig. 9 A process flow for generating a super secret in response to receiving a digital certificate in a Kubernetes cluster can be illustrated. The method can be performed by the devices and systems described herein (such as Figure 1 The control plane 108 as well as the certificate manager 114 and the secret manager 116 are executed.
[0063] The method may start at 902 and may include launching a Kubernetes cluster at 904. Launching the cluster may include allocating a number of nodes on which to run one or more pods, and implementing a control plane including a number of elements for managing the pod(s). The control plane may include a certificate manager (or cert-manager), a secret manager, and an event log.
[0064] The method may include receiving a digital certificate, for example, via a certificate manager, at 906. At 908, the method may include generating a secret having a selected metadata tag of <secret name> and an associated tag value of <identifier name>. The generation of the secret may be reflected in an event log, which the secret manager may filter for secrets containing the selected metadata tag.
[0065] When a secret with the selected metadata tag is identified, the method may include generating a super secret with a name based on the <identifier name> from the secret at 910. At 912, the method may include copying a key data element from the secret to the super secret and appending the <secret name> to the key data element. As part of initialization of the Kubernetes cluster, the method may include initializing one or more pods at 914 and mounting the super secret to provide the pods with access to the data element.
[0066] At 916, the method may include determining whether a new certificate has been received. If not, the method may include continuing to monitor for new certificates at 916. When a new certificate has been received, at 918, the method may include generating a new secret having <new secret name> as the name and having <identifier name> for the metadata tag (matching the previous <identifier name> from the previous secret). The method may include copying the data from the new secret to an existing super secret named <identifier name> at 920, while appending <new secret name> to the data name. The method may then end at 922, or return to monitoring for new certificates at 916.
[0067] The solution described herein for adding additional secret files to a super secret may not require a restart of (one or more) pods, as all new secret files will be available under the same mount path. Adding a new secret will result in making the new file available in the same mount path. The (one or more) application pods can then access the required certificates by checking the prefix of the files available in the mount path. While the examples provided herein describe adding new secret files to a super secret, the benefits similarly extend to removing secret files without requiring a restart of an application pod. For example, after a secret expires or is selected for removal, operations can be performed to delete or remove selected secret files from the super secret while the super secret remains mounted. About Fig.10 Computing systems configured to perform the operations and methods described herein are provided.
[0068] Fig.10 The apparatus 1000 is illustrated as including a computing system 1001, which represents any system or collection of systems in which the various processes, systems, programs, services, and scenarios disclosed herein may be implemented. For example, the computing system 1001 may be Figure 1104, Node 1 110, Node 2 112, Control Plane 108, Certificate Manager 114, Secret Manager 116, Event 118, or CA 104. Examples of computing system 1001 include, but are not limited to, server computers, desktop computers, laptop computers, routers, web servers, cloud computing platforms, and data center equipment, as well as any other type of physical or virtual server machine, physical or virtual router, container, and any variation or combination thereof.
[0069] The computing system 1001 may be implemented as a single device, system or apparatus, or may be implemented as multiple devices, systems or apparatuses in a distributed manner. The computing system 1001 may include, but is not limited to, a processing system 1002, a storage system 1003, software 1005, a communication interface system 1007, and a user interface system 1009. The processing system 1002 may be operably coupled to the storage system 1003, the communication interface system 1007, and the user interface system 1009.
[0070] Processing system 1002 may load and execute software 1005 from storage system 1003. Software 1005 may include and implement secret management processes 1006, which may represent operations for generating or removing secrets or supersecrets, receiving digital certificates, mounting volumes or creating directories, or any of the other secret management operations discussed with respect to the previous figures. When executed by processing system 1002 to determine and implement secret management processes, software 1005 may direct processing system 1002 to operate as described herein for the various processes, operating scenarios, and sequences discussed in at least the foregoing embodiments. Computing system 1001 may optionally include additional devices, features, or functionality that are not discussed for the sake of brevity.
[0071] In some embodiments, processing system 1002 may include a microprocessor and other circuitry that retrieves and executes software 1005 from storage system 1003. Processing system 1002 may be implemented within a single processing device, but may also be distributed across multiple processing devices or subsystems that cooperate to execute program instructions. Examples of processing system 1002 may include general-purpose central processing units, graphics processing units, special-purpose processors and logic devices, and any other type of processing device, combination, or variation thereof.
[0072] The storage system 1003 may include any memory device or computer-readable storage medium that can be read by the processing system 1002 and that can store the software 1005. The storage system 1003 may include volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules or other data). Examples of storage media include random access memory, read-only memory, magnetic disks, optical disks, optical media, flash memory, virtual and non-virtual memory, magnetic cassettes, magnetic tapes, magnetic disk storage devices or other magnetic storage devices, or any other suitable storage medium. In any case, a computer-readable storage medium is not a propagated signal.
[0073] In addition to computer-readable storage media, in some embodiments, the storage system 1003 may also include a computer-readable communication medium through which at least some of the software 1005 may be transmitted internally or externally. The storage system 1003 may be implemented as a single storage device, but may also be implemented across multiple storage devices or subsystems that are co-located or distributed relative to each other. The storage system 1003 may include additional elements, such as a controller, that can communicate with the processing system 1002 or possibly other systems.
[0074] The software 1005 (including, among other functions, secret management processes 1006) may be implemented as program instructions that, when executed by the processing system 1002, may direct the processing system 1002 to operate as described with respect to the various operational scenarios, sequences, and processes described herein. For example, the software 1005 may include program instructions for receiving digital certificates, generating or removing secrets, monitoring event logs, generating super secrets, copying secret key data files or elements, and mounting volumes or directories for use by application pods as described herein.
[0075] In particular, program instructions may include various components or modules that cooperate or otherwise interact to perform various processes and operation scenarios described herein. Various components or modules may be implemented with compiled or interpreted instructions, or implemented with some other variants or combinations of instructions. Various components or modules may be performed in a synchronous or asynchronous manner, serially or in parallel, in a single-threaded environment or multithreaded, or according to any other suitable execution paradigm, variant, or combination thereof. Software 1005 may include additional processes, programs, or components, such as operating system software, virtualization software, or other application software. Software 1005 may also include firmware or some other form of machine-readable processing instructions that may be executed by processing system 1002.
[0076] In general, when loaded into processing system 1002 and executed, software 1005 can transform the appropriate device, system or equipment (represented by computing system 1001) from a general computing system as a whole to a special computing system customized to implement the binding audit process of bundling as described herein. In fact, the encoding software 1005 on storage system 1003 can transform the physical structure of storage system 1003. The specific transformation of physical structure can depend on various factors in different embodiments of this description. Examples of such factors may include, but are not limited to, whether the technology and computer storage medium used to implement the storage medium of storage system 1003 are characterized as primary storage devices or auxiliary storage devices, as well as other factors.
[0077] For example, if the computer-readable storage medium is implemented as a semiconductor-based memory, the software 1005 can transform the physical state of the semiconductor memory when the program instructions are encoded therein, such as by transforming the state of transistors, capacitors, or other discrete circuit elements that make up the semiconductor memory. Similar transformations can occur for magnetic or optical media. Other transformations of the physical medium are possible without departing from the scope of this description, and the foregoing examples are provided merely to facilitate this discussion.
[0078] The communication interface system 1007 may include communication connections and devices that allow communication with other computing systems (not shown) over a communication network (not shown). Examples of connections and devices that together allow inter-system communication may include network interface cards, antennas, power amplifiers, radio frequency (RF) circuits, transceivers, and other communication circuits. The connections and devices may communicate over a communication medium to exchange communications with other computing systems or networks of systems, such as metal, glass, air, or any other suitable communication medium.
[0079] Communications between computing system 1001 and other computing systems (not shown) may occur over one or more communications networks and according to various communications protocols, combinations of protocols, or variations thereof. Examples include an intranet, the Internet, a local area network, a wide area network, a wireless network, a wired network, a virtual network, a software-defined network, a data center bus and backplane, or any other type of network, combination of networks, or variations thereof.
[0080] Although some of the examples provided herein are described in the context of a Kubernetes containerized software environment, it should be understood that the systems and methods for secret management described herein are not limited to such embodiments and can be applied to various other containerized or virtualized software environments and their associated systems. As will be appreciated by those skilled in the art, aspects of the present invention may be implemented as systems, methods, computer program products, and other configurable systems. Thus, aspects of the present invention may take the form of a complete hardware embodiment, a complete software embodiment (including firmware, resident software, microcode, etc.), or an embodiment of a combination of software and hardware aspects, which may generally be referred to herein as a "circuit," "module," or "system." In addition, aspects of the present invention may take the form of a computer program product implemented in one or more memory devices or (one or more) computer-readable media on which a computer-readable program code is implemented.
[0081] Unless the context clearly requires otherwise, throughout the specification and claims, the words "include", "comprising", etc. should be interpreted in an inclusive sense, and not in an exclusive or exhaustive sense; that is, in the sense of "including but not limited to". As used herein, the term "connected", "coupled" or any variation thereof means any connection or coupling between two or more elements, either directly or indirectly; the coupling or connection between elements may be physical, logical, or a combination thereof. In addition, when used in this application, the words "herein", "above", "below" and words of similar meaning refer to the entire application, not to any particular part of the application. Where the context permits, words used in the singular or plural in the above specific embodiments may also include the plural or singular, respectively. When referring to a list of two or more items, the word "or" covers all the following interpretations of the word: any item in the list, all items in the list, and any combination of items in the list.
[0082] The phrases "in some embodiments," "according to some embodiments," "in the illustrated embodiments," "in other embodiments," and the like generally mean that the particular feature, structure, or characteristic following the phrase is included in at least one embodiment of the present technology, and may be included in more than one embodiment. Furthermore, such phrases are not necessarily referring to the same embodiment or different embodiments.
[0083] The above-mentioned specific implementation of the example of the present technology is not intended to be exhaustive or to limit the present technology to the precise form disclosed above. Although the specific example of the present technology is described above for illustrative purposes, various equivalent modifications can be made within the scope of the present technology, as will be recognized by those skilled in the relevant art. For example, although the process or frame is presented in a given order, the alternative implementation can perform the routine with steps in a different order, or adopt a system with a frame, and some processes or frames can be deleted, moved, added, subdivided, combined and / or modified to provide an alternative or sub-combination. Each of these processes or frames can be implemented in various different ways. In addition, although the process or frame is sometimes shown as being executed in series, these processes or frames can be executed or implemented in parallel instead, or can be executed at different times. In addition, any specific number mentioned herein is merely an example: the alternative implementation can adopt different values or ranges.
[0084] The teachings of the technology provided herein can be applied to other systems, not necessarily the above-mentioned systems. The elements and actions of the various examples described above can be combined to provide further embodiments of the present technology. Some alternative embodiments of the present technology can include not only the additional elements of those embodiments mentioned above, but also fewer elements.
[0085] In view of the above specific embodiments, these and other changes can be made to the present technology. Although the above description describes certain examples of the present technology and describes the best mode envisioned, no matter how detailed it is presented in text, the present technology can be practiced in many ways. The details of the system can be very different in its specific implementation, but still covered by the technology disclosed herein. As mentioned above, the specific terms used in describing certain features or aspects of the present technology should not be regarded as implying that the term is redefined herein as being limited to any specific characteristics, features or aspects of the technology associated with the term. In general, the terms used in the following claims should not be interpreted as limiting the present technology to the specific examples disclosed in the specification, unless such terms are explicitly defined in the above specific implementation section. Thus, the actual scope of the present technology covers not only the disclosed examples, but also all equivalent ways of practicing or realizing the technology under the claims.
[0086] In order to reduce the number of claims, certain aspects of the technology are presented below in certain claim forms, but applicants envision various aspects of the technology in any number of claim forms. For example, while only one aspect of the technology is recited as a computer-readable medium claim, other aspects may likewise be implemented as a computer-readable medium claim, or in other forms, such as a device-plus-function claim. Any claim intended to be processed under 35 U.S.C. §112(f) will begin with the words "device for...", but the use of the term "for" in any other context is not intended to invoke processing under 35 U.S.C. §112(f). Thus, applicants reserve the right to pursue additional claims in this application or in a subsequent application after filing this application to pursue such additional claim forms.
Claims
1. A secret management system, comprising: one or more processors; as well as A memory having stored thereon instructions that, when executed by the one or more processors, cause the one or more processors to implement a secret management process to enable adding secrets to an application pod without restarting the application pod of the virtual software environment, the secret comprising a data object containing sensitive data, the secret management process comprising: Monitoring creation of a first secret in a virtual software environment; appending the name of the first secret to the key file from the first secret to produce an appended key file; and The appended key files are stored to a super secret, which includes a dedicated secret configured to contain key files from multiple secrets.
2. The secret management system of claim 1 , further comprising instructions that, when executed, cause the one or more processors to: determining whether the first secret includes the selected metadata tag; and In response to the first secret not including the selected metadata tag, not appending the name of the first secret to the key file or not storing the appended key file to the super secret.
3. The secret management system of claim 2, further comprising instructions that, when executed, cause the one or more processors to: In response to determining that the first secret includes the selected metadata tag, determining a first value associated with the selected metadata tag and a first namespace associated with the first secret; and A determination is made as to whether the first value corresponds to an existing super secret in the first namespace.
4. The secret management system of claim 3, further comprising instructions that when executed cause the one or more processors to: In response to determining that the first value corresponds to an existing super secret in the first namespace, the appended key file is stored to the super secret as the existing super secret.
5. The secret management system of claim 4, further comprising instructions that when executed cause the one or more processors to: Detecting the creation of a second secret having: a second namespace associated with the second secret; the metadata tags selected; and a second value associated with the selected metadata tag that is the same as the first value; determining whether the second namespace is the same as the first namespace; When the second namespace is different from the first namespace, generating a new super secret in the second namespace; and storing the second appended key file from the second secret to the new super secret; and When the second namespace is the same as the first namespace, Store the second appended keys file from the second secret to the super secret in the first namespace.
6. The secret management system of claim 3, further comprising instructions that when executed cause the one or more processors to: In response to determining that the first value does not correspond to an existing super secret in the first namespace, generating a super secret includes setting a name of the super secret based on the first value.
7. The secret management system of claim 6, further comprising instructions that when executed cause the one or more processors to: Mount the super secret to the application pod during its initialization, including storing the appended key file in a directory accessible to the application pod.
8. The secret management system of claim 1 , further comprising instructions that when executed cause the one or more processors to: detecting creation of a second secret in a virtual software environment; appending the second name of the second secret to the second key file from the second secret to produce a second appended key file; and Store the second appended key file into super secret.
9. The secret management system of claim 1 , further comprising instructions that when executed cause the one or more processors to: Receiving a digital certificate at a certificate manager; and A first secret is generated based on the digital certificate via the certificate manager.
10. The secret management system of claim 1, further comprising instructions that when executed cause the one or more processors to: Launch a virtual software environment as a Kubernetes cluster; Launch the application pod after the Kubernetes cluster is launched; Mount the super secret to the application pod during the application pod initiation; Add secret key file to super secret without restarting app pod; as well as Remove secret key file from super secret without restarting app pod.
11. A method comprising: Operating a secret management system to enable adding secrets to an application pod without restarting the application pod of the virtual software environment, the secrets comprising a data object containing sensitive data, the operations comprising: Monitoring creation of a first secret in a virtual software environment; appending the name of the first secret to the key file from the first secret to produce an appended key file; and The appended key files are stored to a super secret, which includes a dedicated secret configured to contain key files from multiple secrets.
12. The method according to claim 11, further comprising: determining whether the first secret includes the selected metadata tag; as well as Based on whether the first secret includes the selected metadata tag, it is determined whether to store the additional key file to the super secret.
13. The method according to claim 12, further comprising: In response to the first secret not including the selected metadata tag, not appending the name of the first secret to the key file or not storing the appended key file to the super secret.
14. The method according to claim 12, further comprising: In response to determining that the first secret includes the selected metadata tag, determining a first value associated with the selected metadata tag and a first namespace associated with the first secret; as well as A determination is made as to whether the first value corresponds to an existing super secret in the first namespace.
15. The method according to claim 14, further comprising: In response to determining that the first value does not correspond to an existing super secret in the first namespace, generating a super secret including setting a name of the super secret based on the first value; as well as In response to determining that the first value corresponds to an existing super secret in the first namespace, an appended key file is stored to the super secret, which is the existing super secret.
16. The method according to claim 14, further comprising: Detecting the creation of a second secret having: a second namespace associated with the second secret; The metadata tags selected; as well as a second value associated with the selected metadata tag that is the same as the first value; determining whether the second namespace is the same as the first namespace; When the second namespace is different from the first namespace, Generate a new super secret in the second namespace; storing the second appended key file from the second secret to the new super secret; and When the second namespace is the same as the first namespace, store the second appended key file from the second secret to the super secret in the first namespace.
17. The method according to claim 11, further comprising: In response to detecting creation of the first secret, generating a super secret; as well as Mount the super secret to the application pod during its initialization, including storing the appended key file in a directory accessible to the application pod.
18. The method according to claim 11, further comprising: detecting creation of a second secret in a virtual software environment; appending the second name of the second secret to the second key file from the second secret to produce a second appended key file; as well as Store the second appended key file into super secret.
19. The method according to claim 11, further comprising: Receive a digital certificate; as well as A first secret is generated based on the digital certificate.
20. The method according to claim 11, further comprising: Launch a virtual software environment as a Kubernetes cluster; Launch the application pod after the Kubernetes cluster is launched; Mount the super secret to the application pod during the application pod initiation; Add secret key file to super secret without restarting app pod; as well as Remove secret key file from super secret without restarting app pod.
