Cluster security management method, device, equipment and storage medium

By splitting the cluster tasks into subtasks and encrypting them, and detecting malicious users in consortium chains, the problem of insufficient information security in traditional cluster management is solved, and efficient data protection and security management is achieved.

CN118332572BActive Publication Date: 2024-11-12BEIJING XIAOYOU NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410352425.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-26
Publication Date
2024-11-12
Estimated Expiration
2044-03-26

AI Technical Summary

Technical Problem

Traditional cluster management methods have information security problems during data interaction. Malicious users may obtain or tamper with data by invading cluster nodes, resulting in insufficient information security.

Method used

Split the cluster task into subtasks, and assign the encryption key and decryption key to each subtask. The subtasks are orchestrated and encrypted through the encryption key, and encrypted the encryption task is generated, and sent to the cluster subnodes for execution to obtain the encrypted data. Package, decrypts the target data through the decryption key, and detects malicious users through the abnormal user library built by the alliance chain, and terminates their access.

Benefits of technology

While ensuring processing efficiency, it prevents malicious users from reading or tampering with data, improving the information security of the cluster and effectively preventing data leakage and tampering.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118332572B_ABST
    Figure CN118332572B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of information security technology, and discloses a cluster security management method, device, equipment and storage medium, the method comprising: splitting a cluster task into a plurality of subtasks, and assigning encryption keys and decryption keys to the subtasks, the cluster task being constructed based on user demand data; arranging the subtasks by encryption keys and then encrypting them to obtain a plurality of encrypted tasks; sending the encrypted tasks to cluster subnodes and executing them to obtain a plurality of encrypted data packets; decrypting the encrypted data packets by decryption keys to obtain target data corresponding to the cluster tasks. The present invention splits, arranges and encrypts cluster tasks and then sends them to cluster subnodes for execution, and decrypts the data obtained after execution to obtain target data, thereby ensuring cluster processing efficiency while avoiding malicious users from reading or even tampering with data in the cluster, thereby improving the information security of the cluster security management method of the present invention.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of information security technology, and in particular to a cluster security management method, device, equipment and storage medium. Background Art

[0002] A cluster is a high-performance computing system that connects multiple computers in a local area network or the Internet, and uses software and hardware to achieve resource sharing and task allocation to jointly complete a task. Clusters are mainly used in large-scale data processing, scientific computing, digital media processing and other fields, and can provide higher computing efficiency and larger data storage capacity.

[0003] Traditional cluster management methods often only focus on the efficiency of the cluster during operation, that is, all pending tasks are evenly distributed to each node for processing through the cluster. However, when using this method to interact with data in the actual work process, some malicious users may obtain or even tamper with the data contained in the entire cluster by invading a node in the cluster, thereby causing information security issues. Based on this, the industry is in urgent need of a cluster security management method that can improve information security during cluster operation.

[0004] The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art. Summary of the invention

[0005] The main purpose of the present invention is to provide a cluster security management method, device, equipment and storage medium, aiming to solve the technical problem that the existing technology cannot ensure the information security of the cluster during operation.

[0006] To achieve the above object, the present invention provides a cluster security management method, the method comprising the following steps:

[0007] Splitting a cluster task into a plurality of subtasks and assigning encryption keys and decryption keys to the subtasks, wherein the cluster task is constructed based on user demand data;

[0008] Arranging the subtasks by using the encryption key and then encrypting them to obtain a plurality of encrypted tasks;

[0009] Send the encryption task to the cluster sub-nodes and execute them to obtain several encrypted data packets;

[0010] The encrypted data packet is decrypted using the decryption key to obtain the target data corresponding to the cluster task.

[0011] Optionally, the step of splitting the cluster task into a plurality of subtasks and allocating encryption keys and decryption keys to the subtasks includes:

[0012] Splitting the cluster task into a plurality of subtasks according to the target input and target output of the cluster task;

[0013] A plurality of encryption keys and decryption keys are generated according to a preset encryption and decryption algorithm, and the encryption keys and the decryption keys are randomly assigned to the subtasks.

[0014] Optionally, the step of arranging the subtasks by using the encryption key and then encrypting them to obtain a plurality of encrypted tasks includes:

[0015] Obtaining subtask inputs and subtask outputs respectively corresponding to the subtasks, and performing pipeline orchestration on the subtasks based on the subtask inputs and subtask outputs to obtain a plurality of DAG tasks;

[0016] The DAG task is encrypted using the encryption key to obtain a plurality of encrypted tasks.

[0017] Optionally, the step of sending the encryption task to a cluster subnode and executing it to obtain a plurality of encrypted data packets includes:

[0018] Obtaining the task data volume corresponding to the encryption task and the node performance corresponding to the cluster sub-node, wherein the node performance includes the response time and throughput of the cluster sub-node;

[0019] Based on the task data volume and the node performance, the encryption task is sent to the cluster sub-nodes for execution to obtain a number of encrypted data packets.

[0020] Optionally, the step of decrypting the encrypted data packet by using the decryption key to obtain target data corresponding to the cluster task includes:

[0021] Decrypting the encrypted data packet using the decryption key to obtain a decrypted data packet;

[0022] If the decrypted data packet contains all target outputs of the cluster task, the data in the decrypted data packet is used as the target data corresponding to the cluster task.

[0023] Optionally, if the decrypted data packet contains all target outputs of the cluster task, after the step of using the data in the decrypted data packet as target data corresponding to the cluster task, the step further includes:

[0024] If the decrypted data packet does not contain all the target outputs of the cluster task, the decrypted data packet will be encrypted and sent to the cluster child node for execution until a decrypted data packet containing all the target outputs of the cluster task is obtained, and the data in the decrypted data packet will be used as the target data corresponding to the cluster task.

[0025] Optionally, the cluster security management method further includes:

[0026] Receive an access request sent by a user, and extract access parameters corresponding to the user from the access request, wherein the access parameters include subject parameters and environment parameters;

[0027] Input the access parameter into an abnormal user database for search, and determine whether the user is a malicious user based on the search results, wherein the abnormal user database is constructed based on a consortium chain;

[0028] If the user is a malicious user, the access process of the user is terminated and the access rights of the user are changed.

[0029] In addition, to achieve the above object, the present invention also proposes a cluster security management device, the cluster security management device comprising:

[0030] A task splitting module is used to split a cluster task into several subtasks and allocate encryption keys and decryption keys to the subtasks, wherein the cluster task is constructed based on user demand data;

[0031] A task encryption module, used for arranging the subtasks and then encrypting them by using the encryption key to obtain a plurality of encrypted tasks;

[0032] A task execution module, used to send the encryption task to the cluster sub-nodes and execute it to obtain several encrypted data packets;

[0033] The data decryption module is used to decrypt the encrypted data packet using the decryption key to obtain the target data corresponding to the cluster task.

[0034] In addition, to achieve the above-mentioned purpose, the present invention also proposes a cluster security management device, which includes: a memory, a processor, and a cluster security management program stored in the memory and executable on the processor, and the cluster security management program is configured to implement the steps of the cluster security management method described above.

[0035] In addition, to achieve the above-mentioned purpose, the present invention further proposes a storage medium, on which a cluster security management program is stored, and when the cluster security management program is executed by a processor, the steps of the cluster security management method described above are implemented.

[0036] The present invention divides a cluster task into several subtasks and allocates encryption keys and decryption keys to the subtasks. The cluster task is constructed based on user demand data; the subtasks are arranged and encrypted by the encryption key to obtain several encrypted tasks; the encrypted tasks are sent to the cluster subnodes and executed to obtain several encrypted data packets; the encrypted data packets are decrypted by the decryption key to obtain the target data corresponding to the cluster task. Compared with the traditional cluster management method that evenly distributes all tasks to be processed to each node for processing, the above method of the present invention divides, arranges and encrypts the cluster tasks and then sends them to the cluster subnodes for execution, and decrypts the data obtained after execution to obtain the target data, thereby ensuring the cluster processing efficiency while avoiding malicious users from reading or even tampering with the data in the cluster, thereby improving the information security of the cluster security management method of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 A schematic diagram of the structure of a cluster security management device in a hardware operating environment involved in an embodiment of the present invention;

[0038] Figure 2 It is a flowchart of the first embodiment of the cluster security management method of the present invention;

[0039] Figure 3 A schematic diagram of a flow chart of a second embodiment of a cluster security management method of the present invention;

[0040] Figure 4 A schematic diagram of a flow chart of a third embodiment of a cluster security management method of the present invention;

[0041] Figure 5 It is a structural block diagram of the first embodiment of the cluster security management device of the present invention.

[0042] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0043] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0044] Reference Figure 1 , Figure 1 The schematic diagram is a schematic diagram of the structure of a cluster security management device in a hardware operating environment according to an embodiment of the present invention.

[0045] like Figure 1As shown, the cluster security management device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (Wireless-Fidelity, Wi-Fi) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM), or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk storage. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0046] Those skilled in the art will understand that Figure 1 The structure shown in does not constitute a limitation on the cluster security management device, and may include more or less components than those shown in the figure, or combine certain components, or arrange the components differently.

[0047] like Figure 1 As shown, the memory 1005 as a storage medium may include an operating system, a network communication module, a user interface module, and a cluster security management program.

[0048] exist Figure 1 In the cluster security management device shown, the network interface 1004 is mainly used for data communication with the network server; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the cluster security management device of the present invention can be set in the cluster security management device, and the cluster security management device calls the cluster security management program stored in the memory 1005 through the processor 1001, and executes the cluster security management method provided by the embodiment of the present invention.

[0049] The embodiment of the present invention provides a cluster security management method, referring to Figure 2 , Figure 2 It is a flowchart of the first embodiment of the cluster security management method of the present invention.

[0050] In this embodiment, the cluster security management method includes the following steps:

[0051] Step S10: split the cluster task into several subtasks, and allocate encryption keys and decryption keys to the subtasks, wherein the cluster task is constructed based on user demand data.

[0052] It should be noted that the execution subject of the method of this embodiment can be a terminal device with data encryption and decryption, data processing and program running functions, such as a smart phone, a smart watch, etc., or an electronic device with the same or similar functions, such as the above-mentioned cluster security management device. The following takes the cluster security management device (hereinafter referred to as the management device) as an example to illustrate this embodiment and the following embodiments.

[0053] It is understandable that the above cluster tasks can be a group of related tasks or jobs built based on user demand data, which are assigned to a computing cluster (usually a collection of multiple computers or servers) for execution. These tasks usually require a large amount of computing resources or parallel processing capabilities, so distributing them on multiple computing nodes can improve efficiency and performance.

[0054] It should be understood that the encryption key may be a key used to convert plaintext data into ciphertext, and the decryption key may be a key used to restore ciphertext data to plaintext. In particular, the encryption key may be the same as or different from the decryption key, and this embodiment does not limit this.

[0055] Step S20: Arrange the subtasks using the encryption key and then encrypt them to obtain a plurality of encrypted tasks.

[0056] In a specific implementation, the above subtasks may be decomposed into a plurality of plaintext task blocks, and then these plaintext task blocks are combined with the above encryption key to achieve encryption of the above subtasks.

[0057] Step S30: Send the encryption task to the cluster sub-nodes for execution, and obtain several encrypted data packets.

[0058] It should be noted that the above cluster sub-node can represent any node in the cluster. More specifically, the cluster sub-node can be a computing resource such as a server, a virtual machine, or a container. These sub-nodes work together in the cluster to provide a certain service or perform a specific task.

[0059] It should be understood that the above-mentioned cluster sub-nodes may include a CPU (Central Processing Unit), memory, storage devices (such as local storage devices, network storage devices, distributed storage devices, etc.), network devices (such as routers, switches, firewalls, etc.), etc., and the hardware in the cluster sub-nodes can be managed and applications can be run through an operating system (such as Linux, Windows, etc.).

[0060] Step S40: decrypting the encrypted data packet using the decryption key to obtain target data corresponding to the cluster task.

[0061] In a specific implementation, since the above method of this embodiment divides the cluster task into several subtasks and encrypts each subtask, it can prevent malicious users from reading and tampering with the data in the cluster to a certain extent. Furthermore, even if a malicious user cracks a subtask in a subnode, since the subtask is not a complete cluster task, even if the malicious user obtains the subtask, the complete cluster data cannot be read, let alone tampered.

[0062] This embodiment divides the cluster task into several subtasks and assigns encryption keys and decryption keys to the subtasks. The cluster task is constructed based on user demand data; the subtasks are arranged and encrypted by the encryption key to obtain several encrypted tasks; the encrypted tasks are sent to the cluster subnodes and executed to obtain several encrypted data packets; the encrypted data packets are decrypted by the decryption key to obtain the target data corresponding to the cluster task. Compared with the traditional cluster management method that evenly distributes all tasks to be processed to each node for processing, the above method of this embodiment divides, arranges and encrypts the cluster tasks and then sends them to the cluster subnodes for execution, and decrypts the data obtained after execution to obtain the target data, thereby ensuring the cluster processing efficiency while avoiding malicious users from reading or even tampering with the data in the cluster, thereby improving the information security of the cluster security management method of this embodiment.

[0063] refer to Figure 3 , Figure 3 It is a flowchart of the second embodiment of the cluster security management method of the present invention.

[0064] Based on the above first embodiment, in this embodiment, step S10 may include:

[0065] Step S101: splitting the cluster task into a plurality of subtasks according to the target input and target output of the cluster task.

[0066] In a specific implementation, since the cluster task is constructed based on user demand data, the above target output can be determined from the user demand data, and the above target input can be determined after being deduced based on the above target output. For example, suppose that the demand of user A is to obtain the main time period data of the official website of company B in a certain year when the active account browses the official website (which can be represented by the first target output), and the number of views of each section of the official website in each main time period (which can be represented by the second target output). Then, after the above first target output and the above second target output are deduced, it can be concluded that the target input may include but is not limited to the account data corresponding to all active accounts (which can be represented by the first target input), the browsing sections corresponding to each account data (which can be represented by the second target input), and the time corresponding to each browsing section (which can be represented by the third target input), etc. Finally, the above cluster task can be split into a first subtask that can generate the above first target input, a second subtask that can generate the above second target input, and a third subtask that can generate the above third target input. Of course, the above discussion is only used for illustration and not for limitation, and other methods that can split the cluster task into several subtasks are also applicable to this embodiment.

[0067] Step S102: Generate a number of encryption keys and decryption keys according to a preset encryption and decryption algorithm, and randomly assign the encryption keys and the decryption keys to the subtasks.

[0068] It should be understood that the above-mentioned preset encryption and decryption algorithm can be a symmetric encryption algorithm, including but not limited to AES (Advanced Encryption Standard) algorithm, DES (Data Encryption Standard) algorithm, etc., or it can be an asymmetric encryption algorithm, including but not limited to RSA (Rivest-Shamir-Adleman) algorithm, ECC (Elliptic Curve Cryptography) algorithm, etc., or it can be a hybrid algorithm combined with the above-mentioned symmetric encryption algorithm and the above-mentioned asymmetric encryption algorithm, etc. This embodiment does not limit this.

[0069] Furthermore, in this embodiment, in order to improve the scheduling efficiency of the subtasks and thus speed up the encryption speed of the subtasks, the step S20 may include:

[0070] Step S201: Obtain subtask inputs and subtask outputs respectively corresponding to the subtasks, and perform pipeline orchestration on the subtasks based on the subtask inputs and subtask outputs to obtain a plurality of DAG tasks.

[0071] It should be understood that the above-mentioned DAG (Directed Acyclic Graph) task can be used to describe and manage the dependencies and execution order between tasks. Specifically, a DAG task may include task nodes and directed edges. Among them, task nodes are used to represent specific tasks or operations, and directed edges are used to represent the dependencies between tasks. If task A depends on task B, then there will be a directed edge from B to A, which means that task A must be executed after task B is completed.

[0072] In a specific implementation, if the output of a task can be used as the output of another task, the two tasks can be scheduled in the same DAG task, thereby improving the scheduling efficiency of the DAG task.

[0073] Step S202: Encrypt the DAG task using the encryption key to obtain a plurality of encrypted tasks.

[0074] Based on the above first embodiment, in this embodiment, in order to further improve the execution efficiency of the cluster task, the step S30 may include:

[0075] Step S301: Obtain the task data volume corresponding to the encryption task and the node performance corresponding to the cluster sub-node, where the node performance includes the response time and throughput of the cluster sub-node.

[0076] It should be understood that the above response time can be used to reflect the time required for the cluster sub-node to process a request, usually in milliseconds, and a lower response time means that the server can respond to requests quickly. The above throughput can be used to reflect the number of requests processed by the cluster sub-node per unit time, and a higher throughput means that the server can effectively process a large number of requests.

[0077] Step S302: Based on the task data volume and the node performance, the encryption task is sent to the cluster child nodes for execution to obtain a number of encrypted data packets.

[0078] This embodiment divides the cluster task into several subtasks according to the target input and target output of the cluster task; generates several encryption keys and decryption keys according to the preset encryption and decryption algorithm, and randomly assigns the encryption keys and the decryption keys to the subtasks; obtains the subtask inputs and subtask outputs corresponding to the subtasks, and arranges the subtasks in pipelines based on the subtask inputs and subtask outputs to obtain several DAG tasks; encrypts the DAG task by the encryption key to obtain several encryption tasks; obtains the task data volume corresponding to the encryption task and the node performance corresponding to the cluster subnode, and the node performance includes the response time and throughput of the cluster subnode; sends the encryption task to the cluster subnode and executes it based on the task data volume and the node performance to obtain several encrypted data packets. Compared with the traditional cluster management method, the above method of this embodiment encrypts the DAG task obtained by arranging the subtasks by the preset encryption and decryption algorithm, thereby improving the encryption efficiency; at the same time, sends the encryption task to the cluster subnode and executes it based on the task data volume corresponding to the encryption task and the node performance corresponding to the cluster subnode, further improving the execution efficiency of the cluster task.

[0079] refer to Figure 4 , Figure 4 It is a flowchart of the third embodiment of the cluster security management method of the present invention.

[0080] Based on the above embodiments, in this embodiment, in order to ensure accurate and complete target data, step S40 may include:

[0081] Step S401: decrypt the encrypted data packet using the decryption key to obtain a decrypted data packet.

[0082] Step S402: If the decrypted data packet contains all target outputs of the cluster task, the data in the decrypted data packet is used as target data corresponding to the cluster task.

[0083] Step S403: If the decrypted data packet does not contain all the target outputs of the cluster task, the decrypted data packet is encrypted and sent to the cluster child node for execution until a decrypted data packet containing all the target outputs of the cluster task is obtained, and the data in the decrypted data packet is used as the target data corresponding to the cluster task.

[0084] Based on the above embodiments, in this embodiment, in order to further prevent abnormal users from affecting cluster security, the cluster security management method may further include:

[0085] Step S50: receiving an access request sent by a user, and extracting access parameters corresponding to the user from the access request, wherein the access parameters include subject parameters and environment parameters.

[0086] It should be understood that the above-mentioned main parameters may include user registration ID, user access device ID, user active time period, etc., and the above-mentioned environmental parameters may include user access address IP, user access network packet loss rate, etc., and this embodiment does not limit this.

[0087] Step S60: input the access parameter into an abnormal user database for search, and determine whether the user is a malicious user based on the search results, wherein the abnormal user database is constructed based on a consortium chain.

[0088] It is understandable that the above-mentioned alliance chain can be a type of blockchain, which usually adopts a permission control mechanism, and only authorized participants can participate in the blockchain network. In addition, the participants of the alliance chain are jointly responsible for the management and maintenance of the blockchain network.

[0089] Step S70: If the user is a malicious user, the access process of the user is terminated and the access rights of the user are changed.

[0090] This embodiment decrypts the encrypted data packet by using the decryption key to obtain a decrypted data packet; if the decrypted data packet contains all the target outputs of the cluster task, the data in the decrypted data packet is used as the target data corresponding to the cluster task; if the decrypted data packet does not contain all the target outputs of the cluster task, the decrypted data packet is encrypted and sent to the cluster child node for execution until a decrypted data packet containing all the target outputs of the cluster task is obtained, and the data in the decrypted data packet is used as the target data corresponding to the cluster task; an access request sent by a user is received, and access parameters corresponding to the user are extracted from the access request, and the access parameters include subject parameters and environment parameters; the access parameters are input into an abnormal user library for search, and based on the search results, it is determined whether the user is a malicious user, and the abnormal user library is built based on an alliance chain; if the user is a malicious user, the access process of the user is terminated, and the access rights of the user are changed. Compared with traditional cluster security management methods, the above method of this embodiment determines whether all target data corresponding to the cluster task are obtained by detecting whether the decrypted data packet contains all target outputs of the cluster task; at the same time, the above method of this embodiment introduces the alliance chain to build an abnormal user library, so that abnormal users can be quickly identified, and then the abnormal behavior of abnormal users can be restricted earlier, thereby indirectly improving the security of the cluster.

[0091] In addition, an embodiment of the present invention further provides a storage medium, on which a cluster security management program is stored. When the cluster security management program is executed by a processor, the steps of the cluster security management method described above are implemented.

[0092] Reference Figure 5 , Figure 5 It is a structural block diagram of the first embodiment of the cluster security management device of the present invention.

[0093] like Figure 5 As shown, the cluster security management device proposed in the embodiment of the present invention includes:

[0094] A task splitting module 501 is used to split a cluster task into several subtasks and allocate encryption keys and decryption keys to the subtasks, wherein the cluster task is constructed based on user demand data;

[0095] A task encryption module 502, used to arrange the subtasks and then encrypt them using the encryption key to obtain a plurality of encrypted tasks;

[0096] The task execution module 503 is used to send the encryption task to the cluster sub-nodes for execution, and obtain several encrypted data packets;

[0097] The data decryption module 504 is used to decrypt the encrypted data packet using the decryption key to obtain the target data corresponding to the cluster task.

[0098] This embodiment divides the cluster task into several subtasks and assigns encryption keys and decryption keys to the subtasks. The cluster task is constructed based on user demand data; the subtasks are arranged and encrypted by the encryption key to obtain several encrypted tasks; the encrypted tasks are sent to the cluster subnodes and executed to obtain several encrypted data packets; the encrypted data packets are decrypted by the decryption key to obtain the target data corresponding to the cluster task. Compared with the traditional cluster management method that evenly distributes all tasks to be processed to each node for processing, the above method of this embodiment divides, arranges and encrypts the cluster tasks and then sends them to the cluster subnodes for execution, and decrypts the data obtained after execution to obtain the target data, thereby ensuring the cluster processing efficiency while avoiding malicious users from reading or even tampering with the data in the cluster, thereby improving the information security of the cluster security management method of this embodiment.

[0099] Based on the first embodiment of the cluster security management device of the present invention, a second embodiment of the cluster security management device of the present invention is proposed.

[0100] In this embodiment, the task splitting module 501 is also used to split the cluster task into several subtasks according to the target input and target output of the cluster task; generate several encryption keys and decryption keys according to a preset encryption and decryption algorithm, and randomly assign the encryption keys and the decryption keys to the subtasks.

[0101] Furthermore, the task encryption module 502 is also used to obtain subtask inputs and subtask outputs corresponding to the subtasks respectively, and to pipeline the subtasks based on the subtask inputs and subtask outputs to obtain a number of DAG tasks; and to encrypt the DAG tasks using the encryption key to obtain a number of encrypted tasks.

[0102] Furthermore, the task execution module 503 is also used to obtain the task data volume corresponding to the encryption task and the node performance corresponding to the cluster sub-node, and the node performance includes the response time and throughput of the cluster sub-node; based on the task data volume and the node performance, the encryption task is sent to the cluster sub-node and executed to obtain a number of encrypted data packets.

[0103] Furthermore, the data decryption module 504 is also used to decrypt the encrypted data packet using the decryption key to obtain a decrypted data packet; if the decrypted data packet contains all target outputs of the cluster task, the data in the decrypted data packet is used as the target data corresponding to the cluster task.

[0104] Furthermore, the data decryption module 504 is also used to encrypt the decrypted data packet and send it to the cluster child node for execution if the decrypted data packet does not contain all the target outputs of the cluster task, until a decrypted data packet containing all the target outputs of the cluster task is obtained, and use the data in the decrypted data packet as the target data corresponding to the cluster task.

[0105] Furthermore, the data decryption module 504 is also used to receive an access request sent by a user, and extract access parameters corresponding to the user from the access request, the access parameters including subject parameters and environment parameters; input the access parameters into an abnormal user library for search, and determine whether the user is a malicious user based on the search results, the abnormal user library is built based on a consortium chain; if the user is a malicious user, terminate the user's access process and change the user's access rights.

[0106] Other embodiments or specific implementations of the cluster security management device of the present invention may refer to the above-mentioned method embodiments, which will not be described in detail here.

[0107] 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 system 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 system. 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 system including the element.

[0108] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0109] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory / random access memory, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0110] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A cluster security management method, characterized in that: The method comprises the following steps: Splitting a cluster task into a plurality of subtasks and assigning encryption keys and decryption keys to the subtasks, wherein the cluster task is constructed based on user demand data; Arranging the subtasks by using the encryption key and then encrypting them to obtain a plurality of encrypted tasks; Send the encryption task to the cluster sub-nodes and execute them to obtain several encrypted data packets; Decrypting the encrypted data packet using the decryption key to obtain target data corresponding to the cluster task; The step of arranging the subtasks by using the encryption key and then encrypting them to obtain a plurality of encrypted tasks includes: Obtaining subtask inputs and subtask outputs respectively corresponding to the subtasks, and pipeline orchestrating the subtasks based on the subtask inputs and subtask outputs to obtain a plurality of DAG tasks, wherein the DAG tasks include task nodes and directed edges, wherein the task nodes are used to represent specific tasks or operations, and the directed edges are used to represent dependencies between tasks; Encrypt the DAG task using the encryption key to obtain a plurality of encrypted tasks; The step of sending the encryption task to the cluster subnode and executing it to obtain several encrypted data packets includes: Obtaining the task data volume corresponding to the encryption task and the node performance corresponding to the cluster subnode, wherein the node performance includes the response time and throughput of the cluster subnode, wherein the response time is used to reflect the time required for the cluster subnode to process a request, and the throughput is used to reflect the number of requests processed by the cluster subnode per unit time; Based on the task data volume and the node performance, the encryption task is sent to the cluster sub-nodes for execution to obtain several encrypted data packets; The cluster security management method further includes: Receive an access request sent by a user, and extract access parameters corresponding to the user from the access request, wherein the access parameters include subject parameters and environment parameters, wherein the subject parameters include user registration ID, user access device ID, and user active time period, and the environment parameters include user access address IP and user access network packet loss rate; Input the access parameter into an abnormal user database for search, and determine whether the user is a malicious user based on the search results, wherein the abnormal user database is constructed based on a consortium chain; If the user is a malicious user, the access process of the user is terminated and the access rights of the user are changed.

2. The cluster security management method according to claim 1, characterized in that: The step of splitting the cluster task into a plurality of subtasks and allocating encryption keys and decryption keys to the subtasks includes: Splitting the cluster task into a plurality of subtasks according to the target input and target output of the cluster task; A plurality of encryption keys and decryption keys are generated according to a preset encryption and decryption algorithm, and the encryption keys and the decryption keys are randomly assigned to the subtasks.

3. The cluster security management method according to claim 1, characterized in that: The step of decrypting the encrypted data packet by using the decryption key to obtain the target data corresponding to the cluster task includes: Decrypting the encrypted data packet using the decryption key to obtain a decrypted data packet; If the decrypted data packet contains all target outputs of the cluster task, the data in the decrypted data packet is used as the target data corresponding to the cluster task.

4. The cluster security management method according to claim 3, characterized in that: After the step of using the data in the decrypted data packet as the target data corresponding to the cluster task if the decrypted data packet contains all the target outputs of the cluster task, the method further includes: If the decrypted data packet does not contain all the target outputs of the cluster task, the decrypted data packet will be encrypted and sent to the cluster child node for execution until a decrypted data packet containing all the target outputs of the cluster task is obtained, and the data in the decrypted data packet will be used as the target data corresponding to the cluster task.

5. A cluster security management device, characterized in that: The cluster security management device comprises: A task splitting module is used to split a cluster task into several subtasks and allocate encryption keys and decryption keys to the subtasks, wherein the cluster task is constructed based on user demand data; A task encryption module, used for arranging the subtasks and then encrypting them by using the encryption key to obtain a plurality of encrypted tasks; A task execution module, used to send the encryption task to the cluster sub-nodes and execute it to obtain several encrypted data packets; A data decryption module, used to decrypt the encrypted data packet using the decryption key to obtain target data corresponding to the cluster task; The step of arranging the subtasks by using the encryption key and then encrypting them to obtain a plurality of encrypted tasks includes: Obtaining subtask inputs and subtask outputs respectively corresponding to the subtasks, and pipeline orchestrating the subtasks based on the subtask inputs and subtask outputs to obtain a plurality of DAG tasks, wherein the DAG tasks include task nodes and directed edges, wherein the task nodes are used to represent specific tasks or operations, and the directed edges are used to represent dependencies between tasks; Encrypt the DAG task using the encryption key to obtain a plurality of encrypted tasks; The step of sending the encryption task to the cluster subnode and executing it to obtain several encrypted data packets includes: Obtaining the task data volume corresponding to the encryption task and the node performance corresponding to the cluster subnode, wherein the node performance includes the response time and throughput of the cluster subnode, wherein the response time is used to reflect the time required for the cluster subnode to process a request, and the throughput is used to reflect the number of requests processed by the cluster subnode per unit time; Based on the task data volume and the node performance, the encryption task is sent to the cluster sub-nodes for execution to obtain several encrypted data packets; The cluster security management device also includes: Receive an access request sent by a user, and extract access parameters corresponding to the user from the access request, wherein the access parameters include subject parameters and environment parameters, wherein the subject parameters include user registration ID, user access device ID, and user active time period, and the environment parameters include user access address IP and user access network packet loss rate; Input the access parameter into an abnormal user database for search, and determine whether the user is a malicious user based on the search results, wherein the abnormal user database is constructed based on a consortium chain; If the user is a malicious user, the access process of the user is terminated and the access rights of the user are changed.

6. A cluster security management device, characterized in that: The device comprises: a memory, a processor, and a cluster security management program stored in the memory and executable on the processor, wherein the cluster security management program is configured to implement the steps of the cluster security management method according to any one of claims 1 to 4.

7. A storage medium, characterized in that: The storage medium stores a cluster security management program, and when the cluster security management program is executed by the processor, the steps of the cluster security management method according to any one of claims 1 to 4 are implemented.