A data access control method, device and computer equipment for resource security investment

By generating a task flow with a multi-dimensional array structure and authenticating access rights, it solves the problems of unreasonable allocation of database access rights and difficulty in controlling complex workflows of task flows, improves the security and processing efficiency of data access, and prevents endless task cycles.

CN113641868BActive Publication Date: 2024-10-15SHANGHAI QIYUE INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110956532.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-19
Publication Date
2024-10-15
Estimated Expiration
2041-08-19

AI Technical Summary

Technical Problem

In the existing technology, the allocation of database access rights is unreasonable, resulting in low data access security, low data processing efficiency, and difficult workflow control of complex task flows, which easily leads to problems such as endless task loops.

Method used

By receiving input operations and/or drag and drop operations from the client, extract node data, generate a task flow with a multi-dimensional array structure, and store it in the database. When receiving the user's data access request, perform access permission authentication and determine the callable Task flows allow users to access database data.

Benefits of technology

It improves the security and processing efficiency of data access, solves the problem of complex workflow control of task flow, and prevents the generation of closed-loop data and task infinite loops.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113641868B_ABST
    Figure CN113641868B_ABST
Patent Text Reader

Abstract

The present invention provides a data access control method, device and computer equipment, the method comprising: receiving input operation and / or drag operation of a client, extracting node data; generating multiple task flows of a multidimensional array structure based on the node data and the edge data between the node data, and storing the multiple task flows in a database; performing access right authentication upon receiving a data access request from a user; determining a callable task flow corresponding to the data access request for a data access request that passes the access right authentication; and allowing the user to access the corresponding data in the database according to the determined task flow. The present invention can control data access more safely and more effectively, and can effectively solve the problem of difficult process control of complex workflows in task flows, can prevent the generation of closed-loop data, and can effectively eliminate similar problems such as task dead loops.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer information processing, and in particular to a data access control method, device and computer equipment for resource security investment. Background Art

[0002] The existing MySQL client can only log in to a database through the command line, and the corresponding database password needs to be included in the parameter. However, as the department's business grows and the number of databases increases, each time you log in to the database, you must first find the corresponding database login password and host name, and then use the MySQL command to log in on the client. It is quite troublesome to access specific data. In addition, with the addition of new databases, it is also very cumbersome and complicated for each department to synchronize database information.

[0003] The existing data integration and extraction methods are diverse, and the implementation technologies are also different. There is a lack of unified integrated management and control. Data synchronization implemented by different technologies is not easy to coordinate. The data link is long and the associated dependencies are not unified. The synchronization program alarm and the identification of data problems are relatively complicated. In database data management, due to problems such as unreasonable authority allocation in authority management, developers or business personnel can easily delete data or databases by mistake due to misoperation, thereby increasing the risk of a certain amount of data loss. In addition, there are similar problems such as the difficulty of process control of complex workflows in the existing task flow, and task dead loops caused by the generation of closed-loop data.

[0004] Therefore, it is necessary to provide a more secure data access control method. Summary of the invention

[0005] In order to solve the problems of unreasonable access rights allocation, low security of user access to data, low data processing efficiency in the data call process, difficult process control of complex workflows in existing task flows, and similar problems such as task dead loops caused by the generation of closed-loop data.

[0006] The present invention provides a data access control method for Internet resource services, comprising: receiving an input operation and / or a drag operation of a client to extract node data; generating multiple task flows of a multidimensional array structure based on the node data and the edge data between the node data, and storing the multiple task flows in a database; performing access authority authentication upon receiving a data access request from a user; determining a callable task flow corresponding to the data access request for the data access request that passes the access authority authentication; and allowing the user to access the corresponding data in the database according to the determined task flow.

[0007] Preferably, the extraction of node data includes: extracting at least the following two types of node data: a time variable corresponding to an Internet resource service, a task node or task monitoring and whether it is a synchronization task, role characteristics with different permissions, and whether it is a newly added data source; and performing main node identification and branch node identification on each node data.

[0008] Preferably, the multiple task flows for generating a multidimensional array structure based on the node data and the edge data between the node data include: determining the edge data between every two adjacent nodes based on at least two types of node data extracted, and edge marking all the obtained edge data to generate a directed acyclic graph of a multidimensional array structure, wherein the edge data is used to characterize the relationship or dependency between the main node and the branch node.

[0009] Preferably, determining a callable task flow corresponding to the data access request authenticated by the access permission comprises: selecting a task flow with the shortest calling time from multiple callable task flows, and executing a data calling process.

[0010] Preferably, before storing the multiple task flows in the database, the method further includes synchronizing the newly generated multiple task flows in real time to all task flow lists to update the calling sequence and execution time of each task flow.

[0011] Preferably, when receiving a data access request from a user, performing access permission authentication includes: identifying user identification information in the data access request, and automatically determining whether the user is a user in a user list with permission; when it is determined that the user is a user in the user list with permission, determining that the access permission authentication has been passed; when it is determined that the user is not a user in the user list with permission, determining that the access permission authentication has not been passed.

[0012] Preferably, it also includes: configuring the calling priority of the task flow according to the Internet resource service type to determine the calling order, and the Internet resource service type includes resource guarantee investment service, resource allocation service, resource raising service and resource mutual assistance service.

[0013] In addition, the second aspect of the present invention provides a data access control device for Internet resource services, including: a receiving and processing module, used to receive input operations and / or drag operations from a client, and extract node data; a generating and processing module, used to generate multiple task flows of a multidimensional array structure based on the node data and the edge data between the node data, and store the multiple task flows in a database; an authentication module, used to perform access permission authentication upon receiving a user's data access request; a determining module, used to determine a callable task flow corresponding to a data access request that passes the access permission authentication; and an access processing module, used to allow the user to access the corresponding data in the database according to the determined task flow.

[0014] Preferably, the data access control device also includes an extraction module, which is used to extract at least the following two types of node data: time variables corresponding to Internet resource services, task nodes or task monitoring and whether it is a synchronization task, role characteristics with different permissions, and whether it is a new data source; and perform main node identification and branch node identification on each node data.

[0015] Preferably, the data access control device also includes a generation module, which is used to determine the edge data between every two adjacent nodes based on the extracted at least two types of node data, and to perform edge identification on all the obtained edge data to generate a directed acyclic graph with a multidimensional array structure, wherein the edge data is used to characterize the relationship or dependency between the main node and the branch node.

[0016] In addition, the third aspect of the present invention provides a computer device, including a processor and a memory, wherein the memory is used to store a computer executable program, and when the computer program is executed by the processor, the processor executes the data access control method as described in the first aspect of the present invention.

[0017] In addition, a fourth aspect of the present invention provides a computer program product storing a computer executable program, which, when executed, implements the data access control method as described in the first aspect of the present invention.

[0018] Beneficial Effects

[0019] Compared with the prior art, the present invention extracts node data by receiving input operations and / or drag operations from the client, generates multiple task flows of a multidimensional array structure through the node data and the edge data between the node data, and stores the multiple task flows in a database, which can effectively form each task flow into a data structure in a DAG format, effectively improve the execution process of each task flow during the call process, and improve data processing capabilities; when receiving a user's data access request, access permission authentication is performed to achieve more effective permission management; by determining the callable task flow corresponding to the data access request that passes the access permission authentication, data access can be controlled more safely and more effectively, thereby effectively solving the process control problem of complex workflows in task flows, preventing the generation of closed-loop data, and effectively eliminating similar problems such as task dead loops.

[0020] Furthermore, by generating multiple task flows of a multidimensional array structure and using a data structure in a DAG format for data storage to construct a data access control device, the multifunctional comprehensive performance of the data access control device and the Internet resource service platform can be improved, and data development efficiency and data security can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to make the technical problems solved by the present invention, the technical means adopted and the technical effects achieved more clearly, the specific embodiments of the present invention will be described in detail with reference to the accompanying drawings. However, it should be noted that the drawings described below are only drawings of exemplary embodiments of the present invention. For those skilled in the art, drawings of other embodiments can be obtained based on these drawings without creative work.

[0022] Figure 1 It is a flowchart of an example of a data access control method for Internet resource services according to embodiment 1 of the present invention.

[0023] Figure 2 It is a schematic diagram of an example of a data processing interface in a data access control method for Internet resource services according to Embodiment 1 of the present invention.

[0024] Figure 3 It is a schematic diagram of an example of a DAG graph in a data access control method for Internet resource services according to Embodiment 1 of the present invention.

[0025] Figure 4 It is a flowchart of another example of the data access control method for Internet resource service according to the first embodiment of the present invention.

[0026] Figure 5 It is a schematic diagram of an example of a data access control device for Internet resource services according to Embodiment 2 of the present invention.

[0027] Figure 6 It is a schematic diagram of another example of the data access control device for Internet resource service according to the second embodiment of the present invention.

[0028] Figure 7 It is a schematic diagram of another example of the data access control device for Internet resource services according to the second embodiment of the present invention.

[0029] Figure 8 is a structural block diagram of an exemplary embodiment of a computer device according to the present invention.

[0030] Fig. 9 is a block diagram of an exemplary embodiment of a computer program product according to the present invention. DETAILED DESCRIPTION

[0031] Exemplary embodiments of the present invention will now be described more fully with reference to the accompanying drawings. However, exemplary embodiments can be implemented in a variety of forms, and should not be construed as limiting the present invention to the embodiments set forth herein. On the contrary, providing these exemplary embodiments enables the present invention to be more comprehensive and complete, and is more convenient for fully conveying the inventive concept to those skilled in the art. The same reference numerals in the figures represent the same or similar elements, components or parts, and thus their repeated description will be omitted.

[0032] Under the premise of being consistent with the technical concept of the present invention, the features, structures, characteristics or other details described in a specific embodiment do not exclude that they can be combined in one or more other embodiments in a suitable manner.

[0033] In the description of specific embodiments, the features, structures, characteristics or other details described in the present invention are intended to enable those skilled in the art to fully understand the embodiments. However, it does not exclude that those skilled in the art can practice the technical solutions of the present invention without one or more of the specific features, structures, characteristics or other details.

[0034] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.

[0035] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0036] It should be understood that although the terms "first", "second", "third", etc. may be used herein to describe various devices, elements, components or parts, this should not be limited by these terms. These terms are used to distinguish one from another. For example, a first device may also be called a second device without departing from the essential technical solution of the present invention.

[0037] The term "and / or" or "and / or" includes any one and all combinations of one or more of the associated listed items.

[0038] In order to access a database more quickly and more effectively and improve the security of data management and access, the present invention provides a data access control method for Internet resource services. The method extracts node data by receiving input operations and / or drag operations from a client, generates multiple task flows of a multidimensional array structure through the node data and the edge data between the node data, and stores the multiple task flows in a database, which can effectively improve the execution process of each task flow in the calling process and can also improve data processing capabilities; when receiving a user's data access request, access permission authentication is performed to achieve more effective permission management; by determining the callable task flow corresponding to the data access request that passes the access permission authentication, data access can be controlled more safely and effectively, thereby effectively solving the process control problem of complex workflows in the task flow, preventing the generation of closed-loop data, and effectively eliminating similar problems such as task dead loops.

[0039] Example 1

[0040] Next, we will refer to Figures 1 to 4 An embodiment of a data access control method for Internet resource services of the present invention is described.

[0041] Figure 1 Flow chart of the data access control method for Internet resource services of the present invention. Figure 1 As shown, the data access control method includes the following steps.

[0042] Step S101, receiving an input operation and / or a drag operation from a client, and extracting node data.

[0043] Step S102: generating a plurality of task flows in a multidimensional array structure based on the node data and the edge data between the node data, and storing the plurality of task flows in a database.

[0044] Step S103: upon receiving a data access request from a user, performing access permission authentication.

[0045] Step S104: for the data access request that passes the access authority authentication, determine a callable task flow corresponding to the data access request.

[0046] Step S105: according to the determined task flow, allowing the user to access the corresponding data in the database.

[0047] It should be noted that in the present invention, the Internet resource service includes service resources such as shopping, riding, maps, take-out, shared bicycles, etc. provided by the user device to the Internet resource service platform. For example, the Internet resource service includes resource use service, resource allocation service, resource raising service, resource guarantee service or mutual assistance service, group purchase and ride service, etc. Among them, resources refer to any material, information, time that can be utilized, and information resources include computing resources and various types of data resources. Data resources include various special data in various fields. The following takes the data related to the Internet resource guarantee service as an example to specifically illustrate the method of the present invention.

[0048] First, in step S101, an input operation and / or a drag operation from a client is received, and node data is extracted.

[0049] For the Internet resource service platform, JavaScript language combined with SVG is used for development on the client side, while PHP language is used for development on the server side to implement the DAG (Directed Acyclic Graph) structure.

[0050] Specifically, the Internet resource service platform includes a data query module, a data development module, a data monitoring module, and a data management module. For example, the Internet resource service platform includes one or more service terminals in multiple business lines, and the Internet resource service platform supports MySQL database, Hive database, etc.

[0051] In one embodiment, a user (ie, client) such as a developer performs input operations and / or drag operations on an editable interface of an Internet resource service platform, and the Internet resource service platform receives the input operations and / or drag operations of the developer (ie, client).

[0052] For example, a developer enters "data source type" and / or "data source name" on a data processing interface to perform a query.

[0053] For another example, the data management personnel clicks on the corresponding data processing interface (for example, the editable interface corresponding to the system variable management, workflow list, data source management, instance list and resource management, etc.), jumps to the corresponding interface, and performs input operations, such as entering "data source type", "data source name", "port", "database name", "user name", "running information", etc., to create each data source. For details, see Figure 2 .

[0054] For example, data management personnel drag and drop data related to system variables, operation and maintenance management, authority management, data source management, and task flow management of different business types to form a data structure diagram. For details, see Figure 3 Therefore, by storing data through a data structure diagram, data processing efficiency can be improved.

[0055] For another example, users such as operation and maintenance personnel can move the location of data, delete data, or add new data by dragging and dropping corresponding data.

[0056] Furthermore, node data is extracted from the data structure diagram formed by the input operation and / or drag operation of the client.

[0057] Specifically, at least the following two types of node data are extracted: a time variable corresponding to an Internet resource service, a task node or task monitoring and whether it is a synchronization task, role characteristics with different permissions, and whether it is a newly added data source.

[0058] As a specific implementation, for example, time variables (ie, system variables) corresponding to Internet resource services, task monitoring, role characteristics with different permissions, and whether it is a newly added data source are extracted as node data.

[0059] Specifically, for example, a data structure diagram is formed by gradually branching outward from a central node (for example, a data integration central node) to form a plurality of branches including a main node and a branch node. Figure 3 .

[0060] Furthermore, each node data is marked with a main node and a branch node. For example, the main node identification includes number identifications related to system variables, operation and maintenance management, permission roles (or basic roles), data source management, tasks (or synchronization tasks), etc. The branch node identification includes number identifications related to dates, synchronization operations, super administrators, work groups, developers, scheduling configurations, etc.

[0061] Optionally, during the process of extracting node data, main node identification and branch node identification are performed.

[0062] Therefore, by receiving input operations and / or drag operations from the client, user operations can be visualized, and by extracting node data to form a data structure diagram containing multiple branches (or multidimensional arrays) of main nodes and branch nodes, data structuring can be achieved, and a more efficient data storage format can be achieved to improve data processing efficiency.

[0063] It should be noted that the above description is only given as an example and should not be construed as a limitation to the present invention.

[0064] Next, in step S102, multiple task flows in a multidimensional array structure are generated based on the node data and the edge data between the node data, and the multiple task flows are stored in a database.

[0065] Specifically, according to the at least two types of node data extracted, the edge data between every two adjacent nodes is determined, and all the obtained edge data are edge-labeled to generate a directed acyclic graph (i.e., DAG graph) of a multidimensional array structure. For example, the edge identifier includes system variables, operation and maintenance management, authority roles (or basic roles), data source management, tasks (or synchronization tasks), task instances, synchronization task lists, real-time task lists, super administrators, work rents, developers, data source lists, new data sources, basic properties, pipeline control, node scheduling configuration properties, etc. For details, see Figure 3 .

[0066] More specifically, the edge data is used to characterize the mutual relationship or dependency relationship between the main node and the branch nodes.

[0067] Further, based on the node data, the edge data between the node data with mutual relationship or dependency, and the directed acyclic graph (i.e., DAG graph), multiple task flows of multidimensional array structure are generated, each task flow includes process nodes corresponding to the main node and branch nodes and their related node data, edge data, and task parameters (e.g., whether it is a synchronous task, task execution time, etc.). In other words, the task flow is used to call when the user accesses the corresponding database in the Internet resource service platform, which can effectively control the user's access to the database and its data.

[0068] Specifically, each task flow is implemented through the process canvas, and the process canvas of each task is a DAG diagram constructed by dragging by users (such as operation and maintenance personnel, etc.). The backend will extract the node data of the main node and branch node based on the relevant data dragged by the user, and identify each node data with a unique (or globally unique) identity ID (i.e., node ID), and generate a multi-dimensional array structure of edge data information (process tree for workflow execution) based on the relevant data dragged by the user and the generated node ID. The data information after format conversion (for example, conversion to json object) is stored in the corresponding database for call.

[0069] It should be noted that the task flow mainly uses the DAG graph (also referred to as the DAG network graph in the present invention) to store the process node data of the task flow in a DAG format data structure. For example, JavaScript+php is used to implement the data processing and storage of the directed acyclic graph at the front end and the back end at the same time. According to the DAG graph, the dependency relationship (i.e., edge data) between every two adjacent process nodes is determined in sequence. Since the DAG graph has a topological sorting, and if the vertex V i ~V j (corresponding to the above process node) has a path, then the current node (current vertex) V can be determined in the topological sorting. 当 The path to the task flow where the data is to be called.

[0070] Optionally, all mutual relationships or dependent relationships (ie, edge data) are numbered and identified (identity ID or node ID) for the purpose of distinction, storage, and calling.

[0071] Specifically, each task flow includes multiple related number identifiers, or number identifier strings of multiple levels of nodes. For example, the number identifier string is SZ000000 (number identifier of the data integration center node) - Sa001*8Y1 (number identifier of the data source management node) - Sab13*40 (number identifier of the data source list) - SabL56*889 (number identifier of the specific data of the Internet resource assurance service business), etc. The number identifier string includes three levels of nodes, the first level node is the data integration center node, the second level node is the data source management node, the third level node is the data source list, and the fourth level node is the specific data of the Internet resource assurance service business.

[0072] Furthermore, the generated multiple task flows are stored in a corresponding database of the Internet service platform.

[0073] In another embodiment, Figure 4 As shown, before storing the multiple task flows in the database, the following step S201 is also included: synchronizing the newly generated multiple task flows to all task flow lists in real time to update the calling sequence and execution time of each task flow.

[0074] Optionally, the calling sequence and execution time of each task flow may be updated in real time, or may be updated according to a specific time interval.

[0075] Therefore, by generating multiple task flows of multidimensional array structure through the node data and the edge data between the node data, each task flow can be effectively formed into a data structure in DAG format, which can effectively improve the execution process of each task flow during the call process and improve the data processing capability. In addition, it can effectively solve the process control problem of complex workflows in task flows, prevent the generation of closed-loop data, and effectively eliminate similar problems such as task dead loops.

[0076] It should be noted that the above description is only given as an example and should not be construed as a limitation to the present invention.

[0077] Next, the application process of the generated task flow will be explained with examples.

[0078] In step S103, upon receiving a data access request from a user, access authority authentication is performed.

[0079] For example, in an application example in which a user uses a MySQL client to access a database of the Internet resource service platform, the user inputs a data access request on the client, and the Internet resource service platform receives the data access request of the user.

[0080] Specifically, the data access request includes user request information and user identity information, wherein the user request information includes request data information for accessing one or more databases, the names of the one or more databases, callable ports, etc.; user identity information includes user account, user identification number or user mobile phone number, and user device identification information (such as user device identification code, user device model or name), etc.

[0081] As a specific implementation, the Internet resource service platform performs access permission authentication when receiving a data access request from a user.

[0082] Specifically, the user identification information or the user device identification information in the data access request is identified.

[0083] Furthermore, it is automatically determined whether the user is a user in a user list with authority based on the identified user identification information and / or user device identification information.

[0084] Optionally, according to influencing factors such as Internet resource service type, data source type and permission level, a user list with different permissions is configured, and the user list is synchronously updated in real time.

[0085] Specifically, based on the identified user identification information and / or user device identification information, it is automatically determined whether the user is a user in the user list with authority.

[0086] Further, when it is determined that the user is a user in the user list with permission, it is determined that the access permission authentication is passed.

[0087] When it is determined that the user is not a user in the user list with authority, it is determined that the access authority authentication has not been passed.

[0088] It should be noted that the above description is only given as an example and should not be construed as a limitation to the present invention.

[0089] Next, in step S104, for the data access request that passes the access authority authentication, a callable task flow corresponding to the data access request is determined.

[0090] Specifically, for a data access request that passes the access permission authentication, multiple task flows that can be called are determined according to the access data type, user identification information and / or user device identification information, and access time in the identified data access request.

[0091] More specifically, the access data type includes relevant data corresponding to the Internet resource service type.

[0092] Furthermore, a task flow with the shortest calling time is selected from the multiple callable task flows to execute the data calling process.

[0093] Specifically, selecting the task flow with the shortest calling time includes determining the task flow with the shortest calling time.

[0094] More specifically, the DAG graph obtained in step S103 is topologically sorted to determine a linear order between nodes; for each callable task flow, the vertices (i.e., nodes) V are taken out according to the order of the topological sorting. i , for node V i The adjacent vertices (i.e., nodes) are relaxed once (i.e., the determined callable task flow is relaxed once); dis[V n ]=min{dist[u]+w[u][V n ] / u can reach V n , where n is a positive integer}, to determine the task flow with the shortest calling time.

[0095] Optionally, configure the node V used as the starting point i or node V as the end point j The update time of the task flow path is determined, and the corresponding task flow path is updated according to the update time.

[0096] In one embodiment, according to the access data type and access time in the identified data access request, and according to the calculated dis[Vn ] to determine the task flow with the shortest call time.

[0097] In another embodiment, the task flow with the shortest calling time is determined according to the calling order and execution time of each task flow in the current task flow list and the access data type and access time in the identified data access request.

[0098] In yet another embodiment, when the number of task flows with the shortest calling time is multiple, one task flow is selected from the multiple task flows according to the calling priority of each task flow.

[0099] For example, according to the type of Internet resource service, the calling priority of the task flow is configured to determine the calling order, and the Internet resource service type includes resource guarantee investment service, resource allocation service, resource raising service and resource mutual assistance service. For example, the calling priority related to the resource guarantee investment service is configured as the first priority, the calling priority related to the resource mutual assistance service is configured as the second priority, the calling priority related to the resource raising service is configured as the third priority, and the calling priority related to the resource allocation service is configured as the fourth priority.

[0100] It should be noted that the above description is only given as an example and should not be construed as a limitation to the present invention.

[0101] In step S105, according to the determined task flow, the user is allowed to access the corresponding data in the database.

[0102] Specifically, according to the task flow with the shortest calling time, a callable port of the corresponding database is provided to the user to allow the user to access the corresponding data in the corresponding database, wherein the callable port is a calling port corresponding to the corresponding database.

[0103] For example, user 1 requests to access data a in database A. According to the determined task flow R1, a callable port D8 is provided to the user's client, and the task flow R1 is executed to perform data calling or data access process.

[0104] In another embodiment, the number of users accessing each database, access time, access rights allocation, etc. are configured and detailed information is recorded to form a structured data table, thereby achieving data structuring and facilitating fast query of data or databases.

[0105] In another embodiment, when a new data source is detected, the new data source is numbered and named, and a new data source is created, and the new data source is added to, for example, a hash list, and stored in the corresponding database in the format of the hash list. In this way, data structuring is further optimized, which is conducive to rapid query of data or databases, improves query flexibility and security, avoids data loss or data deletion due to misoperation, improves the security of data management and data access, and improves the effectiveness of data access control.

[0106] Furthermore, when new data is detected, the new data is synchronized to the corresponding database in real time.

[0107] It should be noted that the above description is only given as an example and should not be construed as a limitation to the present invention.

[0108] In yet another embodiment, based on the analysis result of the data access request of the current user, multiple task flows that can be called are first determined, and then the access authority authentication of the current user is performed.

[0109] Thus, according to the determined task flow, the user is allowed to access the corresponding data in the database, which can control data access more safely and effectively and achieve more effective authority management.

[0110] It should be noted that the above description is only given as an example and should not be construed as a limitation to the present invention.

[0111] Those skilled in the art will appreciate that all or part of the steps to implement the above embodiments are implemented as a program (computer program) executed by a computer data processing device. When the computer program is executed, the above method provided by the present invention can be implemented. Moreover, the computer program can be stored in a computer-readable storage medium, which can be a readable storage medium such as a disk, an optical disk, a ROM, a RAM, or a storage array composed of multiple storage media, such as a disk or a tape storage array. The storage medium is not limited to centralized storage, and it can also be distributed storage, such as cloud storage based on cloud computing.

[0112] Compared with the prior art, the present invention extracts node data by receiving input operations and / or drag operations from the client, generates multiple task flows of a multidimensional array structure through the node data and the edge data between the node data, and stores the multiple task flows in a database, which can effectively form each task flow into a data structure in a DAG format, effectively improve the execution process of each task flow during the call process, and improve data processing capabilities; when receiving a user's data access request, access permission authentication is performed to achieve more effective permission management; by determining the callable task flow corresponding to the data access request that passes the access permission authentication, data access can be controlled more safely and more effectively, thereby effectively solving the process control problem of complex workflows in task flows, preventing the generation of closed-loop data, and effectively eliminating similar problems such as task dead loops.

[0113] Example 2

[0114] The following describes an apparatus embodiment of the present invention, which can be used to execute a method embodiment of the present invention. The details described in the apparatus embodiment of the present invention should be regarded as supplementary to the above method embodiment; details not disclosed in the apparatus embodiment of the present invention can be implemented with reference to the above method embodiment.

[0115] Reference Figure 3 , Figure 5 , Figure 6 and Figure 7 The present invention also provides a data access control device 400 for Internet resource services, the data access control device 400 comprising: a receiving processing module 401, used to receive input operations and / or drag operations of a client, and extract node data; a generating processing module 402, used to generate multiple task flows of a multidimensional array structure based on the node data and the edge data between the node data, and store the multiple task flows in a database; an authentication module 403, used to perform access permission authentication upon receiving a data access request from a user; a determining module 404, used to determine a callable task flow corresponding to a data access request that passes the access permission authentication; an access processing module 405, used to allow the user to access the corresponding data in the database according to the determined task flow.

[0116] like Figure 6 As shown, in another embodiment, the data access control device 400 further includes an extraction module 501, Figure 5The receiving and processing module 401 in the embodiment is split into the receiving and processing module 401 and the extraction module. The extraction module 501 is used to extract at least the following two types of node data: time variables corresponding to Internet resource services, task nodes or task monitoring and whether it is a synchronization task, role characteristics with different permissions, and whether it is a newly added data source; and perform main node identification and branch node identification on each node data.

[0117] like Figure 7 As shown, in another embodiment, the data access control device 400 further includes a storage module 601. Figure 5 The generation processing module 402 in is split into the generation processing module 402 and the storage module 601. The storage module 601 is used to determine the edge data between every two adjacent nodes according to the at least two types of node data extracted, and to perform edge identification on all the obtained edge data to generate a directed acyclic graph with a multidimensional array structure, wherein the edge data is used to characterize the mutual relationship or dependency relationship between the main node and the branch node.

[0118] Specifically, according to the at least two types of node data extracted, the edge data between every two adjacent nodes is determined, and all the obtained edge data are edge-labeled to generate a directed acyclic graph (i.e., DAG graph) of a multidimensional array structure. For example, the edge identifier includes system variables, operation and maintenance management, authority roles (or basic roles), data source management, tasks (or synchronization tasks), task instances, synchronization task lists, real-time task lists, super administrators, work rents, developers, data source lists, new data sources, basic properties, pipeline control, node scheduling configuration properties, etc. For details, see Figure 3 .

[0119] Further, based on the node data, the edge data between the node data with mutual relationship or dependency, and the directed acyclic graph (i.e., DAG graph), multiple task flows of multidimensional array structure are generated, each task flow includes process nodes corresponding to the main node and branch nodes and their related node data, edge data, and task parameters (e.g., whether it is a synchronous task, task execution time, etc.). In other words, the task flow is used to call when the user accesses the corresponding database in the Internet resource service platform, which can effectively control the user's access to the database and its data.

[0120] Specifically, each task flow is implemented through the process canvas, and the process canvas of each task is a DAG diagram constructed by dragging by users (such as operation and maintenance personnel, etc.). The backend will extract the node data of the main node and branch node based on the relevant data dragged by the user, and identify each node data with a unique (or globally unique) identity ID (i.e., node ID), and generate a multi-dimensional array structure of edge data information (process tree for workflow execution) based on the relevant data dragged by the user and the generated node ID. The data information after format conversion (for example, conversion to json object) is stored in the corresponding database for call.

[0121] It should be noted that the task flow mainly uses the DAG graph (also referred to as the DAG network graph in the present invention) to store the process node data of the task flow in a DAG format data structure. For example, JavaScript+php is used to implement the data processing and storage of the directed acyclic graph at the front end and the back end at the same time. According to the DAG graph, the dependency relationship (i.e., edge data) between every two adjacent process nodes is determined in sequence. Since the DAG graph has a topological sorting, and if the vertex V i ~V j (corresponding to the above process node) has a path, then the current node (current vertex) V can be determined in the topological sorting. 当 The path to the task flow where the data is to be called.

[0122] Optionally, all mutual relationships or dependent relationships (ie, edge data) are numbered and identified (identity ID or node ID) for the purpose of distinction, storage, and calling.

[0123] Furthermore, the generated multiple task flows are stored in a corresponding database of the Internet service platform.

[0124] Therefore, by generating multiple task flows of a multidimensional array structure and using a data structure in a DAG format for data storage to construct a data access control device, the data access control device and Internet resource services can be improved.

[0125] In another embodiment, before storing the multiple task flows in the database, the multiple newly generated task flows are synchronized in real time to all task flow lists to update the calling order and execution time of each task flow. For example, according to the Internet resource service type, the calling priority of the task flow is configured to determine the calling order, and the Internet resource service type includes resource guarantee investment service, resource allocation service, resource raising service and resource mutual assistance service.

[0126] Specifically, when receiving a data access request from a user, performing access permission authentication includes: identifying user identification information in the data access request, and automatically determining whether the user is a user in a user list with permission; when it is determined that the user is a user in the user list with permission, determining that the access permission authentication has been passed; when it is determined that the user is not a user in the user list with permission, determining that the access permission authentication has not been passed.

[0127] Specifically, the determining of a callable task flow corresponding to the data access request that passes the access permission authentication includes: selecting a task flow with the shortest call time from multiple callable task flows, and executing a data call process. The selecting of the task flow with the shortest call time includes determining a task flow with the shortest call time.

[0128] More specifically, the DAG graph obtained above is topologically sorted to determine a linear order between nodes; for each callable task flow, the vertices (i.e. nodes) V are taken out according to the order of the topological sorting. i , for node V i The adjacent vertices (i.e., nodes) are relaxed once (i.e., the determined callable task flow is relaxed once); dis[V n ]=min{dist[u]+w[u][V n ] / u can reach V n , where n is a positive integer}, to determine the task flow with the shortest calling time.

[0129] Optionally, configure the node V used as the starting point i or node V as the end point j The update time of the task flow path is determined, and the corresponding task flow path is updated according to the update time.

[0130] In one embodiment, according to the access data type and access time in the identified data access request, and according to the calculated dis[V n ] to determine the task flow with the shortest call time.

[0131] In another embodiment, the task flow with the shortest calling time is determined according to the calling order and execution time of each task flow in the current task flow list and the access data type and access time in the identified data access request.

[0132] In yet another embodiment, when the number of task flows with the shortest calling time is multiple, one task flow is selected from the multiple task flows according to the calling priority of each task flow.

[0133] In another embodiment, the data access control device also includes the multi-functions of table query, hierarchical query, bloodline map, data synchronization, cluster monitoring, library table management, and process authority management, thereby enabling safer and more effective data calls, improving data development efficiency and data security.

[0134] It should be noted that, in Example 2, descriptions of the same parts as in Example 1 are omitted.

[0135] Those skilled in the art will appreciate that the modules in the above device embodiments may be distributed in the device as described, or may be changed accordingly and distributed in one or more devices different from the above embodiments. The modules in the above embodiments may be combined into one module, or may be further split into multiple submodules.

[0136] Compared with the prior art, the present invention extracts node data by receiving input operations and / or drag operations from the client, generates multiple task flows of a multidimensional array structure through the node data and the edge data between the node data, and stores the multiple task flows in a database, which can effectively form each task flow into a data structure in a DAG format, effectively improve the execution process of each task flow during the call process, and improve data processing capabilities; when receiving a user's data access request, access permission authentication is performed to achieve more effective permission management; by determining the callable task flow corresponding to the data access request that passes the access permission authentication, data access can be controlled more safely and more effectively, thereby effectively solving the process control problem of complex workflows in task flows, preventing the generation of closed-loop data, and effectively eliminating similar problems such as task dead loops.

[0137] Furthermore, by generating multiple task flows of a multidimensional array structure and using a data structure in a DAG format for data storage to construct a data access control device, the multifunctional comprehensive performance of the data access control device and the Internet resource service platform can be improved, and data development efficiency and data security can be improved.

[0138] Example 3

[0139] The following describes a computer device embodiment of the present invention, which can be regarded as a specific physical implementation of the method and device embodiments of the present invention. The details described in the computer device embodiment of the present invention should be regarded as a supplement to the above method or device embodiments; details not disclosed in the computer device embodiment of the present invention can be implemented with reference to the above method or device embodiments.

[0140] Figure 8 1 is a block diagram of an exemplary embodiment of a computer device according to the present invention. Figure 8The computer device 200 according to this embodiment of the present invention is described. Figure 8 The computer device 200 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0141] like Figure 8 As shown, the computer device 200 is in the form of a general-purpose computing device. The components of the computer device 200 may include, but are not limited to: at least one processing unit 210, at least one storage unit 220, a bus 230 connecting different device components (including the storage unit 220 and the processing unit 210), a display unit 240, etc.

[0142] The storage unit stores program codes, which can be executed by the processing unit 210, so that the processing unit 210 performs the steps of various exemplary embodiments of the present invention described in the processing method of the computer device described above in this specification. For example, the processing unit 210 can perform the following steps: Figure 1 Steps shown.

[0143] The storage unit 220 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 2201 and / or a cache memory unit 2202 , and may further include a read-only memory unit (ROM) 2203 .

[0144] The storage unit 220 may also include a program / utility 2204 having a set (at least one) of program modules 2205, such program modules 2205 including but not limited to: an operating system, one or more application programs, other program modules and program data, each of which or some combination may include the implementation of a network environment.

[0145] Bus 230 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.

[0146] The computer device 200 may also communicate with one or more external devices 300 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the computer device 200, and / or may communicate with any device that enables the computer device 200 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 250. Furthermore, the computer device 200 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 260. The network adapter 260 may communicate with other modules of the computer device 200 via the bus 230. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the computer device 200, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0147] Through the description of the above implementation methods, it is easy for those skilled in the art to understand that the exemplary embodiments described in the present invention can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation method of the present invention can be embodied in the form of a software product, which can be stored in a computer-readable storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, or a network device, etc.) to execute the above method according to the present invention. When the computer program is executed by a data processing device, the computer program product can implement the above method of the present invention.

[0148] Fig. 9 is a block diagram of an exemplary embodiment of a computer program product according to the present invention.

[0149] like Fig. 9 As shown, the computer program may be stored on one or more computer program products. The computer program product may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples of computer program products (a non-exhaustive list) include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.

[0150] The computer program product may include a data signal propagated in baseband or as part of a carrier wave, wherein a readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer program product may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, device, or device. The program code contained in the computer program product may be transmitted using any suitable medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the above.

[0151] Program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).

[0152] In summary, the present invention can be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that general data processing devices such as microprocessors or digital signal processors (DSPs) can be used in practice to implement some or all of the functions of some or all of the components in the embodiments of the present invention. The present invention can also be implemented as a device or apparatus program (e.g., computer program and computer program product) for executing part or all of the methods described herein. Such a program for implementing the present invention can be stored on a computer program product, or can have the form of one or more signals. Such a signal can be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.

[0153] The specific embodiments described above further illustrate the purpose, technical solutions and beneficial effects of the present invention. It should be understood that the present invention is not inherently related to any specific computer, virtual device or computer equipment, and various general devices can also implement the present invention. The above description is only a specific embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention shall be included in the protection scope of the present invention.

Claims

1. A data access control method for Internet resource services, characterized in that: include: Receive input operations and / or drag operations from the client and extract node data; Determine edge data between every two adjacent nodes based on the at least two types of node data extracted, and perform edge identification on all edge data obtained to generate a directed acyclic graph with a multidimensional array structure, and generate multiple task flows with a multidimensional array structure based on the node data, the edge data between node data with mutual relationships or dependencies, and the directed acyclic graph, each task flow includes process nodes corresponding to main nodes and branch nodes and their related node data, edge data, and task parameters; The task parameters include: whether it is a synchronous task, task execution time; storing the node data of the task flow in a data structure in GDA format, and storing the multiple task flows in a database; Upon receiving a user's data access request, perform access rights authentication; For a data access request that has passed the access permission authentication, determine a callable task flow corresponding to the data access request; select a task flow with the shortest call time from multiple callable task flows; specifically, perform topological sorting on the directed acyclic graph to determine a linear order between nodes; for each callable task flow, take out the vertex Vi in the order of the topological sorting, and perform relaxation processing on the vertices adjacent to the vertex Vi; calculate dis[Vn]=min{dist[u]+w[u][Vn ] / u can reach Vn, where n is a positive integer} to determine the task flow with the shortest call time; According to the determined task flow, the user is allowed to access corresponding data in the database.

2. The data access control method for Internet resource services according to claim 1, characterized in that: The extracting node data comprises: Extract at least the following two types of node data: time variables corresponding to Internet resource services, task nodes or task monitoring and whether it is a synchronization task, role characteristics with different permissions, and whether it is a newly added data source; The main node and branch node are identified for each node data.

3. The data access control method for Internet resource services according to claim 1 or 2, characterized in that: The edge data is used to characterize the mutual relationship or dependency relationship between the main node and the branch nodes.

4. The data access control method for Internet resource services according to claim 3, characterized in that: After selecting the task flow with the shortest calling time from the multiple callable task flows, the method further includes: Execute the data call process.

5. The data access control method for Internet resource services according to claim 1 or 4, characterized in that: Before storing the multiple task flows in the database, the method further includes synchronizing the newly generated multiple task flows in real time to all task flow lists to update the calling sequence and execution time of each task flow.

6. The data access control method for Internet resource services according to claim 1 or 4, characterized in that: When receiving a data access request from a user, performing access rights authentication includes: Identify the user identification information in the data access request, and automatically determine whether the user is a user in a user list with authority; When it is determined that the user is a user in the user list with permission, it is determined that the access permission authentication has been passed; when it is determined that the user is not a user in the user list with permission, it is determined that the access permission authentication has not been passed.

7. The data access control method for Internet resource services according to claim 5, characterized in that: Also includes: According to the Internet resource service type, the calling priority of the task flow is configured to determine the calling order, and the Internet resource service type includes resource guarantee investment service, resource allocation service, resource raising service and resource mutual assistance service.

8. A data access control device for Internet resource services, characterized in that: include: A receiving and processing module, used to receive input operations and / or drag operations from the client and extract node data; A generation processing module is used to determine the edge data between every two adjacent nodes based on the at least two types of node data extracted, and to perform edge identification on all the obtained edge data to generate a directed acyclic graph with a multidimensional array structure, and to generate multiple task flows with a multidimensional array structure based on the node data, the edge data between the node data with mutual relationships or dependencies, and the directed acyclic graph, each task flow includes a process node corresponding to a main node and a branch node and its related node data, edge data, and task parameters; The task parameters include: whether it is a synchronous task, task execution time; storing the node data of the task flow in a data structure in GDA format, and storing the multiple task flows in a database; An authentication module is used to perform access rights authentication upon receiving a data access request from a user; A determination module is used to determine a callable task flow corresponding to a data access request that has passed the access authority authentication; select a task flow with the shortest call time from multiple callable task flows; specifically, topologically sort the directed acyclic graph to determine a linear order between nodes; for each callable task flow, take out the vertex Vi in the order of the topological sorting, and perform a relaxation process on the vertices adjacent to the vertex Vi; calculate dis[Vn]=min{dist[u]+w[u][Vn ] / u can reach Vn, where n is a positive integer} to determine the task flow with the shortest call time; The access processing module is used to allow the user to access the corresponding data in the database according to the determined task flow.

9. The data access control device for Internet resource services according to claim 8, characterized in that: The data access control device also includes an extraction module, which is used to extract at least the following two types of node data: time variables corresponding to Internet resource services, task nodes or task monitoring and whether it is a synchronization task, role characteristics with different permissions, and whether it is a new data source; main node identification and branch node identification for each node data.

10. The data access control device for Internet resource services according to claim 8 or 9, characterized in that: The edge data is used to characterize the mutual relationship or dependency relationship between the main node and the branch nodes.