A multi-platform cloud connector system

By designing a multi-platform interconnected cloud connector system, we solve the problems of inefficient data, service and resource allocation and data islands in the automotive industry, achieve secure data and service sharing, and ensure that content cannot be tampered with and traceable.

CN115987547BInactive Publication Date: 2024-10-18SICHUAN UNIV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211360497.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-02
Publication Date
2024-10-18
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the multi-value chain collaboration in the automotive industry, there are inefficiencies in data, service, and resource allocation and data island problems, which make data sharing, service sharing, and resource coordination difficult to achieve, and there are risks of content leakage and tampering.

Method used

Design a multi-platform interconnected cloud connector system, including gateway module, user module, access control module, authentication module and asynchronous processing module, to achieve cross-platform data and asynchronous processing through load balancing, identity management, access control and message asynchronous processing. Service integration to ensure the security and traceability of data and services.

Benefits of technology

It improves the efficiency of allocating data, services and resources, breaks down data silos, realizes secure data sharing, service sharing and resource coordination between multiple platforms, and ensures that content cannot be tampered with and is traceable.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115987547B_ABST
    Figure CN115987547B_ABST
Patent Text Reader

Abstract

The present invention proposes a multi-platform interconnected cloud connector system, which relates to the field of automobile manufacturing technology. It includes: multiple cloud platforms and cloud connectors, the gateway module realizes user identity authentication, authorization, access control, token generation, load balancing and other functions; the user module realizes user information, attribute information query and user information query; the access control module performs access control, access policy management and resource management; the authentication module verifies user information, encapsulates and generates and issues tokens; the asynchronous processing module registers the corresponding message queue for tasks with asynchronous requirements in data integration content or service integration content, and sets a task listener to listen to the message queue. The present invention realizes the interconnection and integration of various types of cloud platforms, data / service resource development, unified resource management, data sharing, and service collaboration between multiple platforms, breaks the data isolation state, and conveniently realizes data sharing, service sharing, and resource coordination.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of automobile manufacturing, and in particular to a multi-platform interconnected cloud connector system. Background Art

[0002] At present, the links between the value chains of the automobile industry are gradually strengthening, and the business development among multiple chains is becoming increasingly close. Business collaboration among value chains requires not only vertical collaboration between core manufacturing enterprises and their upstream and downstream enterprises, but also horizontal cross-chain collaboration among multiple chain value chains, forming a value chain collaboration alliance with a mesh structure that includes vertical and horizontal collaborative relationships.

[0003] However, in the current multi-value chain collaboration of the automotive industry, both core manufacturing companies and upstream and downstream companies have their own data cloud platforms and service cloud platforms. There are many problems between these cloud platforms, such as low efficiency in the allocation of data, services, resources, and data silos. They cannot achieve multi-source heterogeneous data sharing, service sharing, and resource coordination well. In the process of achieving the above-mentioned multi-source heterogeneous data sharing, service sharing, and resource coordination, the relevant data content, service content, and resources are easily leaked, resulting in content tampering and non-traceability, further aggravating the low allocation efficiency and data silos. Summary of the invention

[0004] In view of the above problems, the present invention provides a multi-platform interconnected cloud connector system, which can effectively improve the security of data content, service content, and resource content, improve deployment efficiency, and break data silos.

[0005] The embodiment of the present invention provides a multi-platform interconnected cloud connector system, the cloud connector system comprising: a plurality of cloud platforms and cloud connectors, wherein the plurality of cloud platforms comprises: an automobile manufacturing enterprise information cloud platform, a third-party multi-value chain collaborative cloud platform, and an automobile group enterprise multi-base value chain collaborative cloud platform;

[0006] The cloud connector includes: a gateway module, a user module, an access control module, an authentication module and an asynchronous processing module;

[0007] The gateway module integrates multiple external interfaces and multiple internal interfaces. The gateway module uses multiple external interfaces to connect with multiple data integration servers and multiple service integration servers. The gateway module combines with EurekaServer to realize user registration microservices, registration microservices of multiple data integration servers, and registration microservices of multiple service integration servers;

[0008] The gateway module is connected to the user terminal by using the external interface to realize user identity authentication, authorization, management and monitoring services;

[0009] The gateway module utilizes the plurality of internal interfaces to connect with the user module, the access control module, the authentication module and the asynchronous processing module to implement message asynchronous processing, access control and token generation;

[0010] The gateway module uses ribbon to implement a load balancing algorithm to load balance user requests;

[0011] The user module combines with the gateway module and the user terminal to realize the addition, update, deletion, attribute information query and user information query of user information;

[0012] The access control module combines with the gateway module and the authentication module to verify the access rights of users who have passed the user information verification to a resource, and performs access control. At the same time, an access policy is set to add, delete, and update the access policy for each resource, and realize the release, query, deletion, and update of resources;

[0013] The authentication module combines with the gateway module and the user terminal to implement the user authentication function based on OAuth2.0, verifies the user information, and encapsulates, generates and issues tokens according to the user registration information;

[0014] The asynchronous processing module combines with the gateway module, the user terminal, the plurality of data integration servers, and the plurality of service integration servers to register corresponding message queues for tasks with asynchronous requirements in data integration content or service integration content, and sets a task listener to monitor the message queues;

[0015] Among them, the data integration server and the service integration server refer to: after cross-platform classification of the respective contents of the automobile manufacturing enterprise informatization cloud platform, the third-party multi-value chain collaborative cloud platform, and the automobile group enterprise multi-base value chain collaborative cloud platform according to data type and service type, data integration content and service integration content are obtained, the data integration content is stored in multiple data integration servers, and the service integration content is stored in multiple service integration servers, and multiple data integration servers and multiple service integration servers are deployed in a distributed manner.

[0016] Optionally, a plurality of the data integration servers and a plurality of the service integration servers constitute a server cluster;

[0017] In the early stage of operation, a polling-based method is used to evenly send the requests sent by users to the corresponding servers in the server cluster for processing;

[0018] After a certain running time, the gateway module uses ribbon to periodically obtain the load and resource status of each server in the server cluster, and calculates the score of each server, and performs the load balancing based on the score, specifically including:

[0019] Get the performance of each server and calculate the average performance to get the benchmark CPU performance value P a 、Memory size M a 、Network bandwidth value B a ;

[0020] Define the performance vector of each server [p i ,m i ,b i ], where p i =P i / P a , m i =M i / M a , b i =B i / B a , i=1,2,3…,N,P i 、M i , B i They represent the CPU frequency, memory size, and network bandwidth of the i-th server respectively;

[0021] Get the CPU load rate L(C i ), memory usage L(M i ), network occupancy rate L(B i ), N is the number of servers in the server cluster;

[0022] Calculate the overall performance score S1 of each server based on the performance vector of each server i :

[0023] S1 i =k1*p i *(1-L(C i ))+k2*m i *(1-L(M i ))+k3*b i *(1-

[0024] L(B i )),i=1,2,3…,N(1)

[0025] Among them, k1+k2+k3=1, k1, k2, k3 represent the weights of each indicator.

[0026] Get the average response time TimeAvg of each serveri The relationship between the total response time TimeTotal of all servers is:

[0027] S2 i =TimeTotal-TimeAvg i ,i=1,2,3…,N(2)

[0028] Among them, S2 i Inversely proportional to the response time of each server, the faster the response, the higher the score;

[0029] According to the scores calculated by formula (1) and formula (2), the score S of the i-th server is calculated i :

[0030] S i =a*S1 i +b*S2 i ,i=1,2,3…,N(3)

[0031] According to formula (3), a score set containing all current servers is obtained, and all scores in the score set are mapped into a ScoreSet:

[0032] ScoreSet = {a*S1 i +b*S2 i},i=1,2,3…,N(4)

[0033] Among them, a+b=1, a and b represent the weights of each indicator.

[0034] Optionally, the gateway module uses ribbon to implement a load balancing algorithm, and the specific steps of load balancing the user's request include:

[0035] Initialize a scheduled task, specify the start time and periodic execution time of the scheduled task, and the scheduled task is responsible for periodically maintaining the number of nodes and performance data of the server cluster;

[0036] When a user request arrives, if the ScoreSet of any server is empty, the next available server address is returned based on polling;

[0037] At the start of the scheduled task, the performance and load indicators of each server are periodically collected, and the performance and load indicators include: CPU, memory size, bandwidth size, CPU occupancy, memory occupancy, bandwidth occupancy, and average response time of each server;

[0038] According to formula (1) and formula (2), the performance score S1 of each server is calculated respectively. iand response time score S2 i ;

[0039] The weighted score result S is calculated based on formula (3) i , and combine the scores of all currently available servers to get a new ScoreSet list;

[0040] When a new user request arrives, the ScoreSet is not empty, the total score TotalScore is calculated, and the scores of each server are mapped to the interval [0, TotalScore], so that all servers obtain an interval of corresponding length according to their own scores, and obtain a random number random within the interval. The servers in the range of the random number random are the results of the load balancing.

[0041] Optionally, the authentication module combines with the gateway module and the user terminal to implement the encapsulation, generation and issuance of tokens based on user registration information based on OAuth2.0, including:

[0042] The user initiates an authentication request, which carries a user name and password, and the gateway module routes the authentication request to the authentication center;

[0043] The authentication center uses the user microservice provided by the Eureka Server to query the user information and verify the user information;

[0044] If the verification is successful, a JWT token is generated as the carrier of the token based on the user's attribute information, and the token identifier is returned to the user, and the JWT token is stored in redis.

[0045] Optionally, the access control module combines with the gateway module and the authentication module to verify the access rights of a user who has passed the user information verification to a resource, and the specific steps of performing access control include:

[0046] When a user accesses a resource, he sends a resource access request to the gateway module. The resource access request carries a token. The resource refers to: data integration content or service integration content;

[0047] The authentication module uses the access control service to verify the token, which includes: verification of the legitimacy of the token and verification of the expiration time;

[0048] After the verification is correct, the authentication module parses the carrier of the token, obtains the attribute information of the user, and then verifies the integrity of the attribute information of the user;

[0049] The access control module queries the access policy corresponding to the resource information according to the resource information of the resource access request;

[0050] The access control module calls an attribute-based access control method to verify whether the attribute information of the user complies with the access policy of the corresponding resource information;

[0051] The access control module returns the inspection result to the gateway module;

[0052] The gateway module releases or rejects the resource access request based on the verification result.

[0053] Optionally, the access policy is implemented based on the CP-ABE encryption scheme, and the user's decryption private key is associated with a set of attribute information of the user, and the access policy is associated with the data integration content or the service integration content, and the attribute information of the user includes: at least one platform ID, at least one enterprise ID, and at least one type of enterprise, wherein the platform ID refers to: the ID of any cloud platform among multiple cloud platforms provided by the cloud connector to the user for user operation, and the platform ID is the coarsest division granularity, and the enterprise ID refers to: the IDs of all enterprises that provide data integration content and service integration content for the cloud connector system, and the enterprise ID is the finest granularity;

[0054] The access strategy is a set of tree structures, which are represented by strings when stored, where the values ​​of non-leaf nodes are represented by strings k of n, where n represents the number of child nodes, and k represents the minimum number of child nodes that need to be satisfied;

[0055] When the node value is 1 of n, it indicates an OR gate, and only one of the attributes in the child nodes must be satisfied. When the node value is n of n, it indicates an AND gate, and true is returned only when all child nodes meet the conditions. The leaf node represents the corresponding attribute and value, and the * sign is used to indicate that all values ​​that match the current attribute are matched.

[0056] Take platform ID as an example: * represents the set of all platform IDs {P01, P02...}, P01 represents the specific ID of a cloud platform, and P02 represents the specific ID of another cloud platform;

[0057] Taking the enterprise ID as an example: * represents the set of all enterprises {C01, C02...} under the specified platform ID, C01 represents the specific ID of the enterprise that provides data integration content and service integration content for the cloud platform P01, and C02 represents the specific ID of another enterprise that provides data integration content and service integration content for the cloud platform P01;

[0058] Take enterprise type as an example: * represents the set of all enterprise types {T01, T02..} under the specified platform ID, T01 represents the enterprise type of an enterprise that provides data integration content and service integration content for cloud platform P02, and T02 represents the enterprise type of another enterprise that provides data integration content and service integration content for cloud platform P02;

[0059] Only when every node in the tree structure meets the conditions, the access control result for the resource can return true, otherwise it will return false.

[0060] Optionally, the access control process includes:

[0061] Initialization encryption algorithm stage: by inputting security parameter k, a system public key PK and a system master key MK are generated, wherein PK is made public in the cloud connector system for users to perform attribute encryption, and MK is kept secret by the cloud connector system;

[0062] Key generation phase: executed when the user registers, the cloud connector system generates an attribute private key for the user based on the system master key MK and the user's attribute information;

[0063] Resource publishing stage: Access policies are set for the external interfaces corresponding to data integration and service integration through attribute encryption algorithms, where M is the plain text information of the external interface. By inputting the M, the system public key PK, and the access control policy T, the M is attribute encrypted according to the access control policy to generate a ciphertext CT;

[0064] Resource acquisition phase: used to determine whether the user's permissions comply with the access policy of resource information, and to decrypt the user's attributes using the private key SK attr The ciphertext CT is used as input, and the attribute information contained in the private key is used to try to decrypt the access policy structure T contained in the ciphertext CT. If the decryption is successful, the result is returned to the gateway module to release the resource access request. Otherwise, the decryption fails and the gateway module rejects the operation.

[0065] Optionally, in the process of processing asynchronous demand tasks, the asynchronous processing module defines three roles: production end, message queue and consumer end, so that the message has reliability in the delivery process;

[0066] For the production end: start the message confirmation mechanism at the production end, generate a unique identifier for each message, store the message identifier, message content, and message queue to be delivered in Redis before delivering the message, and then deliver the actual message;

[0067] If the message is delivered to the specified message queue, the message queue returns a confirmation to the producer, which contains the unique identifier of the message. The message temporarily stored in Redis is deleted through the unique identifier.

[0068] If the message delivery fails, the producer receives a confirmation of the delivery error, which contains a specified message identifier. The message stored in Redis is retrieved again through the message identifier and redelivered to ensure that the message sent by the producer is not lost.

[0069] For the message queue: when creating a switch, the switch is persisted, the message queue metadata is persisted, and when delivering messages, the messages are also persisted to the local disk to avoid the loss of message queue metadata and messages that have not been consumed in time when the message middleware crashes;

[0070] For the consumer side: each message is confirmed by turning on manual confirmation at the consumer side. After the consumer side successfully processes the message, an ACK is returned. After receiving the confirmation, the message queue deletes the corresponding message.

[0071] If the processing at the consumer end fails, NACK is returned, so that the message returns to the message queue and is consumed again, ensuring that the message will not be lost when an exception occurs during business processing.

[0072] Compared with the prior art, the multi-platform interconnected cloud connector system provided by the present invention combines the cloud platforms of various enterprises involved in the automotive industry by using cloud connectors. As a cross-platform message bus, it provides functions such as message transmission mechanism, cross-platform data format conversion, and function adaptation interface. Aiming at the multi-source heterogeneous automotive industry big data, multi-platform distributed data integration and service integration based on cloud connectors, including key technologies such as data model association network, business synchronization and coordination, realizes the interconnection and integration of various types of cloud platforms, supports the fusion of multi-value chain business processes and system integration, realizes the development of data / service resources between multiple platforms, unified management of resources, data sharing between multiple platforms, and service collaboration, breaks the data isolation state, conveniently realizes data sharing, service sharing, resource coordination, realizes the requirements of non-tampering and traceability of content, and better serves a wide range of automotive manufacturing core enterprises and related enterprises. BRIEF DESCRIPTION OF THE DRAWINGS

[0073] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0074] Figure 1 is a schematic diagram of the overall architecture of the cloud connector in an embodiment of the present invention;

[0075] Figure 2 is a load balancing architecture diagram in an embodiment of the present invention;

[0076] Figure 3 is a schematic diagram of an access control strategy according to an embodiment of the present invention;

[0077] Figure 4 It is a schematic diagram of the overall functional module structure of the cloud connector in an embodiment of the present invention. DETAILED DESCRIPTION

[0078] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, are only part of the embodiments of the present invention, not all of the embodiments, and are not used to limit the present invention.

[0079] The multi-platform interconnected cloud connector system proposed in the present invention includes: multiple cloud platforms and cloud connectors, wherein the multiple cloud platforms include: automobile manufacturing enterprise information cloud platform, third-party multi-value chain collaborative cloud platform, automobile group enterprise multi-base value chain collaborative cloud platform, etc. That is, as long as the cloud platform involving the automobile industry, or the website, platform, etc. set up by the enterprise itself, can be regarded as multiple cloud platforms.

[0080] As a cross-platform message bus, the cloud connector provides functions such as message delivery mechanism, cross-platform data format conversion, and function adaptation interface. For multi-source heterogeneous manufacturing big data, multi-platform distributed data integration and service integration based on the cloud connector are implemented. The cloud connector uses key technologies such as data model association network, business synchronization and coordination to achieve interconnection and integration of various types of platforms. For example, multiple platforms include: third-party multi-value chain collaborative cloud service platform, group enterprise multi-base value chain collaborative cloud service platform, and enterprise information platform.

[0081] Cloud Connector supports the fusion of multi-value chain business processes and system integration, integrating the data content and service content of the above platforms, realizing data / service resource development, unified resource management, data sharing and service collaboration among multiple platforms.

[0082] In order to better explain and illustrate the cloud connector system of the embodiment of the present invention, the following example is taken Figure 1 The overall structure of the cloud connector is explained by taking the overall architecture diagram of the cloud connector as an example. Figure 1Zhongyun Connector connects with third-party multi-value chain collaborative cloud service platforms, group enterprise multi-base value chain collaborative cloud service platforms and enterprise information platforms, receives data from these platforms, performs cross-platform data format conversion, implements message transmission mechanisms, performs load balancing, and provides functional adaptation interfaces.

[0083] Through the above functions and interfaces, the calling interface, load balancing, identity management and access control for data integration and service integration are realized. Among them, load balancing includes but is not limited to: comprehensively considering server resources and resource utilization, as well as the response time in actual operation status, calculating scores based on these indicators, and performing load balancing based on the scores. Identity management and access control include but are not limited to: fine-grained access control based on attributes and unified identity management. Ultimately, the development of data / service resources, the unification of resources (referring to data resources and service resources), data sharing, service collaboration, and identity and authority authentication are achieved.

[0084] In an embodiment of the present invention, the cloud connector includes: a gateway module, a user module, an access control module, an authentication module, and an asynchronous processing module. The gateway module integrates multiple external interfaces and multiple internal interfaces, and the gateway module uses multiple external interfaces to connect with multiple data integration servers and multiple service integration servers. Among them, the data integration server and the service integration server refer to: cross-platform automobile manufacturing enterprise information cloud platform, third-party multi-value chain collaborative cloud platform, automobile group enterprise multi-base value chain collaborative cloud platform, etc., after the respective contents of various platforms are classified according to data type and service type, data integration content and service integration content are obtained, the data integration content is stored in multiple data integration servers, and the service integration content is stored in multiple service integration servers. Multiple data integration servers and multiple service integration servers are deployed in a distributed manner.

[0085] Data integration and service integration are the core services provided by the interconnection module. They need to have high availability and high performance. Therefore, they are deployed in a distributed manner. Multiple servers provide data integration and service integration functions at the same time, avoiding the single point failure problem.

[0086] The gateway module also combines with Eureka Server to implement user registration microservices, registration microservices of multiple data integration servers, and registration microservices of multiple service integration servers; the gateway module uses external interfaces to connect with user terminals to implement user identity authentication, authorization, management, and monitoring services; the gateway module uses multiple internal interfaces to connect with user modules, access control modules, authentication modules, and asynchronous processing modules to implement asynchronous message processing, access control, and token generation;

[0087] The gateway module also uses ribbon to implement a load balancing algorithm to load balance user requests. Figure 2 Take the load balancing architecture diagram shown in the figure as an example: data integration, service integration, and service gateway (i.e. gateway module) are registered in Eureka Server as microservices. In a distributed deployment, due to multiple servers ( Figure 2 The service integration server 1, data integration server 1, and data integration server 2 may have different performances due to differences in their own CPU, memory, bandwidth and other resources or deployment environments. Therefore, the embodiment of the present invention adopts a load balancing algorithm, comprehensively considers server resources and resource occupancy, and response time in actual operating conditions, calculates scores based on these indicators, and performs load balancing based on the scores.

[0088] In the embodiment of the present invention, it can be considered that multiple data integration servers and multiple service integration servers constitute a server cluster; in the initial stage of operation, the server load is relatively low, so the server load situation is not considered at the beginning, and a polling-based method is used to evenly send the requests sent by the user to each server in the corresponding server cluster for processing.

[0089] After a certain amount of running time, the gateway module uses ribbon to periodically obtain the load and resource status of each server in the server cluster, calculate the score of each server, and perform load balancing based on the score, including:

[0090] Get the performance of each server and calculate the average performance to get the benchmark CPU performance value P a 、Memory size M a 、Network bandwidth value B a ;

[0091] Define the performance vector of each server [p i ,m i ,b i ], where p i =P i / P a , m i =M i / M a , b i =B i / B a , i=1,2,3…,N,P i 、M i , B i They represent the CPU frequency, memory size, and network bandwidth of the i-th server respectively;

[0092] Get the CPU load rate L(Ci ), memory usage L(M i ), network occupancy rate L(B i ), N is the number of servers in the server cluster;

[0093] Calculate the overall performance score S1 of each server based on the performance vector of each server i :

[0094] S1 i =k1*p i *(1-L(C i ))+k2*m i *(1-L(M i ))+k3*b i *(1-

[0095] L(B i )),i=1,2,3…,N(1)

[0096] Among them, k1+k2+k3=1, k1, k2, k3 represent the weights of each indicator.

[0097] Get the average response time TimeAvg of each server i The relationship between the total response time TimeTotal of all servers is:

[0098] S2 i =TimeTotal-TimeAvg i ,i=1,2,3…,N(2)

[0099] Among them, S2 i Inversely proportional to the response time of each server, the faster the response, the higher the score;

[0100] According to the scores calculated by formula (1) and formula (2), the score S of the i-th server is calculated i :

[0101] S i =a*S1 i +b*S2 i ,i=1,2,3…,N(3)

[0102] According to formula (3), we get a score set containing all current servers, and map all scores in the score set into a ScoreSet:

[0103] ScoreSet = {a*S1 i +b*S2 i},i=1,2,3…,N(4)

[0104] Among them, a+b=1, a and b represent the weights of each indicator.

[0105] In the embodiment of the present invention, the gateway module uses ribbon to implement a load balancing algorithm, and the specific steps of load balancing the user's request include:

[0106] Step S1: Initialize a scheduled task, specify the start time and periodic execution time of the scheduled task, and the scheduled task is responsible for periodically maintaining the number of nodes and performance data of the server cluster;

[0107] Step S2: When a user request arrives, if the ScoreSet of any server is empty, it means that the scores of each server have not been calculated yet, then the next available server address is returned based on the polling method;

[0108] Step S3: When the scheduled task starts, periodically collect the performance and load indicators of each server, including CPU, memory size, bandwidth size, CPU occupancy, memory occupancy, bandwidth occupancy, and average response time of each server;

[0109] Step S4: Calculate the performance score S1 of each server according to equation (1) and equation (2) i and response time score S2 i ;

[0110] Step S5: Calculate the weighted score result S based on formula (3) i , and combine the scores of all currently available servers to get a new ScoreSet list;

[0111] Step S6: When a new user request arrives, ScoreSet is not empty, the total score TotalScore is calculated, and the scores of each server are mapped to the interval [0, TotalScore], so that all servers obtain an interval of corresponding length according to their own scores, and obtain a random number random within the interval. The servers in the range of this random number random are the results of load balancing.

[0112] In the embodiment of the present invention, the user module is combined with the gateway module and the user terminal to realize the addition, update, deletion, attribute information query and user information query of user information.

[0113] In an embodiment of the present invention, the access control module is combined with the gateway module and the authentication module to verify the access rights of a user who has passed the user information verification to a resource, and perform access control. At the same time, an access policy is set to add, delete, and update the access policy for each resource, and realize the publication, query, deletion, and update of resources.

[0114] In the process of multi-platform interconnection, there is a large amount of important data in the value chain of enterprise supply / marketing / service, such as parts procurement, warehousing, distribution and other information. In data sharing and service collaboration, there are problems such as repeated user authentication and cumbersome access management. The current role-based access control mechanism is difficult to accurately define the authority structure of users in the value chain. Once there is a loophole in the authority management, it will cause illegal access to the value chain data.

[0115] In order to solve these problems, in the embodiments of the present invention, unified identity management and fine-grained access control mechanism based on attribute-based encryption are adopted to provide trusted identity management and authorization for data integration and service integration between multiple value chain platforms. At the same time, a stateless permission authentication mechanism based on tokens is adopted to reduce security risks when allocating permissions and improve the efficiency of permission authentication for data integration and service integration.

[0116] For identity authentication: the authentication module combines the gateway module and the user terminal to implement the user authentication function based on OAuth2.0, verifies the user information, and encapsulates, generates and issues tokens based on the user registration information. The specific steps of identity authentication include:

[0117] Step T1: The user initiates an authentication request, which carries the user name and password. The gateway module routes the authentication request to the authentication center;

[0118] Step T2: The authentication center uses the user microservice provided by Eureka Server to query user information and verify the user information;

[0119] Step T3: If the verification is successful, a JWT token is generated as the carrier of the token based on the user's attribute information, and the token identifier is returned to the user, and the JWT token is stored in redis.

[0120] For access control, it is generally necessary to combine it with authentication and authorization to achieve access control. The specific steps for access control include:

[0121] Step V1: When a user accesses a resource, he sends a resource information access request to the gateway module. The resource access request carries a token. The resource refers to: data integration content or service integration content;

[0122] Step V2: The authentication module uses the access control service to verify the token, which includes: verification of the legitimacy of the token and verification of the expiration time;

[0123] Step V3: After verification, the authentication module parses the carrier of the token, obtains the user's attribute information, and then verifies the integrity of the user's attribute information;

[0124] Step V4: the access control module queries the access policy corresponding to the resource information according to the resource information of the resource access request;

[0125] Step V5: The access control module calls the attribute-based access control method to verify whether the user's attribute information complies with the access policy of the corresponding resource information;

[0126] Step V6: The access control module returns the inspection result to the gateway module;

[0127] Step V7: The gateway module releases or rejects the resource access request based on the verification result.

[0128] In the embodiment of the present invention, CP-ABE is used to control access to external interfaces of service integration and data integration, and the access user is required to have an attribute structure that meets the policy in order to successfully decrypt the ciphertext.

[0129] Data sharing is the process of releasing idle capacity information to potential customers by automobile manufacturers or manufacturers that provide services. The enterprises participating in the sharing on multiple platforms include all links of the entire automobile industry ecosystem. On the one hand, enterprises generally only interact with enterprises that have upstream and downstream relationships with them in business, and different enterprises have different target service groups. On the other hand, due to certain factors of the enterprise itself, they are only willing to share data with some users, so access control is required for the sharing of capacity data. In data sharing, enterprises are the basic units participating in data sharing, so the user's attribute information includes: at least one platform ID, at least one enterprise ID, and at least one enterprise type. The platform ID refers to: the ID of any cloud platform among the multiple cloud platforms provided by the cloud connector for user operation. The platform ID is the coarsest division granularity. The enterprise ID refers to: the ID of all enterprises that provide data integration content and service integration content to the cloud connector system. The enterprise ID attribute is the finest granularity.

[0130] The optional range of the attribute definition of capacity data sharing in the embodiment of the present invention is shown in Table 1 below:

[0131] Table 1 Data sharing attribute definition table

[0132]

[0133] The above Table 1 is only given as an example to better explain the present invention, and does not mean that the data sharing attribute definition can only be in such a form, or only consist of such contents.

[0134] In the CP-ABE encryption scheme, the user's decryption private key is associated with a set of attributes, and the access policy is associated with the data. The access policy is a set of tree-structured rules constructed for data resources based on attribute values. The access policy can be composed of any combination of attributes such as platform ID, enterprise ID, enterprise type, etc. mentioned in Table 1. The access policy can include all attributes in the user's attribute information, or it can also include some attributes in the user's attribute information.

[0135] For example, Figure 3 Take the access control policy diagram shown as an example: define policy P as that enterprises with enterprise type T01 in platform P01 can access it. Then user A's attribute information (platform P01, C01, T01) complies with this policy and can access resources. If the platform ID attribute in user B's attribute information (platform P02, C01, T01) does not comply, access will be denied.

[0136] It can be seen that the access policy is a set of tree structures, which are represented by strings when stored. The values ​​of non-leaf nodes are represented by strings k of n, where n represents the number of child nodes and k represents the minimum number of child nodes that need to be satisfied.

[0137] When the node value is 1 of n, it indicates an OR gate, and only one of the attributes in the child nodes must be satisfied. When the node value is n of n, it indicates an AND gate, and true is returned only when all child nodes meet the conditions. The leaf node represents the corresponding attribute and value, and the * sign is used to indicate that all values ​​that match the current attribute are matched.

[0138] Take platform ID as an example: * represents the set of all platform IDs {P01, P02...}, P01 represents the specific ID of a cloud platform, and P02 represents the specific ID of another cloud platform;

[0139] Taking the enterprise ID as an example: * represents the set of all enterprises {C01, C02...} under the specified platform ID, C01 represents the specific ID of the enterprise that provides data integration content and service integration content for the cloud platform P01, and C02 represents the specific ID of another enterprise that provides data integration content and service integration content for the cloud platform P01;

[0140] Take enterprise type as an example: * represents the set of all enterprise types {T01, T02..} under the specified platform ID, T01 represents the enterprise type of an enterprise that provides data integration content and service integration content for cloud platform P02, and T02 represents the enterprise type of another enterprise that provides data integration content and service integration content for cloud platform P02;

[0141] Only when every node in the tree structure meets the conditions, the access control result for the resource can return true, otherwise it will return false.

[0142] In the embodiment of the present invention, the process of performing access control includes the following stages:

[0143] Initialization encryption algorithm phase Setup(k)→(PK,MK): Generate the system public key PK and system master key MK by inputting the security parameter k. PK is made public in the cloud connector system for users to perform attribute encryption, while MK is kept secret by the cloud connector system.

[0144] Key generation phase KetGen(MK,S attr )→SK attr : Executed when the user registers, the cloud connector system generates an attribute private key for the user based on the system master key MK and the user's attribute information;

[0145] Resource publishing stage Encrypt(PK,M,T)→CT: Use attribute encryption algorithm to set access policies for the external interfaces corresponding to data integration and service integration, where M is the plaintext information of the external interface. By inputting M, system public key PK, and access control policy T, attribute encryption is performed on M according to the access control policy to generate ciphertext CT.

[0146] Resource acquisition stage Decrypt(SK attr ,CT)→M: used to determine whether the user's permissions comply with the access policy of resource information, and decrypt the user's attributes with the private key SK attr The private key takes the ciphertext CT as input and uses the attribute information contained in the private key to try to decrypt the access policy structure T contained in the ciphertext CT. If the decryption is successful, the result is returned to the gateway module to release the resource access request. Otherwise, the decryption fails and the gateway module rejects the operation.

[0147] In an embodiment of the present invention, the asynchronous processing module combines with the gateway module, the user terminal, multiple data integration servers, and multiple service integration servers to register the corresponding message queue for tasks with asynchronous requirements in the data integration content or the service integration content, and sets the task listener to listen to the message queue.

[0148] The asynchronous processing module provides asynchronous processing functions. For tasks with asynchronous requirements in data integration and service integration, the functions can be separated, the corresponding message queues can be registered, and the task listeners can be set to listen to the message queues. Then, when processing specific tasks, the internal interface of asynchronous processing can be directly called to specify the switch, routing key, and message content for delivery, and then continue to process other tasks without blocking and waiting for the task to complete. After receiving the message, the asynchronous processing interface will deliver the message as the producer of the message, and then the message middleware will forward the message to the specified queue. When the consumer as the listener receives the message, the asynchronous processing of the task can be completed.

[0149] In the embodiment of the present invention, in the process of the asynchronous processing module processing the asynchronous demand task, three roles are defined: the production end, the message queue and the consumer end, so that the message has reliability in the delivery process;

[0150] For the production side: Enable the message confirmation mechanism on the production side, generate a unique identifier for each message, store the message identifier, message content, and message queue in Redis before delivering the message, and then deliver the actual message;

[0151] If the message is delivered to the specified message queue, the message queue returns a confirmation to the producer. The confirmation contains the unique identifier of the message. The message temporarily stored in Redis is deleted based on the unique identifier.

[0152] If the message delivery fails, the producer receives a confirmation of the delivery error, which contains the specified message identifier. Through the message identifier, the message stored in Redis is retrieved again and redelivered to ensure that the message sent by the producer is not lost;

[0153] For message queues: When creating a switch, persist the switch and the message queue metadata. When delivering messages, persist the messages to the local disk to avoid the loss of message queue metadata and messages that have not been consumed in time when the message middleware crashes.

[0154] For the consumer side: Confirm each message by turning on manual confirmation on the consumer side. After the consumer side successfully processes the message, it returns ACK. After receiving the confirmation, the message queue deletes the corresponding message.

[0155] If the consumer fails to process, NACK is returned, so that the message is returned to the message queue and consumed again, ensuring that the message will not be lost if an exception occurs during business processing.

[0156] The message processing process may specifically include:

[0157] Step X1: Predefine the corresponding switches, message queue names, and routing methods, and set a listener to monitor the message queue. When there is an asynchronous demand task that needs to access the message queue, integrate the code of the asynchronous demand task into the listener;

[0158] Step X2: Call the internal interface of the corresponding asynchronous processing module through feignclient, specify the delivered switch, routing key, and message content, and continue to process other tasks;

[0159] Step X3: After receiving the message, the internal interface of the asynchronous processing module generates a unique identifier for each message, then encapsulates the message content, the switch to be delivered, and the routing key into a map, stores it in Redis in the form of key-hash, and then delivers the message to the corresponding switch;

[0160] Step X4: After receiving the message, the message middleware first persists the message, and then the switch delivers the message to the specified message queue according to the routing key;

[0161] Step X5: The listener continuously detects whether there are messages arriving in the corresponding queue. When there are new messages, it obtains them from the message queue, executes the specific asynchronous required tasks, and manually returns a confirmation message or a failure message to the message queue after the execution. The listener can be designated as the consumer end;

[0162] Step X6: During the entire message processing process, if the message delivery fails, the message stored in Redis is retrieved again and redelivered;

[0163] Step X7: If the message middleware crashes, the messages persisted to the local disk can be automatically restored after the message middleware is restarted;

[0164] Step X8: If the task execution on the consumer side is abnormal, the specified message is returned to the queue and consumed again;

[0165] Step X9: If the consumer successfully processes the message, the producer deletes the message temporarily stored in Redis according to the message identifier carried in the confirmation, and the message queue clears the message content persisted in the local hard disk.

[0166] The production end described in the above content can be a terminal used by people such as companies related to the automobile industry, and the consumption end can be a terminal used by consumers.

[0167] In order to explain the cloud connector system of the present invention more clearly, various modules of the cloud connector are described below by taking a better structural design and interface design as an example.

[0168] The gateway module mainly integrates external interfaces including data integration and service integration, as well as unified identity authentication and authorization, user management, monitoring services and other external interfaces in the cloud connector.

[0169]

[0170]

[0171]

[0172]

[0173] The internal interfaces in the gateway module include: the interface for asynchronous message processing in the asynchronous processing module, the access control interface, the token issuance interface, etc.

[0174]

[0175] The gateway module registers user services, authentication services, identity authentication services, as well as interfaces for data integration and service integration, and exposes them to the outside in a unified manner, responsible for routing and forwarding these interfaces. At the same time, the token bucket algorithm is used in the gateway module to limit the flow of requests to avoid request overload. In addition, combined with the EurekaServer registration center, multiple data integration and service integration microservices are registered, and a custom load balancing algorithm based on ribbon is implemented in the gateway module to load balance the requests sent by users. The overall functional module structure diagram of the cloud connector is shown below: Figure 4 As shown, Figure 4 For the sake of simplicity in the diagram, partial functions of each module are shown by way of example, and the full functions of each module can be found in the above explanations.

[0176] Among them, the message asynchronous processing interface:

[0177] Function: Specify the switch name, routing key, and message content to be delivered, and deliver the message to the specified message queue to achieve asynchronous, peak-cutting, and decoupling of request processing.

[0178] Access method: GET / synhandler

[0179] Request parameters:

[0180] Parameter name type Parameter Description exchange String Switch Name message Map Message content routingkey String Routing key

[0181] Return parameter:

[0182] none.

[0183] The user module is responsible for adding, updating, deleting, and querying user information. On the one hand, it cooperates with the authentication function, provides the authentication module with a user information query interface, and at the same time provides the page with a user management interface.

[0184]

[0185] (1) User information query

[0186] Function: Query information based on user name

[0187] Access method: GET / user / {username}

[0188] Request parameters:

[0189] Parameter name type Parameter Description username String username

[0190] Return parameter:

[0191] Returns the specified user information, User class, containing detailed information of the user, for example:

[0192]

[0193]

[0194] Among them, flag indicates success or failure, code is the status code, message is the string information contained, and data is the specific data information.

[0195] (2) User Addition

[0196] Function: Add user

[0197] Access method: POST / user

[0198] Request parameters:

[0199] Parameter name type Parameter Description user User User Details Class

[0200] Return parameter:

[0201] Returns true if the validation passes, otherwise returns false.

[0202] (3) User deletion

[0203] Function: Delete user information based on username

[0204] Access method: DELETE / user / {username}

[0205] Request parameters:

[0206] Parameter name type Parameter Description username String username

[0207] Return parameter:

[0208] Returns true if the deletion is successful, otherwise returns false.

[0209] (4) User Update

[0210] Function: Update user details

[0211] Access method: PUT / user

[0212] Request parameters:

[0213] Parameter name type Parameter Description user User User Details Class

[0214] Return parameter:

[0215] Returns true if the update is successful, otherwise returns false.

[0216] The access control module provides an access control interface for verifying the user's access rights to a resource. It is mainly used in the gateway module. When a request passes through the gateway, the interface can be called for access control. At the same time, the access policy of each resource can be added, deleted, and updated.

[0217]

[0218] (1) Resource Release

[0219] Function: Add access policy to specified resources

[0220] Access method: POST / resource

[0221] Request parameters:

[0222]

[0223]

[0224] Parameter name type Parameter Description resource Resource Resource details

[0225] Return parameter:

[0226] Returns true if the addition is successful, otherwise returns false.

[0227] (2) Resource Query

[0228] Function: Add access policy to the specified resource Access method: GET / resource / {id}

[0229] Request parameters:

[0230] Parameter name type Parameter Description id Integer Resource ID

[0231] Return parameter:

[0232] Returns detailed information about a resource.

[0233] (3) Resource deletion

[0234] Function: Add access policy to the specified resource Access method: DELETE / resource / {id}

[0235] Request parameters:

[0236] Parameter name type Parameter Description id Integer Resource ID

[0237] Return parameter:

[0238] Returns true if the deletion is successful, otherwise returns false.

[0239] (4) Resource Update

[0240] Function: Add access policy to specified resources

[0241] Access method: PUT / resource

[0242] Request parameters:

[0243] Parameter name type Parameter Description resource Resource Resource details

[0244] Return parameter:

[0245] Returns true if the update is successful, otherwise returns false.

[0246] (5) Access Control

[0247] Function: According to the attribute information and access resource ID carried in the user token, query the corresponding access policy, and determine whether the user has the authority to access the resource according to the policy

[0248] Access method: GET / resource / access

[0249] Request parameters:

[0250] Parameter name type Parameter Description resourceId String Resource ID jwt String Token

[0251] Return parameter:

[0252] Returns true if the validation passes, otherwise returns false.

[0253] (6) Access policy deletion

[0254] Function: Delete the access policy of the specified resource

[0255] Access method: DELETE / resource / policy

[0256] Request parameters:

[0257] Parameter name type Parameter Description resourceid Integer Resource ID

[0258] Return parameter:

[0259] Returns true if the deletion is successful, otherwise returns false.

[0260] (7) Access policy update

[0261] Function: Update the access policy of the specified resource

[0262] Access method: PUT / resource / policy

[0263] Request parameters:

[0264]

[0265] Return parameter:

[0266] Returns true if the update is successful, otherwise returns false.

[0267] (8) Add access policy

[0268] Function: Add access policy to specified resources

[0269] Access method: POST / resource / policy

[0270] Request parameters:

[0271]

[0272] Return parameter:

[0273] Returns true if the addition is successful, otherwise returns false.

[0274] (9) Access policy query

[0275] Function: query the access policy of the specified resource and parse it, load the user attribute information and convert it into the format displayed in the front-end drop-down box, and return the access policy selection in the user attribute.

[0276] Access method: GET / resource / policy

[0277] Request parameters:

[0278] Parameter name type Parameter Description id Integer Resource ID

[0279] The authentication module implements user authentication based on OAuth2.0, verifies user information, and can encapsulate and generate tokens based on user information.

[0280]

[0281] (1) Identity Authentication

[0282] Function: Verify user identity based on username, password and other information, and return a token identifier

[0283] Access method: GET / oauth / login

[0284] Request parameters:

[0285] Parameter name type Parameter Description username String The task type id password String Address Information

[0286] Return Parameter:

[0287] Returns the token ID.

[0288] (2) Token issuance

[0289] Function: Generate a token, encapsulate user attribute information, and return the token identifier and token body

[0290] Access method: GET / oauth / token

[0291] Request parameters:

[0292]

[0293]

[0294] Return parameter:

[0295] Returns the jti token id and jwt token body.

[0296] In summary, the multi-platform interconnected cloud connector system provided by the present invention combines the cloud platforms of various enterprises involved in the automotive industry by using cloud connectors. As a cross-platform message bus, it provides functions such as message transmission mechanism, cross-platform data format conversion, and function adaptation interface. For multi-source heterogeneous automotive industry big data, multi-platform distributed data integration and service integration based on cloud connectors, including key technologies such as data model association network, business synchronization and coordination, realizes the interconnection and integration of various types of cloud platforms, supports multi-value chain business process integration and system integration, realizes data / service resource development, unified resource management, data sharing and service collaboration between multiple platforms, breaks the data isolation state, conveniently realizes data sharing, service sharing, resource coordination, realizes the requirements of non-tamperability and traceability of content, and better serves a wide range of automotive manufacturing core enterprises and related enterprises.

[0297] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article 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, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0298] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation modes, which are merely illustrative rather than restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are within the protection of the present invention.

Claims

1. A multi-platform interconnected cloud connector system, It is characterized in that The cloud connector system includes: multiple cloud platforms and cloud connectors, wherein the multiple cloud platforms include: an automobile manufacturing enterprise information cloud platform, a third-party multi-value chain collaborative cloud platform, and an automobile group enterprise multi-base value chain collaborative cloud platform; The cloud connector includes: a gateway module, a user module, an access control module, an authentication module and an asynchronous processing module; The gateway module integrates multiple external interfaces and multiple internal interfaces. The gateway module uses multiple external interfaces to connect with multiple data integration servers and multiple service integration servers. The gateway module combines with Eureka Server to implement user registration microservices, registration microservices of multiple data integration servers, and registration microservices of multiple service integration servers; The gateway module is connected to the user terminal by using the external interface to realize user identity authentication, authorization, management and monitoring services; The gateway module utilizes the plurality of internal interfaces to connect with the user module, the access control module, the authentication module and the asynchronous processing module to implement message asynchronous processing, access control and token generation; The gateway module uses ribbon to implement a load balancing algorithm to load balance user requests; The user module combines with the gateway module and the user terminal to realize the addition, update, deletion, attribute information query and user information query of user information; The access control module combines with the gateway module and the authentication module to verify the access rights of users who have passed the user information verification to a resource, and performs access control. At the same time, an access policy is set to add, delete, and update the access policy for each resource, and realize the release, query, deletion, and update of resources; The authentication module combines with the gateway module and the user terminal to implement the user authentication function based on OAuth2.0, verifies the user information, and encapsulates, generates and issues tokens according to the user registration information; The asynchronous processing module combines with the gateway module, the user terminal, the plurality of data integration servers, and the plurality of service integration servers to register corresponding message queues for tasks with asynchronous requirements in data integration content or service integration content, and sets a task listener to monitor the message queues; Among them, the data integration server and the service integration server refer to: after cross-platform classification of the respective contents of the automobile manufacturing enterprise informatization cloud platform, the third-party multi-value chain collaborative cloud platform, and the automobile group enterprise multi-base value chain collaborative cloud platform according to data type and service type, data integration content and service integration content are obtained, the data integration content is stored in multiple data integration servers, and the service integration content is stored in multiple service integration servers, and multiple data integration servers and multiple service integration servers are deployed in a distributed manner.

2. The cloud connector system according to claim 1, It is characterized in that A plurality of the data integration servers and a plurality of the service integration servers constitute a server cluster; In the early stage of operation, a polling-based method is used to evenly send the requests sent by users to the corresponding servers in the server cluster for processing; After a certain running time, the gateway module uses ribbon to periodically obtain the load and resource status of each server in the server cluster, and calculates the score of each server, and performs the load balancing based on the score, specifically including: Get the performance of each server and calculate the average performance to get the benchmark CPU performance value P a 、Memory size M a 、Network bandwidth value B a ; Define the performance vector of each server [p i ,m i ,b i ], where p i =P i / P a , m i =M i / M a , b i =B i / B a , i=1,2,3…,N,P i 、M i , B i They represent the CPU frequency, memory size, and network bandwidth of the i-th server respectively; Get the CPU load rate L(C i ), memory usage L(M i ), network occupancy rate L(B i ), N is the number of servers in the server cluster; Calculate the overall performance score S1 of each server based on the performance vector of each server i : S1 i =k 1 *p i *(1-L(C i ))+k 2 *m i *(1-L(M i ))+k 3 *b i *(1- L(B i )),i=1,2,3…,N(1) Among them, k 1 +k 2 +k 3 =1, k 1 ,k 2 ,k 3 Indicates the weight of each indicator; Get the average response time TimeAvg of each server i The relationship between the total response time TimeTotal of all servers is: S2 i =TimeTotal-TimeAvg i ,i=1,2,3…,N(2) Among them, S2 i Inversely proportional to the response time of each server, the faster the response, the higher the score; According to the scores calculated by formula (1) and formula (2), the score S of the i-th server is calculated i : S i =a*S1 i +b*S2 i ,i=1,2,3…,N(3) According to formula (3), a score set containing all current servers is obtained, and all scores in the score set are mapped into a ScoreSet: ScoreSet={a*S1 i +b*S2 i },i=1,2,3…,N(4) Among them, a+b=1, a and b represent the weights of each indicator.

3. The cloud connector system according to claim 2, It is characterized in that The gateway module uses ribbon to implement a load balancing algorithm. The specific steps of load balancing the user's request include: Initialize a scheduled task, specify the start time and periodic execution time of the scheduled task, and the scheduled task is responsible for periodically maintaining the number of nodes and performance data of the server cluster; When a user request arrives, if the ScoreSet of any server is empty, the next available server address is returned based on polling; At the start of the scheduled task, the performance and load indicators of each server are periodically collected, and the performance and load indicators include: CPU, memory size, bandwidth size, CPU occupancy, memory occupancy, bandwidth occupancy, and average response time of each server; According to formula (1) and formula (2), the performance score S1 of each server is calculated respectively. i and response time score S2 i ; The weighted score result S is calculated based on formula (3) i , and combine the scores of all currently available servers to get a new ScoreSet list; When a new user request arrives, the ScoreSet is not empty, the total score TotalScore is calculated, and the scores of each server are mapped to the interval [0, TotalScore], so that all servers obtain an interval of corresponding length according to their own scores, and obtain a random number random within the interval. The servers in the range of the random number random are the results of the load balancing.

4. The cloud connector system according to claim 1, It is characterized in that The authentication module combines with the gateway module and the user terminal to implement the encapsulation, generation and issuance of tokens based on user registration information based on OAuth2.0, including: The user initiates an authentication request, which carries a user name and password, and the gateway module routes the authentication request to the authentication center; The authentication center uses the user microservice provided by the Eureka Server to query the user information and verify the user information; If the verification is successful, a JWT token is generated as the carrier of the token based on the user's attribute information, and the token identifier is returned to the user, and the JWT token is stored in redis.

5. The cloud connector system according to claim 4, It is characterized in that The access control module combines with the gateway module and the authentication module to verify the access rights of a user who has passed the user information verification to a resource. The specific steps of performing access control include: When a user accesses a resource, he sends a resource access request to the gateway module. The resource access request carries a token. The resource refers to: data integration content or service integration content; The authentication module uses the access control service to verify the token, which includes: verification of the legitimacy of the token and verification of the expiration time; After the verification is correct, the authentication module parses the carrier of the token, obtains the attribute information of the user, and then verifies the integrity of the attribute information of the user; The access control module queries the access policy corresponding to the resource information according to the resource information of the resource access request; The access control module calls an attribute-based access control method to verify whether the attribute information of the user complies with the access policy of the corresponding resource information; The access control module returns the inspection result to the gateway module; The gateway module releases or rejects the resource access request based on the verification result.

6. The cloud connector system according to claim 5, It is characterized in that The access policy is implemented based on the CP-ABE encryption scheme, and the user's decryption private key is associated with a set of attribute information of the user, and the access policy is associated with data integration content or service integration content. The attribute information of the user includes: at least one platform ID, at least one enterprise ID, and at least one type of enterprise, wherein the platform ID refers to: the ID of any cloud platform among the multiple cloud platforms provided by the cloud connector to the user for user operation, and the platform ID is the coarsest division granularity; the enterprise ID refers to: the ID of all enterprises that provide data integration content and service integration content for the cloud connector system, and the enterprise ID is the finest granularity; The access strategy is a set of tree structures, which are represented by strings when stored, where the values ​​of non-leaf nodes are represented by strings k of n, where n represents the number of child nodes, and k represents the minimum number of child nodes that need to be satisfied; When the node value is 1 of n, it indicates an OR gate, and only one of the attributes in the child nodes must be satisfied. When the node value is n of n, it indicates an AND gate, and true is returned only when all child nodes meet the conditions. The leaf node represents the corresponding attribute and value, and the * sign is used to indicate that all values ​​that match the current attribute are matched. Take platform ID as an example: * represents the set of all platform IDs {P01, P02...}, P01 represents the specific ID of a cloud platform, and P02 represents the specific ID of another cloud platform; Taking the enterprise ID as an example: * represents the set of all enterprises {C01, C02...} under the specified platform ID, C01 represents the specific ID of the enterprise that provides data integration content and service integration content for the cloud platform P01, and C02 represents the specific ID of another enterprise that provides data integration content and service integration content for the cloud platform P01; Take enterprise type as an example: * represents the set of all enterprise types {T01, T02..} under the specified platform ID, T01 represents the enterprise type of an enterprise that provides data integration content and service integration content for cloud platform P02, and T02 represents the enterprise type of another enterprise that provides data integration content and service integration content for cloud platform P02; Only when every node in the tree structure meets the conditions, the access control result for the resource can return true, otherwise it will return false.

7. The cloud connector system according to claim 6, It is characterized in that The access control process includes: Initialization encryption algorithm stage: by inputting security parameter k, a system public key PK and a system master key MK are generated, wherein PK is made public in the cloud connector system for users to perform attribute encryption, and MK is kept secret by the cloud connector system; Key generation phase: executed when the user registers, the cloud connector system generates an attribute private key for the user based on the system master key MK and the user's attribute information; Resource publishing stage: Access policies are set for the external interfaces corresponding to data integration and service integration through attribute encryption algorithms, where M is the plain text information of the external interface. By inputting the M, the system public key PK, and the access control policy T, the M is attribute encrypted according to the access control policy to generate a ciphertext CT; Resource acquisition phase: used to determine whether the user's permissions comply with the access policy of resource information, and to decrypt the user's attributes using the private key SK attr The ciphertext CT is used as input, and the attribute information contained in the private key is used to try to decrypt the access policy structure T contained in the ciphertext CT. If the decryption is successful, the result is returned to the gateway module to release the resource access request. Otherwise, the decryption fails and the gateway module rejects the operation.

8. The cloud connector system according to claim 7, It is characterized in that In the process of processing asynchronous demand tasks, the asynchronous processing module defines three roles: production end, message queue and consumer end, so that the message has reliability in the delivery process; For the production end: start the message confirmation mechanism at the production end, generate a unique identifier for each message, store the message identifier, message content, and message queue to be delivered in Redis before delivering the message, and then deliver the actual message; If the message is delivered to the specified message queue, the message queue returns a confirmation to the producer, which contains the unique identifier of the message. The message temporarily stored in Redis is deleted through the unique identifier. If the message delivery fails, the producer receives a confirmation of the delivery error, which contains a specified message identifier. The message stored in Redis is retrieved again through the message identifier and redelivered to ensure that the message sent by the producer is not lost. For the message queue: when creating a switch, the switch is persisted, the message queue metadata is persisted, and when delivering messages, the messages are also persisted to the local disk to avoid the loss of message queue metadata and messages that have not been consumed in time when the message middleware crashes; For the consumer side: each message is confirmed by turning on manual confirmation at the consumer side. After the consumer side successfully processes the message, an ACK is returned. After receiving the confirmation, the message queue deletes the corresponding message. If the processing at the consumer end fails, NACK is returned, so that the message returns to the message queue and is consumed again, ensuring that the message will not be lost when an exception occurs during business processing.

9. The cloud connector system according to claim 8, It is characterized in that The message processing process specifically includes: Predefine the corresponding switches, message queue names, and routing methods, and set a listener to listen to the message queue. When there is an asynchronous demand task that needs to access the message queue, integrate the code of the asynchronous demand task into the listener; Call the internal interface of the asynchronous processing module through feignclient, specify the switch, routing key, and message content to be delivered, and then continue to process other tasks; After receiving the message, the internal interface of the asynchronous processing module generates a unique identifier for each message, then encapsulates the message content, the switch to be delivered, and the routing key into a map, stores it in Redis in the form of key-hash, and then delivers the message to the corresponding switch; After receiving the message, the message middleware first persists the message, and then the switch delivers the message to the specified message queue according to the routing key; The listener continuously detects whether there are messages arriving in the corresponding queue, obtains new messages from the message queue when there are new messages, executes specific asynchronous demand tasks, and manually returns a confirmation message or a failure message to the message queue after the execution is completed. The listener can be designated as a consumer end; In the entire message processing process, if the message delivery fails, the message stored in Redis will be retrieved again and redelivered; If the message middleware crashes, the messages persisted to the local disk can be automatically restored after the message middleware is restarted; If the task execution on the consumer side is abnormal, the specified message is returned to the queue and consumed again; If the consumer successfully processes the message, the producer deletes the message temporarily stored in Redis according to the message identifier carried in the confirmation, and the message queue clears the message content persisted in the local hard disk.

10. The cloud connector system according to claim 6, It is characterized in that The access policy is composed of a random combination of the platform ID, the enterprise ID or the enterprise type; The access policy contains all attribute information in the attribute information of the user; or The access policy includes part of the attribute information of the user.

Citation Information

Patent Citations

  • Cloud platform expansion method and system based on micro-service architecture

    CN108650262A

  • method for simultaneously supporting Ribbon and Eureka to realize load balancing

    CN109819055A