Data processing method and device, equipment and storage medium
By dynamically loading the storage engine plug-in in the database and using the dynamic key of the security control center to encrypt and decrypt data, the problem of data leakage in database data security management is solved, and efficient data security control and the versatility of encrypted data are achieved. .
Patent Information
- Application Number
- CN202410804773.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-20
- Publication Date
- 2024-10-01
AI Technical Summary
In data security management of existing databases, obtaining file system permissions can easily lead to data leakage, and encrypted files cannot be independently run and stored, resulting in inconvenient data access.
The storage engine plug-in is dynamically loaded in the database. The plug-in calls the driver to obtain the dynamic key from the security control center, encrypts and decrypts the data, and achieves efficient and reliable security control of the data. The encrypted data files can be run independently and Mount to different types of databases.
It improves data security, avoids data leakage problems, and makes encrypted data files universal among different databases, simplifying the data access process.
Smart Images

Figure CN118733652A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to the fields of database, cloud computing, data security, etc. Background Art
[0002] The data security of common databases (DB), such as relational database management systems (MySQL), can be managed through the permissions of the account that accesses the database. When the permissions of the operating system file system directory are obtained, the account authorization can be skipped and the file can be read directly. Therefore, once the database data file directory permissions are obtained, data leakage problems are likely to occur. Summary of the invention
[0003] The present disclosure provides a data processing method, apparatus, device and storage medium.
[0004] According to one aspect of the present disclosure, there is provided a data processing method, comprising:
[0005] Dynamically load storage engine plug-ins for data security control in the database;
[0006] The driver for data security control is called through the storage engine plug-in to perform security control on the data according to the dynamic key from the security control center.
[0007] According to another aspect of the present disclosure, there is provided a data processing device, comprising:
[0008] Loading module, used to dynamically load storage engine plug-ins for data security control in the database;
[0009] The security control module is used to call a driver for data security control through the storage engine plug-in to perform security control on the data according to a dynamic key from a security control center.
[0010] According to another aspect of the present disclosure, there is provided an electronic device, comprising:
[0011] at least one processor; and
[0012] a memory communicatively connected to the at least one processor; wherein,
[0013] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the method of any embodiment of the present disclosure.
[0014] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute the method according to any embodiment of the present disclosure.
[0015] According to another aspect of the present disclosure, a computer program product is provided, including a computer program. When the computer program is executed by a processor, the method according to any one of the embodiments of the present disclosure is implemented.
[0016] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.
[0018] Figure 1 is a flowchart of a data processing method according to an embodiment of the present disclosure;
[0019] Figure 2 is a schematic diagram of an application scenario of a data processing method according to an embodiment of the present disclosure;
[0020] Figure 3 is a flowchart of a data processing method according to another embodiment of the present disclosure;
[0021] Figure 4 This is an example diagram of the function call during the data writing process;
[0022] Figure 5 is a flowchart of a data processing method according to another embodiment of the present disclosure;
[0023] Figure 6 This is an example diagram of the function call during the data reading process;
[0024] Figure 7 is a structural schematic diagram of a data processing device according to an embodiment of the present disclosure;
[0025] Figure 8 is a structural schematic diagram of a data processing device according to another embodiment of the present disclosure;
[0026] Fig. 9 is a block diagram of an electronic device for implementing an embodiment of the present disclosure. DETAILED DESCRIPTION
[0027] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope of the present disclosure. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0028] The “and / or” in the embodiments of the present disclosure indicates that three relationships may exist. For example, A and / or B may indicate the following three situations: A exists alone, A and B exist at the same time, and B exists alone. The term “at least one” herein indicates any combination of at least two of any one or more of a plurality of types. For example, at least one of A, B, and C may indicate any one or more elements selected from the set consisting of A, B, and C. The terms “first” and “second” herein refer to and distinguish between multiple similar technical terms, and do not mean to limit the order or to limit the meaning to only two. For example, the first feature and the second feature refer to two types / two features. The first feature may be one or more, and the second feature may also be one or more.
[0029] An example of a data security method includes: in a relational database, encryption can be achieved through symmetric encryption functions, such as using AES ENCRYPT and AESDECRYPT functions to achieve symmetric encryption; encryption can also be achieved through password hash functions, asymmetric encryption functions, etc. These are encryption methods implemented at the server layer, and the data content will be stored in plain text in the full log. If the access rights to the file system are obtained, data leakage problems will still occur.
[0030] Another example of a data security method includes: developing a separate data encryption program to encrypt data and store it in an encrypted file. However, the encrypted file cannot be run and stored independently, and cannot be mounted on different types of databases, which brings great inconvenience to the access of encrypted data.
[0031] Figure 1 is a flow chart of a data processing method according to an embodiment of the present disclosure. The method may include:
[0032] S110, dynamically loading a storage engine plug-in for data security control in a database;
[0033] S120. Calling a driver for data security control through the storage engine plug-in to perform security control on the data according to a dynamic key from a security control center.
[0034] In the embodiments of the present disclosure, the type of database may include a relational database such as a MySQL database, or other databases. According to different databases, corresponding storage engine plug-ins for data security control (also referred to as encryption storage engine plug-ins, secure storage engine plug-ins, etc.) may be set. Drivers for data security control (also referred to as encryption drivers, encrypted file drivers, etc.) may be set in the same manner, or may be set separately according to different databases. A relational database may generally include a service layer and a storage engine layer. The storage engine plug-in of the embodiments of the present disclosure may exist independently, and may be loaded into the storage engine layer of the database, or may be separated from the database. For example, the storage engine plug-in may dynamically load functions of different memory addresses implemented by memory sharing into the database.
[0035] In the disclosed embodiment, a driver for data security control and a storage engine plug-in for data security control can be pre-set, and the storage engine plug-in can call the driver to obtain a dynamic key from a security control center outside the database to encrypt the data to be encrypted, and write the encrypted data to a specified location. The specified location can be independent of the storage engine of the database, or independent of the database, and can include a separate folder.
[0036] The disclosed embodiment can dynamically load a storage engine plug-in for data security control in a database, and can call a driver for data security control to obtain a dynamic key from outside the database without storing the key in the database, thereby providing efficient and reliable security protection for the data.
[0037] In one embodiment, the storage engine plug-in is separable from the service layer of the database. In the embodiments of the present disclosure, the storage engine plug-in may also be referred to as a storage engine instance, a pluggable storage engine, etc. The storage engine plug-in may be loaded into the database or may be separated from the database. This facilitates the expansion of the functions of the storage engine plug-in and flexibly adapts to various security control scenarios.
[0038] See also Figure 2, application A can call the A-type database driver to pass data or requests to the storage engine layer via the service layer of the A-type relational database. The storage engine plug-in for data security control can be loaded in the storage engine layer of the A-type relational database. Through the storage engine plug-in, the encrypted file driver (an example of the above-mentioned driver for data security control) can be called to obtain the corresponding key from the security control center to access data in a unified format of encrypted files. Application B can call the B-type database driver to pass data or requests to the storage engine layer via the service layer of the B-type relational database. The storage engine plug-in for data security control can be loaded in the storage engine layer of the B-type relational database. Through the storage engine plug-in, the encrypted file driver can be called to obtain the corresponding key from the security control center to access data in a unified format of encrypted files. The security control center can be set outside the database, for example, on a cloud platform.
[0039] Figure 3 1 is a flow chart of a data processing method according to another embodiment of the present disclosure. This embodiment may include one or more features of the above embodiments. In one implementation, calling a driver for data security control through the storage engine plug-in to perform security control on data according to a dynamic key from a security control center includes:
[0040] S310: When a database write stream that needs to be encrypted reaches the storage engine layer of the database, activate the storage engine plug-in;
[0041] S320, calling the write function of the driver through the storage engine plug-in;
[0042] S330: Write the database into a data file after stream encryption using the first dynamic key obtained from the security control center according to the encryption algorithm through the write function.
[0043] In an embodiment of the present disclosure, if a database write stream needs to access an encrypted file, after the database write stream reaches the storage engine layer of the database via the service layer of the database, the storage engine plug-in for data security control loaded by the database can be activated. The storage engine plug-in can call the write function of the driver for data security control to activate the link between the driver and the security control center. The security control center can dynamically generate a first dynamic key based on the encryption algorithm. Based on the encryption algorithm, the database write stream can be encrypted using the first dynamic key to obtain encrypted data, and the encrypted data can be written into a data file in a unified format. The data file can be called an encrypted file, which can be independent of the storage engine of the database, or it can be independent of the database, and can include a separate folder. In this way, after the encryption of the storage engine plug-in is completed, the encrypted data file (referred to as the encrypted file) can run independently, or it can be mounted to other types of data for reading and writing.
[0044] The format of the encrypted data file may include one or more of the following: field length, field type, encryption and decryption algorithm, entity naming rule, compression algorithm, etc. These formats may be unified to facilitate reading and writing through the driver.
[0045] For example, the storage engine plug-in is an encryption storage engine and the driver is an encryption driver. Figure 4 , the function call example of the data writing process is as follows: according to the data writing request, the connection startup function (such as handle_connection), SQL parsing and optimization function (such as sql_parse.cc: do_command), data writing SQL execution entry selection function (such as Sqlvcmd_insert:: execute), data writing SQL execution function (such as Sql_cmd_insert:: mysql_insert) (or called execution writing data SQL function) can be called in sequence at the service layer of the database, and the instantiated data writing function entry (such as handler:: ha write row) is called. Then, the write function of the encryption storage engine (such as ha_encrypt:: write_row) is called at the storage engine layer. Then, the write function of the encryption file driver (such as encryptfile:: write_row) is called in the encryption driver to query the encryption policy (such as encryptfile:: policy). In this way, the encryption driver can obtain the corresponding key from the security control center according to the information of the encryption algorithm found to encrypt and write data.
[0046] The disclosed embodiment can obtain the required dynamic key from the security control center through the write function of the storage engine plug-in driver, so the key does not need to be retained in the database, which can further improve data security.
[0047] Figure 5 1 is a flow chart of a data processing method according to another embodiment of the present disclosure. This embodiment may include one or more features of the above embodiments. In one implementation, calling a driver for data security control through the storage engine plug-in to perform security control on data according to a dynamic key from a security control center includes:
[0048] S510, when a data read request for reading an encrypted data file reaches the storage engine layer of the database, activating the storage engine plug-in;
[0049] S520, calling the read function of the driver program through the storage engine plug-in;
[0050] S530: Decrypt the data read from the data file using the second dynamic key obtained from the security control center according to the decryption algorithm through the read function.
[0051] In the disclosed embodiment, if a data read request needs to access an encrypted file, after the data read request reaches the storage engine layer of the database via the service layer of the database, a storage engine plug-in for data security control loaded by the database can be activated. The storage engine plug-in can call the read function of the driver to activate the link between the driver and the security control center. The security control center can dynamically generate a second dynamic key based on a decryption algorithm. The data read from the encrypted data file can be decrypted using the second dynamic key based on the decryption algorithm.
[0052] For example, the storage engine plug-in is an encryption storage engine and the driver is an encryption driver. Figure 6, the function call example of the data reading process is as follows: according to the data writing request, the connection startup function (such as handle_connection), SQL parsing and optimization function (such as sq1_parse.cc: do_command), data reading SQL execution entry selection function (such as execute_sqlcom_select), execution data reading SQL function (such as do_select) (or data reading SQL execution function) can be called in sequence at the service layer of the database, and the instantiated data reading function entry (such as handler::ha_index_read_map) is called. Then, the read function of the encryption storage engine (such as ha_encrypt::index_read_map) is called at the storage engine layer. Then, the read function of the encryption file driver (such as encryptfile::index_read) is called in the encryption driver to query the encryption policy (such as encryptfile::policy). In this way, the encryption driver can obtain the corresponding key from the security control center according to the information of the decryption algorithm found to read and decrypt data.
[0053] The above function name examples are mainly for functions that can be used in the MySQL database. For other types of databases, the function names may be different according to their respective characteristics.
[0054] The disclosed embodiment can obtain the required dynamic key from the security control center through the write function of the storage engine plug-in driver, so the key does not need to be retained in the database, which can further improve data security.
[0055] In one embodiment, dynamically loading a storage engine plug-in for data security control in a database includes: dynamically loading the storage engine plug-in in the database through an application that has been adapted to the database. In the disclosed embodiment, a storage engine plug-in can be dynamically loaded in the database through an application that has been adapted to the database. The application may include applications with various functions developed in various languages, such as attendance programs, ERP programs, diagnostic expert system programs, and other applications with high data security requirements. In this way, the application does not need to be specially modified, it only needs to dynamically load the storage engine plug-in in the database, and the driver for data security control can be activated through the plug-in to achieve secure access to data, and there is no need to write a separate driver for the application to access encrypted files.
[0056] In one embodiment, the driver stores a security policy, and the security policy supports modification by the security control center. In the embodiment of the present disclosure, the storage engine plug-in can modify the security policy according to the security policy modification instruction information when receiving the security policy modification instruction information from the security control center. The modification method may include adding, deleting, and modifying specific items of a security policy. The security control center can flexibly adjust the security policy to meet more security control requirements.
[0057] In one embodiment, the method further includes: controlling access to the data file according to the security policy. The security policy can be used to control whether to allow access to the encrypted data file, filter out suspicious access requests, and improve data security.
[0058] In one embodiment, controlling access to the data file according to the security policy includes:
[0059] When the driver is activated according to the routing trigger condition in the security policy, the data access request is verified according to the security policy to control whether access to the data file is allowed based on the data access request.
[0060] In the disclosed embodiment, the data access request may be a data read request or a data write request. The storage engine plug-in or executable program may activate a driver for data security control. After the driver is activated, the security control information in the security policy may be compared with the relevant information of the data access request to determine whether the access request is allowed to access the encrypted data file. If allowed, data is read from the encrypted data file or encrypted data is written to the encrypted data file according to the access request. In this way, it is helpful to use the security policy to screen the access request for the encrypted data file, filter out suspicious access requests, and improve data security.
[0061] In one implementation, the security policy includes one or more of the following: security control number, routing trigger condition, entity relationship model name, action, time period, policy, key gateway. The routing trigger condition may include a network segment such as an IP address segment.
[0062] In the disclosed embodiment, the storage engine plug-in or executable program can activate a driver for data security control from a specific network segment. After the driver is activated, one or more security control information such as the entity relationship model name, action, time period, policy, key gateway, etc. under the network segment in the security policy can be compared with the entity relationship model name, action, time period, policy, key gateway related to the data access request, so as to determine whether to allow the access request to access the encrypted data file.
[0063] The above-mentioned executable program may include a program dedicated to reading and writing the encrypted file (data file) generated by the embodiment of the present disclosure through the above-mentioned driver. The executable program may be written for the above-mentioned driver.
[0064] The disclosed embodiment can flexibly determine whether to allow access to encrypted data files through various security control information in the security policy, filter out suspicious access requests, and improve data security.
[0065] In some application scenarios, the database can be a structure with storage and computing separated, divided into a computing service (server) layer and a storage engine layer. The solution of the embodiment of the present disclosure can implement data format conversion, data encryption and other processing at the storage engine layer through a new storage engine (storage engine plug-in), and store the encrypted data in a storage file of a unified format. The data file local to the storage engine does not retain the key. The key is the key dynamically obtained from the security center when the storage engine mounts the unified format data file. After the data is encrypted, it is stored in the data file in a binary format, and the application can be unaware of this. If the application triggers a suspicious policy (security policy), the storage engine layer can no longer provide a decryption function based on the new storage engine. Among them, the security policy can be set by the security center (also known as the security control center). The encrypted data file in a unified format can exist independently of the relational database, or it can be mounted on other relational databases that support the separation of storage and computing. The data file transmission method can be network transmission or offline transmission in a physical isolation method.
[0066] like Figure 2 As shown, the service (server) layer of the relational database can communicate with its own storage engine instance, convert the data format through the encryption storage engine (an example of a storage engine plug-in for data security control), and write the encrypted data into an encrypted file in a unified format.
[0067] An implementation example of an encrypted storage engine mounting an encrypted file driver (an example of a driver for data security control) is as follows:
[0068] For the implementation of the encryption driver for data writing, see Figure 4The function calling process shown in . After the database write stream passes through the service layer and reaches the storage engine layer, the instantiated data write function entry can be called to activate the encryption storage engine (encrypt). By calling the write function (write_row) of the encryption storage engine, the write function of the encryption file driver is called in the encryption driver. The write function can activate the link with the security control center and obtain the key from the security control center. And according to the encryption policy query function, the encryption policy can be found, and the database write stream can be encrypted using the encryption policy and the received key and then written into a data file in a unified format. The format of the data file can be obtained by calling the above-mentioned driver through the above-mentioned storage engine plug-in of the embodiment of the present disclosure, and the parsing and encapsulation of the file format can be controlled in the driver. For the data reading process, see Figure 6 And the related descriptions are not repeated here.
[0069] The driver can be accessed by the relational database through the storage engine, which facilitates the application's access to data. The application does not need to be specially modified to adapt to the encrypted file. In addition, the control of the key and storage interface can be dynamically regulated by the security control center. For example, an application that has been adapted to the MySQL database only needs to dynamically load the storage engine plug-in in the MySQL database. The storage engine (encrypt) plug-in developed by this solution implements data access through the encrypted file driver, and there is no need to write a separate driver to access the encrypted file.
[0070] An example of implementing a secure access policy is as follows:
[0071] The driver can store security policies that can be modified by the Security Control Center. The policy routing trigger conditions can be seen in the examples in the table below. For example, when the storage engine or executable program activates the driver from the 10.1.0.0 / 16 network segment (routing trigger condition), if the comdept table is accessed, the action is 0 for write, the time period is from 0:00 to 12:00, then access is allowed, and the gateway of the key is compay_dept. Among them, compay_dept is the identifier of the security center, and access is not allowed in other time periods.
[0072]
[0073] In the disclosed embodiment, the encryption algorithm and the decryption algorithm can be called by the driver, the encryption algorithm can be implemented in the driver, and the security control center can configure which algorithm to select. The data format is used when the storage engine accesses the encrypted file.
[0074] The data processing method of the disclosed embodiment may include a data encryption access method, which is suitable for data storage scenarios with particularly high security requirements. For example, users' personal information access records, confidential documents of departments, account and password data of key systems, etc. Because the possibility of cloud storage being attacked and accessed is very high, the solution based on the disclosed embodiment can improve the security of confidential data.
[0075] The data processing method of the present disclosure has one or more of the following characteristics:
[0076] 1. The key and encryption algorithm do not exist in the local log of the database, and the key data cannot be accessed through the standard file system.
[0077] 2. Data encryption can be achieved through a new storage engine plug-in loaded through the storage engine layer. Since the data format and decryption method are not public, the data format cannot be parsed through an open source storage engine. Examples of open source storage engines include: innodb, myisam, memory, etc. The codes of each storage engine are different, but the access method may be the same, such as writing by calling the write_row function. Innodb will write disk data, the memory storage engine will only write to memory, and myisam is a single transaction. In comparison, the storage engine plug-in of this solution directly activates the encrypted file driver, and the driver accesses the encrypted file.
[0078] 3. After the encrypted data file is dragged into the database, it is impossible to parse the data without the key, which can avoid the problem of data leakage after being dragged into the database.
[0079] 4. When the storage engine layer mounts data files, the mechanism linked with the security center will be activated, so that different data files can use different keys.
[0080] 5. The same data can be mounted by different types of databases. In this way, programs from different manufacturers and different development languages can access encrypted data after the key activation link by simply accessing the driver of the standard relational database.
[0081] 6. Data can be mounted online or offline, and the status of the file remains a black box to the relational database.
[0082] 7. When encrypted content is transmitted and accessed between different business systems, the data can always be kept in ciphertext state, thus avoiding data leakage caused by data transmission and conversion.
[0083] Providing this function in cloud computing overlay network products can enhance product security functions, provide more reliable security protection and options for user data, and increase product competitiveness. Adding this function to the underlying network products can increase the pass rate of security protection certification and protect core data.
[0084] Figure 7 is a schematic diagram of the structure of a data processing device 700 according to an embodiment of the present disclosure. The device may include:
[0085] A loading module 710 is used to dynamically load a storage engine plug-in for data security control in a database;
[0086] The security control module 720 is used to call a driver for data security control through the storage engine plug-in to perform security control on the data according to the dynamic key from the security control center.
[0087] In one embodiment, the security control module 720 is used to:
[0088] When the database write stream that needs to be encrypted reaches the storage engine layer of the database, activate the storage engine plug-in;
[0089] Call the driver's write function through the storage engine plug-in;
[0090] The database is written into the data file after being stream-encrypted by the first dynamic key obtained from the security control center according to the encryption algorithm through the writing function.
[0091] In one embodiment, the security control module 720 is used to:
[0092] When a data read request for reading an encrypted data file reaches the storage engine layer of the database, activating the storage engine plug-in;
[0093] Call the driver's read function through the storage engine plug-in;
[0094] The data read from the data file is decrypted by the read function according to the second dynamic key obtained from the security control center according to the decryption algorithm.
[0095] In one embodiment, the loading module is used to dynamically load the storage engine plug-in in the database through an application program that has been adapted to the database.
[0096] In one implementation, the driver stores a security policy, which can be modified by a security control center.
[0097] Figure 88 is a schematic diagram of a data processing device 800 according to another embodiment of the present disclosure, and the device may include one or more features of the above-mentioned data processing device. In one embodiment, the device further includes:
[0098] The access control module 810 is used to control the access to the data file according to the security policy.
[0099] In one embodiment, the access control module is used to verify the data access request according to the security policy when the driver is activated according to the routing trigger condition in the security policy, so as to control whether access to the data file is allowed based on the data access request.
[0100] In one implementation, the security policy includes one or more of the following: security control number, routing trigger condition, entity relationship model name, action, time period, policy, key gateway.
[0101] For the description of specific functions and examples of each module and submodule of the device in the embodiment of the present disclosure, reference can be made to the relevant description of the corresponding steps in the above method embodiment, which will not be repeated here.
[0102] In the technical solution disclosed herein, the acquisition, storage and application of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0103] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.
[0104] Fig. 9 A schematic block diagram of an example electronic device 900 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0105] like Fig. 9As shown, the device 900 includes a computing unit 901, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 902 or a computer program loaded from a storage unit 908 into a random access memory (RAM) 903. In the RAM 903, various programs and data required for the operation of the device 900 can also be stored. The computing unit 901, the ROM 902, and the RAM 903 are connected to each other via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.
[0106] A number of components in the device 900 are connected to the I / O interface 905, including: an input unit 906, such as a keyboard, a mouse, etc.; an output unit 907, such as various types of displays, speakers, etc.; a storage unit 908, such as a disk, an optical disk, etc.; and a communication unit 909, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 909 allows the device 900 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0107] The computing unit 901 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 901 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 901 performs the various methods and processes described above, such as the methods in the above embodiments. For example, the methods in some embodiments may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 908. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 900 via ROM 902 and / or communication unit 909. When the computer program is loaded into RAM 903 and executed by the computing unit 901, one or more steps of the method described above may be performed. Alternatively, in other embodiments, the computing unit 901 may be configured to perform the methods in the above embodiments in any other appropriate manner (e.g., by means of firmware).
[0108] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0109] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0110] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer 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 of the foregoing.
[0111] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0112] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0113] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.
[0114] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0115] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the principles of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. A data processing method, comprising: Dynamically load storage engine plug-ins for data security control in the database; The storage engine plug-in calls a driver for data security control to perform security control on the data according to a dynamic key from a security control center.
2. The method according to claim 1, wherein: The storage engine plug-in calls a driver for data security control to perform security control on the data according to a dynamic key from a security control center, including: When a database write stream that needs to be encrypted reaches the storage engine layer of the database, activating the storage engine plug-in; Calling the write function of the driver through the storage engine plug-in; The database is written into a data file after being stream-encrypted by the write function and then obtained from the security control center according to an encryption algorithm.
3. The method according to claim 1, wherein: The storage engine plug-in calls a driver for data security control to perform security control on the data according to a dynamic key from a security control center, including: When a data read request for reading an encrypted data file reaches the storage engine layer of the database, activating the storage engine plug-in; Calling a read function of the driver program through the storage engine plug-in; The data read from the data file is decrypted by the read function according to a second dynamic key obtained from the security control center according to a decryption algorithm.
4. The method according to any one of claims 1 to 3, wherein: Dynamically load storage engine plug-ins for data security control in the database, including: The storage engine plug-in is dynamically loaded in the database through an application program that has been adapted to the database.
5. The method according to any one of claims 1 to 4, wherein: The driver stores a security policy, and the security policy can be modified by a security control center.
6. The method according to claim 5, wherein: The method further comprises: Access to the data file is controlled according to the security policy.
7. The method according to claim 6, wherein: Controlling access to the data file according to the security policy includes: In the case where the driver is activated according to the routing trigger condition in the security policy, the data access request is verified according to the security policy to control whether access to the data file is allowed based on the data access request.
8. The method according to any one of claims 5 to 7, wherein: The security policy includes one or more of the following: security control number, routing trigger condition, entity relationship model name, action, time period, policy, key gateway.
9. A data processing device, comprising: Loading module, used to dynamically load storage engine plug-ins for data security control in the database; The security control module is used to call a driver for data security control through the storage engine plug-in to perform security control on the data according to the dynamic key from the security control center.
10. The device according to claim 9, wherein: The safety control module is used for: When a database write stream that needs to be encrypted reaches the storage engine layer of the database, activating the storage engine plug-in; Calling the write function of the driver through the storage engine plug-in; The database is written into a data file after being stream-encrypted by the write function and then obtained from the security control center according to an encryption algorithm.
11. The device according to claim 9, wherein: The safety control module is used for: When a data read request for reading an encrypted data file reaches the storage engine layer of the database, activating the storage engine plug-in; Calling a read function of the driver program through the storage engine plug-in; The data read from the data file is decrypted by the read function according to a second dynamic key obtained from the security control center according to a decryption algorithm.
12. The device according to any one of claims 9 to 11, wherein: The loading module is used to dynamically load the storage engine plug-in in the database through an application program that has been adapted to the database.
13. The device according to any one of claims 9 to 12, wherein: The driver stores a security policy, and the security policy can be modified by a security control center.
14. The device according to claim 13, wherein: The device also includes: An access control module is used to control access to data files according to the security policy.
15. The device according to claim 14, wherein: The access control module is used to verify the data access request according to the security policy when the driver is activated according to the routing trigger condition in the security policy, so as to control whether to allow access to the data file based on the data access request.
16. The device according to any one of claims 13 to 15, wherein: The security policy includes one or more of the following: security control number, routing trigger condition, entity relationship model name, action, time period, policy, key gateway.
17. An electronic device comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 8.
18. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-8.
19. A computer program product, comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Method for improving database security by utilizing a plug-in
CN109614819A
Database transparent encryption method
CN112711762A
Method and system for database to support SM4 algorithm
CN116738469A
Database transparent encryption method and device, equipment and storage medium
CN117113423A
Data encryption management system and data encryption method
CN118153081A
