Data processing method, device and equipment
By generating and encrypting session keys by the verification server, secure identity authentication between microservices is realized, solving the problems of low access security and high authentication cost between microservices, and improving resource utilization and identity authentication efficiency.
Patent Information
- Application Number
- CN202211372471.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-03
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2042-11-03
AI Technical Summary
In a microservices scenario, access security between microservices is low, resulting in high authentication costs and low resource utilization. Each microservice needs to store a large amount of identity information of other microservices, resulting in high management costs.
The session key is generated by the authentication server, and the session key and identification are encrypted based on the identity key of the microservice, and the encrypted information is transmitted for identity authentication, which reduces the need for each microservice to store and manage the identity information of other microservices. .
It reduces the authentication cost between microservices, improves authentication security, avoids the risk of identity information leakage, and improves resource utilization and identity authentication efficiency.
Smart Images

Figure CN115733672B
Abstract
Description
Technical Field
[0001] The embodiments of this specification relate to the field of data processing technology, and in particular, to a data processing method, device and equipment. Background Art
[0002] In the microservice scenario, since the system is decomposed into smaller, independent and distributed units, a large number of entry points and communication traffic appear. That is, there is a large amount of east-west access traffic between microservices. How to solve the access security between microservices has become the focus of network service providers.
[0003] In the microservice scenario, to improve the access security between microservices, identity authentication can be performed every time an access is made. For example, the accessed microservice can authenticate the microservice requesting access based on the identity information of the stored microservice.
[0004] However, when there are a large number of microservices, each microservice needs to store a large amount of identity information of other microservices, resulting in low resource utilization, high management costs for identity information stored in microservices, high authentication costs between microservices, and the microservice requesting access needs to send identity information to the microservice being accessed, which will result in low authentication security between microservices. Therefore, a solution is needed that can reduce authentication costs and improve authentication security between microservices in a microservice scenario. Summary of the invention
[0005] The purpose of the embodiments of this specification is to provide a data processing method, apparatus and device to provide a solution that can reduce the authentication cost between microservices and improve the authentication security between microservices in a microservice scenario.
[0006] In order to implement the above technical solution, the embodiments of this specification are implemented as follows:
[0007] In a first aspect, an embodiment of the present specification provides a data processing method, which is applied to a first microservice, including: sending an access request of the first microservice to a target microservice to a verification server; receiving first verification information returned by the verification server, wherein the first verification information is obtained by the verification server encrypting a session key and a second verification information based on an identity key of the first microservice, and the second verification information is obtained by the verification server encrypting the session key and an identifier of the first microservice based on the identity key of the target microservice, and the session key is a key generated by the verification server based on the access request; decrypting the first verification information to obtain the session key and the second verification information, and signing the identifier of the first microservice based on the session key to obtain third verification information; sending the second verification information and the third verification information to the target microservice, wherein the second verification information is used to trigger the target microservice to decrypt the second verification information to obtain the session key and the identifier of the first microservice, and authenticate the first microservice based on the decrypted identifier and session key of the first microservice, and the received third verification information.
[0008] In a second aspect, an embodiment of the present specification provides a data processing method, which is applied to a verification server, including: receiving an access request from a first microservice to a target microservice; encrypting a session key and a second verification information based on an identity key of the first microservice to obtain first verification information, wherein the second verification information is obtained by the verification server encrypting the session key and the identifier of the first microservice based on the identity key of the target microservice, and the session key is a key generated by the verification server based on the access request; sending the first verification information to the first microservice, wherein the first verification information is used to trigger the first microservice to obtain a session key and a second verification information based on decrypting the first verification information, and sending the second verification information and a third verification information to the target microservice, wherein the second verification information is used to trigger the target microservice to decrypt the second verification information to obtain a session key and an identifier of the first microservice, and authenticating the first microservice based on the identifier and session key of the decrypted first microservice, and the received third verification information, wherein the third verification information is obtained by the first microservice signing the identifier of the first microservice based on the session key.
[0009] In a third aspect, an embodiment of the present specification provides a data processing method, which is applied to a target microservice, including: receiving second verification information and third verification information sent by a first microservice, wherein the second verification information is obtained by encrypting a session key and an identifier of the first microservice by a verification server based on an identity key of the target microservice, the session key is a key generated by the verification server based on an access request of the first microservice to the target microservice, and the third verification information is obtained by signing the identifier of the first microservice by the first microservice based on the session key; decrypting the second verification information to obtain the session key and the identifier of the first microservice, and signing the decrypted identifier of the first microservice based on the decrypted session key to obtain fourth verification information; and determining an authentication result of the first microservice based on the third verification information and the fourth verification information.
[0010] In a fourth aspect, an embodiment of the present specification provides a data processing device, the device comprising: a request sending module, used to send an access request of the data processing device to a target microservice to a verification server; an information receiving module, used to receive first verification information returned by the verification server, the first verification information being obtained by the verification server encrypting a session key and a second verification information based on an identity key of the data processing device, the second verification information being obtained by the verification server encrypting the session key and an identifier of the data processing device based on the identity key of the target microservice, the session key being a key generated by the verification server based on the access request; a data processing module, used to decrypt the first verification information to obtain the session key and the second verification information, and sign the identifier of the data processing device based on the session key to obtain third verification information; an information sending module, used to send the second verification information and the third verification information to the target microservice, the second verification information being used to trigger the target microservice to decrypt the second verification information to obtain the session key and the identifier of the data processing device, and authenticate the data processing device based on the decrypted identifier and session key of the data processing device, and the received third verification information.
[0011] In a fifth aspect, an embodiment of the present specification provides a data processing device, the device comprising: a request receiving module, used to receive an access request from a first microservice to a target microservice; a data processing module, used to encrypt a session key and a second verification information based on an identity key of the first microservice to obtain first verification information, the second verification information is obtained by the data processing device encrypting the session key and the identifier of the first microservice based on the identity key of the target microservice, and the session key is a key generated by the data processing device based on the access request; an information sending module, used to send the first verification information to the first microservice, the first verification information is used to trigger the first microservice to decrypt the first verification information to obtain the session key and the second verification information, and send the second verification information and the third verification information to the target microservice, the second verification information is used to trigger the target microservice to decrypt the second verification information to obtain the session key and the identifier of the first microservice, and authenticate the first microservice based on the decrypted identifier and session key of the first microservice, and the received third verification information, the third verification information is obtained by the first microservice signing the identifier of the first microservice based on the session key.
[0012] In a sixth aspect, an embodiment of the present specification provides a data processing device, the device comprising: a receiving module, used to receive second verification information and third verification information sent by a first microservice, the second verification information being obtained by encrypting a session key and an identifier of the first microservice by a verification server based on an identity key of the data processing device, the session key being a key generated by the verification server based on an access request of the first microservice to the data processing device, and the third verification information being obtained by signing the identifier of the first microservice by the first microservice based on the session key; a decryption module, used to decrypt the second verification information to obtain the session key and the identifier of the first microservice, and to sign the decrypted identifier of the first microservice based on the decrypted session key to obtain fourth verification information; an authentication module, used to determine the authentication result of the first microservice based on the third verification information and the fourth verification information.
[0013] In a seventh aspect, an embodiment of the present specification provides a data processing device, the data processing device comprising: a processor; and a memory arranged to store computer executable instructions, wherein the executable instructions, when executed, cause the processor to: send an access request of the data processing device to a target microservice to a verification server; receive first verification information returned by the verification server, wherein the first verification information is obtained by the verification server encrypting a session key and a second verification information based on an identity key of the data processing device, and the second verification information is obtained by the verification server encrypting the session key and an identifier of the data processing device based on the identity key of the target microservice, and the session key is a key generated by the verification server based on the access request; decrypt the first verification information to obtain the session key and the second verification information, and sign the identifier of the data processing device based on the session key to obtain third verification information; send the second verification information and the third verification information to the target microservice, the second verification information is used to trigger the target microservice to decrypt the second verification information to obtain the session key and the identifier of the data processing device, and authenticate the data processing device based on the decrypted identifier and session key of the data processing device, and the received third verification information.
[0014] In an eighth aspect, an embodiment of the present specification provides a data processing device, the data processing device comprising: a processor; and a memory arranged to store computer executable instructions, wherein the executable instructions, when executed, cause the processor to: receive an access request from a first microservice to a target microservice; encrypt a session key and a second verification information based on an identity key of the first microservice to obtain first verification information, wherein the second verification information is obtained by the data processing device encrypting the session key and the identifier of the first microservice based on the identity key of the target microservice, and the session key is a key generated by the data processing device based on the access request; send the first verification information to the first microservice, wherein the first verification information is used to trigger the first microservice to obtain a session key and a second verification information based on decryption of the first verification information, and send the second verification information and the third verification information to the target microservice, wherein the second verification information is used to trigger the target microservice to decrypt the second verification information to obtain a session key and an identifier of the first microservice, and authenticate the first microservice based on the identifier and session key of the decrypted first microservice, and the received third verification information, wherein the third verification information is obtained by the first microservice signing the identifier of the first microservice based on the session key.
[0015] In a ninth aspect, an embodiment of the present specification provides a data processing device, comprising: a processor; and a memory arranged to store computer executable instructions, wherein the executable instructions, when executed, cause the processor to: receive second verification information and third verification information sent by a first microservice, wherein the second verification information is obtained by encrypting a session key and an identifier of the first microservice by a verification server based on an identity key of the data processing device, the session key is a key generated by the verification server based on an access request of the first microservice to the data processing device, and the third verification information is obtained by signing the identifier of the first microservice by the first microservice based on the session key; decrypt the second verification information to obtain the session key and the identifier of the first microservice, and sign the decrypted identifier of the first microservice based on the decrypted session key to obtain fourth verification information; and determine the authentication result of the first microservice based on the third verification information and the fourth verification information. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the embodiments of this specification or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0017] Figure 1A A flowchart of a data processing method embodiment of this specification;
[0018] Figure 1B A schematic diagram of a processing process of a data processing method embodiment of this specification;
[0019] Figure 2 This is a diagram of the relationship between microservices in this manual;
[0020] Figure 3 This is a diagram of the relationship between a microservice and a verification server in this manual;
[0021] Figure 4 A schematic diagram of a processing process of another data processing method embodiment of the present specification;
[0022] Figure 5A A flowchart of another data processing method embodiment of the present specification;
[0023] Figure 5B A schematic diagram of a processing process of another data processing method embodiment of the present specification;
[0024] Figure 6A schematic diagram of a processing process of another data processing method embodiment of the present specification;
[0025] Figure 7 A schematic diagram of a processing process of another data processing method embodiment of the present specification;
[0026] Fig. 8A A flowchart of another data processing method embodiment of the present specification;
[0027] Figure 8B A schematic diagram of a processing process of another data processing method embodiment of the present specification;
[0028] Fig. 9 A schematic diagram of a processing process of another data processing method embodiment of the present specification;
[0029] Fig.10 A schematic diagram of a processing process of another data processing method embodiment of the present specification;
[0030] Fig.11 A schematic diagram of a processing process of another data processing method embodiment of the present specification;
[0031] Fig.12 A schematic diagram of the structure of a data processing device according to an embodiment of the present specification;
[0032] Fig.13 A schematic diagram of the structure of a data processing device according to an embodiment of the present specification;
[0033] Fig.14 A schematic diagram of the structure of a data processing device according to an embodiment of the present specification;
[0034] Fig.15 This is a structural schematic diagram of a data processing device in this specification. DETAILED DESCRIPTION
[0035] The embodiments of this specification provide a data processing method, device and equipment.
[0036] In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this specification.
[0037] Embodiment 1
[0038] like Figure 1A and Figure 1BAs shown, the embodiment of this specification provides a data processing method, the execution subject of the method can be a server corresponding to the first microservice, the server can be an independent server, or a server cluster composed of multiple servers, and the first microservice can be any microservice that can provide data processing services. The method can specifically include the following steps:
[0039] In S102, an access request of the first microservice to the target microservice is sent to the verification server.
[0040] Among them, the verification server can be any server that can provide verification function for the microservice. The server can be an independent server or a server cluster composed of multiple servers. The first microservice and the target microservice can be microservices that process different business data. For example, the first microservice can be a microservice for processing user identity authentication business data, and the target microservice can be a microservice for processing resource transfer business data. The first microservice can be a microservice obtained by encapsulating the processing components of user identity authentication business data based on a preset service framework, and is used to perform user identity authentication. Specifically, based on the SpringBoot framework (a basic framework for quickly building independent microservice applications), the processing components of user identity authentication business data can be encapsulated to obtain the first microservice, and a service interface that meets the preset specifications (such as an API interface that meets the RESTful specification) can be set for the first microservice to facilitate calling the first microservice.
[0041] In the implementation, in the microservice scenario, since the system is decomposed into smaller, independent and distributed units, a large number of entry points and communication traffic appear, that is, there is a large amount of east-west access traffic between microservices. How to solve the access security between microservices has become the focus of network service providers. In the microservice scenario, in order to improve the access security between microservices, identity authentication can be performed every time an access is made. For example, the accessed microservice can authenticate the microservice requesting access based on the identity information of the stored microservice.
[0042] However, when there are a large number of microservices, each microservice needs to store a large amount of identity information of other microservices, which results in low resource utilization, high management costs for identity information stored in microservices, high authentication costs between microservices, and the microservice requesting access needs to send identity information to the accessed microservice, which results in low authentication security between microservices. Therefore, a solution is needed that can reduce authentication costs between microservices and improve authentication security between microservices in a microservice scenario. To this end, the embodiments of this specification provide a technical solution that can solve the above problems, and the details can be found in the following content.
[0043] Take the access between multiple microservices in the intranet as an example. Figure 2 As shown, the user device can initiate a business processing request, and then call multiple microservices in the intranet through the demilitarized zone (DMZ). Multiple microservices in the intranet can access each other. To improve the security of access between microservices, identity authentication can be performed each time an access is made. The first microservice can be the microservice requesting access, and the target microservice can be the microservice being accessed.
[0044] like Figure 3 As shown, the verification server can establish a connection with multiple microservices in the intranet. The first microservice can be any one or more microservices that initiate an access request among the multiple microservices. The first microservice can send an access request for a target microservice to the verification server, where there can be multiple target microservices and the access request can include an identifier of the target microservice.
[0045] In addition, the verification server can also be any one or more microservices in the intranet. For example, suppose there are three microservices in the intranet, including microservice 1, microservice 2 and microservice 3, among which microservice 1 can be used as a verification server, that is, microservice 1 can store the identity keys of microservice 2 and microservice 3. If microservice 2 needs to access microservice 3, microservice 2 can be used as the first microservice, microservice 3 can be used as the target microservice, and microservice 1 can be used as a verification server.
[0046] In S104, first verification information returned by the verification server is received.
[0047] Among them, the first verification information can be obtained by encrypting the session key and the second verification information based on the identity key of the first microservice by the verification server, and the second verification information can be obtained by encrypting the session key and the identifier of the first microservice based on the identity key of the target microservice by the verification server. The session key is a key generated by the verification server based on the access request. The session key can be a one-time key with a time limit to improve the security of identity authentication. In addition, the session key can be a symmetric key.
[0048] In implementation, after receiving the access request sent by the first microservice, the verification server can generate a session key corresponding to the access request, and based on the access request, obtain the identity key of the target microservice, and encrypt the session key and the identifier of the first microservice by the identity key of the target microservice to obtain the second verification information. Finally, the verification server can encrypt the session key and the second verification information by the identity key of the first microservice to obtain the first verification information, and send the first verification information to the first microservice, that is, the first microservice can receive the first verification information returned by the verification server.
[0049] In addition, there can be multiple target microservices, and the access request can include the identifier of the target microservice. The verification server can generate a session key for each target microservice based on the identifier of the target microservice included in the access request, that is, different target microservices correspond to different session keys, and different second verification information and first verification information are generated based on different session keys, that is, when there are multiple target microservices, there are also multiple first verification information, and different target microservices correspond to different first verification information, so as to ensure the security of the first microservice when accessing different target microservices.
[0050] In S106, the first verification information is decrypted to obtain a session key and second verification information, and the identifier of the first microservice is signed based on the session key to obtain third verification information.
[0051] In implementation, the first microservice can decrypt the first verification information based on the decryption key to obtain the session key and the second verification information. The first microservice can sign the identifier of the first microservice based on the session key through a preset signature algorithm to obtain the third verification information. The third verification information can be used to ensure anti-tampering during information transmission.
[0052] In S108, the second verification information and the third verification information are sent to the target microservice.
[0053] The second verification information can be used to trigger the target microservice to decrypt the second verification information to obtain the session key and the identifier of the first microservice, and authenticate the first microservice based on the decrypted identifier and session key of the first microservice and the received third verification information.
[0054] In implementation, when there are multiple target microservices, the corresponding second verification information and third verification information may be sent to the target microservice based on the identifier of the target microservice.
[0055] The target microservice can decrypt the second verification information based on the decryption key to obtain the session key and the identifier of the first microservice, and then sign the identifier of the first microservice based on the session key through the same preset signature algorithm as the first microservice to obtain the fourth verification information. The target microservice can then match the third verification information and the fourth verification information. If the match is successful, it can be determined that the authentication of the first microservice is passed. If the match is unsuccessful, it can be determined that the authentication of the first microservice is failed.
[0056] If the authentication of the first microservice fails, the target microservice may send a preset alarm message to the target server. The preset alarm message may include an identifier of the first microservice. The preset alarm message is used to trigger the target server to process the first microservice, such as performing security risk control on the first microservice.
[0057] An embodiment of the present specification provides a data processing method, which is applied to a first microservice, by sending an access request of the first microservice to a target microservice to a verification server, and receiving first verification information returned by the verification server, wherein the first verification information is obtained by encrypting a session key and a second verification information based on an identity key of the first microservice by the verification server, and the second verification information is obtained by encrypting a session key and an identifier of the first microservice based on the identity key of the target microservice by the verification server, and the session key is a key generated by the verification server based on the access request, the first verification information is decrypted to obtain the session key and the second verification information, and the identifier of the first microservice is signed based on the session key to obtain third verification information, and the second verification information and the third verification information are sent to the target microservice, the second verification information is used to trigger the target microservice to decrypt the second verification information to obtain the session key and the identifier of the first microservice, and the first microservice is authenticated based on the decrypted identifier and session key of the first microservice and the received third verification information. In this way, since each microservice (such as the first microservice requesting access and the target microservice being accessed) only needs to manage local keys (such as decryption keys), it does not need to store the identity information of other microservices, which reduces local information storage costs and information management costs and improves resource utilization. Since each microservice only stores local keys, there is no risk of counterfeiting and denial, and it has anti-replay capabilities. In addition, what is transmitted during the identity authentication process is the encrypted session key, not the identity key of the microservice, which can reduce the risk of leakage of the microservice's identity key and improve the efficiency and security of identity authentication.
[0058] Embodiment 2
[0059] like Figure 4 As shown, the embodiment of this specification provides a data processing method, the execution subject of the method can be a server corresponding to the first microservice, the server can be an independent server, or a server cluster composed of multiple servers, and the first microservice can be any microservice that can provide data processing services. The method can specifically include the following steps:
[0060] In S102, an access request of the first microservice to the target microservice is sent to the verification server.
[0061] In S104, first verification information returned by the verification server is received.
[0062] In S402, the first verification information is decrypted based on the identity key of the first microservice to obtain a session key and second verification information.
[0063] In implementation, the identity key of the first microservice can be a symmetric key, that is, the verification server can encrypt the session key and the second verification information based on the identity key of the first microservice to obtain the first verification information, and the first microservice can decrypt the first verification information by the identity key of the first microservice to obtain the session key and the second verification information. The use of symmetric keys for encryption and decryption can avoid the problem of needing to share and manage a large number of keys in an asymmetric key method, and has a certain degree of anti-repudiation and anti-replay capabilities.
[0064] In S404, the business data to be processed and the identifier of the first microservice are signed based on the session key to obtain third verification information.
[0065] The business data to be processed may be any data that can be processed by the target microservice. For example, assuming that the target microservice is a microservice for processing resource transfer business data, the business data to be processed may be resource transfer business data.
[0066] During implementation, the first microservice can obtain the business data to be processed, and determine the corresponding target microservice based on the business type corresponding to the business data, and sign the business data to be processed and the identifier of the first microservice based on the session key corresponding to the target microservice to obtain third verification information.
[0067] In addition, the first microservice can also obtain the timestamp of the current time, and sign the timestamp, the business data to be processed, and the identifier of the first microservice based on the session key to obtain third verification information. The timestamp can be used to prevent replay attacks.
[0068] In S406, the business data, the second verification information, and the third verification information are sent to the target microservice.
[0069] Among them, the second verification information can be used to trigger the target microservice to decrypt the second verification information to obtain the session key and the identifier of the first microservice, and process the business data when the first microservice is authenticated based on the identifier and session key of the decrypted first microservice, the received business data, the third verification information and the business data.
[0070] In implementation, the first microservice can determine the corresponding target microservice according to the business type corresponding to the business data, and send the business data to the corresponding target microservice. For example, the business data to be processed may include business data 1 and business data 2, wherein, according to the business type of business data 1, the corresponding target microservice can be determined to be target microservice 1, and according to the business type of business data 2, the corresponding target microservice can be determined to be target microservice 2. The verification server can generate a session key 1 corresponding to the target microservice 1 and a session key 2 corresponding to the target microservice 2, and respectively generate a first verification information 1 corresponding to the target microservice 1 and a first verification information 2 corresponding to the target microservice 2. Then, the first microservice can sign the business number 1 and the identifier of the first microservice based on the session key 1 to obtain the third verification information 1, and sign the business number 2 and the identifier of the first microservice based on the session key 2 to obtain the third verification information 2.
[0071] Finally, the first microservice can send business data 1, the second verification information 1 corresponding to the target microservice 1, and the third verification information 1 to the target microservice 1, and send business data 2, the second verification information 2 corresponding to the target microservice 2, and the third verification information 2 to the target microservice 2. In this way, after receiving the data, the target microservice can authenticate the first microservice based on the received data, and after the authentication is passed, it can process the received business data. In addition, the business data can also include user identity data and / or user device identity data. The target microservice can also authenticate the user and / or user device based on the data, and after the authentication is passed, it can process the business data.
[0072] In addition, when the third verification information is obtained by the first microservice signing the timestamp, the business data to be processed and the identifier of the first microservice based on the session key, the second verification information is also used to trigger the target microservice to decrypt the second verification information to obtain the session key and the identifier of the first microservice, and authenticate the first microservice based on the decrypted identifier and session key of the first microservice, the received business data, the third verification information and the business data, and process the business data when the comparison is successful based on the timestamp received at the current time.
[0073] An embodiment of the present specification provides a data processing method, which is applied to a first microservice, by sending an access request of the first microservice to a target microservice to a verification server, and receiving first verification information returned by the verification server, wherein the first verification information is obtained by encrypting a session key and a second verification information based on an identity key of the first microservice by the verification server, and the second verification information is obtained by encrypting a session key and an identifier of the first microservice based on the identity key of the target microservice by the verification server, and the session key is a key generated by the verification server based on the access request, the first verification information is decrypted to obtain the session key and the second verification information, and the identifier of the first microservice is signed based on the session key to obtain third verification information, and the second verification information and the third verification information are sent to the target microservice, the second verification information is used to trigger the target microservice to decrypt the second verification information to obtain the session key and the identifier of the first microservice, and the first microservice is authenticated based on the decrypted identifier and session key of the first microservice and the received third verification information. In this way, since each microservice (such as the first microservice requesting access and the target microservice being accessed) only needs to manage local keys (such as decryption keys), it does not need to store the identity information of other microservices, which reduces local information storage costs and information management costs and improves resource utilization. Since each microservice only stores local keys, there is no risk of counterfeiting and denial, and it has anti-replay capabilities. In addition, what is transmitted during the identity authentication process is the encrypted session key, not the identity key of the microservice, which can reduce the risk of leakage of the microservice's identity key and improve the efficiency and security of identity authentication.
[0074] Embodiment 3
[0075] like Figure 5A and Figure 5B As shown, the embodiment of this specification provides a data processing method, the execution subject of the method can be a verification server, and the server can be an independent server or a server cluster composed of multiple servers. The method can specifically include the following steps:
[0076] In S502, an access request from a first microservice to a target microservice is received.
[0077] In S504, the session key and the second verification information are encrypted based on the identity key of the first microservice to obtain the first verification information.
[0078] The second verification information may be obtained by encrypting the session key and the identifier of the first microservice based on the identity key of the target microservice by the verification server, and the session key may be a key generated by the verification server based on the access request.
[0079] In implementation, if there are multiple access requests, different session keys can be generated for different access requests. For example, assuming there are microservice 1 and microservice 2, if the verification server receives access request 1 from microservice 1 to microservice 2, and access request 2 from microservice 2 to microservice 1, then the session key 1 generated by the verification server for access request 1 needs to be different from the session key 2 generated for access request 2.
[0080] For example, the verification server can generate a random number of preset bits for each access request based on a preset random number generation algorithm, and determine the random number as the session key corresponding to the access request to ensure that the session key corresponding to each access request is different. In addition, there are many different ways to determine the session key, which may vary depending on the actual application scenario. The embodiments of this specification do not specifically limit this.
[0081] In S506, the first verification information is sent to the first microservice.
[0082] Among them, the first verification information can be used to trigger the first microservice to decrypt the first verification information to obtain the session key and the second verification information, and send the second verification information and the third verification information to the target microservice. The second verification information can be used to trigger the target microservice to decrypt the second verification information to obtain the session key and the identifier of the first microservice, and authenticate the first microservice based on the decrypted identifier and session key of the first microservice and the received third verification information. The third verification information can be obtained by the first microservice signing the identifier of the first microservice based on the session key.
[0083] An embodiment of the present specification provides a data processing method, which is applied to a verification server, and receives an access request from a first microservice to a target microservice, encrypts a session key and a second verification information based on an identity key of the first microservice to obtain the first verification information, the second verification information is obtained by encrypting the session key and the identifier of the first microservice based on the identity key of the target microservice by the verification server, the session key is a key generated by the verification server based on the access request, the first verification information is sent to the first microservice, the first verification information is used to trigger the first microservice to decrypt the first verification information to obtain the session key and the second verification information, and the second verification information and the third verification information are sent to the target microservice, the second verification information is used to trigger the target microservice to decrypt the second verification information to obtain the session key and the identifier of the first microservice, and the first microservice is authenticated based on the identifier and session key of the first microservice obtained by decryption, and the received third verification information, and the third verification information is obtained by signing the identifier of the first microservice by the first microservice based on the session key. In this way, since each microservice (such as the first microservice requesting access and the target microservice being accessed) only needs to manage local keys (such as decryption keys), it does not need to store the identity information of other microservices, which reduces local information storage costs and information management costs and improves resource utilization. Since each microservice only stores local keys, there is no risk of counterfeiting and denial, and it has anti-replay capabilities. In addition, what is transmitted during the identity authentication process is the encrypted session key, not the identity key of the microservice, which can reduce the risk of leakage of the microservice's identity key and improve the efficiency and security of identity authentication.
[0084] Embodiment 4
[0085] The embodiment of this specification provides a data processing method, the execution subject of the method may be a verification server, the server may be an independent server, or a server cluster composed of multiple servers. The method may specifically include the following steps:
[0086] In S502, an access request from a first microservice to a target microservice is received.
[0087] If the access request includes the identity key of the first microservice, the identifier of the first microservice, and the identifier of the target microservice, then Figure 6 As shown, after S502, S602 to S604 may be continued to be executed to obtain the second verification information. If the access request includes the identifier of the first microservice and the identifier of the target microservice, then Figure 7 As shown, after S502, S606 to S610 may be continued to be executed to obtain the second verification information.
[0088] In S602, based on the identity key of the first microservice, the first microservice is authenticated, and after the identity authentication passes, a session key corresponding to the access request is generated.
[0089] In implementation, the verification server may perform identity authentication on the first microservice based on the identity key of the first microservice. For example, the verification server may match the identity key of the first microservice in the access request with the stored identity key of the first microservice. If the match is successful, it may be determined that the identity authentication of the first microservice is passed. If the match is unsuccessful, it may be determined that the identity authentication of the first microservice is failed. In the case of failure, the verification server may not process the access request of the first microservice to the target microservice.
[0090] The above-mentioned identity authentication method for the first microservice is an optional and feasible authentication method. In actual application scenarios, the authentication method of the verification server for the first microservice can also be varied. Different authentication methods can be selected according to different actual application scenarios. This specification embodiment does not specifically limit this.
[0091] After the verification server successfully authenticates the identity of the first microservice, the verification server can generate a session key corresponding to the access request.
[0092] In S604, based on the identifier of the target microservice, the identity key of the target microservice is determined, and based on the identity key of the target microservice, the session key and the identifier of the first microservice are encrypted to obtain second verification information.
[0093] In implementation, the verification server can determine the identity key of the target microservice from the previously stored identity keys based on the identifier of the target microservice, and encrypt the generated session key and the identifier of the first microservice based on the determined identity key of the target microservice to obtain second verification information.
[0094] In S606, a session key corresponding to the access request is generated.
[0095] In implementation, the method for generating the session key may refer to S504 in the above-mentioned embodiment 3, and will not be described in detail here.
[0096] In S608, based on the identifier of the first microservice, an identity key of the first microservice is determined, and based on the identifier of the target microservice, an identity key of the target microservice is determined.
[0097] In implementation, the access request may also include target verifiable information generated by the first microservice based on the identifier of the first microservice. For example, the first microservice may generate target verifiable information corresponding to the identifier of the first microservice based on a preset hash algorithm. In this way, the verification server may perform identity authentication on the first microservice based on the identifier of the first microservice and the target verifiable information. Specifically, the verification server may generate target verifiable information corresponding to the identifier of the first microservice based on the same preset hash algorithm as that of the first microservice, and match the generated target verifiable information with the received target verifiable information. If the match is successful, it is determined that the identity authentication of the first microservice is successful.
[0098] When the identity authentication of the first microservice is passed, the identity key of the first microservice can be determined from the pre-stored identity keys based on the identifier of the first microservice, and the identity key of the target microservice can be determined from the pre-stored identity keys based on the identifier of the target microservice.
[0099] In S610, based on the identity key of the target microservice, the session key and the identifier of the first microservice are encrypted to obtain second verification information.
[0100] In S504, the session key and the second verification information are encrypted based on the identity key of the first microservice to obtain the first verification information.
[0101] The second verification information may be obtained by encrypting the session key and the identifier of the first microservice based on the identity key of the target microservice by the verification server, and the session key may be a key generated by the verification server based on the access request.
[0102] In S506, the first verification information is sent to the first microservice.
[0103] Among them, the first verification information can be used to trigger the first microservice to decrypt the first verification information to obtain the session key and the second verification information, and send the second verification information and the third verification information to the target microservice. The second verification information can be used to trigger the target microservice to decrypt the second verification information to obtain the session key and the identifier of the first microservice, and authenticate the first microservice based on the decrypted identifier and session key of the first microservice and the received third verification information. The third verification information can be obtained by the first microservice signing the identifier of the first microservice based on the session key.
[0104] An embodiment of the present specification provides a data processing method, which is applied to a verification server, and receives an access request from a first microservice to a target microservice, encrypts a session key and a second verification information based on an identity key of the first microservice to obtain the first verification information, the second verification information is obtained by encrypting the session key and the identifier of the first microservice based on the identity key of the target microservice by the verification server, the session key is a key generated by the verification server based on the access request, the first verification information is sent to the first microservice, the first verification information is used to trigger the first microservice to decrypt the first verification information to obtain the session key and the second verification information, and the second verification information and the third verification information are sent to the target microservice, the second verification information is used to trigger the target microservice to decrypt the second verification information to obtain the session key and the identifier of the first microservice, and the first microservice is authenticated based on the identifier and session key of the first microservice obtained by decryption, and the received third verification information, and the third verification information is obtained by signing the identifier of the first microservice by the first microservice based on the session key. In this way, since each microservice (such as the first microservice requesting access and the target microservice being accessed) only needs to manage local keys (such as decryption keys), it does not need to store the identity information of other microservices, which reduces local information storage costs and information management costs and improves resource utilization. Since each microservice only stores local keys, there is no risk of counterfeiting and denial, and it has anti-replay capabilities. In addition, what is transmitted during the identity authentication process is the encrypted session key, not the identity key of the microservice, which can reduce the risk of leakage of the microservice's identity key and improve the efficiency and security of identity authentication.
[0105] Embodiment 5
[0106] like Fig. 8A and Figure 8B As shown, the embodiment of this specification provides a data processing method, the execution subject of the method can be a server corresponding to the target microservice, and the server can be an independent server or a server cluster composed of multiple servers. The method can specifically include the following steps:
[0107] In S802, the second verification information and the third verification information sent by the first microservice are received.
[0108] Among them, the second verification information can be obtained by the verification server encrypting the session key and the identifier of the first microservice based on the identity key of the target microservice, the session key can be a key generated by the verification server based on the access request of the first microservice to the target microservice, and the third verification information can be obtained by the first microservice signing the identifier of the first microservice based on the session key.
[0109] In S804, the second verification information is decrypted to obtain a session key and an identifier of the first microservice, and the decrypted identifier of the first microservice is signed based on the decrypted session key to obtain fourth verification information.
[0110] In S806, based on the third verification information and the fourth verification information, an authentication result of the first microservice is determined.
[0111] In implementation, the third verification information and the fourth verification information may be matched. If the match is successful, it may be determined that the first microservice has passed the identity authentication. If the match is unsuccessful, it may be determined that the first microservice has not passed the identity authentication.
[0112] In addition, the target microservice can also receive the business data to be processed sent by the first microservice, and when it is determined that the first microservice passes the identity authentication, the target microservice can process the business data and return the processing result to the first microservice.
[0113] In addition, when the target microservice processes business data, if it needs to access other microservices, the target microservice can serve as the first microservice, and other microservices to be accessed can serve as target microservices, and the first microservice can access the target microservice with the assistance of the verification server.
[0114] An embodiment of the present specification provides a data processing method, which is applied to a target microservice, by receiving second verification information and third verification information sent by a first microservice, wherein the second verification information is obtained by encrypting a session key and an identifier of the first microservice based on an identity key of the target microservice by a verification server, and the session key is a key generated by the verification server based on an access request of the first microservice to the target microservice, and the third verification information is obtained by signing the identifier of the first microservice based on the session key by the first microservice, decrypting the second verification information to obtain the session key and the identifier of the first microservice, and signing the decrypted identifier of the first microservice based on the decrypted session key to obtain fourth verification information, and determining an authentication result of the first microservice based on the third verification information and the fourth verification information. In this way, since each microservice (such as the first microservice requesting access and the target microservice being accessed) only needs to manage local keys (such as decryption keys), it does not need to store the identity information of other microservices, which reduces local information storage costs and information management costs and improves resource utilization. Since each microservice only stores local keys, there is no risk of counterfeiting and denial, and it has anti-replay capabilities. In addition, what is transmitted during the identity authentication process is the encrypted session key, not the identity key of the microservice, which can reduce the risk of leakage of the microservice's identity key and improve the efficiency and security of identity authentication.
[0115] Embodiment 6
[0116] The embodiment of the present specification provides a data processing system, which includes a first microservice, a target microservice, and a verification server, wherein:
[0117] The first microservice is used to send an access request of the first microservice to the target microservice to the verification server.
[0118] like Fig. 9 As shown, the verification server is used to encrypt the session key and the second verification information based on the identity key of the first microservice to obtain the first verification information, and the second verification information is obtained by encrypting the session key and the identifier of the first microservice based on the identity key of the target microservice (i.e. Fig. 9 The session key is a key generated by the verification server based on the access request, and the first verification information is sent to the first microservice. The ticket can be a short-term credential that can be recognized and used only by the authenticator and can be used to identify the user's identity and authority. The ticket in the embodiment of this specification is a ciphertext encrypted using the identity key of the target microservice. The plaintext of the ticket includes the identifier of the first microservice and the session key.
[0119] The first microservice is used to decrypt the first verification information to obtain a session key and second verification information, sign the identifier of the first microservice based on the session key to obtain third verification information, and send the second verification information and the third verification information to the target microservice.
[0120] like Fig.10 As shown, the first microservice can decrypt the first verification information through the identity key of the first microservice to obtain the session key and the second verification information (i.e., the ticket), and based on the session key, sign the timestamp of the current time, the business data to be processed, and the identifier of the first microservice to obtain the third verification information. Finally, the first microservice can send the timestamp, business data, the second verification information, and the third verification information to the target microservice.
[0121] The target microservice is used to decrypt the second verification information to obtain the session key and the identifier of the first microservice, and sign the decrypted identifier of the first microservice based on the decrypted session key to obtain the fourth verification information. Finally, based on the third verification information and the fourth verification information, the authentication result of the first microservice is determined.
[0122] like Fig.11As shown, the target microservice can decrypt the second verification information based on the identity key of the target microservice to obtain the session key and the identifier of the first microservice, and then sign the decrypted identifier of the first microservice through the session key pair to obtain the fourth verification information. When matching the third verification information and the fourth verification information (i.e., performing signature verification processing), the local time can be obtained at the same time, and the local time can be matched with the received timestamp. If the information matches successfully and the time matches successfully, it can be determined that the first microservice has passed the identity authentication. If the match fails, it can be determined that the first microservice has not passed the identity authentication. If it is determined that the first microservice has passed the identity authentication, business processing can be performed on the business data.
[0123] The embodiments of this specification provide a data processing system. Since each microservice (such as the first microservice requesting access and the target microservice being accessed) only needs to manage local keys (such as decryption keys) and does not need to store identity information of other microservices, local information storage costs and information management costs are reduced, and resource utilization is improved. Since each microservice only stores local keys, there is no risk of counterfeiting and denial, and the system has anti-replay capabilities. In addition, what is transmitted during the identity authentication process is the encrypted session key rather than the identity key of the microservice, which can reduce the risk of leakage of the identity key of the microservice and improve the efficiency and security of identity authentication.
[0124] Embodiment 7
[0125] The above is a data processing method provided in the embodiment of this specification. Based on the same idea, the embodiment of this specification also provides a data processing device, such as Fig.12 shown.
[0126] The data processing device comprises: a request sending module 1201, an information receiving module 1202, a data processing module 1203 and an information sending module 1204, wherein:
[0127] A request sending module 1201 is used to send an access request of the data processing device to a target microservice to a verification server;
[0128] The information receiving module 1202 is used to receive the first verification information returned by the verification server, where the first verification information is obtained by the verification server encrypting the session key and the second verification information based on the identity key of the data processing device, and the second verification information is obtained by the verification server encrypting the session key and the identifier of the data processing device based on the identity key of the target microservice, and the session key is a key generated by the verification server based on the access request;
[0129] The data processing module 1203 is configured to decrypt the first verification information to obtain the session key and the second verification information, and sign the identifier of the data processing device based on the session key to obtain third verification information;
[0130] The information sending module 1204 is used to send the second verification information and the third verification information to the target microservice, where the second verification information is used to trigger the target microservice to decrypt the second verification information to obtain a session key and an identifier of a data processing device, and authenticate the data processing device based on the identifier and session key of the decrypted data processing device and the received third verification information.
[0131] In the embodiment of this specification, the data processing module 1203 is used to:
[0132] Signing the service data to be processed and the identifier of the data processing device based on the session key to obtain the third verification information;
[0133] The information sending module 1204 is used to:
[0134] The business data, the second verification information and the third verification information are sent to the target microservice, the second verification information is used to trigger the target microservice to decrypt the second verification information to obtain a session key and an identifier of a data processing device, and the business data is processed when the data processing device is authenticated based on the identifier and session key of the decrypted data processing device, and the received business data, the third verification information and the business data.
[0135] In the embodiment of this specification, the data processing module 1203 is used to:
[0136] Obtaining a timestamp of the current time, and signing the timestamp, the service data to be processed, and the identifier of the data processing device based on the session key to obtain the third verification information;
[0137] The information sending module 1204 is used to:
[0138] The timestamp, the business data, the second verification information and the third verification information are sent to the target microservice, the second verification information is used to trigger the target microservice to decrypt the second verification information to obtain a session key and an identifier of a data processing device, and the data processing device is authenticated based on the identifier and session key of the decrypted data processing device, as well as the received business data, the third verification information and the business data, and the business data is processed if the comparison is successful based on the received timestamp of the current time.
[0139] In the embodiment of this specification, the data processing module 1203 is used to:
[0140] The first verification information is decrypted based on the identity key of the data processing device to obtain the session key and the second verification information.
[0141] Based on the same idea, the embodiment of this specification also provides a data processing device, such as Fig.13 shown.
[0142] The data processing device comprises: a request receiving module 1301, a data processing module 1302 and an information sending module 1303, wherein:
[0143] The request receiving module 1301 is used to receive an access request from the first microservice to the target microservice;
[0144] The data processing module 1302 is used to encrypt the session key and the second verification information based on the identity key of the first microservice to obtain the first verification information, where the second verification information is obtained by the data processing device encrypting the session key and the identifier of the first microservice based on the identity key of the target microservice, and the session key is a key generated by the data processing device based on the access request;
[0145] The information sending module 1303 is used to send the first verification information to the first microservice, where the first verification information is used to trigger the first microservice to decrypt the first verification information to obtain a session key and second verification information, and send the second verification information and the third verification information to the target microservice, where the second verification information is used to trigger the target microservice to decrypt the second verification information to obtain a session key and an identifier of the first microservice, and authenticate the first microservice based on the identifier and session key of the decrypted first microservice and the received third verification information, where the third verification information is obtained by signing the identifier of the first microservice by the first microservice based on the session key.
[0146] In the embodiment of this specification, the access request includes the identity key of the first microservice, the identifier of the first microservice and the identifier of the target microservice, and the device further includes:
[0147] A first generating module, configured to perform identity authentication on the first microservice based on the identity key of the first microservice, and generate the session key corresponding to the access request after the identity authentication passes;
[0148] The first encryption module is used to determine the identity key of the target microservice based on the identifier of the target microservice, and encrypt the session key and the identifier of the first microservice based on the identity key of the target microservice to obtain the second verification information.
[0149] In the embodiment of this specification, the access request includes the identifier of the first microservice and the identifier of the target microservice, and the device further includes:
[0150] A second generating module, used to generate the session key corresponding to the access request;
[0151] A key determination module, configured to determine an identity key of the first microservice based on an identifier of the first microservice, and to determine an identity key of the target microservice based on an identifier of the target microservice;
[0152] The second encryption module is used to encrypt the session key and the identifier of the first microservice based on the identity key of the target microservice to obtain the second verification information.
[0153] Based on the same idea, the embodiment of this specification also provides a data processing device, such as Fig.14 shown.
[0154] The data processing device includes: a receiving module 1401, a decryption module 1402 and an authentication module 1403, wherein:
[0155] The receiving module 1401 is used to receive second verification information and third verification information sent by the first microservice, where the second verification information is obtained by encrypting a session key and an identifier of the first microservice based on an identity key of the data processing device by a verification server, the session key is a key generated by the verification server based on an access request of the first microservice to the data processing device, and the third verification information is obtained by signing the identifier of the first microservice based on the session key by the first microservice;
[0156] The decryption module 1402 is used to decrypt the second verification information to obtain a session key and an identifier of the first microservice, and sign the decrypted identifier of the first microservice based on the decrypted session key to obtain fourth verification information;
[0157] The authentication module 1403 is used to determine an authentication result of the first microservice based on the third verification information and the fourth verification information.
[0158] The embodiments of this specification provide a data processing device. Since each microservice (such as the first microservice requesting access and the target microservice being accessed) only needs to manage local keys (such as decryption keys) and does not need to store identity information of other microservices, local information storage costs and information management costs are reduced, and resource utilization is improved. Since each microservice only stores local keys, there is no risk of counterfeiting and denial, and the device has anti-replay capabilities. In addition, what is transmitted during the identity authentication process is the encrypted session key rather than the identity key of the microservice, which can reduce the risk of leakage of the identity key of the microservice and improve the efficiency and security of identity authentication.
[0159] Embodiment 8
[0160] Based on the same idea, the embodiment of this specification also provides a data processing device, such as Fig.15 shown.
[0161] The data processing device may have relatively large differences due to different configurations or performances, and may include one or more processors 1501 and memory 1502, and the memory 1502 may store one or more storage applications or data. Among them, the memory 1502 may be a short-term storage or a persistent storage. The application stored in the memory 1502 may include one or more modules (not shown in the figure), and each module may include a series of computer executable instructions in the data processing device. Furthermore, the processor 1501 may be configured to communicate with the memory 1502 and execute a series of computer executable instructions in the memory 1502 on the data processing device. The data processing device may also include one or more power supplies 1503, one or more wired or wireless network interfaces 1504, one or more input and output interfaces 1505, and one or more keyboards 1506.
[0162] Specifically in this embodiment, the data processing device includes a memory and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer executable instructions in the data processing device, and the one or more programs are configured to be executed by one or more processors, including computer executable instructions for performing the following:
[0163] Sending an access request from the first microservice to the target microservice to the verification server;
[0164] Receive first verification information returned by the verification server, where the first verification information is obtained by the verification server encrypting a session key and a second verification information based on the identity key of the first microservice, and the second verification information is obtained by the verification server encrypting the session key and the identifier of the first microservice based on the identity key of the target microservice, and the session key is a key generated by the verification server based on the access request;
[0165] Decrypting the first verification information to obtain the session key and the second verification information, and signing the identifier of the first microservice based on the session key to obtain third verification information;
[0166] The second verification information and the third verification information are sent to the target microservice, where the second verification information is used to trigger the target microservice to decrypt the second verification information to obtain a session key and an identifier of the first microservice, and authenticate the first microservice based on the identifier and session key of the decrypted first microservice and the received third verification information.
[0167] Optionally, signing the identifier of the first microservice based on the session key to obtain third verification information includes:
[0168] Sign the business data to be processed and the identifier of the first microservice based on the session key to obtain the third verification information;
[0169] The sending the second verification information and the third verification information to the target microservice includes:
[0170] The business data, the second verification information, and the third verification information are sent to the target microservice, where the second verification information is used to trigger the target microservice to decrypt the second verification information to obtain a session key and an identifier of the first microservice, and process the business data when the first microservice is authenticated based on the identifier and session key of the decrypted first microservice and the received business data, the third verification information, and the business data.
[0171] Optionally, signing the business data to be processed and the identifier of the first microservice based on the session key to obtain the third verification information includes:
[0172] Obtaining a timestamp of the current time, and signing the timestamp, the business data to be processed, and the identifier of the first microservice based on the session key to obtain the third verification information;
[0173] The sending the second verification information and the third verification information to the target microservice includes:
[0174] The timestamp, the business data, the second verification information and the third verification information are sent to the target microservice, the second verification information is used to trigger the target microservice to decrypt the second verification information to obtain a session key and an identifier of the first microservice, and authenticate the first microservice based on the identifier and session key of the decrypted first microservice, and the received business data, the third verification information and the business data, and process the business data if the comparison is successful based on the received timestamp of the current time.
[0175] Optionally, decrypting the first verification information to obtain the session key and the second verification information includes:
[0176] The first verification information is decrypted based on the identity key of the first microservice to obtain the session key and the second verification information.
[0177] The one or more programs configured to be executed by one or more processors also include computer executable instructions for performing the following:
[0178] Receive an access request from the first microservice to the target microservice;
[0179] The session key and the second verification information are encrypted based on the identity key of the first microservice to obtain the first verification information, wherein the second verification information is obtained by the verification server encrypting the session key and the identifier of the first microservice based on the identity key of the target microservice, and the session key is a key generated by the verification server based on the access request;
[0180] The first verification information is sent to the first microservice, the first verification information is used to trigger the first microservice to obtain a session key and second verification information based on decryption of the first verification information, and the second verification information and the third verification information are sent to the target microservice, the second verification information is used to trigger the target microservice to decrypt the second verification information to obtain a session key and an identifier of the first microservice, and authenticate the first microservice based on the identifier and session key of the decrypted first microservice and the received third verification information, the third verification information being obtained by the first microservice signing the identifier of the first microservice based on the session key.
[0181] Optionally, the access request includes the identity key of the first microservice, the identifier of the first microservice, and the identifier of the target microservice. Before encrypting the session key and the second verification information based on the identity key of the first microservice to obtain the first verification information, the access request further includes:
[0182] Based on the identity key of the first microservice, perform identity authentication on the first microservice, and after the identity authentication passes, generate the session key corresponding to the access request;
[0183] Based on the identifier of the target microservice, an identity key of the target microservice is determined, and based on the identity key of the target microservice, the session key and the identifier of the first microservice are encrypted to obtain the second verification information.
[0184] Optionally, the access request includes an identifier of the first microservice and an identifier of the target microservice, and before encrypting the session key and the second verification information based on the identity key of the first microservice to obtain the first verification information, the method further includes:
[0185] generating the session key corresponding to the access request;
[0186] Based on the identifier of the first microservice, determine the identity key of the first microservice, and based on the identifier of the target microservice, determine the identity key of the target microservice;
[0187] The session key and the identifier of the first microservice are encrypted based on the identity key of the target microservice to obtain the second verification information.
[0188] The one or more programs configured to be executed by one or more processors also include computer executable instructions for performing the following:
[0189] Receive second verification information and third verification information sent by the first microservice, where the second verification information is obtained by encrypting a session key and an identifier of the first microservice based on the identity key of the target microservice by the verification server, the session key is a key generated by the verification server based on an access request of the first microservice to the target microservice, and the third verification information is obtained by signing the identifier of the first microservice based on the session key by the first microservice;
[0190] The second verification information is decrypted to obtain a session key and an identifier of the first microservice, and the decrypted identifier of the first microservice is signed based on the decrypted session key to obtain fourth verification information;
[0191] Based on the third verification information and the fourth verification information, an authentication result of the first microservice is determined.
[0192] The embodiments of this specification provide a data processing device. Since each microservice (such as the first microservice requesting access and the target microservice being accessed) only needs to manage local keys (such as decryption keys) and does not need to store identity information of other microservices, local information storage costs and information management costs are reduced, and resource utilization is improved. Since each microservice only stores local keys, there is no risk of counterfeiting and denial, and the device has anti-replay capabilities. In addition, what is transmitted during the identity authentication process is the encrypted session key rather than the identity key of the microservice, which can reduce the risk of leakage of the identity key of the microservice and improve the efficiency and security of identity authentication.
[0193] Embodiment 9
[0194] The embodiments of this specification also provide a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, each process of the above-mentioned data processing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. The computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0195] The embodiments of this specification provide a computer-readable storage medium. Since each microservice (such as the first microservice requesting access and the target microservice being accessed) only needs to manage local keys (such as decryption keys) and does not need to store identity information of other microservices, local information storage costs and information management costs are reduced, and resource utilization is improved. Since each microservice only stores local keys, there is no risk of counterfeiting and denial, and it has anti-replay capabilities. In addition, what is transmitted during the identity authentication process is the encrypted session key rather than the identity key of the microservice, which can reduce the risk of leakage of the identity key of the microservice and improve the efficiency and security of identity authentication.
[0196] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0197] In the 1990s, it was very clear whether the improvement of a technology was hardware improvement (for example, improvement of the circuit structure of diodes, transistors, switches, etc.) or software improvement (improvement of the method flow). However, with the development of technology, many improvements of the method flow today can be regarded as direct improvements of the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that the improvement of a method flow cannot be implemented with a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming themselves, without having to ask chip manufacturers to design and make dedicated integrated circuit chips. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one kind of HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.
[0198] The controller may be implemented in any suitable manner, for example, the controller may take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (e.g., software or firmware) executable by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include but are not limited to the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320, and the memory controller may also be implemented as part of the control logic of the memory. It is also known to those skilled in the art that, in addition to implementing the controller in a purely computer-readable program code manner, the controller may be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, such a controller may be considered as a hardware component, and the devices for implementing various functions included therein may also be considered as structures within the hardware component. Or even, the devices for implementing various functions may be considered as both software modules for implementing the method and structures within the hardware component.
[0199] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0200] For the convenience of description, the above devices are described in terms of functions and are divided into various units. Of course, when implementing one or more embodiments of this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0201] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems, or computer program products. Therefore, one or more embodiments of this specification may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, one or more embodiments of this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0202] The embodiments of this specification are described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of this specification. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate a device for implementing the functions specified in one process or multiple processes in the flowchart and / or one box or multiple boxes in the block diagram.
[0203] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device that implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0204] These computer program instructions may also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0205] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0206] Memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
[0207] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined in this article, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0208] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0209] Those skilled in the art will appreciate that the embodiments of the present specification may be provided as methods, systems or computer program products. Therefore, one or more embodiments of the present specification may be in the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Furthermore, one or more embodiments of the present specification may be in the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0210] One or more embodiments of the present specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. One or more embodiments of the present specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
[0211] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0212] The above description is only an embodiment of the present specification and is not intended to limit the present specification. For those skilled in the art, the present specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present specification shall be included in the scope of the claims of the present specification.
Claims
1. A data processing method, the method being applied to a first microservice, comprising: Sending an access request from the first microservice to the target microservice to the verification server; Receive the first verification information returned by the verification server, the first verification information is obtained by the verification server encrypting the session key and the second verification information based on the identity key of the first microservice, the second verification information is obtained by the verification server encrypting the session key and the identifier of the first microservice based on the identity key of the target microservice, the session key is a key generated by the verification server based on the access request, the identity key of the first microservice is a symmetric key, the session key is a one-time key with time validity, in the case of multiple target microservices, the access request contains the identifier of the target microservice, and the verification server generates a session key for each target microservice based on the identifier of the target microservice contained in the access request; Decrypting the first verification information to obtain the session key and the second verification information, and signing the identifier of the first microservice based on the session key to obtain third verification information; The second verification information and the third verification information are sent to the target microservice, where the second verification information is used to trigger the target microservice to decrypt the second verification information to obtain a session key and an identifier of the first microservice, and authenticate the first microservice based on the identifier and session key of the decrypted first microservice and the received third verification information.
2. According to the method of claim 1, the step of signing the identifier of the first microservice based on the session key to obtain the third verification information comprises: Sign the business data to be processed and the identifier of the first microservice based on the session key to obtain the third verification information; The sending the second verification information and the third verification information to the target microservice includes: The business data, the second verification information, and the third verification information are sent to the target microservice, where the second verification information is used to trigger the target microservice to decrypt the second verification information to obtain a session key and an identifier of the first microservice, and process the business data when the first microservice is authenticated based on the identifier and session key of the decrypted first microservice and the received business data, the third verification information, and the business data.
3. According to the method of claim 2, the step of signing the business data to be processed and the identifier of the first microservice based on the session key to obtain the third verification information comprises: Obtaining a timestamp of the current time, and signing the timestamp, the business data to be processed, and the identifier of the first microservice based on the session key to obtain the third verification information; The sending the second verification information and the third verification information to the target microservice includes: The timestamp, the business data, the second verification information and the third verification information are sent to the target microservice, the second verification information is used to trigger the target microservice to decrypt the second verification information to obtain a session key and an identifier of the first microservice, and authenticate the first microservice based on the identifier and session key of the decrypted first microservice, and the received business data, the third verification information and the business data, and process the business data if the comparison is successful based on the received timestamp of the current time.
4. The method according to claim 3, wherein decrypting the first verification information to obtain the session key and the second verification information comprises: The first verification information is decrypted based on the identity key of the first microservice to obtain the session key and the second verification information.
5. A data processing method, the method being applied to a verification server, comprising: Receive an access request from the first microservice to the target microservice; The session key and the second verification information are encrypted based on the identity key of the first microservice to obtain the first verification information. The second verification information is obtained by the verification server encrypting the session key and the identifier of the first microservice based on the identity key of the target microservice. The session key is a key generated by the verification server based on the access request. The identity key of the first microservice is a symmetric key. The session key is a one-time key with time validity. In the case of multiple target microservices, the access request contains the identifier of the target microservice. The verification server generates a session key for each target microservice based on the identifier of the target microservice contained in the access request. The first verification information is sent to the first microservice, the first verification information is used to trigger the first microservice to obtain a session key and second verification information based on decryption of the first verification information, and the second verification information and the third verification information are sent to the target microservice, the second verification information is used to trigger the target microservice to decrypt the second verification information to obtain a session key and an identifier of the first microservice, and authenticate the first microservice based on the identifier and session key of the decrypted first microservice and the received third verification information, the third verification information being obtained by the first microservice signing the identifier of the first microservice based on the session key.
6. The method according to claim 5, wherein the access request includes the identity key of the first microservice, the identifier of the first microservice, and the identifier of the target microservice, and before encrypting the session key and the second verification information based on the identity key of the first microservice to obtain the first verification information, further comprising: Based on the identity key of the first microservice, perform identity authentication on the first microservice, and after the identity authentication passes, generate the session key corresponding to the access request; Based on the identifier of the target microservice, an identity key of the target microservice is determined, and based on the identity key of the target microservice, the session key and the identifier of the first microservice are encrypted to obtain the second verification information.
7. The method according to claim 5, wherein the access request includes the identifier of the first microservice and the identifier of the target microservice, and before encrypting the session key and the second verification information based on the identity key of the first microservice to obtain the first verification information, further comprising: generating the session key corresponding to the access request; Based on the identifier of the first microservice, determine the identity key of the first microservice, and based on the identifier of the target microservice, determine the identity key of the target microservice; The session key and the identifier of the first microservice are encrypted based on the identity key of the target microservice to obtain the second verification information.
8. A data processing method, the method being applied to a target microservice, comprising: Receive the second verification information and the third verification information sent by the first microservice, the first microservice receives the first verification information returned by the verification server, the first verification information is obtained by the verification server encrypting the session key and the second verification information based on the identity key of the first microservice, the second verification information is obtained by the verification server encrypting the session key and the identifier of the first microservice based on the identity key of the target microservice, the session key is a key generated by the verification server based on the access request of the first microservice to the target microservice, the third verification information is obtained by the first microservice signing the identifier of the first microservice based on the session key, the session key is a one-time key with time validity, when there are multiple target microservices, the access request contains the identifier of the target microservice, and the verification server generates a session key for each target microservice based on the identifier of the target microservice contained in the access request; The second verification information is decrypted to obtain a session key and an identifier of the first microservice, and the decrypted identifier of the first microservice is signed based on the decrypted session key to obtain fourth verification information; Based on the third verification information and the fourth verification information, an authentication result of the first microservice is determined.
9. A data processing device, comprising: A request sending module, used to send an access request of the data processing device to a target microservice to a verification server; An information receiving module, used to receive first verification information returned by the verification server, wherein the first verification information is obtained by encrypting a session key and a second verification information by the verification server based on the identity key of the data processing device, and the second verification information is obtained by encrypting the session key and the identifier of the data processing device by the verification server based on the identity key of the target microservice, wherein the session key is a key generated by the verification server based on the access request, the identity key of the data processing device is a symmetric key, and the session key is a one-time key with time validity. In the case where there are multiple target microservices, the access request contains the identifier of the target microservice, and the verification server generates a session key for each target microservice based on the identifier of the target microservice contained in the access request; a data processing module, configured to decrypt the first verification information to obtain the session key and the second verification information, and sign the identifier of the data processing device based on the session key to obtain third verification information; an information sending module, configured to send the second verification information and the third verification information to the target microservice, wherein the second verification information is used to trigger the target microservice to decrypt the second verification information to obtain a session key and an identifier of a data processing device, and authenticate the data processing device based on the identifier and session key of the data processing device obtained by decryption, and the received third verification information.
10. A data processing device, comprising: A request receiving module, used to receive an access request from the first microservice to the target microservice; A data processing module, configured to encrypt a session key and a second verification information based on the identity key of the first microservice to obtain the first verification information, wherein the second verification information is obtained by the data processing device encrypting the session key and the identifier of the first microservice based on the identity key of the target microservice, wherein the session key is a key generated by the data processing device based on the access request, the identity key of the first microservice is a symmetric key, and the session key is a one-time key with time validity. When there are multiple target microservices, the access request includes the identifier of the target microservice, and the data processing device generates a session key for each target microservice based on the identifier of the target microservice included in the access request; An information sending module is used to send the first verification information to the first microservice, where the first verification information is used to trigger the first microservice to decrypt the first verification information to obtain a session key and second verification information, and send the second verification information and third verification information to the target microservice, where the second verification information is used to trigger the target microservice to decrypt the second verification information to obtain a session key and an identifier of the first microservice, and authenticate the first microservice based on the identifier and session key of the first microservice obtained by decryption, and the received third verification information, where the third verification information is obtained by the first microservice signing the identifier of the first microservice based on the session key.
11. A data processing device, comprising: A receiving module, configured to receive second verification information and third verification information sent by a first microservice, wherein the first microservice receives first verification information returned by a verification server, wherein the first verification information is obtained by encrypting a session key and the second verification information by the verification server based on an identity key of the first microservice, and the second verification information is obtained by encrypting a session key and an identifier of the first microservice by the verification server based on an identity key of the data processing device, wherein the session key is a key generated by the verification server based on an access request of the first microservice to the data processing device, and the third verification information is obtained by signing the identifier of the first microservice by the first microservice based on the session key, wherein the session key is a one-time key with time validity, and when there are multiple target microservices, the access request includes the identifier of the target microservice, and the verification server generates a session key for each target microservice based on the identifier of the target microservice included in the access request; A decryption module, used to decrypt the second verification information to obtain a session key and an identifier of the first microservice, and sign the decrypted identifier of the first microservice based on the decrypted session key to obtain fourth verification information; An authentication module is used to determine an authentication result of the first microservice based on the third verification information and the fourth verification information.
12. A data processing device, comprising: processor; as well as a memory arranged to store computer executable instructions which, when executed, cause the processor to: Sending an access request of the data processing device to the target microservice to the verification server; Receive first verification information returned by the verification server, the first verification information is obtained by the verification server encrypting a session key and a second verification information based on the identity key of the data processing device, the second verification information is obtained by the verification server encrypting the session key and the identifier of the data processing device based on the identity key of the target microservice, the session key is a key generated by the verification server based on the access request, the identity key of the data processing device is a symmetric key, the session key is a one-time key with time validity, in the case of multiple target microservices, the access request contains the identifier of the target microservice, and the verification server generates a session key for each target microservice based on the identifier of the target microservice contained in the access request; decrypting the first verification information to obtain the session key and the second verification information, and signing the identifier of the data processing device based on the session key to obtain third verification information; The second verification information and the third verification information are sent to the target microservice, where the second verification information is used to trigger the target microservice to decrypt the second verification information to obtain a session key and an identifier of a data processing device, and authenticate the data processing device based on the identifier and session key of the decrypted data processing device and the received third verification information.
13. A data processing device, comprising: processor; as well as a memory arranged to store computer executable instructions which, when executed, cause the processor to: Receive an access request from the first microservice to the target microservice; The session key and the second verification information are encrypted based on the identity key of the first microservice to obtain the first verification information, the second verification information is obtained by the data processing device encrypting the session key and the identifier of the first microservice based on the identity key of the target microservice, the session key is a key generated by the data processing device based on the access request, the identity key of the first microservice is a symmetric key, the session key is a one-time key with time validity, and in the case of multiple target microservices, the access request contains the identifier of the target microservice, and the data processing device generates a session key for each target microservice based on the identifier of the target microservice contained in the access request; The first verification information is sent to the first microservice, the first verification information is used to trigger the first microservice to obtain a session key and second verification information based on decryption of the first verification information, and the second verification information and the third verification information are sent to the target microservice, the second verification information is used to trigger the target microservice to decrypt the second verification information to obtain a session key and an identifier of the first microservice, and authenticate the first microservice based on the identifier and session key of the decrypted first microservice and the received third verification information, the third verification information being obtained by the first microservice signing the identifier of the first microservice based on the session key.
14. A data processing device, comprising: processor; as well as a memory arranged to store computer executable instructions which, when executed, cause the processor to: Receive the second verification information and the third verification information sent by the first microservice, the first microservice receives the first verification information returned by the verification server, the first verification information is obtained by the verification server encrypting the session key and the second verification information based on the identity key of the first microservice, the second verification information is obtained by the verification server encrypting the session key and the identifier of the first microservice based on the identity key of the data processing device, the session key is a key generated by the verification server based on the access request of the first microservice to the data processing device, the third verification information is obtained by the first microservice signing the identifier of the first microservice based on the session key, the session key is a one-time key with time validity, when there are multiple target microservices, the access request contains the identifier of the target microservice, and the verification server generates a session key for each target microservice based on the identifier of the target microservice contained in the access request; The second verification information is decrypted to obtain a session key and an identifier of the first microservice, and the decrypted identifier of the first microservice is signed based on the decrypted session key to obtain fourth verification information; Based on the third verification information and the fourth verification information, an authentication result of the first microservice is determined.
15. A storage medium for storing computer executable instructions, wherein the executable instructions implement the following process when executed by a processor: Sending an access request from the first microservice to the target microservice to the verification server; Receive the first verification information returned by the verification server, the first verification information is obtained by the verification server encrypting the session key and the second verification information based on the identity key of the first microservice, the second verification information is obtained by the verification server encrypting the session key and the identifier of the first microservice based on the identity key of the target microservice, the session key is a key generated by the verification server based on the access request, the identity key of the first microservice is a symmetric key, the session key is a one-time key with time validity, in the case of multiple target microservices, the access request contains the identifier of the target microservice, and the verification server generates a session key for each target microservice based on the identifier of the target microservice contained in the access request; Decrypting the first verification information to obtain the session key and the second verification information, and signing the identifier of the first microservice based on the session key to obtain third verification information; The second verification information and the third verification information are sent to the target microservice, where the second verification information is used to trigger the target microservice to decrypt the second verification information to obtain a session key and an identifier of the first microservice, and authenticate the first microservice based on the identifier and session key of the decrypted first microservice and the received third verification information.
16. A storage medium for storing computer executable instructions, wherein the executable instructions implement the following process when executed by a processor: Receive an access request from the first microservice to the target microservice; The session key and the second verification information are encrypted based on the identity key of the first microservice to obtain the first verification information. The second verification information is obtained by encrypting the session key and the identifier of the first microservice based on the identity key of the target microservice by the verification server. The session key is a key generated by the verification server based on the access request. The identity key of the first microservice is a symmetric key. The session key is a one-time key with time validity. In the case of multiple target microservices, the access request contains the identifier of the target microservice. The verification server generates a session key for each target microservice based on the identifier of the target microservice contained in the access request. The first verification information is sent to the first microservice, the first verification information is used to trigger the first microservice to obtain a session key and second verification information based on decryption of the first verification information, and the second verification information and the third verification information are sent to the target microservice, the second verification information is used to trigger the target microservice to decrypt the second verification information to obtain a session key and an identifier of the first microservice, and authenticate the first microservice based on the identifier and session key of the decrypted first microservice and the received third verification information, the third verification information being obtained by the first microservice signing the identifier of the first microservice based on the session key.
17. A storage medium for storing computer executable instructions, wherein the executable instructions implement the following process when executed by a processor: Receive the second verification information and the third verification information sent by the first microservice, the first microservice receives the first verification information returned by the verification server, the first verification information is obtained by the verification server encrypting the session key and the second verification information based on the identity key of the first microservice, the second verification information is obtained by the verification server encrypting the session key and the identifier of the first microservice based on the identity key of the target microservice, the session key is a key generated by the verification server based on the access request of the first microservice to the target microservice, the third verification information is obtained by the first microservice signing the identifier of the first microservice based on the session key, the session key is a one-time key with time validity, when there are multiple target microservices, the access request contains the identifier of the target microservice, and the verification server generates a session key for each target microservice based on the identifier of the target microservice contained in the access request; The second verification information is decrypted to obtain a session key and an identifier of the first microservice, and the decrypted identifier of the first microservice is signed based on the decrypted session key to obtain fourth verification information; Based on the third verification information and the fourth verification information, an authentication result of the first microservice is determined.
