Concurrent master key change for redundant HSM
By setting a new master key in the HSM when the software component is active and separating the current key and the new key in the key object, the problem of application downtime and administrator intervention during the HSM master key rolling process is solved, and the application is implemented continuous operation and high system availability.
Patent Information
- Application Number
- CN202380024816.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2022-03-16
- Filing Date
- 2023-02-20
- Publication Date
- 2024-10-18
AI Technical Summary
Existing technology is difficult to achieve seamless continuous operation during the rolling process of the Hardware Security Module (HSM) master key, causing applications and systems to face the risk of downtime in high-availability environments, and existing methods require administrator intervention and special processing. Lack of automation features.
By updating the current master key with the new master key when the software component is active, including setting the new master key in the HSM and separating the current key and the new key in the key object, the software component is allowed to be updated in the new master key. Continues operation during master key rollover, reducing synchronization requirements between multiple processes and services, reducing redundancy and throughput requirements.
It realizes that there is no need to stop using encrypted keys during the master key rolling process, ensuring the continuous operation of applications, reducing the need for administrator intervention and special processing, and improving the high availability and automation features of the system.
Smart Images

Figure CN118805362A_ABST
Abstract
Description
Background Art
[0001] The present disclosure relates to computer security, and more particularly, to updating a current master key with a new master key protected by a hardware security module (HSM).
[0002] The security of data and communication channels is a high priority for the management of corporate IT (Information Technology). This is necessary not only due to government regulations (e.g. GDPR, EU General Data Protection Regulation), but also due to the loss of credibility of the company in being able to reliably protect customer data at all times (and therefore avoid loss of sales and profits) in the event of compromised customer data records. In addition, data protection and providing a secure computing platform is not only a software issue, but it is also related to hardware modules. For example, in highly trusted enterprise-level computing environments, such as those used in finance, insurance or government industries, it is necessary to be able to prove that data leaks are blocked with a high probability from a technical perspective. This may require additional high-tech components and support processes. However, the associated success in data security masks any additional efforts and / or costs that may be required.
[0003] Although hardware security modules (HSMs) have been used for some time, it is important to synchronize the master keys in multiple HSMs and software components of services that use HSMs. Nevertheless, there are some disclosures related to computer-implemented methods for changing HSM master keys. For example, document US 2020 / 0169401A1 describes systems and techniques for changing cryptographic keys in a high-frequency transaction environment to mitigate service interruptions or losses of transactions associated with key maintenance. Thus, a server device can use a working key encrypted with a first master key to decrypt messages communicated from a client device, thereby encrypting each message with a first password, which is generated based on the working key encrypted with the first master key. In addition, document US 2020 / 0053065A1 describes a hardware security module group in a database system, which implements a key management system using a database storing encryption keys or other secrets. The HSM group can identify a first key encryption key (KEK) and a second key encryption key stored in the HSM group. The HSM group can retrieve an encryption key group encrypted by a first KEK from a database and decrypt each encryption key in the encryption key group using the first KEK. The HSM group may then re-encrypt each encryption key in the encryption key group with the second KEK, and send the encryption key group encrypted by the second KEK to the database for storage.
[0004] HSM key changes require special attention because they affect active software components of services that use multiple HSMs. A master key protected in one or more HSMs can be used by software components to protect local keys. Therefore, whenever the master key on an HSM needs to be changed (also called a "key roll"), all local keys encrypted with the actual master key must be re-encrypted by the new master key protected by the HSM. This is typically a multi-step process, where the steps of establishing a new master key in the HSM and re-encrypting already encrypted keys must be carefully coordinated.
[0005] In the context of continuing to execute software components that use encrypted keys while performing master key rolling and local key re-encryption, known problems in such environments can be identified. One solution can be that the encrypted local keys can be stored in files and shared by multiple processes. In addition, the encrypted keys can be temporary objects in the address space of the process associated with the execution of the software component. In addition, the master key used to encrypt the local keys can be stored in multiple redundant HSMs that can be accessed by the software component. However, technologies such as OpenCryptoki or CCA (Common Cryptographic Architecture) cannot meet this requirement well.
[0006] Therefore, all potential solutions may require special processing and usually require the support of an administrator. Therefore, it may be necessary to overcome the awkward process of such master key rolling activities and make it ready for better automation so that no special processing or manual interaction is required. Summary of the invention
[0007] According to one aspect of the present disclosure, a method for updating a current master key with a new master key when a software component using one or more keys is active may be provided, both of which are protected by one or more hardware security modules (HSMs), each of which is protected by an encrypted current master key. The method may include: signaling to the active software component that the new master key has been loaded into one or more HSMs; re-encrypting by the software component one or more keys encrypted using the current MK (master key); storing each of the re-encrypted one or more keys in a corresponding newKey component of a corresponding key object used by the active software component, wherein the corresponding current key encrypted by the current MK is stored in a corresponding curKey component of the corresponding key object. The method may also include setting a new master key in a first one of the HSMs, and signaling to the active software component that a new master key has been set in at least one of the HSMs. The method also includes, when it is determined by the software component that a new master key is set in at least one HSM, limiting, by the software component, use of the HSM to a selected single HSM among the HSMs using a corresponding value stored in a key component, the key component being selected from a group including: a corresponding curKey component and a corresponding newKey component, and when it is determined that the new master key is set in all HSMs, moving the value of the corresponding newKey component to the corresponding curKey component in all key objects.
[0008] According to another aspect of the present disclosure, a concurrent master key change system for updating a current master key with a new master key can be provided. The system can include a processor and a memory, which is communicatively coupled to the processor, wherein the memory stores a program code portion, which, when executed, can cause the processor to signal to an active software component that a new master key has been loaded into one or more HSMs, re-encrypt one or more keys encrypted with the current master key by the software component, store each of the re-encrypted one or more keys in a corresponding newKey component of a corresponding key object used by the active software component, wherein the corresponding current key encrypted by the current MK is stored in a corresponding curKey component of the corresponding key object, set the new master key in a first HSM, and signal to the active software component to set the new master key in at least one HSM. The processor may also be enabled to, when it is determined by the software component that a new master key is set in at least one HSM, limit the use of the HSM to a selected single HSM among the HSMs using a corresponding value stored in a key component selected from a group consisting of: a corresponding curKey component and a corresponding newKey component, and when it is determined that the new master key is set in all HSMs, move the value of the corresponding newKey component to the corresponding curKey component in all key objects.
[0009] The proposed method for updating the current master key with a new master key when a software component is active can provide multiple advantages, technical effects, contributions and / or improvements. In the context of secure master key management using HSM, the change of the master key may represent a difficult situation in which other keys encrypted with the master key cannot usually be used in a continuous manner. That is, usually using known techniques, the "normal key" encrypted by the master key should be stopped from being used until the master key is changed or the master key rollover is completed. However, for many high-availability applications, this is a heavy burden in terms of the guaranteed normal operation time of the application and the system. This difficult problem can be successfully solved by the concepts proposed in the present disclosure.
[0010] More specifically, the distinction between the current key (curKey) and the new key (newKey), which can be encrypted by the current master key and the new master key, can solve the above dilemma. Therefore, a software component or application that uses the services of one or more HSMs to encrypt local keys can remain active, i.e. continue its execution. It does not have to stop until the key rollover of the master key in the HSM is completed. This can embody the main advantages of continuously running applications, for example, for banking applications, transaction systems in online sales operations, and for continuous manufacturing processes. Other examples may also exist.
[0011] The proposed concept can also address the situation where the actual executed software components include multiple (sub) processes or services that share security keys stored in the key repository. It can also use multiple HSMs (which can all be configured to use the same MK) to increase redundancy and / or throughput. Therefore, the proposed concept can reduce the requirements for synchronization between multiple processes, services or application components by choosing to use a single HSM during the critical MK rolling phase. At the same time, the requirements or impact of redundancy and / or throughput can be reduced by allowing as many operations as possible outside the MK rolling phase.
[0012] Hereinafter, further embodiments of the present disclosure applicable to methods and systems will be described.
[0013] According to an advantageous embodiment, the method may further comprise, when the HSM event signaling tool has determined that a master key load operation or a master key set operation has occurred on one of the HSMs, signaling the corresponding event to the active software component. This may allow or enable the active software component to respond appropriately, for example, by employing a local or temporary key associated with the software component. Thus, key handling may be organized in a manner that does not interfere with the business or other technical processes supported by the software component. That is, the master key rolling process has taken effect outside the HSM and associated software components.
[0014] According to another advantageous embodiment, the method may further comprise re-encrypting the key objects persistently stored in the key repository when the HSM event signaling has determined that a master key load operation has occurred on one or more HSMs. This means that the software components, in particular one or more of them, can handle local, i.e. local to the software, keys by decrypting the existing already encrypted keys and re-encrypting them with the new master key. Thus, seamless operation can be achieved. Furthermore, keys stored in the key repository and not ephemeral can also be re-encrypted in the above manner.
[0015] According to yet another advantageous embodiment, the method may include moving the value of the newKey component of the key object to the curKey component of the key object persistently stored in the key repository if the HSM event signaling tool has determined that the master key set operation has been performed on all HSMs. Thus, the newKey component and the curKey component should be part of the same key object. Thus, the curKey component of the key object now holds the old "actual key" encrypted using the old (i.e., not the actual) master key.
[0016] According to another advantageous embodiment of the method, determining by the software component that a new master key has been set in at least one HSM may also include (i) receiving by the software component a new MK set signal (new master key set signal), or (ii) determining by the software component that an error code has been received indicating the use of a curKey component of a local key encrypted using an outdated master key (i.e., using a previous master key). Thus, determining that a new master key has been set in at least one HSM may be performed using different indicators and is not limited to using only the new MK set signal.
[0017] According to another advantageous embodiment, the method may further comprise: if it has been determined that all key objects that have been encrypted with the current master key have been re-encrypted with the new master key, a signal that all keys have been re-encrypted is sent by the software component to the HSM setup new MK component in particular to trigger the setup of all new master keys on all HSMs. This activity may terminate the setup phase of the new master key in the HSM. Thus, the loading phase of the new master key in one or more HSMs may be only a transitional state in the process of making the new master key available, i.e., a temporary stage of the master key rolling operation.
[0018] According to another advantageous embodiment, the method may further include, when a signal that a new master key has been loaded is received, in particular by the software component, generating a new key (i.e., a new key value) by the active software component using the HSM, storing the new key in the curKey component of the key object by the active software component, re-encrypting the new key, and if the re-encryption was successful, storing the re-encrypted key in the newKey component of the key object.
[0019] In other words, once the new master key is loaded, and specifically not activated (i.e., not set), multiple activities can occur under the control of the software component to prepare (one or more) local keys under the control of the software component for subsequent setting of the new master key in one or more HSMs.
[0020] According to another embodiment, the method may further include, when it is determined by the software component that a new master key is set in at least one HSM, and when it is determined that a key object without a newKey component cannot be used with the HSM (e.g., if an error is triggered), delaying the use of the key object until the new master key is set on the HSM. This part of the process may be triggered after a delay of a predetermined time until no error is triggered.
[0021] This error trigger may only occur for persistent keys that can also be used by other software components, so that a conflicting newKey move and HSM synchronization has occurred, i.e., a persistent key that is already processed by another software component that has moved the previous key into the curKey component of the corresponding key object.
[0022] According to another embodiment, the method may further include writing the value of the curKey component of the key object before moving the value of the newKey component to the curKey component of the key object. Therefore, the key object may include not only the newKey and curKey components, but also the oldKey component. Therefore, before moving the value of the newKey component to curKey, the value of the curKey component may be written to the oldKey component. Therefore, the key of the software component may be saved for two generations of the new master key.
[0023] According to another advantageous embodiment, the method may further comprise, when starting (i.e. activating or starting execution) the software component and when determining that a master key change process is ongoing, a phase of determining that a master key change process is ongoing. In this way, the newly started software component may integrate itself in the key rolling process of other software components and the HSM changing to a new master key.
[0024] Furthermore, additional embodiments are possible for the proposed concept. For example, the HSM may also include a register for the current master key and a register for the new master key. In this way, the history of master key changes may be managed by the controller of the HSM.
[0025] As another example, signaling between one or more HSMs and the software component can be coordinated and performed by an HSM management tool. As yet another example, the HSM management tool can communicate with an HSM event signaling tool, which can be executed on a computer system on which the software component is also active. In yet another example, when a new HSM master key is set in one or more HSMs, a corresponding new HSM master key signal can be sent to the HSM event signaling tool.
[0026] Furthermore, the proposed concept can utilize the HSM event signaling tool to send a corresponding new HSM master key signal to a process using one or more keys when the corresponding new master key signal has been received from the HSM event signaling tool.Finally, multiple key objects can be persisted (ie, permanently stored) in a repository.
[0027] It is also contemplated that not only permanent keys but also temporary keys of a software component may be managed by the software component. In some embodiments, for these temporary keys, a key object including a curKey component and a newKey component may be used. Thus, temporary keys may only be active if the software component may be activated; i.e., they may not survive a restart of the software component. For this purpose, the software component may use permanent keys.
[0028] In addition, embodiments may take the form of an associated computer program product accessible from a computer-usable or computer-readable medium that provides program code for use by or in conjunction with a computer or any instruction execution system. For purposes of this specification, a computer-usable or computer-readable medium may be any device that may include hardware for storing, communicating, propagating, or transmitting a program for use by or in conjunction with an instruction execution system, device, or apparatus. Such embodiments are capable of performing functions similar to those discussed above with respect to the methods and systems, and thereby also achieve the same advantages as discussed above with respect to the methods and systems.
[0029] This summary is not intended to describe every aspect, every implementation, and / or every embodiment of each embodiment of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] The accompanying drawings included in this application are incorporated into the specification and form a part of the specification. They show embodiments of the present disclosure and are used to explain the principles of the present disclosure together with the specification. The accompanying drawings only illustrate certain embodiments and do not limit the present disclosure.
[0031] It should be noted that embodiments of the present disclosure are described with reference to different subject matters. In particular, some embodiments are described with reference to method type claims, while other embodiments are described with reference to apparatus type claims. However, a person skilled in the art will appreciate from the above and following descriptions that, unless otherwise indicated, any combination of features relating to different subject matters, in addition to any combination of features belonging to one type of subject matter, any combination between features relating to different subject matters, in particular any combination between features of method type claims and features of apparatus type claims, is also considered to be disclosed within this document.
[0032] The above and other aspects of the present disclosure are apparent from the examples of embodiments to be described below and are explained with reference to the examples of embodiments, to which the present disclosure is not limited. Various embodiments of the present disclosure will be described by way of example only and with reference to the following drawings: Figure 1 A block diagram of an embodiment of a method for updating a current master key with a new master key according to an embodiment of the present disclosure is shown, both of which are protected by one or more hardware security modules (HSMs), while a software component using one or more keys is active, each key being encrypted by a current MK.
[0033] Figure 2 A block diagram of an embodiment according to an embodiment of the present disclosure is shown in which aspects of the present disclosure may be implemented.
[0034] Figure 3 A flow chart reflecting an embodiment of the proposed concept of Period III of Table 1 according to an embodiment of the present disclosure is shown.
[0035] Figure 4 A flow chart of an embodiment reflecting the proposed concept of period V of Table 1 according to an embodiment of the present disclosure is shown.
[0036] Figure 5 Another flow chart of an embodiment reflecting the concepts proposed in another portion of period V of Table 1 according to an embodiment of the present disclosure is shown.
[0037] Figure 6 A block diagram of an embodiment of a concurrent master key changing system for updating a current master key with a new master key according to an embodiment of the present disclosure is shown.
[0038] Figure 7 The embodiment according to the present disclosure includes Figure 6An embodiment of a computing system of the system.
[0039] Figure 8 A cloud computing environment according to an embodiment of the present disclosure is shown, in which at least part of the present disclosure can be deployed.
[0040] Fig. 9 Components of a cloud computing environment according to an embodiment of the present disclosure are shown.
[0041] Although the present disclosure may be processed in various modifications and alternative forms, the details thereof have been shown by way of example in the accompanying drawings and will be described in detail. However, it should be understood that the purpose is not to limit the present disclosure to the specific embodiments described. On the contrary, the present invention is intended to cover all modifications, equivalents and substitutes that fall within the spirit and scope of the present disclosure. DETAILED DESCRIPTION
[0042] Aspects of the present disclosure relate to computer security, and more particularly, to updating a current master key with a new master key protected by a hardware security module (HSM).Although not limited to these applications, embodiments of the present disclosure may be better understood in light of the above context.
[0043] The present disclosure generally relates to a method for updating a current master key with a new master key protected by a hardware security module (HSM) when a software component using one or more local keys is active, and more specifically, to a method for updating a current master key with a new master key when a software component using one or more keys (each key encrypted by a current master key (MK)) is active, the new master key and the current master key are both protected by one or more hardware security modules (HSM). The present disclosure also relates to a related concurrent master key change system for updating a current master key with a new master key, and a computer program product.
[0044] In the context of this specification, the following conventions, terms and / or expressions may be used: The term "current master key" may denote a key used by a software component for encryption purposes. A master key may be used to encrypt a persistent or permanent key or a temporary key used by the software component. A temporary key may exist only while the software component is executed. A permanent key may survive termination of the execution of the software component by storing the key in a key repository. In this way, the key may also be used by different software components. The key itself is typically encrypted by a master key. This encryption may be performed with the help of an HSM, which may store the encrypted master key. The current master key may be the master key that is actually used.
[0045] The term "new master key" may denote a master key that should be used starting from a certain time, in particular after a master key rolling process, which may denote a change of master keys in an HSM (or multiple HSMs). A new master key may be activated in different steps. The first step may be denoted as loading a new master key, and the actual activation of the new master key may be denoted as setting a new master key.
[0046] The term "hardware security module (HSM)" can refer to a physical computing device that protects and manages digital keys, performs encryption and decryption functions of digital signatures, strong authentication and / or other cryptographic functions. These modules traditionally appear in the form of plug-in cards or external devices that are directly attached to a computer or network server. They also include one or more secure cryptographic processor chips. HSMs are commonly used to manage, control and protect master keys used in other components of a computer or network system. Although securely stored in an HSM, security protocols also require that such master keys be updated from time to time, i.e., undergo a master key rolling process.
[0047] The term "software component" may refer to any form of executable code, for example, in the form of an application, service, Docker container, virtual machine, etc. A software component may manage its own keys, which may themselves be encrypted by a master key from one or more HSMs.
[0048] The term "active" may refer to a state of a software component during which the software component is being executed or in a wait state, but is not explicitly terminated or started.
[0049] The term "one or more keys" may mean that a software component can manage and organize its own keys for different purposes. They may be persistent / permanent keys or temporary keys.
[0050] The term "re-encryption" may refer to a multi-step process where an encrypted term (e.g., a key managed by a software component) may be decrypted by an actual decryption key and re-encrypted by a new encryption key. In the case of a symmetric key design, the actual decryption key and the original encryption key may be the same. However, the new encryption key may be different compared to the old or current encryption key.
[0051] The term "key object" may refer to a data or storage structure that is capable of distinguishing between the current key (i.e., curKey) and the new key (i.e., newKey) data values. Thus, a key object may be capable of storing two different key values. As an alternative embodiment, a key object may also store three different versions of a key: curKey, newKey, and oldKey.
[0052] The term "setup" here can mean in the context of an HSM that a new master key has been activated for use by the HSM. However, in order to activate a new master key, the new master key should also have been previously loaded. Accordingly, the setup of a new master key requires that the new master key has been previously loaded.
[0053] The term "curKey component" may represent a key currently used by a software component and which may soon be replaced by a new key. Both key versions may be protected by a master key provided by the HSM. However, the newKey used by the software component may be encrypted with the new master key from the HSM. Additionally, the software component may also use the new key value before it is encrypted with the new master key.
[0054] The term "newKey component" may refer to a field or portion of a key object in which a new encrypted key value (encrypted by the HSM's new master key) may be stored.
[0055] The term "oldKey component" may refer to the key value (or better its cryptographic equivalent) after the current key at time t0 has been replaced by newKey at time t1 (t1>t0).
[0056] Because the present disclosure may also be implemented in the context of cloud computing, several additional terms should be defined: The term "cloud computing" (and the equivalently more specific term "cloud service environment"), in this context, can be interpreted as a model for enabling convenient, on-demand network access to a shared pool of configurable computing resources (e.g., networks, servers, storage, applications, and services) that can be quickly provisioned and released with minimal management effort or service provider interaction. The cloud model promotes availability and consists of at least five basic characteristics, three service models, and four deployment models.
[0057] The basic characteristics of cloud computing include: On-demand self-service. Consumers can unilaterally provision computing capabilities, such as server time and network storage, when needed, automatically rather than manually interacting with each service provider.
[0058] Broad network access. Capabilities are available over the network and accessed through standard mechanisms that facilitate use by heterogeneous thin-client platforms or thick-client platforms (e.g., mobile phones, laptops, and PDAs).
[0059] Resource pooling. A provider's computing resources are pooled to serve multiple consumers using a multi-tenant model with different physical and virtual resources that are dynamically allocated and reallocated based on consumer demand. There is a sense of location independence because the customer typically does not control or know the exact location of the provided resources, but is able to specify the location at a higher level of abstraction (such as country, state, or data center). Examples of resources include storage, processing, memory, network bandwidth, and virtual machines.
[0060] Rapid elasticity. In some cases, capacity can be quickly and elastically provisioned to automatically scale out quickly and released quickly to scale in quickly. To the consumer, the capacity available for provisioning often appears to be unlimited and can be purchased in any quantity at any time.
[0061] Metered Services. Cloud systems automatically control and optimize resource usage by leveraging metering capabilities at some level of abstraction appropriate to the type of service (e.g., storage, processing, bandwidth, and active user accounts). Resource usage can be monitored, controlled, and reported, providing transparency to both providers and consumers of the utilized services.
[0062] Service models used for cloud computing purposes include: Cloud Software as a Service (SaaS). The capability provided to consumers is to use the provider's applications running on the cloud infrastructure. The applications are accessible from a variety of client devices through a thin client interface such as a web browser (e.g., web-based email). The consumer does not manage or control the underlying cloud infrastructure including networks, servers, operating systems, storage, or even individual application capabilities, with the possible exception of limited user-specific application configuration settings.
[0063] Cloud Platform as a Service (PaaS). The capability provided to consumers is to deploy consumer-created or acquired applications onto the cloud infrastructure, where the applications are created using programming languages and tools supported by the provider. Consumers do not manage or control the underlying cloud infrastructure including networks, servers, operating systems, or storage, but have control over deployed applications and possible configuration of the application hosting environment.
[0064] Cloud Infrastructure as a Service (IaaS). The capabilities provided to consumers are processing, storage, networking, and other basic computing resources on which consumers can deploy and run arbitrary software, which may include operating systems and applications. Consumers do not manage or control the underlying cloud infrastructure, but have control over the operating system, storage, deployed applications, and possibly limited control over selected networking components (e.g., host firewalls).
[0065] Deployment models for cloud computing include: Private cloud. The cloud infrastructure is operated only by the organization. It can be managed by the organization or a third party and can exist on-premises or off-premises.
[0066] Community cloud. The cloud infrastructure is shared by several organizations and supports a specific community with shared concerns (e.g., mission, security requirements, policies, and compliance considerations). It can be managed by the organization or a third party and can exist on-premises or off-premises.
[0067] Public cloud. Cloud infrastructure is available to the general public or large industrial groups and is owned by an organization that sells cloud services.
[0068] Hybrid Cloud. A cloud infrastructure is a combination of two or more clouds (private, community, or public) that remain a unique entity but are bound together by standardized or proprietary technologies that enable data and application portability (e.g., Cloud Bursting for load balancing between clouds).
[0069] It can be noted that cloud software fully exploits the cloud paradigm through service orientation with a focus on statelessness (with exceptions), low coupling, modularity, and semantic interoperability.
[0070] Below, a detailed description of the accompanying drawings will be given. All descriptions in the figures are schematic. First, a block diagram of an embodiment of a method for updating a current master key with a new master key when a software component is active is given. Then, other embodiments for updating a current master key with a new master key and an embodiment of a concurrent master key change system will be described.
[0071] Figure 1 A block diagram of a method 100 for updating a current master key with a new master key is shown, both protected by one or more hardware security modules (HSMs), and a software component using one or more keys is active, each key being encrypted by a current master key (MK). That is, both the current master key and the new MK may be stored in an encrypted form on / in the HSM.
[0072] A software component, such as a software service, application, virtual machine, Docker container, etc., may use one or more keys for its own operations. These keys may also be protected by a master key, a current MK (i.e., curKey), or a new MK (i.e., newKey). The keys being used by a software component may be persistent / permanent; i.e., they are stored in persistent storage, or they may be temporary, i.e., they are valid only until the software component terminates its execution. However, the protection options are the same.
[0073] The problem is updating the master key when the software component is executed, which is solved by method 100 in the following manner. First, the active software component is signaled (102) (usually based on an event) that a new master key has been loaded into one or more HSMs. There are different ways to achieve this, which need not be discussed as they will be understood by those skilled in the art.
[0074] The software component then re-encrypts (104) the key or keys encrypted with the current MK, which may also be triggered by signaling (102). The re-encryption comprises at least the steps of decrypting with the current master key and encrypting again with the new master key.
[0075] Each of the re-encrypted one or more keys is stored (106) in a corresponding newKey component of a corresponding key object used by the active software component. Such a key object will exist for each key used by the software component. The key object has storage locations for at least the current key (i.e., curKey, the key encrypted with the previous master key) and the new key (i.e., newKey, the key that has been encrypted with the new master key). Both key parts will be stored in encrypted form in the corresponding key object.
[0076] The method 100 then includes setting ( 108 ) the new master key in the first HSM (ie, activating / replacing curMK with newMK), and signaling ( 110 ) active software components that the new master key is set in at least one HSM.
[0077] When it is determined (112) by the software component (e.g., event-based or error-activated by the software component, if, for example, the key being used is not functional) that a new master key is set in at least one of the HSMs, the software component limits (114) usage of the HSMs to a selected single one of the HSMs using corresponding values stored in key components selected from the group consisting of: a CurKey component and a NewKey component of a corresponding key object, depending on the selected HSM. The single one of the HSMs is typically the HSM that holds the new master key; however, it may also be the HSM that has the old master key, for example, if the HSM with the new master key set is not accessible at the selected time.
[0078] In addition, the method 100 includes moving (118) the value of the newKey component to the curKey component in all key objects upon determining (116) that the new master key is set in all HSMs. Thus, a complete master key change cycle is performed without stopping execution of software components, as is typically required by current master key rolling methods. Thus, it is no longer necessary to restrict the use of the HSM to a selected single HSM, as indicated by reference numeral 114. This restriction can therefore be released.
[0079] Figure 2 A block diagram of components of an embodiment 200 is shown, in which aspects of the present disclosure may be advantageously used, and will now be described in context. A computer system 202 may be configured to execute a software component 204 or process. The software component 204 may use or manage one or more keys, represented here as a key object 206 having at least two entries or portions for a current key (i.e., curKey 208), which is typically encrypted with a current or actual master key (MK) 212 managed in an HSM 216. The key object 206 also includes another portion for storing newKey 210, which is typically a newly generated key of the software component 204 encrypted with a new master key 214 (new MK) of the HSM 216. As shown, multiple HSMs 216-n (HSM-n) may be used, where n may represent any positive integer.
[0080] It should also be noted that each HSM 216 may have a current master key 212 (current MK) register storing the master key that is actually set. In addition, there is a new master key 214 (new MK) register, which is used to store a new master key that can actually be loaded but has not yet been set as the current master key 212.
[0081] The (one or more) HSMs 216 are typically managed by an HSM management tool 218 supported by an HSM event signaling tool 220. A key repository 222 may store persistent key objects, including elements or portions of keys curKey and newKey used by one or more software components or applications or services. For temporary keys, the key object 206 exists only while the software component 204 is executed. The communication paths between the different components of the embodiment 200 shown here will become understandable in the context of the flowcharts described in the following sections.
[0082] A set of periods of the master key role process can be distinguished as shown in Table 1 below:
[0083] The following three figures refer to different periods of Table 1.
[0084] Figure 3A method 300 for re-encryption period 3 of Table 1 is shown. Each key i used by the software component has been or is moved (302) to the curKeyi field of the key object i. The key i actually used is re-encrypted (304), i.e., decrypted with the old master key and re-encrypted with the new master key of the corresponding HSM. The re-encrypted key i is then stored (306) in the new key i section of the key object i. It is then determined (308) whether all keys i (persistent / permanent and / or temporary keys) used by the software component have undergone this process. If this is not the case (case "no"), the method 300 loops back to the beginning; and if all keys have been re-encrypted, the process continues (310) with newKey.
[0085] Figure 4 The method 400 is shown for period 5 of Table 1, i.e., for the case where a new master key is set on at least one HSM. If this has been determined (402), and if it is determined (404) that the new MK is set in the selected currently used HSM (i.e., the use is restricted to this HSM), the key is generated (406) inside the software component, and the key actually used by the software component is stored (408) by the software component in the curKey part of the corresponding key object. The persistent key is then stored (410) in the relevant key repository.
[0086] If during determination 404, it is determined that a new master key has not been set on the single HSM currently in use (case "no"), a key is also generated (412) by the software component in this branch and the key is re-encrypted (414) using the new master key of the corresponding HSM as newKey. As an additional step, the software component can also use the newly generated key. Encryption using the new master key may fail because the new master key has already been set (i.e., activated), making the new MK register empty and re-encryption impossible. If this part of the process is unsuccessful (determination 416) (case "no"), the process returns to determination 404. Otherwise (case "yes"), the process continues to store (418) the actually used key in the curKey field of the corresponding key object and stores (420) the re-encrypted key in the newKey field of the corresponding key object. The process then continues to store (410) the persistent key in the key repository and continues (422) the ongoing process of the software component.
[0087] Figure 5A further method 500 of period 5 of Table 1 is shown, where again the starting point is to determine 502 that a new master key has been set on at least one HSM. If this is the case (case "yes"), the method 500 can determine (504) whether the use of the key failed due to a master key mismatch. If this is the case (case "yes"), a determination is made 506 as to whether newKey exists in the corresponding key object. If this is the case (case "yes"), a retry is performed 508 using newKey. In addition, for a temporary key, the content of the curKey field of the corresponding key component is set (510) to the newKey field. The software component can then continue (514) with its normal operation.
[0088] Alternatively, if newKey does not exist during determination 506 (case "No"), the process waits (512) until the new master key is set on all HSMs. The process can then continue (514) with its normal operation.
[0089] Figure 6 A block diagram of an embodiment of a concurrent master key change system 600 for updating a current master key with a new master key, both of which are composed of one or more hardware security modules (HSMs) 606 (also referred to as Figure 2 , 216, 216-n) protection, while executing in execution hardware 608 (also compared Figure 2 , 202; such a correspondence can also be used for Figure 2 and Figure 6 A software component that uses one or more keys (i.e., key objects) on the other components between the active software components is active, each key being encrypted by the current MK. The concurrent master key change system 600 includes a processor 602 and a memory 604 communicatively coupled to the processor 602. Thus, the memory 604 stores a program code portion that, when executed, enables the processor 602 to use an HSM management tool, and in particular a signaling module 610, to signal to the active software components executed on the execution hardware 608 that a new master key has been loaded into one or more HSMs 606.
[0090] The processor 602 is also enabled to support re-encryption (specifically, by a re-encryption unit 612 controlled by execution of an active software component executed on execution hardware 608 for enabling re-encryption within the HSM 606) of one or more keys encrypted using the current master key. The processor 602 is also enabled to support (specifically, using a key object storage module 614) storing each of the re-encrypted one or more keys in a corresponding newKey component of a corresponding key object used by the active software component, wherein a corresponding current key encrypted by the current MK is stored in a corresponding curKey component of the corresponding key object.
[0091] The processor 602 may also support (specifically, by the setting unit 616 ) setting a new master key in the first HSM, and signal (specifically, by the signaling module 610 or the second signaling module) to active software components that a new master key is set in at least one HSM.
[0092] In addition, the processor 602 is also enabled to: when (specifically, the first determination unit 618 controlled by the software component) determines to set a new master key in at least one HSM 606, and (specifically, the restriction module 620 controlled by the software component) use the corresponding value stored in the key component to restrict the use of the HSM to a selected single HSM in the HSM, the key component is selected from the group including the following items: depending on the selected HSM, the curKey component and the newKey component of the corresponding key object.
[0093] In addition, the processor 602 is also enabled to: when it is determined (specifically, by a second determination unit (not shown) or the same determination unit 618) that a new master key is set in all HSMs, move the value of the newKey component to the curKey component in all key objects (specifically, by the key moving unit 622).
[0094] It should also be mentioned that all functional units, modules and functional blocks may be communicatively coupled to each other in a selective 1:1 manner for signal or message exchange, specifically, the processor 602, memory 604, (one or more) HSM 606, software component execution hardware 608, signaling module 610, re-encryption unit 612, storage module 614, setting unit 616, determination unit 618, restriction module 620 and move unit 622. Alternatively, the functional units, modules and functional blocks may be linked to a system internal bus system 624 for selective signal or message exchange.
[0095] Embodiments of the present disclosure may be implemented with nearly any type of computer, regardless of whether the platform is suitable for storing and / or executing program code.
[0096] Figure 7 As an example, a computing system 700 suitable for executing program code associated with the proposed method is shown.
[0097] The computing system 700 is only an example of a suitable computer system, and is not intended to impose any restrictions on the scope of use or functions of the embodiments of the present disclosure described herein, regardless of whether the computer system 700 can be implemented and / or perform any functions set forth above. In the computer system 700, there are components that can operate with numerous other general or special computing system environments or configurations. Examples of known computing systems, environments and / or configurations suitable for use with the computer system / server 700 include, but are not limited to, personal computer systems, server computer systems, thin clients, fat clients, handheld or laptop devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, small computer systems, large computer systems, and distributed cloud computing environments including any of the above systems or devices, etc. The computer system / server 700 can be described in the general context of computer system executable instructions such as program modules executed by the computer system 700. Typically, a program module can include routines, programs, objects, components, logic, data structures, etc. that perform specific tasks or implement specific abstract data types. Computer system / server 700 may be practiced in a distributed cloud computing environment where tasks are performed by remote processing devices that are linked through a communications network. In a distributed cloud computing environment, program modules may be located in both local and remote computer system storage media, including memory storage devices.
[0098] As shown, computer system / server 700 is shown in the form of a general computing device. The components of computer system / server 700 may include, but are not limited to, one or more processing units or processors 702, system memory 704, and various system components including system memory 704 are coupled to a bus 706 of processor 702. Bus 706 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of various bus architectures. As examples and not limitations, these architectures include industrial standard architecture (ISA) bus, microchannel architecture (MCA) bus, enhanced ISA (EISA) bus, video electronics standard association (VESA) local bus, and peripheral component interconnect (PCI) bus. Computer system / server 700 generally includes various computer system readable media. Such a medium can be any available medium that can be accessed by computer system / server 700, and it includes volatile and non-volatile media, removable and non-removable media.
[0099] The system memory 704 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 708 and / or cache memory 710. The computer system / server 700 may also include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, a storage system 712 may be provided for reading from and writing to a non-removable, non-volatile magnetic medium (not shown, and commonly referred to as a "hard drive"). Although not shown, a disk drive for reading from and writing to a removable, non-volatile disk (e.g., a "floppy disk") may be provided, as well as an optical drive for reading from or writing to a removable, non-volatile optical disk such as a CD-ROM, DVD-ROM or other optical media. In such an instance, each may be connected to the bus 706 via one or more data media interfaces. As will be further described and described below, the memory 704 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of an embodiment of the present disclosure.
[0100] A program / utility having a set (at least one) of program modules 716, as well as an operating system, one or more application programs, other program modules, and program data may be stored in memory 704, by way of example and not limitation. Each of the operating system, one or more application programs, other program modules, and program data, or some combination thereof, may include an implementation of a networking environment. Program modules 716 generally perform the functions and / or methods of embodiments of the present disclosure as described herein.
[0101] The computer system / server 700 may also communicate with one or more external devices 718, such as a keyboard, a pointing device, a display 720, etc.; one or more devices that enable a user to interact with the computer system / server 700; and / or any device that enables the computer system / server 700 to communicate with one or more other computing devices (e.g., a network card, a modem, etc.). Such communication may occur via an input / output (I / O) interface 714. In addition, the computer system / server 700 may communicate with one or more networks, such as a local area network (LAN), a general wide area network (WAN), and / or a public network (e.g., the Internet), via a network adapter 722. As depicted, the network adapter 722 may communicate with other components of the computer system / server 700 via a bus 706. It should be understood that, although not shown, other hardware and / or software components may be used in conjunction with the computer system / server 700. Examples include, but are not limited to, microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data archival storage systems, etc.
[0102] Additionally, a concurrent master key changing system 600 for updating a current master key with a new master key may be attached to bus 706 .
[0103] Figure 8 A cloud computing environment 800 is shown in which at least a portion of the present disclosure may be deployed. A set of functional abstraction layers provided by the cloud computing environment are shown. It should be understood in advance that Figure 8 The components, layers, and functions shown in are intended to be illustrative only, and embodiments of the present disclosure are not limited thereto. As depicted, the following layers and corresponding functions are provided: Hardware and software layer 802 includes hardware and software components. Examples of hardware components include: host 804; server 806; server 808 based on RISC (reduced instruction set computer) architecture; blade server 810; storage device 812; network and networking components 814. In some embodiments, software components include network application server software 816 and / or database software 818.
[0104] The virtualization layer 820 provides an abstraction layer from which the following examples of virtual entities can be provided: virtual servers 822; virtual storage 824; virtual networks 826, including virtual private networks; virtual applications and operating systems 828; and virtual clients 830. In one example, the management layer 832 can provide the functions described below. Resource provisioning 834 provides dynamic procurement of computing resources and other resources used to perform tasks within the cloud computing environment. Metering and pricing 836 provides cost tracking when resources are utilized within the cloud computing environment, as well as billing or invoicing for the consumption of these resources. In one example, these resources can include application software licenses. Security provides authentication for cloud consumers and tasks, as well as protection for data and other resources. User portal 838 provides access to the cloud computing environment for consumers and system administrators. Service level management 840 provides cloud computing resource allocation and management so that the required service levels are met. Service level agreement (SLA) planning and fulfillment 842 provides pre-arrangement and procurement of cloud computing resources, where future demand is anticipated according to the SLA.
[0105] The workload layer 844 provides examples of functions that a cloud computing environment can be used for. Examples of workloads and functions that can be provided from this layer include: mapping and navigation 846; software development and lifecycle management 848; virtual classroom education delivery 850; data analysis processing 652; transaction processing 854; and concurrent master key change system 856 (also see Figure 6 , 600).
[0106] Fig. 9Components 900 of a cloud computing environment 902 are shown. As shown, the cloud computing environment 902 includes one or more cloud computing nodes 904 with which a local computing device used by a cloud consumer can communicate, such as, for example, a personal digital assistant (PDA) or cellular phone 906, a desktop computer 908, a laptop computer 910, and / or an automobile computer system 912. The nodes 904 can communicate with each other. They can be physically or virtually grouped (not shown) in one or more networks, such as a private cloud, community cloud, public cloud, or hybrid cloud, or a combination thereof, as described above. This allows the cloud computing environment 902 to provide infrastructure, platform, and / or software as a service for which the cloud consumer does not need to maintain resources on a local computing device. It should be understood that Fig. 9 The types of computing nodes 904 shown in are intended for illustration only, and computing nodes 904 and cloud computing environment 902 may communicate with any type of computerized device over any type of network and / or network-addressable connection (eg, using a web browser).
[0107] The description of various embodiments of the present disclosure has been presented for illustrative purposes, but is not intended to be exhaustive or limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terms used herein are selected to best explain the principles of the embodiments, practical applications, or technical improvements existing in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
[0108] The present disclosure may be implemented as a system, method, and / or computer program product. A computer program product may include a computer-readable storage medium (or multiple media) having computer-readable program instructions thereon, the computer-readable program instructions being used to cause a processor to perform aspects of the present disclosure.
[0109] The medium can be an electronic, magnetic, optical, electromagnetic, infrared or semiconductor system for propagating the medium. Examples of computer readable media may include semiconductor or solid-state memory, magnetic tape, removable computer disk, random access memory (RAM), read-only memory (ROM), hard disk and optical disk. Current examples of optical disks include compact disk read-only memory (CD-ROM), compact disk read / write (CD R / W), DVD and Blu-ray disk.
[0110] A computer-readable storage medium may be a tangible device capable of retaining and storing instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. A non-exhaustive list of more specific examples of computer-readable storage media includes the following: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disc read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device such as a punch card or a raised structure in a groove on which instructions are recorded, and any suitable combination of the foregoing. As used herein, a computer-readable storage medium should not be interpreted as a temporary signal itself, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagated by a waveguide or other transmission medium (e.g., a light pulse by an optical fiber cable), or an electrical signal transmitted by a wire.
[0111] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to a corresponding computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical transmission fibers, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions to be stored in a computer-readable storage medium within the corresponding computing / processing device.
[0112] The computer-readable program instructions for performing the operations of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages (e.g., Smalltalk, C++, etc.) and conventional procedural programming languages (e.g., C programming language or similar programming languages). The computer-readable program instructions may be executed entirely on the user's computer, partially on the user's computer as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the latter case, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or a connection may be made to an external computer (e.g., via the Internet using an Internet service provider). In some embodiments, electronic circuits, including, for example, programmable logic circuits, field programmable gate arrays (FPGAs), or programmable logic arrays (PLAs), may be executed by utilizing the state information of computer-readable program instructions to personalize the electronic circuits so as to perform aspects of the present disclosure.
[0113] Aspects of the present disclosure are described herein with reference to flowchart illustrations and / or block diagrams of methods, devices (systems) and computer program products according to embodiments of the present disclosure. It will be understood that each block of the flowchart and / or block diagram and the combination of blocks in the flowchart and / or block diagram can be implemented by computer-readable program instructions.
[0114] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device create a device for implementing the functions / actions specified in one or more boxes of the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium, which can guide the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable storage medium in which the instructions are stored includes a manufactured article, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes of the flowchart and / or block diagram.
[0115] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or another device to cause a series of operational steps to be performed on the computer, other programmable apparatus, or other device to produce a computer-implemented process, so that the instructions executed on the computer, other programmable apparatus, or another device implement the functions / actions specified in one or more boxes of the flowchart and / or block diagram.
[0116] The flowcharts and / or block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of the systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram may represent a module, fragment, or portion of an instruction, which includes one or more executable instructions for implementing the specified (one or more) logical functions. In some alternative embodiments, the functions marked in the box may not occur in the order marked in the figure. For example, two boxes shown in succession may actually be executed substantially simultaneously, or the boxes may sometimes be executed in reverse order, depending on the functions involved. It will also be noted that each box illustrated in the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can be implemented by a dedicated hardware-based system that performs a specified function or action or performs a combination of dedicated hardware and computer instructions.
[0117] The terms used herein are only used for the purpose of describing specific embodiments and are not intended to limit the present invention. As used herein, the singular forms "a", "an" and "the" are also intended to include the plural forms, unless the context clearly indicates otherwise. It will also be understood that the terms "comprise" and / or "comprising" when used in this specification specify the presence of stated features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof.
[0118] All means or steps in the following claims plus the corresponding structures, materials, actions, and equivalents of the functional elements are intended to include any structure, material, or action for performing a function in combination with other claimed elements as specifically claimed. The description of the present disclosure has been presented for the purpose of illustration and description, but is not intended to be exhaustive or to limit the present disclosure to the disclosed form. Many modifications and variations will be clear to those of ordinary skill in the art without departing from the scope and spirit of the present disclosure. The embodiments are selected and described in order to best explain the principles and practical applications of the present disclosure, and to enable other persons of ordinary skill in the art to understand the various embodiments of the present disclosure with various modifications as suitable for the intended specific use.
[0119] A non-limiting list of examples will now be described: Example 1 is a method for updating a current master key using a new master key when an active software component that uses one or more keys is active, the current master key and the new master key both being protected by one or more hardware security modules (HSMs), each key being encrypted with the current master key, the method comprising: signaling to the active software component that the new master key has been loaded into the one or more HSMs; re-encrypting, by the software component, the one or more keys encrypted with the current master key; storing each of the re-encrypted one or more keys in a corresponding newKey component of a corresponding key object used by the active software component, wherein the corresponding current key encrypted by the current master key is stored in the the corresponding curKey component of the corresponding key object; setting the new master key in the first of the HSMs; signaling the active software component that the new master key is set in at least one of the HSMs; upon determining by the software component that the new master key is set in at least one HSM, limiting the use of the HSM to a selected single HSM among the HSMs using the corresponding value stored in the key component, the key component being selected from the group consisting of: the corresponding curKey component and the corresponding newKey component; and upon determining that the new master key is set in all HSMs, moving the corresponding value of the corresponding newKey component to the corresponding curKey component in all key objects.
[0120] Example 2 includes the features of Example 1. In this example, the method further comprises: upon determining, by the HSM event signaling tool, one selected from the group consisting of: a master key load operation and a master key set operation on the one or more HSMs, signaling a corresponding event to the active software component.
[0121] Example 3 includes the features of any one of Examples 1 to 2. In this example, the method further comprises: upon determination of a master key load operation on the one or more HSMs by the HSM event signaling tool, re-encrypting the key object persisted in the key repository.
[0122] Example 4 includes the features of any one of Examples 1 to 3. In this example, the method further comprises: upon determining by the HSM event signaling tool that the master key setup operation has been performed on all HSMs, moving the value of the newKey component of the key object to the curKey component of the key object persistently stored in a key repository.
[0123] Example 5 includes the features of any one of Examples 1 to 4. In this example, determining, by the software component, that a new master key is set in at least one HSM further comprises at least one item selected from the group consisting of: receiving, by the software component, a new MK set signal; and determining, by the software component, that an error code has been received indicating use of a curKey component of a local key encrypted with a non-actual master key.
[0124] Example 6 includes the features of any one of Examples 1 to 5. In this example, the method further includes: when it is determined that all key objects encrypted with the current master key have been re-encrypted, sending a signal indicating that all keys have been re-encrypted to the HSM set new MK component to trigger setting all new master keys on all HSMs.
[0125] Example 7 includes the features of any one of Examples 1 to 6. In this example, the method further comprises upon receiving a signal that a new master key has been loaded: generating, by the active software component, a new key using the HSM; storing, by the active software component, the new key in the curKey component of a key object; re-encrypting the new key; and storing the re-encrypted key in the newKey component of the key object.
[0126] Example 8 includes the features of any one of Examples 1 to 7. In this example, the method further comprises, when it is determined by the software component that the new master key is set in at least one HSM and a key object without a newKey component cannot be used with the at least one HSM: delaying use of the key object until the new master key is set on the at least one HSM.
[0127] Example 9 includes the features of any one of Examples 1 to 8. In this example, the method further comprises: writing the value of the curKey component of the key object before moving the value of the newKey component to the curKey component of the key object.
[0128] Example 10 includes the features of any one of Examples 1 to 9. In this example, the method further comprises, upon starting the active software component and determining that a master key change process is ongoing: determining a stage of the ongoing master key change process.
[0129] Example 11 is a concurrent master key change system for updating a current master key using a new master key when an active software component using one or more keys is active, wherein both the current master key and the new master key are protected by one or more hardware security modules (HSMs), and each key is encrypted with the current master key. The concurrent master key change system includes: a processor and a memory communicatively coupled to the processor, wherein the memory stores a program code portion that, when executed, enables the processor to perform a method according to any one of Examples 1 to 10.
[0130] Example 12 is a computer program product for updating a current master key using a new master key when an active software component using one or more keys is active, wherein both the current master key and the new master key are protected by one or more hardware security modules (HSMs), and each key is encrypted by the current master key. The computer program product includes a computer-readable storage medium having program instructions embodied therein, and the program instructions can be executed by one or more computing systems to cause the one or more computing systems to perform a method according to any one of Examples 1 to 10.
Claims
1. A method for updating a current master key with a new master key when an active software component using one or more keys is active, the current master key and the new master key both being protected by one or more hardware security modules (HSMs), each of the one or more keys being encrypted with the current master key, the method comprising: signaling to the active software component that the new master key has been loaded into the one or more HSMs; re-encrypting, by the software component, the one or more keys encrypted with the current master key; storing each of the re-encrypted one or more keys in a corresponding newKey component of a corresponding key object used by the active software component, wherein a corresponding current key encrypted by the current master key is stored in a corresponding curKey component of the corresponding key object; Setting the new master key in a first one of the HSMs; signaling to the active software component that the new master key is set in at least one of the HSMs; upon determining, by the software component, that the new master key is set in at least one HSM, restricting, by the software component, use of the HSM to a selected single one of the HSMs using corresponding values stored in key components selected from the group consisting of: the corresponding curKey component and the corresponding newKey component; as well as When it is determined that the new master key is set in all HSMs, the corresponding values of the corresponding newKey components are moved to the corresponding curKey components in all key objects.
2. The method according to claim 1, further comprising: Upon determination by the HSM event signaling tool of one selected from the group consisting of: a master key load operation and a master key set operation on the one or more HSMs, a corresponding event is signaled to the active software component.
3. The method according to claim 1 or 2, further comprising: Upon determination of a master key load operation on the one or more HSMs by the HSM event signaling tool, a key object persistently stored in a key repository is re-encrypted.
4. The method according to any one of claims 1 to 3, further comprising: Upon determining by the HSM event signaling tool that the master key setup operation has been performed on all HSMs, the value of the newKey component of the key object is moved to the curKey component of the key object persisted in the key repository.
5. The method according to any one of claims 1 to 4, wherein: Determining, by the software component, that the new master key is set in at least one HSM further comprises at least one item selected from the group consisting of: receiving, by the software component, a new MK setting signal; and A determination is made by the software component that an error code has been received indicating use of a curKey component of a local key encrypted with something other than the actual master key.
6. The method according to any one of claims 1 to 5, further comprising: When it is determined that all key objects encrypted with the current master key have been re-encrypted, an all-keys-re-encrypted signal is sent to the HSM set new MK component to trigger setting of all new master keys on all HSMs.
7. The method according to any one of claims 1 to 6, further comprising upon receiving a signal that the new master key has been loaded: generating, by the active software component, a new key using the HSM; storing, by the active software component, the new key in the curKey component of a key object; re-encrypting the new key; as well as The re-encrypted key is stored in the newKey component of the Key object.
8. The method according to any one of claims 1 to 7, further comprising, when it is determined by the software component that the new master key is set in at least one HSM and a key object without a newKey component cannot be used with the at least one HSM: Use of the key object is delayed until the new master key is set on the at least one HSM.
9. The method according to any one of claims 1 to 8, further comprising: The value of the curKey component of the key object is written before the value of the newKey component is moved to the curKey component of the key object.
10. The method according to any one of claims 1 to 9, further comprising, upon starting the active software component and determining that a master key change process is in progress: Determine the stage of the ongoing master key change process.
11. A concurrent master key change system for updating a current master key with a new master key while an active software component using one or more keys is active, the current master key and the new master key both being protected by one or more hardware security modules (HSMs), each of the one or more keys being encrypted with the current master key, the concurrent master key change system comprising: A processor and a memory communicatively coupled to the processor, wherein the memory stores program code portions that, when executed, enable the processor to perform a method comprising: signaling to the active software component that the new master key has been loaded into the one or more HSMs; re-encrypting, by the software component, the one or more keys encrypted with the current master key; storing each of the re-encrypted one or more keys in a corresponding newKey component of a corresponding key object used by the active software component, wherein a corresponding current key encrypted by the current master key is stored in a corresponding curKey component of the corresponding key object; setting the new master key in a first one of the HSMs, signaling to the active software component that the new master key is set in at least one of the HSMs; upon determining, by the software component, that the new master key is set in at least one HSM, restricting, by the software component, use of the HSM to a selected single one of the HSMs using corresponding values stored in key components selected from the group consisting of: the corresponding curKey component and the corresponding newKey component; as well as When it is determined that the new master key is set in all HSMs, the corresponding values of the corresponding newKey components are moved to the corresponding curKey components in all key objects.
12. The concurrent master key change system of claim 11, wherein the processor is further enabled, upon determination by the HSM event signaling tool of one selected from the group consisting of: a master key load operation and a master key set operation on the one or more HSMs: A corresponding event is signaled to the active software component.
13. A concurrent master key change system according to claim 11 or 12, wherein the processor is further enabled to, when a master key load operation on the one or more HSMs is determined by an HSM event signaling tool: Re-encrypts the key object persisted in the key repository.
14. A concurrent master key changing system according to any one of claims 11 to 13, wherein: The processor is further enabled to, upon determining by the HSM event signaling tool that the master key setup operation has been performed on all HSMs: Move the value of the newKey component of the key object to the curKey component of the key object persisted in a key repository.
15. A concurrent master key change system according to any one of claims 11 to 14, wherein: When it is determined by the software component that the new master key is set in at least one HSM, the processor is enabled to further perform at least one item selected from the group consisting of: receiving, by the software component, a new MK setting signal; and A determination is made by the software component that an error code has been received indicating use of a curKey component of a local key encrypted with something other than the actual master key.
16. A concurrent master key changing system according to any one of claims 11 to 15, wherein upon determining that all key objects encrypted with the current master key have been re-encrypted, the processor is further enabled to: Send all keys re-encrypted signal to HSM setup new MK component to trigger setup of all new master keys on all HSMs.
17. The concurrent master key changing system according to any one of claims 11 to 16, wherein upon receiving the signal that the new master key is loaded, the processor is enabled to further execute the method, the method further comprising: generating, by the active software component, a new key using the HSM; storing, by the active software component, the new key in the curKey component of a key object; re-encrypting the new key; as well as The re-encrypted key is stored in the newKey component of the Key object.
18. The concurrent master key changing system according to any one of claims 11 to 17, wherein when the software component determines that the new master key is set in at least one HSM, and when it is determined that a key object without a newKey component cannot be used with the HSM, the processor is enabled to further execute the method, the method further comprising: Use of the key object is delayed until the new master key is set on the HSM.
19. The concurrent master key changing system according to any one of claims 11 to 18, wherein the processor is further capable of executing the method, the method further comprising: The value of the curKey component of the key object is written before the value of the newKey component is moved to the curKey component of the key object.
20. A computer program product for updating a current master key with a new master key when an active software component using one or more keys is active, the current master key and the new master key both being protected by one or more hardware security modules (HSMs), each key being encrypted by the current master key, the computer program product comprising a computer readable storage medium having program instructions embodied therewith, the program instructions being executable by one or more computing systems to cause the one or more computing systems to: signaling to the active software component that the new master key has been loaded into the one or more HSMs; re-encrypting, by the software component, the one or more keys encrypted with the current master key; storing each of the re-encrypted one or more keys in a corresponding newKey component of a corresponding key object used by the active software component, wherein a corresponding current key encrypted by the current master key is stored in a corresponding curKey component of the corresponding key object; Setting the new master key in a first one of the HSMs; signaling to the active software component that the new master key is set in at least one of the HSMs; upon determining, by the software component, that the new master key is set in at least one HSM, restricting, by the software component, use of the HSM to a selected single one of the HSMs using a corresponding value stored in a key component selected from the group consisting of: the corresponding curKey component and the corresponding newKey component; as well as When it is determined that the new master key is set in all HSMs, the corresponding values of the corresponding newKey components are moved to the corresponding curKey components in all key objects.
Citation Information
Patent Citations
Key encryption key rotation
US20200053065A1
Mitigating service disruptions in key maintenance
US20200169401A1
Cited By
Switching method of key storage mechanism, cluster system, device, medium and product
CN119402193A
