Rewire the Cryptographic Key Management System Service Instance

By reconnecting the service instance in the key management system, the problem of key inaccessibility after the user accidentally deletes the service instance is solved, enabling quick recovery of key access and simplified key management processes, ensuring data availability and Security.

CN111344997BActive Publication Date: 2024-09-13ORACLE INT CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201980005701.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2019-09-03
Filing Date
2019-10-07
Publication Date
2024-09-13
Estimated Expiration
2039-10-07

AI Technical Summary

Technical Problem

The existing key management system (KMS) makes the encrypted data inaccessible after the user accidentally deletes the service instance (SI), and the process of recovering the key is complex and inconvenient, especially when the key needs to be recovered quickly, it lacks Efficient solution.

Method used

Implement an automation framework to re-instantiate key management operations within a fixed period of time after deletion by rewiring a Key Management System (KMS) service instance, creating a new service instance and mapping it to a deleted Master Encryption Key (MEK) , ensuring the accessibility of the key.

Benefits of technology

It enables quick restoration of key access after a user accidentally deletes a service instance, simplifies the key management process, ensures data availability and security, and avoids the risk of permanent key loss.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111344997B_ABST
    Figure CN111344997B_ABST
Patent Text Reader

Abstract

Embodiments are directed to rewiring a key management system ("KMS") service instance ("SI") with associated keys. Embodiments, in response to a request, delete a first SI mapped to one or more keys. To restore the keys, embodiments create a second SI and map the second SI to the one or more keys.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] One embodiment relates generally to computer systems, and more particularly to management of cryptographic keys in computer systems. Background Art

[0002] Key Management Service ("KMS") provides management of cryptographic keys in cryptographic systems. Management includes the functions of generation, exchange, storage, use, cryptographic shredding (i.e., destruction), and key replacement. It includes cryptographic protocol design, key servers, user processes, and other related protocols.

[0003] A key in KMS is a logical entity that represents one or more key versions that contain cryptographic material for encrypting and decrypting data, thereby protecting the data where it is stored. When processed as part of an encryption algorithm, a key specifies how plaintext is converted to ciphertext during encryption, and how ciphertext is converted to plaintext during decryption. In general, KMS recognizes two types of encryption keys: a master encryption key ("MEK") and a data encryption key ("DEK"). After a user has created a master encryption key using KMS, the user can then use an application programming interface ("API") to generate a data encryption key that KMS returns to the user. KMS returns both a raw key and a wrapped key. Typically, a user will only store the wrapped key. Summary of the invention

[0004] Embodiments relate to rewiring a key management system ("KMS") service instance ("SI") and associated keys. In response to a request, an embodiment deletes a first SI mapped to one or more keys. To restore the keys, an embodiment creates a second SI and maps the second SI to the one or more keys. BRIEF DESCRIPTION OF THE DRAWINGS

[0005] Figure 1 A high-level overview of a key management service according to an embodiment of the present invention is illustrated.

[0006] Figure 2 is a block diagram of a computer server / system according to an embodiment of the present invention.

[0007] Figure 3 is a flow chart of functionality for a user / customer to delete a service instance, according to an embodiment.

[0008] Figure 4 is a flow chart of functionality for a user / client to restore a deleted service instance according to an embodiment.

[0009] Figure 5 is a flow diagram of functionality for rewiring a newly created service instance to a deleted master encryption key, according to an embodiment.

[0010] Figure 6A-6C An example of a service instance before and after rewiring a DB SCHEMA MAP table is illustrated according to an embodiment.

[0011] Figure 7 is a screenshot of a PaaS Service Manager ("PSM") UI for managing SIs, according to an embodiment.

[0012] Figure 8 is a screenshot of the PSM UI when SI is forcibly deleted according to an embodiment.

[0013] Fig. 9 is a screenshot of the SI management console allowing a user to manage keys according to an embodiment.

[0014] Fig.10 is a screenshot of a PSM UI for creating or deleting a new service instance, according to an embodiment. DETAILED DESCRIPTION

[0015] One embodiment is a Key Management Service ("KMS") where deletion of a service instance and corresponding access to a MEK can be restored by a user / client of the KMS. A new service instance is created and mapped to the "deleted" MEK.

[0016] Figure 1 A high-level overview of a KMS 70 according to an embodiment of the present invention is illustrated. Multiple KMS clients 72 request keys from one or more web servers using a representational state transfer ("REST") application program interface ("API"). The clients 72 that can request and utilize keys include a database 81. In one embodiment, the database 81 is a database from Oracle Corporation that includes transparent data encryption ("TDE") that enables encryption of sensitive data stored in tables and tablespaces. After the data is encrypted, when authorized users or applications access the data, the data is transparently decrypted for them. In this embodiment, the database 81 includes a KMS-DB agent 85. Other requesting clients 72 may include various cloud services 82 in the cloud environment, various customer applications 83, or a management console 84 operated by an account administrator, where the account administrator is also referred to as including such as Figure 1 Shown are users or customers of the entire cloud system of KMS.

[0017] In one embodiment, one or more web servers are cloud-based servers. In an embodiment, the web servers are implemented by a mid-tier component 76 that exposes a REST API 75-based system for cross-domain identity management (“SCIM”). In one embodiment, the mid-tier 76 includes a collection of stateless microservices that communicate with the data tier 92.

[0018] In one embodiment, the microservices that can implement the middle layer 76 are independently deployable services. In one embodiment, the term "microservice" envisions a software architecture design pattern in which complex applications are composed of small independent processes that communicate with each other using language-independent APIs. In one embodiment, microservices are small, highly decoupled services, and each microservice can focus on doing a small task. In one embodiment, the microservice architecture style is a method of developing a single application as a set of small services, each of which runs in its own process and communicates using a lightweight mechanism (e.g., Hypertext Transfer Protocol ("HTTP") resource API). In one embodiment, microservices are easier to replace than single-piece services that perform all or multiple functions in the same function. Moreover, each microservice can be updated without adversely affecting other microservices. In contrast, an update to a part of a single-piece service may unexpectedly or unintentionally have a negative impact on other parts of the single-piece service. In one embodiment, microservices can be beneficially organized around their capabilities. In one embodiment, the startup time of each microservice in a collection of microservices is much less than the startup time of a single application that executes all services in these microservices in a centralized manner. In some embodiments, the startup time of each of such microservices is about one second or less, while the startup time of such a single application may be about one minute, several minutes, or longer.

[0019] In one embodiment, a microservice architecture such as middleware 76 refers to a specialization (i.e., separation of tasks within a system) and implementation approach for a service-oriented architecture ("SOA") to build flexible, independently deployable software systems. Services in a microservice architecture are processes that communicate with each other over a network to fulfill a goal. In one embodiment, these services use technology-independent protocols. In one embodiment, services have a small granularity and use lightweight protocols. In one embodiment, services are independently deployable. By distributing the functionality of a system into different small services, the cohesion of the system is enhanced and the coupling of the system is reduced. This makes it easier to change the system and add functionality and quality to the system at any time. It also allows the architecture of individual services to emerge through continuous refactoring, thereby reducing the need for large upfront design and allowing software to be released early and continuously.

[0020] In one embodiment, in a microservice architecture, an application is developed as a collection of services, and each service runs a corresponding process and communicates using a lightweight protocol (e.g., a unique API for each microservice). In a microservice architecture, decomposing software into individual services / capabilities can be performed at different levels of granularity, depending on the services to be provided. Services are runtime components / processes. Each microservice is a self-contained module that can talk to other modules / microservices. Each microservice has an unnamed universal port that can be contacted by other microservices. In one embodiment, the unnamed universal port of a microservice is a standard communication channel that is conventionally exposed by the microservice (e.g., as a conventional HTTP port) and allows any other module / microservice in the same service to talk to it. Microservices or any other self-contained functional modules can be collectively referred to as "services."

[0021] The data layer 92 includes a hardware security module ("HSM") 94 and a database 95. The HSM is a physical computing device that protects and manages digital keys for strong authentication and provides cryptographic processing. These modules usually come in the form of external devices that are inserted into a card or directly attached to a computer or network server. The MEK resides in the HSM 94 and within the HSM 94 to provide cryptographic services related to the MEK. Application keys and all metadata are stored in the database 95. In some embodiments, all components of the middle layer 76 and the data layer 92 are implemented with high availability ("HA") and disaster recovery ("DR").

[0022] In one embodiment, database 95 is implemented using a relational database management system ("RDMS") database from Oracle Corporation. In the context of an Oracle database, a schema object is a logical data storage structure. Oracle database associates a separate schema with each database user. A schema includes a collection of schema objects. Examples of schema objects include: tables, views, sequences, synonyms, indexes, clusters, database links, snapshots, procedures, functions, or packages. On the other hand, non-schema objects may include: users, roles, contexts, or directory objects.

[0023] Schema objects do not have a one-to-one correspondence with the physical files on disk that store their information. However, Oracle Database logically stores schema objects in the database's tablespaces. The data for each object is physically contained in the data files of one or more tablespaces. For some objects (such as tables, indexes, and clusters), the database administrator can specify how much disk space the Oracle RDBMS allocates for objects within the data files of a tablespace. There is no necessary relationship between schemas and tablespaces: a tablespace can contain objects from different schemas, and objects of a single schema can reside in different tablespaces.

[0024] In one embodiment, the middle layer 76 and the data layer 92 are implemented by an authentication service provided by Identity Cloud Service ("IDCS"), which is a multi-tenant cloud-scale identity access management ("IAM") platform from Oracle Corporation. IDCS provides authentication, authorization, auditing, and federation. IDCS manages access to custom applications and services running on public clouds and on-premise systems. In alternative or additional embodiments, IDCS can also manage access to public cloud services. For example, IDCS can be used to provide single sign-on ("SSO") functionality in various services / applications / systems. Users and clients must first authenticate to IDCS and obtain a token suitable for KMS access. Peripheral authorization is enforced by IDCS CloudGate. Fine-grained access to the KMS API is enforced by the authorization module using appropriate scopes and roles for distinguishing between clients and administrators. Additional details of IDCS are disclosed, for example, in U.S. Pat. No. 9,838,376, the disclosure of which is incorporated herein by reference.

[0025] In an embodiment, KMS supports horizontal partitioning for SIs. Thus, each SI is associated with a dedicated schema created across more than one DB instance. The primordial DB is a central DB that contains information about which SI schema resides in which DB instance and about login details. It can also persist the mapping of SIs to tenants.

[0026] Figure 2 1 is a block diagram of a computer server / system 10 according to an embodiment of the present invention. Although shown as a single system, the functionality of system 10 may be implemented as a distributed system. In addition, the functionality disclosed herein may be implemented on separate servers or devices that may be coupled together via a network. In addition, one or more components of system 10 may not be included. For example, for the functionality of a server, system 10 may need to include a processor and memory, but may not include Figure 2In some embodiments, all or part of system 10 may be used to implement Figure 1 Any or all of the parts shown.

[0027] The system 10 includes a bus 12 or other communication mechanism for transmitting information, and a processor 22 coupled to the bus 12 for processing information. The processor 22 can be any type of general or special purpose processor. The system 10 also includes a memory 14 for storing instructions and information to be executed by the processor 22. The memory 14 can be composed of any combination of random access memory ("RAM"), read-only memory ("ROM"), static storage such as a magnetic disk or optical disk, or any other type of computer-readable medium. The system 10 also includes a communication device 20 such as a network interface card to provide access to a network. Therefore, a user can interface with the system 10 directly or remotely through a network or any other method.

[0028] Computer readable media can be any available media that can be accessed by processor 22 and includes volatile and nonvolatile media, removable and non-removable media, and communication media. Communication media may include computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and includes any information delivery media.

[0029] Processor 22 is also coupled to a display 24 , such as a liquid crystal display (“LCD”), via bus 12 . A keyboard 26 and cursor control device 28 , such as a computer mouse, are also coupled to bus 12 to enable a user to interface with system 10 .

[0030] In one embodiment, memory 14 stores software modules that provide functionality when executed by processor 22. These modules include an operating system 15 that provides operating system functionality for system 10. These modules also include a KMS module 16 that provides KMS functionality and all other functionality disclosed herein. System 10 may be part of a larger system. Therefore, system 10 may include one or more additional functional modules 18 to include additional functionality, such as the IDCS functionality disclosed above. Database 17 is coupled to bus 12 to provide centralized storage for modules 16 and 18 and to store keys, passwords, etc. In one embodiment, database 17 is a relational database management system ("RDBMS") that can use structured query language ("SQL") to manage stored data.

[0031] As discussed previously, the keys (i.e., "MEKs") created by users in KMS play an imperative role in that they are used to encrypt all of a user's sensitive data. The keys are stored in a hardware-based persistent store (such as a Figure 1 HSM 94). As long as the user's data is encrypted, it is necessary for the user not to lose the key because access to the encrypted data will no longer be available. In Oracle Public Cloud ("OPC"), users can create multiple KMS instances for their cloud account. The service instance is the API that allows customers to access the keys. When an SI is created, a new SI Uniform Resource Locator (URL) is generated and this URL will be used as the SI Management Console UI from which users can manage keys.

[0032] However, some KMS allow users to delete MEKs. For example, in KMS from Oracle, it is possible to delete the key. However, before deleting the key, KMS provides the following warning: "If you set a key to pending deletion, anything encrypted with that key will immediately become inaccessible. The key also cannot be assigned or unassigned to any resources or otherwise updated. If the key is deleted, all key material and metadata are irreversibly destroyed. Before you delete a key, assign new keys to resources currently encrypted by it, or otherwise preserve your data. If you want to resume use of the key before you permanently delete it, you can cancel its deletion."

[0033] However, in the event of an accidental deletion of a user's service instance ("SI"), the user will face significant consequences, which will make their encrypted data untranslatable. Therefore, generally speaking, regular KMS SI deletion is not allowed unless the user has previously deleted each MEK created. In some known systems, the only way to delete a service instance for which a MEK exists is to select "Force Delete". This can be initiated by a customer administrator gesture, or can be initiated as part of a cloud account deletion by logging into the PSM UI using the management console 84.

[0034] Figure 3 is a flow chart of functionality for a user / customer to delete a service instance, according to an embodiment. Figure 3 The function of Figure 2 KMS module 16 or Figure 1 In one embodiment, Figure 3 (and the following Figure 4 and Figure 5 ) is implemented by software stored in a memory or other computer-readable or tangible medium and executed by a processor. In other embodiments, the functions may be performed by hardware (e.g., by using an application specific integrated circuit (“ASIC”), a programmable gate array (“PGA”), a field programmable gate array (“FPGA”), etc.), or by any combination of hardware and software. Figure 3The functionality is used for known Oracle KMS. For the disclosed functionality, in an embodiment, it is assumed that both the KMS original DB and the service instance DB will be run.

[0035] At 301, the user / customer logs in to the PaaS Service Manager tool ("PSM") user interface ("UI") or uses the PSM Rest API. PSM provides a command line interface ("CLI") that allows users to manage the lifecycle of various platform services in Oracle Cloud. The CLI is a thin wrapper around the PaaS REST API that calls these APIs to support common PaaS features, including creating and managing instances of Oracle Java Cloud Service, Oracle Database Cloud Service instances, and Oracle MySQL Cloud Service instances, or using Oracle Application Container Cloud Service to create and manage applications. The CLI also supports Oracle Cloud Stack Manager, a PaaS tool that automates the provisioning and deletion of cloud environments. In an embodiment, the PSM UI can be accessed using the management console 84.

[0036] In an embodiment, another service instance-specific console referred to as the "KMS console" allows service administrators to manage and manipulate keys. The PSM Admin Console 84 provides a SI URL link that takes the user from the PSM Admin Console to the KMS console. The PSM Admin Console is used to manage multiple KMS service instances for a tenant / customer, while the KMS console only allows management of keys for one service instance.

[0037] At 302, a user indicates deletion of a SI and one or more corresponding MEKs. In an embodiment, it is not necessary to delete the MEKs first. At 303, a prompt is generated for the user to verify whether the user desires to force deletion of the SI. If the user answers "no", then at 306, the SI deletion fails. Otherwise, at 304, the SI is deleted and the corresponding SI Uniform Resource Locator ("URL") is inaccessible. As discussed above, deletion of the SI also means that the user no longer has access to any corresponding stored MEKs. However, in some cases, despite the warnings disclosed above, users may "accidentally" delete their SI.

[0038] because Figure 3 After a user deletes their KMS SI, for example through the PSM UI or PSM Rest API, they will not be able to access the SI HSM keys or access the KMS console to query the DB schema mapped to the deleted service instance. In some embodiments, as part of the SI deletion operation:

[0039] In the SERVICE_INSTANCE database table of KMS database 95, the SI status will be marked as SOFT_TERMINATED ( Figure 1 );

[0040] The row of the DB SCHEMA MAP table corresponding to the deleted service instance will be marked as STALE.

[0041] The DB schema and HSM keys of a deleted KMS service instance will be retained for 30 days before being completely purged.

[0042] Therefore, in an embodiment, a method is provided for a user to register within a 30-day period (or another predefined period) (from the embodiment). Figure 3 The function of restoring access to the KMS service instance KMS key artifacts of a deleted KMS service instance is to restore the access to the KMS service instance KMS key artifacts of the deleted KMS service instance, because the actual MEK is deleted only after a predefined period of time. As described below, the user creates a new KMS SI and rewires the DB schema of the deleted KMS service instance to the newly created KMS SI.

[0043] Embodiments relate to a rewiring automation framework that enables users to regain access to keys after a forced service instance deletion and thus reinstantiate key management operations. The framework associates the old keys of the deleted service instance with the new service instance. It should only be executed within a fixed number of days after deletion, after which the keys are permanently deleted from the HSM and cannot be recovered anymore (e.g., 30 days).

[0044] Figure 4 is a flow chart of the functionality for a user / client to restore deleted SI according to an embodiment. In an embodiment, Figure 4 The function of Figure 2 KMS module 16 or by Figure 1 The middle layer 76 and the data layer 92 are implemented. In an embodiment, Figure 4 The function will be Figure 3 Occurs after the function.

[0045] At 401, a user creates a service request ("SR") to restore a deleted MEK. At 402, a Development and Operations ("devOps") engineer, who may be an operations team engineer, resolves the SR and asks the user to create a new SI. In an embodiment, additional options are exposed in the PSM management console so that whenever a user creates a new SI, they can choose to create a brand new schema in the backend, or they can choose to wire up the new service instance with the old service instance that was deleted. This functionality can also be automated. At 403, the user creates a new SI.

[0046] Figure 5 is a flow chart of a function for rewiring a newly created SI to a deleted MEK according to an embodiment. In an embodiment, Figure 5 The function of Figure 2 KMS module 16 or by Figure 1 The middle layer 76 and the data layer 92 are implemented. In an embodiment, Figure 5 The function will be Figure 4 Occurs after the function.

[0047] At 501, the automation script is executed. In one embodiment, devops executes the automation script by logging into the management node of the middle tier using the "oracle" user role. In other embodiments, the automation script may be automatically executed. At 502, the automation script calls the admin-cli with all input parameters provided by devOps. The admin-cli is a command line interface executed by devOps engineers in the management node of the KMS middle tier. The purpose of the admin-cli is to accept deleted SI names and newly created SI names from the command line and pass them to the automation process.

[0048] The pseudo code according to one embodiment of the pseudo code is as follows:

[0049] #Script to reconnect deleted SI with newly created SI.

[0050] setupenv_config(){

[0051] / / Set the startup configuration for automation

[0052] }

[0053] get_input(){

[0054] / / Get the deleted SI name and the newly created SI name from the command line

[0055] }

[0056] perform_rewire(){

[0057] / / Prepare to reconnect

[0058] / / Construct reconnect request

[0059] }

[0060] execute_rewire_cli(){

[0061] / / Pass the deleted SI name and the newly created SI name, and call the automatic connection java service cli. [Reference Figure 5 Item 504]

[0062] }

[0063] flush_global_cache(){

[0064] / / After the reconnection is successful, remove the deleted SI referenced object from global_cache

[0065] }

[0066] At 504, admin-cli will perform a rewire execution by pointing the newly created SI to the deleted SI schema in the database 95. At 503, the automation script performs a selective cache refresh on the dbSchemaMap object after a successful rewire. When a SI is deleted, its referenced SI data objects are removed (i.e., refreshed) from the global cache.

[0067] At 511, the user accesses the PSM UI. At 512, the user uses Figure 3 The KMS console UI is launched by clicking the new SI URL in . At 513 , the user can view the deleted SI MEK, indicating that the MEK is now available.

[0068] Figure 6A-6C Illustrated are examples of service instances before and after rewiring the DB SCHEMA MAP table according to an embodiment.

[0069] Fig. 6A The table before rewiring is illustrated, the state of the deleted KMSSI in the GLOBAL_KMS.DB_SCHEMA_MAP table (ie, "stale" at 601) points to the schema name 602 (ie, ending with "693"). Figure 6B The table is illustrated after the new KMS SI is created (ie, "inuse" at 603) pointing to the schema name 604 (ie, ending in "694"). Figure 6C The diagram illustrates the expected state after execution of the automation script, showing the new SI 603 pointing to (ie, remapped to) the previous SI schema name 602, which is ready to be deleted at 605.

[0070] Figure 7 is a screenshot of a PSM UI for managing SIs according to an embodiment. An active service instance is shown at 701, and a user can select button 702 to create additional service instances.

[0071] Figure 8 is a screenshot of the PSM UI when SI is forcibly deleted according to an embodiment. Figure 3 The 303, presents the user with a warning including a checkbox after the deletion.

[0072] Fig. 9 is a screenshot of the SI management console that allows a user to manage keys according to an embodiment. Figure 5 513 provides users with Fig. 9 , so that after the new SI has been rewired, the user can view all previously "deleted" MEKs.

[0073] Fig.10 is a screenshot of a PSM UI for creating or deleting a new service instance, according to an embodiment. At 1001, a user can delete a selected service instance, among other options.

[0074] Several embodiments are specifically illustrated and / or described herein. However, it will be appreciated that the above teachings cover modifications and variations of the disclosed embodiments without departing from the spirit and intended scope of the invention, and within the scope of the appended claims.

Claims

1. A method for reconnecting a key management system KMS service instance SI and an associated key, the method comprising: In response to the request, delete a first SI of the user mapped to one or more keys, the one or more keys being stored in the KMS, the first SI being associated with a dedicated first database schema and serving as a first programming interface API allowing the user to access the one or more keys stored in the KMS, and the deletion of the first SI making the user unable to access the one or more keys stored in the KMS; creating a second SI, the second SI being associated with the second database schema and serving as a second API; as well as A second SI is mapped to the one or more keys, the mapping providing the user with access to the one or more keys stored in the KMS using a second API.

2. The method of claim 1, wherein the first SI is mapped to a first database schema, and the first SI is associated with a uniform resource locator (URL) that allows a user to manage the key. 3 . The method of claim 1 , wherein the key comprises a master encryption key (MEK) and is stored in a hardware security module (HSM).

4. The method of claim 2, wherein the mapping of the second SI to the one or more keys comprises mapping the second SI to the second database schema.

5. The method of claim 1, wherein in response to deleting the first SI, the key is deleted after expiration of a predefined time period.

6. The method of claim 1, wherein the mapping is implemented by a middle layer of the KMS, wherein the middle layer is implemented by one or more microservices.

7. A key management system KMS, comprising: A middle layer that includes one or more microservices; as well as a data layer coupled to the middle layer and comprising one or more hardware security modules HSM and one or more databases; The middle layer is suitable for deleting a first service instance SI of a user mapped to one or more keys in response to a first request, the one or more keys being stored in the KMS, the first SI being associated with a dedicated first database schema and serving as a first programming interface API allowing the user to access the one or more keys stored in the KMS, and the deletion of the first SI making the user unable to access the one or more keys stored in the KMS, and creating a second SI in response to a second request and mapping the second SI to the one or more keys, the second SI being associated with a second database schema and serving as a second API, the mapping providing the user with access to the one or more keys stored in the KMS using the second API.

8. The key management system of claim 7, wherein the first SI is mapped to a first database schema of a database, and the first SI is associated with a uniform resource locator (URL) that allows a user to manage the key.

9. The key management system of claim 7, wherein the key comprises a master encryption key MEK and is stored in an HSM.

10. The key management system of claim 8, wherein the mapping of the second SI to the one or more keys comprises a mapping of the second SI to the second database schema.

11. The key management system of claim 7, wherein in response to deleting the first SI, the key is deleted after expiration of a predefined time period.

12. A non-transitory computer-readable medium having instructions stored thereon, wherein when the instructions are executed by one or more processors, the processors reconnect a key management system KMS service instance SI with an associated key, wherein the reconnection comprises: In response to the request, delete a first SI of the user mapped to one or more keys, the one or more keys being stored in the KMS, the first SI being associated with a dedicated first database schema and serving as a first programming interface API allowing the user to access the one or more keys stored in the KMS, and the deletion of the first SI making the user unable to access the one or more keys stored in the KMS; creating a second SI, the second SI being associated with the second database schema and serving as a second API; as well as A second SI is mapped to the one or more keys, the mapping providing the user with access to the one or more keys stored in the KMS using a second API.

13. The computer-readable medium of claim 12, wherein the first SI is mapped to a first database schema, and the first SI is associated with a uniform resource locator (URL) that allows a user to manage the key.

14. The computer-readable medium of claim 12, wherein the key comprises a master encryption key (MEK) and is stored in a hardware security module (HSM).

15. The computer-readable medium of claim 13, wherein the mapping of the second SI to the one or more keys comprises a mapping of the second SI to the second database schema.

16. The computer-readable medium of claim 12, wherein in response to deleting the first SI, the key is deleted after expiration of a predefined time period.

17. The computer-readable medium of claim 12, wherein the mapping is implemented by a middle layer of the KMS, wherein the middle layer is implemented by one or more microservices.

18. A device for rewiring a cryptographic key management system service instance, comprising: processor; as well as A memory is coupled to the processor and has executable instructions stored thereon. When the executable instructions are executed by the processor, the processor is caused to perform the method according to any one of claims 1 to 6.

19. An apparatus comprising means for performing the method of any one of claims 1-6.