Data volume encryption and decryption method and device, equipment, storage medium, computer program product and system

By injecting a monitoring container into the business container, it intercepts and encrypts and decrypts data volume operations in real time, solving the problem of dependence on storage vendors for encryption and decryption in the existing technology, enabling flexible security rules and encryption type expansion, and supporting arbitrary migration of data volumes.

CN118606969APending Publication Date: 2024-09-06中移信息技术有限公司 +1
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410710786.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-03
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

The existing volume data encryption and decryption methods mainly rely on storage device manufacturers and cloud storage manufacturers. Data is encrypted and decrypted at the bottom of the read-write device. As a result, not all storage manufacturers provide encryption solutions. The encryption algorithm cannot be customized and expanded. Volume migration and Backup is difficult and creates vendor dependence.

Method used

Inject the monitoring container into the Pod where the business container is located, and use the monitoring container to intercept and decrypt the read operations of the business container according to the data volume encryption and decryption configuration information, and intercept and encrypt the write operations to achieve encryption and decryption of the data volume, independent of storage devices and manufacturers. dependence.

Benefits of technology

It implements encrypted storage and volume decryption of data generated by containers in real time, and can use security rules that meet the requirements as needed. The algorithm can be expanded at will, making up for the lack of encryption types, and supporting arbitrary migration of encrypted volumes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118606969A
    Figure CN118606969A
Patent Text Reader

Abstract

The invention relates to the technical field of edge computing, and discloses a data volume encryption and decryption method, device and equipment, a storage medium and a computer program product and system.The method comprises the steps that a monitoring container is injected into a Pod where a service container is located; intercepting and decrypting the read operation of the service container according to the data volume encryption and decryption configuration information through the monitoring container, and intercepting and encrypting the write operation of the service container according to the data volume encryption and decryption configuration information through the monitoring container; according to the invention, the data volume is encrypted and decrypted from the aspects of how to encrypt and store the data generated by the container in real time and how to decrypt the data volume when the data volume is checked, so that the dependence on storage equipment and storage manufacturers can be completely eliminated, security rules meeting requirements can be used according to related needs, the algorithm can be randomly expanded, and the security is improved. And the condition that the current encryption type is insufficient is compensated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of edge computing technology, and in particular to a data volume encryption and decryption method, device, equipment, storage medium, computer program product and system. Background Art

[0002] Kubernetes is an open source application and infrastructure management system. Different from virtual machines, it uses Docker containers to manage the release, scheduling, and operation of applications across hosts in a cluster. Data storage is provided by mounting persistent volumes (PV). When some data security standards or industries or applications themselves require data security, data on PV volumes need to be encrypted at rest.

[0003] However, existing volume data encryption storage solutions mainly rely on storage device manufacturers and cloud storage manufacturers to encrypt and decrypt data at the bottom layer of the read-write device. Summary of the invention

[0004] The main purpose of the present invention is to provide a data volume encryption and decryption method, device, equipment, storage medium, computer program product and system, aiming to solve the technical problem that the existing volume data encryption and decryption method mainly relies on storage device manufacturers and cloud storage manufacturers to encrypt and decrypt data at the bottom layer of the read-write device.

[0005] To achieve the above object, the present invention provides a data volume encryption and decryption method, which is applied to a working node and includes:

[0006] Inject a monitoring container into the Pod where the business container is located. The monitoring container is pre-configured based on the data volume encryption and decryption configuration information sent by the management node;

[0007] The monitoring container intercepts and decrypts the read operation of the business container according to the data volume encryption and decryption configuration information, and the monitoring container intercepts and encrypts the write operation of the business container according to the data volume encryption and decryption configuration information.

[0008] Optionally, intercepting and decrypting a read operation of the business container according to the data volume encryption and decryption configuration information by the monitoring container, and intercepting and encrypting a write operation of the business container according to the data volume encryption and decryption configuration information by the monitoring container, includes:

[0009] Starting the monitoring container;

[0010] After the monitoring container is started, the read and write call interception function is started. After the read and write call interception function is started, the read and write calls of the business container are executed through the monitoring container, and the current volume path is initialized according to the data volume encryption and decryption configuration information. After the initialization is completed, the business container is started;

[0011] When the business container generates a read or write call and is intercepted by the monitoring container, the monitoring container intercepts and decrypts the read operation of the business container according to the data volume encryption and decryption configuration information, and the monitoring container intercepts and encrypts the write operation of the business container according to the data volume encryption and decryption configuration information.

[0012] Optionally, the initializing the current volume path according to the data volume encryption and decryption configuration information includes:

[0013] Read the loading path of the file storage mounted by the business container;

[0014] Determine whether the loading path is encrypted based on whether there is an encryption and decryption configuration file in the root directory of the loading path:

[0015] When the loading path is not encrypted, the data volume encryption and decryption configuration information block of the business container configuration is encrypted by the encryption algorithm and key required in the data volume encryption and decryption configuration information, and the public key defined in the information block is stored in plain text together with the encrypted block in the form of a file to the root path to complete the initialization.

[0016] Optionally, after determining whether the loading path is encrypted according to whether there is an encryption and decryption configuration file in the root directory of the loading path, the method further includes:

[0017] When the loading path is encrypted, the encryption and decryption configuration file is decrypted by using a system built-in private key to obtain a data volume encryption and decryption configuration information block;

[0018] Matching the data volume encryption and decryption configuration information block with the data volume encryption and decryption configuration information;

[0019] When the match fails, mounting is not allowed, and the interface service is notified to stop creating the business container, and an error message is returned to complete the initialization.

[0020] Optionally, the read operation includes a directory read operation and / or a file read operation, and intercepting and decrypting the read operation according to the data volume encryption and decryption configuration information by the monitoring container includes:

[0021] When the read operation is a directory read operation, obtaining an encrypted directory returned by the operating system according to the directory read operation, and recursively performing a directory decryption operation on the encrypted directory according to the encryption key in the data volume encryption and decryption configuration information through the monitoring container;

[0022] When the read operation is a file read operation, the file library is decrypted by the monitoring container according to the encryption key in the data volume encryption and decryption configuration information.

[0023] Optionally, the write operation includes at least one of creating a directory, creating a file, and writing file content, and the intercepting and encrypting the write operation according to the data volume encryption and decryption configuration information by the monitoring container includes:

[0024] When the write operation is to create a directory, the monitoring container encrypts the directory name according to the encryption key in the data volume encryption and decryption configuration information and then creates the directory, and determines whether to store the encryption and decryption configuration file under the newly created directory root according to the data volume encryption and decryption configuration information;

[0025] When the write operation is to create a file, the directory name is encrypted by the monitoring container according to the encryption key in the data volume encryption and decryption configuration information and then created;

[0026] When the write operation is to write file content, the cached file block content is not encrypted temporarily. Before being written to the disk, all cached file blocks are encrypted by the monitoring container according to the encryption key in the data volume encryption and decryption configuration information and then written to the disk.

[0027] In addition, to achieve the above purpose, the present invention also proposes a data volume encryption and decryption method, which is applied to a management node and includes:

[0028] Monitor interface service;

[0029] When monitoring the creation of a business resource containing encryption and decryption metadata, generate data volume encryption and decryption configuration information corresponding to the current business application according to the structure definition of the encryption and decryption metadata and the requirements for volume encryption and decryption in the business resource;

[0030] The data volume encryption and decryption configuration information is sent to the working node, so that the working node configures the monitoring container to encrypt and decrypt the read and write operations of the business container according to the data volume encryption and decryption configuration information.

[0031] In addition, to achieve the above-mentioned purpose, the present invention also proposes a data volume encryption and decryption device, which is applied to a working node and includes:

[0032] An injection module is used to inject a monitoring container into the Pod where the business container is located. The monitoring container is pre-configured based on the data volume encryption and decryption configuration information issued by the management node;

[0033] The encryption and decryption module is used to intercept and decrypt the read operation of the business container according to the data volume encryption and decryption configuration information through the monitoring container, and intercept and encrypt the write operation of the business container according to the data volume encryption and decryption configuration information through the monitoring container.

[0034] In addition, to achieve the above-mentioned purpose, the present invention further proposes a data volume encryption and decryption device, which is applied to a management node and includes:

[0035] Monitoring module, used to monitor interface services;

[0036] A generation module, configured to generate data volume encryption and decryption configuration information corresponding to the current business application according to the structure definition of the encryption and decryption metadata and the requirements for volume encryption and decryption in the business resource when a business resource containing encryption and decryption metadata is detected to be created;

[0037] The sending module is used to send the data volume encryption and decryption configuration information to the working node, so that the working node configures the monitoring container to encrypt and decrypt the read and write operations of the business container according to the data volume encryption and decryption configuration information.

[0038] In addition, to achieve the above-mentioned purpose, the present invention also proposes a data volume encryption and decryption device, which includes a memory, a processor, and a data volume encryption and decryption program stored in the memory and executable on the processor, and the data volume encryption and decryption program is configured to implement the data volume encryption and decryption method described above.

[0039] In addition, to achieve the above objectives, the present invention also proposes a storage medium, on which a data volume encryption and decryption program is stored, and when the data volume encryption and decryption program is executed by a processor, the data volume encryption and decryption method described above is implemented.

[0040] In addition, to achieve the above objectives, the present invention also provides a computer program product, which includes a data volume encryption and decryption program, and when the data volume encryption and decryption program is executed by a processor, it implements the data volume encryption and decryption method described above.

[0041] In addition, to achieve the above-mentioned purpose, the present invention also provides a data volume encryption and decryption system, the data volume encryption and decryption system comprising: a management node and a working node;

[0042] The management node is used to monitor the interface service; when monitoring the creation of a business resource containing encryption and decryption metadata, generate data volume encryption and decryption configuration information corresponding to the current business application according to the structure definition of the encryption and decryption metadata and the requirements for volume encryption and decryption in the business resource; and send the data volume encryption and decryption configuration information to the working node;

[0043] The working node is used to inject a monitoring container into the Pod where the business container is located; the monitoring container intercepts and decrypts the read operation of the business container according to the data volume encryption and decryption configuration information, and the monitoring container intercepts and encrypts the write operation of the business container according to the data volume encryption and decryption configuration information.

[0044] In the present invention, it is disclosed that a monitoring container is injected into the Pod where the business container is located; the read operation of the business container is intercepted and decrypted according to the data volume encryption and decryption configuration information by the monitoring container, and the write operation of the business container is intercepted and encrypted according to the data volume encryption and decryption configuration information by the monitoring container; because the present invention injects the monitoring container into the Pod where the business container is located, the read and write call operations of the business container on the underlying operating system are intercepted and decrypted in real time, thereby being able to encrypt and decrypt the data generated by the container in real time and how to decrypt when viewing the data volume, thereby being able to completely break away from the dependence on storage devices and storage manufacturers, and can use security rules that meet the requirements according to relevant needs, and the algorithm can be expanded at will, which makes up for the current situation where the encryption types are insufficient. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Figure 1 It is a structural diagram of a data volume encryption and decryption device in a hardware operating environment involved in an embodiment of the present invention;

[0046] Figure 2 This is a flow chart of a first embodiment of a method for encrypting and decrypting a data volume according to the present invention;

[0047] Figure 3 This is an overall architecture diagram of an embodiment of a method for encrypting and decrypting a data volume according to the present invention;

[0048] Figure 4 This is a flow chart of a second embodiment of a method for encrypting and decrypting a data volume according to the present invention;

[0049] Figure 5 This is an initialization flow chart of an embodiment of a method for encrypting and decrypting a data volume of the present invention;

[0050] Figure 6 This is a flow chart of a third embodiment of a method for encrypting and decrypting a data volume according to the present invention;

[0051] Figure 7 It is a structural block diagram of an embodiment of a data volume encryption and decryption device of the present invention;

[0052] Figure 8 It is a structural block diagram of another embodiment of the data volume encryption and decryption device of the present invention;

[0053] Fig. 9 It is a structural block diagram of an embodiment of a data volume encryption and decryption system of the present invention.

[0054] 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

[0055] 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.

[0056] Reference Figure 1 , Figure 1 The present invention is a schematic diagram of the data volume encryption and decryption device structure of the hardware operating environment involved in the embodiment of the present invention.

[0057] like Figure 1 As shown, the data volume encryption and decryption 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), and the user interface 1003 may also include a standard wired interface and a wireless interface. The wired interface of the user interface 1003 may be a USB interface in the present invention. 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 memory (Non-volatile Memory, NVM), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0058] Those skilled in the art will understand that Figure 1 The structure shown in does not constitute a limitation on the data volume encryption and decryption device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0059] like Figure 1 As shown, the memory 1005 identified as a computer storage medium may include an operating system, a network communication module, a user interface module, and a data volume encryption and decryption program.

[0060] exist Figure 1 In the data volume encryption and decryption device shown, the network interface 1004 is mainly used to connect to the background server and communicate data with the background server; the user interface 1003 is mainly used to connect to the user device; the data volume encryption and decryption device calls the data volume encryption and decryption program stored in the memory 1005 through the processor 1001, and executes the data volume encryption and decryption method provided by the embodiment of the present invention.

[0061] Based on the above hardware structure, an embodiment of the data volume encryption and decryption method of the present invention is proposed.

[0062] Reference Figure 2 , Figure 2 The figure is a flow chart of the first embodiment of the data volume encryption and decryption method of the present invention, and provides the first embodiment of the data volume encryption and decryption method of the present invention.

[0063] It should be understood that Kubernetes is an open source application and infrastructure management system. Different from virtual machines, it uses Docker containers to manage the release, scheduling, and operation of applications across hosts in the cluster. The storage of data is provided by mounting persistent volumes (PV). When some data security standards or industries or applications themselves require data security, the data on the PV volume needs to be encrypted at rest. The existing volume data encryption storage solution mainly relies on storage device manufacturers and cloud storage manufacturers to encrypt and decrypt data at the bottom of the read-write device, but there are four problems. The first problem is that not all storage manufacturers provide encryption solutions for PV volumes, especially some open source storage protocols (NFS) or technologies do not have such capabilities; the second problem is that only the encryption algorithms provided by the manufacturer can be used, which cannot be customized or expanded, limiting the encryption solution options; the third problem is that the algorithm types of different manufacturers are different and not universal, which makes it very difficult to migrate or backup volumes across manufacturers' devices; the fourth problem is that once the volume encryption technology of a specific manufacturer is used, it will inevitably become a manufacturer dependency.

[0064] The relevant technology is to monitor the encryption and decryption configuration through the MutatingAdmissionWebhook mechanism of Kubernetes, initialize the volume application that needs encryption and decryption; initialize the configuration of the encryption key to be used by the application volume through InitContainer and encrypt the disk.

[0065] Through the description of the above-mentioned related technologies, it can be known that the related technologies encrypt devices from two aspects: InitContainer and MutatingAdmissionWebhook. The related technologies solve the encryption and decryption of block storage devices, and mainly protect the interaction mechanism with Kubernetes. There is no statement on how to encrypt and store the data generated by the container in real time and how to decrypt and present it when viewing the PV volume. The present invention solves the problem that when mounting the file storage type PV, the application container writes data to the PV in real time, encrypts the data and stores it, and when the application container reads the PV data, it decrypts and returns it.

[0066] In a first embodiment, the data volume encryption and decryption method is applied to a working node, and the data volume encryption and decryption method includes:

[0067] Step S10: inject a monitoring container into the Pod where the business container is located, and the monitoring container is pre-configured based on the data volume encryption and decryption configuration information sent by the management node.

[0068] Step S20: intercepting and decrypting the read operation of the business container according to the data volume encryption and decryption configuration information through the monitoring container, and intercepting and encrypting the write operation of the business container according to the data volume encryption and decryption configuration information through the monitoring container.

[0069] For ease of understanding, refer to Figure 3 This is for illustration only, but not for limitation of the present invention. Figure 3 This is the overall architecture diagram of an embodiment of the data volume encryption and decryption method of the present invention. In the figure, the K8s cluster control plane corresponds to the management node, the Node corresponds to the working node, the white text box is the Kubernetes built-in component, and the gray text box is the dedicated component that needs to be protected provided by this technical solution to complete the PV volume encryption and decryption. The specific component functions are described as follows:

[0070] Encryption and decryption controller: It is a controller based on Kubernetes Operator technology, responsible for monitoring API Server and configuring encryption and decryption parameters.

[0071] Encryption and decryption metadata: Completely defines the various parameters and structures used in the encryption and decryption process. The specific structure is shown in Table 1 below:

[0072] Table 1

[0073]

[0074] Encryption and decryption processor: It is a DeamonSet container that receives the encryption and decryption configuration information of the business container and builds a monitoring container of the Sidecar type.

[0075] Monitoring container: intercepts all IO calls of the business container to the underlying operating system, and completes the actions of storing encrypted data on disk and returning decrypted data.

[0076] The overall processing flow of the data volume encryption and decryption method is as follows: Figure 3 There are 5 steps in total, which are described as follows:

[0077] 1. The encryption and decryption controller monitors the API Server (i.e., interface service);

[0078] 2. When a business resource containing encryption and decryption metadata is created, the encryption and decryption controller generates the PV volume encryption and decryption configuration information corresponding to the current business application according to the structure definition of the encryption and decryption metadata and the requirements for volume encryption and decryption in the business resource YAML (which is a specific instance of the encryption and decryption metadata structure, i.e., the data volume encryption and decryption configuration information), and sends the PV volume encryption and decryption configuration information to the encryption and decryption processor;

[0079] The following YAML is an example of a specific business application:

[0080]

[0081]

[0082] Figure 3 Create a Deployment and mount an NFS file storage volume with the mount path / root / nfs_rootpath. The volume encryption configuration information is stored in the disk-encrypation-metadata-1 annotation, which defines the encryption algorithm used for this path. For example, define the use of the public key in secret-1 to encrypt the PV volume encryption metadata configuration and use the DES algorithm to encrypt directories and files.

[0083] Figure 3 This is just to illustrate a method of building a business application. All YAML embodiments using the metadata structure and its meaning are within the protection scope of the present invention.

[0084] 3. After the encryption and decryption controller sends the container information and the PV volume encryption and decryption configuration information corresponding to the container to the encryption and decryption processor, the encryption and decryption processor will first find the Pod where the business application is located, generate a monitoring container through the Sidercar method, synchronize the PV volume encryption and decryption configuration information to the monitoring container, and start the container.

[0085] 4. After the monitoring container is started, the IO call interception function (i.e., the read and write call interception function) is immediately started, so that all IO calls of the business container must be executed through the monitoring container; at the same time, the current volume path is initialized according to the PV volume encryption and decryption configuration information, and the business container is started after the initialization is completed.

[0086] 5. When the business container generates an IO call and is intercepted by the monitoring container, the monitoring container intercepts and decrypts the read operation according to the PV volume encryption and decryption configuration information, and returns the directory or file data after completion; it intercepts and encrypts the write operation and then writes it to the disk.

[0087] Furthermore, in order to improve the security of write operations, in this embodiment, the write operation includes at least one of creating a directory, creating a file, and writing file content, and the write operation is intercepted and encrypted by the monitoring container according to the data volume encryption and decryption configuration information, including: when the write operation is to create a directory, the directory name is encrypted and created by the monitoring container according to the encryption key in the data volume encryption and decryption configuration information, and whether to store the encryption and decryption configuration file under the root of the newly created directory is determined according to the data volume encryption and decryption configuration information; when the write operation is to create a file, the directory name is encrypted and created by the monitoring container according to the encryption key in the data volume encryption and decryption configuration information; when the write operation is to write file content, the cached file block content is not encrypted temporarily, and all cached file blocks are encrypted by the monitoring container according to the encryption key in the data volume encryption and decryption configuration information before being stored on the disk.

[0088] For ease of understanding, the following examples are given, but the present invention is not limited thereto. In one example, the business container has multiple modes for writing IO: creating a directory, creating a file, and writing file content.

[0089] 1. Create a directory: intercept the IO commands for creating, updating, and deleting directories, and use the encryption key in the encryption and decryption configuration block (that is, the PV volume encryption and decryption configuration information). If a directory is created, the directory name is encrypted before creation, and at the same time, the information in the encryption and decryption configuration block is used to decide whether to store the encryption and decryption configuration file under the root of the new directory; for updates and deletions, the directory name is decrypted first, and then updated and deleted.

[0090] 2. Create a file: The creation of a file name is similar to the creation of a directory. The file name is encrypted and created, but there is no need to store the encryption and decryption configuration block.

[0091] 3. Write file content: For streaming file content, check whether the operating system cache mechanism is enabled and the cache block size. Do not encrypt the cached file block content for the time being. Before writing to disk, encrypt all cached file blocks using the encryption key configured in the encryption and decryption configuration block and then write them to disk.

[0092] Furthermore, in order to improve the security of read operations, the read operations include directory read operations and / or file read operations, and the read operations are intercepted and decrypted by the monitoring container according to the data volume encryption and decryption configuration information, including: when the read operation is a directory read operation, obtaining the encrypted directory returned by the operating system according to the directory read operation, and recursively performing a directory decryption operation on the encrypted directory according to the encryption key in the data volume encryption and decryption configuration information through the monitoring container; when the read operation is a file read operation, decrypting the file library through the monitoring container according to the encryption key in the data volume encryption and decryption configuration information.

[0093] For ease of understanding, the following examples are given, but the present invention is not limited thereto. In one example, the decryption process is the inverse operation of the encryption process, and there are also operations of reading directories and files.

[0094] 1. Directory read operation: When the directory io command of the business container is intercepted, the operating system is first executed to return the encrypted directory, file or the entire directory tree, and then the encryption key in the encryption and decryption configuration block is recursively used to perform directory decryption operations. After all are completed, the result is returned to the business container.

[0095] 2. File read operation: For each file block read operation of the business container, the encryption key in the encryption and decryption configuration block must be used to decrypt the file library, and then the decrypted data block is written to the cache.

[0096] The present invention provides encryption and decryption of storage volumes based on containers and has the following characteristics:

[0097] 1. By injecting a monitoring container into the Pod where the business container is located, the IO call of the business container to the underlying operating system can be intercepted in real time. If it is a write operation, the data or stream is encrypted and then stored on the disk. If it is a read operation, it is decrypted and returned to the container environment.

[0098] 2. The encryption and decryption technical solution is applied to the file storage type, and the directory name, file name, and file content are encrypted and decrypted, but the file directory structure is not encrypted and decrypted.

[0099] 3. The present invention uses asymmetric encryption technology to encrypt the metadata configuration information of the PV volume and save it to disk, and uses symmetric encryption technology to encrypt the directory name, file name, and file content.

[0100] 4. The PV volume encrypted by the present invention can be arbitrarily migrated and mounted by different containers.

[0101] 5. External applications can also use the public key and metadata structure of the present invention to encrypt the PV volume and then mount it to the business container.

[0102] Compared with the related technologies, the present invention has the following beneficial effects: first, it is completely independent of the dependence on storage devices and storage manufacturers, and can use security rules that meet the requirements according to relevant needs. The algorithm can be expanded at will, which makes up for the current shortage of encryption types. Secondly, it can provide arbitrary migration of encrypted volumes, because the volume encryption and decryption information is stored in each volume directory, and can be used directly when it is mounted again, without the restrictions of different storage devices and manufacturers.

[0103] In this embodiment, it is disclosed that a monitoring container is injected into the Pod where the business container is located, and the read operation of the business container is intercepted and decrypted according to the data volume encryption and decryption configuration information by the monitoring container, and the write operation of the business container is intercepted and encrypted according to the data volume encryption and decryption configuration information by the monitoring container; because this embodiment injects the monitoring container into the Pod where the business container is located, the read and write call operations of the business container on the underlying operating system are intercepted and decrypted in real time, thereby being able to encrypt and decrypt the data volume from the aspects of how to encrypt and store the data generated by the container in real time and how to decrypt when viewing the data volume, thereby being able to completely break away from the dependence on storage devices and storage manufacturers, and can use security rules that meet the requirements according to relevant needs, and the algorithm can be expanded at will, which makes up for the current lack of encryption types.

[0104] Reference Figure 4 , Figure 4 This is a flow chart of the second embodiment of the data volume encryption and decryption method of the present invention. Figure 2 The first embodiment shown provides a second embodiment of the data volume encryption and decryption method of the present invention.

[0105] In the second embodiment, the step S20 includes:

[0106] Step S201: Start the monitoring container.

[0107] Step S202: After the monitoring container is started, the read and write call interception function is started. After the read and write call interception function is started, the read and write calls of the business container are executed through the monitoring container, and the current volume path is initialized according to the data volume encryption and decryption configuration information. After the initialization is completed, the business container is started.

[0108] Step S203: When the business container generates a read or write call and is intercepted by the monitoring container, the monitoring container intercepts and decrypts the read operation of the business container according to the data volume encryption and decryption configuration information, and the monitoring container intercepts and encrypts the write operation of the business container according to the data volume encryption and decryption configuration information.

[0109] Furthermore, the initialization of the current volume path according to the data volume encryption and decryption configuration information includes: reading the loading path of the file storage mounted by the business container; judging whether the loading path is encrypted according to whether there is an encryption and decryption configuration file in the root directory of the loading path: when the loading path is not encrypted, encrypting the data volume encryption and decryption configuration information block configured by the business container through the encryption algorithm and key required in the data volume encryption and decryption configuration information, and storing the public key defined in the information block in plain text and the encrypted block in the root path in the form of a file to complete the initialization.

[0110] Furthermore, after determining whether the loading path is encrypted based on whether there is an encryption and decryption configuration file in the root directory of the loading path, the method further includes: when the loading path is encrypted, decrypting the encryption and decryption configuration file by using the system's built-in private key to obtain a data volume encryption and decryption configuration information block; matching the data volume encryption and decryption configuration information block with the data volume encryption and decryption configuration information; when the match fails, mounting is not allowed, and the interface service is notified to stop creating the business container, and an error message is returned to complete initialization.

[0111] It should be understood that in order to improve the reliability of data volume encryption and decryption, in this embodiment, when the monitoring container is started, the PV volume is first initialized.

[0112] For ease of understanding, refer to Figure 5 This is for illustration only, but not for limitation of the present invention. Figure 5 This is an initialization flow chart of an embodiment of the data volume encryption and decryption method of the present invention. In the figure, when the monitoring container is started, the PV volume will be initialized first. The specific initialization process is as follows:

[0113] 1. Determine the loading path: Read the loading path of the file storage mounted by the business container.

[0114] 2. Search for encryption and decryption configuration: This is used to determine whether the current loading path is encrypted. Therefore, search for encryption and decryption configuration files in the root directory of the current loading path.

[0115] 3. Initialize the PV volume encryption path: If no encryption and decryption configuration file is found, the directory is considered to be a non-encrypted directory. The PV encryption and decryption configuration information block configured in the business container is encrypted using the encryption algorithm and key required in the PV volume encryption and decryption configuration information. The public key defined in the information block is stored in plain text and in the root path together with the encryption block (encrypted file or data block) in the form of a file. After that, the initialization action is completed.

[0116] 4. Whether the files match: When there is an encryption and decryption configuration file, it indicates that the volume path has been encrypted. At this time, use the system's built-in private key to decrypt the encryption and decryption configuration file to obtain the PV encryption and decryption configuration information block. Compare this block with the encryption and decryption information configured in the business container. If they are exactly the same, it means that only the PV encrypted volume has been migrated. Return directly to complete the initialization.

[0117] 5. Terminate the business container startup: When step 4 determines that the PV volume encryption and decryption information block does not match the encryption and decryption information block configured in the business container, it means that the volume has been encrypted but the encryption method is different from the current one, and mounting is not allowed. The K8s API Server is notified to terminate the creation of the business container, and an error message is returned to complete the initialization.

[0118] In this embodiment, when the monitoring container is started, the PV volume is first initialized based on the loading path of the file storage mounted by the business container, thereby improving the reliability of data volume encryption and decryption.

[0119] In addition, refer to Figure 6 , Figure 6 The flowchart of the third embodiment of the data volume encryption and decryption method of the present invention is provided.

[0120] In a third embodiment, the data volume encryption and decryption method is applied to a management node, and the data volume encryption and decryption method includes:

[0121] Step S01: monitor interface services.

[0122] Step S02: when the creation of a business resource containing encryption and decryption metadata is detected, data volume encryption and decryption configuration information corresponding to the current business application is generated according to the structure definition of the encryption and decryption metadata and the requirements for volume encryption and decryption in the business resource.

[0123] Step S03: Send the data volume encryption and decryption configuration information to the working node, so that the working node configures the monitoring container to encrypt and decrypt the read and write operations of the business container according to the data volume encryption and decryption configuration information.

[0124] For ease of understanding, refer to Figure 3 This is for illustration only, but not for limitation of the present invention. Figure 3 This is the overall architecture diagram of an embodiment of the data volume encryption and decryption method of the present invention. In the figure, the K8s cluster control plane corresponds to the management node, the Node corresponds to the working node, the white text box is the Kubernetes built-in component, and the gray text box is the dedicated component that needs to be protected provided by this technical solution to complete the PV volume encryption and decryption. The specific component functions are described as follows:

[0125] Encryption and decryption controller: It is a controller based on Kubernetes Operator technology, responsible for monitoring API Server and configuring encryption and decryption parameters.

[0126] Encryption and decryption metadata: Completely defines the various parameters and structures used in the encryption and decryption process. The specific structure is shown in Table 1 below:

[0127] Table 1

[0128]

[0129]

[0130] Encryption and decryption processor: It is a DeamonSet container that receives the encryption and decryption configuration information of the business container and builds a monitoring container of the Sidecar type.

[0131] Monitoring container: intercepts all IO calls of the business container to the underlying operating system, and completes the actions of storing encrypted data on disk and returning decrypted data.

[0132] The overall processing flow of the data volume encryption and decryption method is as follows: Figure 3 There are 5 steps in total, which are described as follows:

[0133] 1. The encryption and decryption controller monitors the API Server (i.e., interface service);

[0134] 2. When a business resource containing encryption and decryption metadata is created, the encryption and decryption controller generates the PV volume encryption and decryption configuration information corresponding to the current business application according to the structure definition of the encryption and decryption metadata and the requirements for volume encryption and decryption in the business resource YAML (which is a specific instance of the encryption and decryption metadata structure, i.e., the data volume encryption and decryption configuration information), and sends the PV volume encryption and decryption configuration information to the encryption and decryption processor;

[0135] The following YAML is an example of a specific business application:

[0136]

[0137]

[0138] Figure 3Create a Deployment and mount an NFS file storage volume with the mount path / root / nfs_rootpath. The volume encryption configuration information is stored in the disk-encrypation-metadata-1 annotation, which defines the encryption algorithm used for this path. For example, define the use of the public key in secret-1 to encrypt the PV volume encryption metadata configuration and use the DES algorithm to encrypt directories and files.

[0139] Figure 3 This is just to illustrate a method of building a business application. All YAML embodiments using the metadata structure and its meaning are within the protection scope of the present invention.

[0140] 3. After the encryption and decryption controller sends the container information and the PV volume encryption and decryption configuration information corresponding to the container to the encryption and decryption processor, the encryption and decryption processor will first find the Pod where the business application is located, generate a monitoring container through the Sidercar method, synchronize the PV volume encryption and decryption configuration information to the monitoring container, and start the container.

[0141] 4. After the monitoring container is started, the IO call interception function (i.e., the read and write call interception function) is immediately started, so that all IO calls of the business container must be executed through the monitoring container; at the same time, the current volume path is initialized according to the PV volume encryption and decryption configuration information, and the business container is started after the initialization is completed.

[0142] 5. When the business container generates an IO call and is intercepted by the monitoring container, the monitoring container intercepts and decrypts the read operation according to the PV volume encryption and decryption configuration information, and returns the directory or file data after completion; it intercepts and encrypts the write operation and then writes it to the disk.

[0143] In this embodiment, a monitoring interface service is disclosed; when the creation of a business resource containing encryption and decryption metadata is monitored, data volume encryption and decryption configuration information corresponding to the current business application is generated according to the structural definition of the encryption and decryption metadata and the requirements for volume encryption and decryption in the business resource; the data volume encryption and decryption configuration information is sent to the working node, so that the working node configures the monitoring container to encrypt and decrypt the read and write operations of the business container according to the data volume encryption and decryption configuration information; because this embodiment injects a monitoring container into the Pod where the business container is located, the read and write call operations of the business container on the underlying operating system are intercepted and decrypted in real time, thereby being able to encrypt and decrypt the data volume from the aspects of how to encrypt and store the data generated by the container in real time and how to decrypt when viewing the data volume, thereby being able to completely break away from dependence on storage devices and storage manufacturers, and can use security rules that meet the requirements according to relevant needs, and the algorithm can be expanded at will, making up for the current lack of encryption types.

[0144] In addition, refer to Figure 7The embodiment of the present invention further provides a data volume encryption and decryption device, which is applied to a working node and includes:

[0145] The injection module 10 is used to inject a monitoring container into the Pod where the business container is located. The monitoring container is pre-configured based on the data volume encryption and decryption configuration information issued by the management node;

[0146] The encryption and decryption module 20 is used to intercept and decrypt the read operation of the business container according to the data volume encryption and decryption configuration information through the monitoring container, and intercept and encrypt the write operation of the business container according to the data volume encryption and decryption configuration information through the monitoring container.

[0147] In this embodiment, it is disclosed that a monitoring container is injected into the Pod where the business container is located; the read operation of the business container is intercepted and decrypted according to the data volume encryption and decryption configuration information by the monitoring container, and the write operation of the business container is intercepted and encrypted according to the data volume encryption and decryption configuration information by the monitoring container; because this embodiment injects the monitoring container into the Pod where the business container is located, the read and write call operations of the business container on the underlying operating system are intercepted and decrypted in real time, thereby being able to encrypt and decrypt the data volume from the aspects of how to encrypt and store the data generated by the container in real time and how to decrypt when viewing the data volume, thereby being able to completely break away from the dependence on storage devices and storage manufacturers, and can use security rules that meet the requirements according to relevant needs, and the algorithm can be expanded at will, which makes up for the current lack of encryption types.

[0148] In one embodiment, the encryption and decryption module 20 is also used to start the monitoring container; after the monitoring container is started, the read and write call interception function is started, and after the read and write call interception function is started, the read and write calls of the business container are executed through the monitoring container, and the current volume path is initialized according to the data volume encryption and decryption configuration information. After the initialization is completed, the business container is started; when the business container generates a read and write call and is intercepted by the monitoring container, the read operation of the business container is intercepted and decrypted according to the data volume encryption and decryption configuration information, and the write operation of the business container is intercepted and encrypted according to the data volume encryption and decryption configuration information by the monitoring container.

[0149] In one embodiment, the encryption and decryption module 20 is further used to read the loading path of the file storage mounted by the business container; determine whether the loading path is encrypted according to whether there is an encryption and decryption configuration file in the root directory of the loading path: when the loading path is not encrypted, encrypt the data volume encryption and decryption configuration information block configured by the business container through the encryption algorithm and key required in the data volume encryption and decryption configuration information, and store the public key defined in the information block in plain text and the encrypted block in the root path in the form of a file to complete initialization.

[0150] In one embodiment, the encryption and decryption module 20 is also used to decrypt the encryption and decryption configuration file by using the system's built-in private key when the loading path has been encrypted, to obtain a data volume encryption and decryption configuration information block; to match the data volume encryption and decryption configuration information block with the data volume encryption and decryption configuration information; when the match fails, mounting is not allowed, and the interface service is notified to stop the creation of the business container, and an error message is returned to complete the initialization.

[0151] In one embodiment, the read operation includes a directory read operation and / or a file read operation. The encryption / decryption module 20 is further used to, when the read operation is a directory read operation, obtain the encrypted directory returned by the operating system according to the directory read operation, and recursively perform a directory decryption operation on the encrypted directory according to the encryption key in the data volume encryption / decryption configuration information through the monitoring container; when the read operation is a file read operation, decrypt the file library through the monitoring container according to the encryption key in the data volume encryption / decryption configuration information.

[0152] In one embodiment, the write operation includes at least one of creating a directory, creating a file, and writing file content. The encryption and decryption module 20 is also used for, when the write operation is to create a directory, to encrypt the directory name according to the encryption key in the data volume encryption and decryption configuration information through the monitoring container and then create it, and to determine whether to store the encryption and decryption configuration file under the root of the newly created directory according to the data volume encryption and decryption configuration information; when the write operation is to create a file, to encrypt the directory name according to the encryption key in the data volume encryption and decryption configuration information through the monitoring container and then create it; when the write operation is to write file content, the cached file block content is not encrypted temporarily, and all cached file blocks are encrypted by the monitoring container according to the encryption key in the data volume encryption and decryption configuration information before being stored on the disk.

[0153] In addition, refer to Figure 8 The embodiment of the present invention further provides a data volume encryption and decryption device, which is applied to a management node and includes:

[0154] A monitoring module 10', used for monitoring interface services;

[0155] The generating module 20' is used to generate data volume encryption and decryption configuration information corresponding to the current business application according to the structure definition of the encryption and decryption metadata and the requirements for volume encryption and decryption in the business resource when monitoring the creation of a business resource containing encryption and decryption metadata;

[0156] The sending module 30' is used to send the data volume encryption and decryption configuration information to the working node, so that the working node configures the monitoring container to encrypt and decrypt the read and write operations of the business container according to the data volume encryption and decryption configuration information.

[0157] In this embodiment, a monitoring interface service is disclosed; when the creation of a business resource containing encryption and decryption metadata is monitored, data volume encryption and decryption configuration information corresponding to the current business application is generated according to the structural definition of the encryption and decryption metadata and the requirements for volume encryption and decryption in the business resource; the data volume encryption and decryption configuration information is sent to the working node, so that the working node configures the monitoring container to encrypt and decrypt the read and write operations of the business container according to the data volume encryption and decryption configuration information; because this embodiment injects a monitoring container into the Pod where the business container is located, the read and write call operations of the business container on the underlying operating system are intercepted and decrypted in real time, thereby being able to encrypt and decrypt the data volume from the aspects of how to encrypt and store the data generated by the container in real time and how to decrypt when viewing the data volume, thereby being able to completely break away from dependence on storage devices and storage manufacturers, and can use security rules that meet the requirements according to relevant needs, and the algorithm can be expanded at will, making up for the current lack of encryption types.

[0158] Other embodiments or specific implementations of the password-free login device of the present invention can refer to the above-mentioned method embodiments and will not be described in detail here.

[0159] In addition, an embodiment of the present invention further provides a storage medium, on which a data volume encryption and decryption program is stored. When the data volume encryption and decryption program is executed by a processor, the data volume encryption and decryption method described above is implemented.

[0160] In addition, an embodiment of the present invention further provides a computer program product, including a data volume encryption and decryption program, which implements the data volume encryption and decryption method described above when executed by a processor.

[0161] The specific implementation methods of the computer program product of the present invention are basically the same as the embodiments of the above-mentioned data volume encryption and decryption method, and will not be repeated here.

[0162] In addition, refer to Fig. 9 , an embodiment of the present invention further proposes a data volume encryption and decryption system, the data volume encryption and decryption system comprising: a management node 100 and a working node 200;

[0163] The management node 100 is used to monitor the interface service; when monitoring the creation of a business resource containing encryption and decryption metadata, it generates data volume encryption and decryption configuration information corresponding to the current business application according to the structure definition of the encryption and decryption metadata and the requirements for volume encryption and decryption in the business resource; and sends the data volume encryption and decryption configuration information to the working node;

[0164] The working node 200 is used to inject a monitoring container into the Pod where the business container is located; the monitoring container intercepts and decrypts the read operation of the business container according to the data volume encryption and decryption configuration information, and the monitoring container intercepts and encrypts the write operation of the business container according to the data volume encryption and decryption configuration information.

[0165] In this embodiment, a management node monitoring interface service is disclosed; when the creation of a business resource containing encryption and decryption metadata is monitored, data volume encryption and decryption configuration information corresponding to the current business application is generated according to the structural definition of the encryption and decryption metadata and the requirements for volume encryption and decryption in the business resource; the data volume encryption and decryption configuration information is sent to the working node; the working node injects a monitoring container into the Pod where the business container is located; the read operation of the business container is intercepted and decrypted by the monitoring container according to the data volume encryption and decryption configuration information, and the write operation of the business container is intercepted and encrypted by the monitoring container according to the data volume encryption and decryption configuration information; because this embodiment injects a monitoring container into the Pod where the business container is located, the read and write call operations of the business container to the underlying operating system are intercepted and decrypted in real time, thereby being able to encrypt and decrypt the data volume from the aspects of how to encrypt and store the data generated by the container in real time and how to decrypt when viewing the data volume, and thus being able to completely break away from the dependence on storage devices and storage manufacturers, and can use security rules that meet the requirements according to relevant needs, and the algorithm can be expanded at will, making up for the current lack of encryption types.

[0166] 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.

[0167] 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.

[0168] 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 can also be implemented 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 is essentially 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 image (ROM) / random access memory (RAM), 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.

[0169] 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 data volume encryption and decryption method, characterized in that: The data volume encryption and decryption method is applied to a working node, and the data volume encryption and decryption method includes: Inject a monitoring container into the Pod where the business container is located. The monitoring container is pre-configured based on the data volume encryption and decryption configuration information sent by the management node; The monitoring container intercepts and decrypts the read operation of the business container according to the data volume encryption and decryption configuration information, and the monitoring container intercepts and encrypts the write operation of the business container according to the data volume encryption and decryption configuration information.

2. The data volume encryption and decryption method according to claim 1, characterized in that: The intercepting and decrypting the read operation of the business container according to the data volume encryption and decryption configuration information by the monitoring container, and intercepting and encrypting the write operation of the business container according to the data volume encryption and decryption configuration information by the monitoring container, includes: Starting the monitoring container; After the monitoring container is started, the read and write call interception function is started. After the read and write call interception function is started, the read and write calls of the business container are executed through the monitoring container, and the current volume path is initialized according to the data volume encryption and decryption configuration information. After the initialization is completed, the business container is started; When the business container generates a read or write call and is intercepted by the monitoring container, the monitoring container intercepts and decrypts the read operation of the business container according to the data volume encryption and decryption configuration information, and the monitoring container intercepts and encrypts the write operation of the business container according to the data volume encryption and decryption configuration information.

3. The data volume encryption and decryption method according to claim 2, characterized in that: Initializing the current volume path according to the data volume encryption and decryption configuration information includes: Read the loading path of the file storage mounted by the business container; Determine whether the loading path is encrypted based on whether there is an encryption and decryption configuration file in the root directory of the loading path: When the loading path is not encrypted, the data volume encryption and decryption configuration information block of the business container configuration is encrypted by the encryption algorithm and key required in the data volume encryption and decryption configuration information, and the public key defined in the information block is stored in plain text together with the encrypted block in the form of a file to the root path to complete the initialization.

4. The data volume encryption and decryption method according to claim 3, characterized in that: After determining whether the loading path is encrypted according to whether there is an encryption and decryption configuration file in the root directory of the loading path, the method further includes: When the loading path is encrypted, the encryption and decryption configuration file is decrypted by using a system built-in private key to obtain a data volume encryption and decryption configuration information block; Matching the data volume encryption and decryption configuration information block with the data volume encryption and decryption configuration information; When the match fails, mounting is not allowed, and the interface service is notified to stop creating the business container, and an error message is returned to complete the initialization.

5. The data volume encryption and decryption method according to any one of claims 1 to 4, characterized in that: The read operation includes a directory read operation and / or a file read operation, and the intercepting and decrypting the read operation according to the data volume encryption and decryption configuration information by the monitoring container includes: When the read operation is a directory read operation, obtaining an encrypted directory returned by the operating system according to the directory read operation, and recursively performing a directory decryption operation on the encrypted directory according to the encryption key in the data volume encryption and decryption configuration information through the monitoring container; When the read operation is a file read operation, the file library is decrypted by the monitoring container according to the encryption key in the data volume encryption and decryption configuration information.

6. The data volume encryption and decryption method according to any one of claims 1 to 4, characterized in that: The write operation includes at least one of creating a directory, creating a file, and writing file content, and intercepting and encrypting the write operation according to the data volume encryption and decryption configuration information by the monitoring container includes: When the write operation is to create a directory, the monitoring container encrypts the directory name according to the encryption key in the data volume encryption and decryption configuration information and then creates the directory, and determines whether to store the encryption and decryption configuration file under the newly created directory root according to the data volume encryption and decryption configuration information; When the write operation is to create a file, the directory name is encrypted by the monitoring container according to the encryption key in the data volume encryption and decryption configuration information and then created; When the write operation is to write file content, the cached file block content is not encrypted temporarily. Before being written to the disk, all cached file blocks are encrypted by the monitoring container according to the encryption key in the data volume encryption and decryption configuration information and then written to the disk.

7. A data volume encryption and decryption method, characterized in that: The data volume encryption and decryption method is applied to a management node, and the data volume encryption and decryption method includes: Monitor interface service; When monitoring the creation of a business resource containing encryption and decryption metadata, generate data volume encryption and decryption configuration information corresponding to the current business application according to the structure definition of the encryption and decryption metadata and the requirements for volume encryption and decryption in the business resource; The data volume encryption and decryption configuration information is sent to the working node, so that the working node configures the monitoring container to encrypt and decrypt the read and write operations of the business container according to the data volume encryption and decryption configuration information.

8. A data volume encryption and decryption device, characterized in that: The data volume encryption and decryption device is applied to a working node, and the data volume encryption and decryption device includes: An injection module is used to inject a monitoring container into the Pod where the business container is located. The monitoring container is pre-configured based on the data volume encryption and decryption configuration information issued by the management node; The encryption and decryption module is used to intercept and decrypt the read operation of the business container according to the data volume encryption and decryption configuration information through the monitoring container, and intercept and encrypt the write operation of the business container according to the data volume encryption and decryption configuration information through the monitoring container.

9. A data volume encryption and decryption device, characterized in that: The data volume encryption and decryption device is applied to the management node, and the data volume encryption and decryption device includes: Monitoring module, used to monitor interface services; A generation module, configured to generate data volume encryption and decryption configuration information corresponding to the current business application according to the structure definition of the encryption and decryption metadata and the requirements for volume encryption and decryption in the business resource when a business resource containing encryption and decryption metadata is detected to be created; The sending module is used to send the data volume encryption and decryption configuration information to the working node, so that the working node configures the monitoring container to encrypt and decrypt the read and write operations of the business container according to the data volume encryption and decryption configuration information.

10. A data volume encryption and decryption device, characterized in that: The data volume encryption and decryption device includes: a memory, a processor, and a data volume encryption and decryption program stored in the memory and executable on the processor. When the data volume encryption and decryption program is executed by the processor, the data volume encryption and decryption method according to any one of claims 1 to 6 or 7 is implemented.

11. A storage medium, characterized in that: The storage medium stores a data volume encryption and decryption program, which, when executed by a processor, implements the data volume encryption and decryption method according to any one of claims 1 to 6 or 7.

12. A computer program product, characterized in that The computer program product includes a data volume encryption and decryption program, and when the data volume encryption and decryption program is executed by a processor, the data volume encryption and decryption method according to any one of claims 1 to 6 or 7 is implemented.

13. A data volume encryption and decryption system, characterized in that: The data volume encryption and decryption system includes: a management node and a working node; The management node is used to monitor the interface service; when monitoring the creation of a business resource containing encryption and decryption metadata, generate data volume encryption and decryption configuration information corresponding to the current business application according to the structure definition of the encryption and decryption metadata and the requirements for volume encryption and decryption in the business resource; and send the data volume encryption and decryption configuration information to the working node; The working node is used to inject a monitoring container into the Pod where the business container is located; the monitoring container intercepts and decrypts the read operation of the business container according to the data volume encryption and decryption configuration information, and the monitoring container intercepts and encrypts the write operation of the business container according to the data volume encryption and decryption configuration information.

Citation Information

Cited By

  • Container data persistent encryption storage method and system in network composer

    CN118886038A