Container mirror image processing method and device, electronic equipment and computer program product

By signing and verifying container images in the field of platform privatization deployment, the problem of low security of container images is solved, and effective protection of container images and improvement of platform security is achieved.

CN119065796AInactive Publication Date: 2024-12-03ALIBABA CLOUD COMPUTING CO LTD

Patent Information

Application Number
CN202411561717.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-04
Publication Date
2024-12-03
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the field of platform privatization deployment, there is a lack of integrity protection methods for container images output by the platform, resulting in relatively low security of container images.

Method used

The target engine pulls, verifies and deploys the deployed container image and its signature information, and uses hashing algorithms and key pairs to sign and decrypt, ensuring the integrity and security of the container image.

Benefits of technology

It improves the security of container images, blocks the operation of untrusted container images, reduces the platform's stability and security risks, and realizes effective protection of container images.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119065796A_ABST
    Figure CN119065796A_ABST
Patent Text Reader

Abstract

The invention discloses a container mirror image processing method and device, electronic equipment and a computer program product, and relates to the technical field of data security, and the method comprises the steps: pulling a to-be-deployed container mirror image and signature information corresponding to the container mirror image into a virtual environment through a target engine in the virtual environment corresponding to a target object; and verifying the container mirror image based on the signature information through the target engine, and deploying the container mirror image in the virtual environment through the target engine under the condition that the verification is passed. According to the method and the device, the technical problem that the security of the container mirror image is relatively low due to the lack of an integrity protection method for the container mirror image output by the platform in the field of platform privatization deployment is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data security technology, and more specifically, to a method and device for processing a container image, an electronic device, and a computer program product. Background Art

[0002] In the field of platform privatization deployment, the construction of private cloud involves not only product development, but also operation and maintenance, customers and other parties. The entire link cannot ensure that the server is not contaminated, and the container itself does not provide a complete isolation method. How to provide integrity protection for trusted container products in the private cloud privatization output scenario is crucial.

[0003] With regard to the problem that the above-mentioned related technologies lack an integrity protection method for the container images output by the platform in the field of platform privatization deployment, resulting in relatively low security of the container images, no effective solution has been proposed yet. Summary of the invention

[0004] The embodiments of the present application provide a method and device for processing a container image, an electronic device, and a computer program product, so as to at least solve the technical problem that in the field of platform privatization deployment, there is a lack of an integrity protection method for the container image output by the platform, resulting in relatively low security of the container image.

[0005] According to one aspect of an embodiment of the present application, a method for processing a container image is provided, comprising: pulling the container image to be deployed and the signature information corresponding to the container image into the virtual environment corresponding to the target object through a target engine in the virtual environment; verifying the container image based on the signature information through the target engine, and deploying the container image in the virtual environment through the target engine if the verification passes, wherein a private platform of the target object is constructed by deploying the container image.

[0006] Furthermore, before pulling the container image to be deployed and the signature information corresponding to the container image into the virtual environment through the target engine in the virtual environment corresponding to the target object, the method also includes: signing the container image through the target tool to obtain the signature information; and storing the container image and the signature information in the target area.

[0007] Furthermore, signing the container image through the target tool to obtain the signature information includes: generating a key pair through the target tool; and signing the container image through the target tool based on the private key in the key pair and the attribute information of the container image to obtain the signature information.

[0008] Furthermore, before storing the container image and the signature information in the target area, the method also includes: performing a hash change on the container image through a hash algorithm to obtain a signature tag; establishing a corresponding relationship between the signature tag and the signature information to pull the signature information corresponding to the container image from the target area based on the corresponding relationship.

[0009] Furthermore, verifying the container image based on the signature information through the target engine includes: obtaining a public key in a key pair generated by the target tool through the target engine; decrypting the signature information according to the public key to obtain decrypted signature information; and verifying the container image based on the decrypted signature information.

[0010] Furthermore, before signing the container image to be deployed through the target tool to obtain the signature information, the method also includes: obtaining the container deployment task initiated by the target object through the management and control platform; pulling the container image to be deployed from the target database through the management and control platform according to the container deployment task, so as to sign the container image through the target tool, wherein the target database is a database of an object that provides platform services for the target object.

[0011] Furthermore, after the container image is deployed in the virtual environment through the target engine, the method also includes: sending a service interaction protocol to the target engine through an operation and maintenance platform to establish interaction between the operation and maintenance platform and the target engine, wherein the target object sends a control policy for the container image in the virtual environment to the target engine through the operation and maintenance platform.

[0012] Furthermore, after establishing the interaction between the operation and maintenance platform and the target engine, the method also includes: receiving, through the target engine, a control policy for the container image configured by the target object issued by the operation and maintenance platform; performing security verification on the running container image in the virtual environment through the target engine to obtain a verification result; and processing the running container image through the target engine according to the verification result and the control policy.

[0013] Furthermore, after performing security verification on the running container image in the virtual environment through the target engine and obtaining the verification result, the method also includes: displaying the verification result to the target object through the operation and maintenance platform; when it is detected that the verification result indicates that there is an abnormality in the target container image, displaying the container instance associated with the target container image to the target object through the operation and maintenance platform.

[0014] According to another aspect of an embodiment of the present application, a container image processing device is also provided, including: a first pulling unit, used to pull the container image to be deployed and the signature information corresponding to the container image into the virtual environment corresponding to the target object through a target engine in the virtual environment; a first verification unit, used to verify the container image based on the signature information through the target engine, and if the verification passes, deploy the container image in the virtual environment through the target engine, wherein a private platform of the target object is constructed by deploying the container image.

[0015] Furthermore, the device also includes: a signing unit, used to sign the container image through a target tool to obtain the signature information; and a storage unit, used to store the container image and the signature information in a target area.

[0016] Furthermore, the signature unit includes: a generation module, used to generate a key pair through the target tool; a signature module, used to sign the container image based on the private key in the key pair and the attribute information of the container image through the target tool to obtain the signature information.

[0017] Furthermore, the device also includes: a first processing unit, used to hash the container image through a hash algorithm to obtain a signature tag before storing the container image and the signature information in the target area; an establishment unit, used to establish a correspondence between the signature tag and the signature information, so as to pull the signature information corresponding to the container image from the target area based on the correspondence.

[0018] Furthermore, the first verification unit includes: an acquisition module, used to obtain a public key in the key pair generated by the target tool through the target engine; a processing module, used to decrypt the signature information according to the public key to obtain the decrypted signature information; and a verification module, used to verify the container image based on the decrypted signature information.

[0019] Furthermore, the device also includes: an acquisition unit, which is used to sign the container image to be deployed through the target tool and obtain the signature information before acquiring the container deployment task initiated by the target object through the management and control platform; a second pulling unit, which is used to pull the container image to be deployed from the target database through the management and control platform according to the container deployment task, so as to sign the container image through the target tool, wherein the target database is a database of an object that provides platform services for the target object.

[0020] Furthermore, the device also includes: a sending unit, which is used to send a service interaction protocol to the target engine through an operation and maintenance platform after the container image is deployed in the virtual environment through the target engine, so as to establish interaction between the operation and maintenance platform and the target engine, wherein the target object sends the control policy of the container image in the virtual environment to the target engine through the operation and maintenance platform.

[0021] Furthermore, the device also includes: a receiving unit, which is used to receive, through the target engine, a control policy of the container image configured for the target object issued by the operation and maintenance platform after establishing the interaction between the operation and maintenance platform and the target engine; a second verification unit, which is used to perform security verification on the running container image in the virtual environment through the target engine to obtain a verification result; and a second processing unit, which is used to process the running container image through the target engine according to the verification result and the control policy.

[0022] Furthermore, the device also includes: a first display unit, which is used to perform security verification on the running container image in the virtual environment through the target engine, and after obtaining the verification result, display the verification result to the target object through the operation and maintenance platform; a second display unit is used to display the container instance associated with the target container image to the target object through the operation and maintenance platform when it is detected that the verification result indicates that there is an abnormality in the target container image.

[0023] According to another aspect of an embodiment of the present invention, there is further provided an electronic device, comprising a memory storing an executable program; and a processor for running the program, wherein the program executes any one of the above-mentioned data processing methods when running.

[0024] According to another aspect of an embodiment of the present invention, a computer program product is further provided. The computer program product includes a stored computer program. When the computer program is executed by a processor, the data processing method described in any one of the above items is implemented.

[0025] In the embodiments of the present application, a method of signing a container image is adopted, and the container image is verified by a target engine based on the signature information. When the verification passes, the container image is deployed in a virtual environment by the target engine, thereby achieving the purpose of improving the security of the container image. In addition, by verifying the signature of the container image, it is possible to effectively block the operation of untrusted container images on the platform, reducing the stability and security risks of the platform, thereby achieving the technical effect of improving the security of the platform, and further solving the technical problem of the lack of integrity protection methods for container images output by the platform in the field of platform privatization deployment, resulting in relatively low security of container images. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0027] Figure 1 is a hardware structure block diagram of a computer terminal provided according to Embodiment 1 of the present application;

[0028] Figure 2 is a flowchart of a method for processing a container image according to Embodiment 1 of the present application;

[0029] Figure 3 This is a schematic diagram of a method for processing a container image according to the first embodiment of the present application. Figure 1 ;

[0030] Figure 4 This is a schematic diagram of a method for processing a container image according to the first embodiment of the present application. Figure 2 ;

[0031] Figure 5 is a schematic diagram of the interaction between the operation and maintenance platform and the target engine provided according to the first embodiment of the present application;

[0032] Figure 6 This is a schematic diagram of a method for processing a container image according to the first embodiment of the present application. Figure 3 ;

[0033] Figure 7 This is a schematic diagram of a method for processing a container image according to the first embodiment of the present application. Figure 4 ;

[0034] Figure 8 This is a schematic diagram of a method for processing a container image according to the first embodiment of the present application. Figure 5 ;

[0035] Fig. 9 is a schematic diagram of a container image processing device provided according to Embodiment 2 of the present application;

[0036] Fig.10 It is a structural block diagram of an electronic device provided according to Embodiment 3 of the present application. DETAILED DESCRIPTION

[0037] In order to enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this application.

[0038] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0039] First, some nouns or terms that appear in the description of the embodiments of the present application are subject to the following explanations:

[0040] Container image: A lightweight, executable, standalone software package that contains all the code, libraries, dependencies, and configuration files needed to run an application.

[0041] Image repository: A repository used to store and manage software images, usually used for automated deployment and expansion.

[0042] cosign: is a tool for signing and verifying container images, designed to ensure the integrity and security of container images.

[0043] OCI registry: refers to a container image repository that complies with the Open Container Initiative (OCI) specification.

[0044] Dockerd: It is the Docker daemon, responsible for managing the life cycle of Docker containers. It is one of the core components of the Docker platform and handles all operations related to containers, images, networks, and storage.

[0045] Containerd: An open source container management tool that aims to provide an efficient runtime environment for managing the life cycle of containers.

[0046] CICD: Continuous Integration and Continuous Delivery is a software development process used to automate software delivery and deployment. In this article, it refers to the software development process management software used within the private cloud.

[0047] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards in the relevant regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0048] Example 1

[0049] According to an embodiment of the present application, a method for processing a container image is also provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0050] The method embodiment provided in the first embodiment of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Figure 1 The hardware structure block diagram of a computer terminal (or mobile device) for implementing a container image processing method is shown. Figure 1 As shown, the computer terminal (or mobile device) 10 may include a processor set 102 (the processor set 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA, and the processor set 102 may include a processor set, Figure 1 102a, 102b, ..., 102n are used to illustrate), a memory 104 for storing data, and a transmission module 106 for communication functions. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the BUS bus), a network interface, a power supply and / or a camera. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.

[0051] It should be noted that the one or more processors 102 and / or other data processing circuits described above may generally be referred to herein as "data processing circuits". The data processing circuits may be embodied in whole or in part as software, hardware, firmware, or any other combination thereof. In addition, the data processing circuit may be a single independent processing module, or may be incorporated in whole or in part into any of the other components in the computer terminal 10 (or mobile device). As involved in the embodiments of the present application, the data processing circuit acts as a processor control (e.g., selection of a variable resistor terminal path connected to an interface).

[0052] The memory 104 can be used to store software programs and modules of application software, such as program instructions / data storage devices corresponding to the method for processing container images in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, that is, the processing method for the container image described above is realized. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the computer terminal 10 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0053] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the computer terminal 10. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0054] The display may be a touch screen type liquid crystal display, which may enable a user to interact with a user interface of the computer terminal 10 (or mobile device).

[0055] Under the above operating environment, this application provides Figure 2 How to handle container images shown. Figure 2 1 is a flowchart of a method for processing a container image according to Embodiment 1 of the present application. The method for processing a container image includes:

[0056] Step S201: Pull the container image to be deployed and the signature information corresponding to the container image into the virtual environment through the target engine in the virtual environment corresponding to the target object.

[0057] Optionally, in the field of platform private deployment, the user (target object) purchases the corresponding cloud service through the supplier, and the supplier fully privately outputs the container image for the user to provide the user with a private platform. When building a private platform for the user, in order to prevent the container image from being contaminated, the target engine in the user's corresponding virtual environment pulls the container image to be deployed and the signature information corresponding to the container image from the target area to the virtual environment.

[0058] It should be noted that the container image can be signed when it leaves the factory, and the above-mentioned signature information can carry the version attribute of the container image and the product customization information of the container image. The product customization information can be some information set by the user for the container image according to the needs, such as custom naming, etc.

[0059] It should be noted that the above-mentioned target engine implements the Dockerd and Containerd standard interfaces, that is, the target engine can process Docker's container images and Container's container images.

[0060] Step S202, verifying the container image based on the signature information through the target engine, and deploying the container image in the virtual environment through the target engine if the verification passes, wherein a private platform of the target object is constructed by deploying the container image.

[0061] Optionally, after the container image to be deployed and the signature information corresponding to the container image are pulled into the virtual environment, the target engine verifies the container image based on the signature information, and if the verification passes, the container image is deployed in the virtual environment through the target engine, thereby obtaining a private platform of the target object. For example, the target engine decrypts the signature information based on an asymmetric encryption algorithm to obtain the decrypted version attribute, and verifies the consistency between the decrypted version attribute and the original version attribute corresponding to the container image. If they are consistent, the verification passes, and if they are inconsistent, the verification fails.

[0062] It should be noted that you can set management and control policies as needed to intercept or release container images that fail verification.

[0063] It should be noted that the above-mentioned private platform refers to a platform-level software product, such as a cloud platform. In scenarios where software privatization has platform capabilities, the container image processing method provided in the embodiment of the present application can be used to obtain the user's private platform.

[0064] To summarize, by signing the container image, the target engine verifies the container image based on the signature information, and deploys the container image in a virtual environment through the target engine when the verification passes, the purpose of improving the security of the container image is achieved. In addition, by verifying the signature of the container image, it is possible to effectively block the operation of untrusted container images on the platform, reduce the stability and security risks of the platform, and thus achieve the technical effect of improving the security of the platform, thereby solving the technical problem of the lack of integrity protection methods for container images output by the platform in the field of platform privatization deployment, resulting in relatively low security of container images.

[0065] In order to improve the security of container images, in the container image processing method provided in the first embodiment of the present application, before the container image to be deployed and the signature information corresponding to the container image are pulled into the virtual environment through the target engine in the virtual environment corresponding to the target object, the method also includes: signing the container image through the target tool to obtain the signature information; and storing the container image and the signature information in the target area.

[0066] When building a private platform for users, in order to prevent the container image from being contaminated, the target tool can be used to sign the full privatized output container image in the CICD process. That is, when the container image is shipped from the supplier's image warehouse, the target tool is used to sign the container image, obtain the corresponding signature information, and store the container image and signature information in the target area. For example, the version attribute of the container image can be asymmetrically encrypted by the target tool, and the encrypted information can be used as the signature information of the container image. By signing the container image when it is shipped, the integrity of the container image can be effectively guaranteed.

[0067] It should be noted that the above-mentioned signature information may carry the version attributes of the container image and the product customization information of the container image. The product customization information may be some information set by the user for the container image according to the needs, such as a customized name.

[0068] It should be noted that the above-mentioned target tool can be an open source container image signature scheme cosign, through which the integrity and security of the container image can be ensured.

[0069] It should be noted that the above target area can be the provider's OCI registry or the user's local registry.

[0070] In order to improve the security of the container image, in the container image processing method provided in the first embodiment of the present application, the container image is signed by a target tool to obtain the signature information, including: generating a key pair by the target tool; signing the container image by the target tool based on the private key in the key pair and the attribute information of the container image to obtain the signature information.

[0071] Optionally, signing the container image by the target tool includes: generating a key pair by the target tool, the key pair consisting of a private key and a public key, and then signing the container image by the private key in the key pair and the attribute information of the container image. It should be noted that the attribute information of the container image may include version attributes and product customization information of the container image.

[0072] After obtaining the above container image and signature information, you can save it in the OCI image repository or save it in the user's local computer in the form of a file.

[0073] By signing the container image when it is released from the warehouse, the integrity of the container image can be effectively guaranteed.

[0074] In order to ensure that the corresponding signature information can be accurately pulled when pulling the container image, in the container image processing method provided in the first embodiment of the present application, before storing the container image and the signature information in the target area, the method also includes: hashing the container image through a hash algorithm to obtain a signature tag; establishing a corresponding relationship between the signature tag and the signature information, so as to pull the signature information corresponding to the container image from the target area based on the corresponding relationship.

[0075] Optionally, before storing the container image and signature information in the target area, the container image can be hashed using the sha256 hash algorithm, thereby obtaining the sha256 signature tag of the container image. Then, a corresponding relationship between the signature tag and the signature information is established to pull the signature information corresponding to the container image from the target area based on the corresponding relationship. That is, the signature information can be accurately pulled when pulling the container image by using the sha256 signature tag indexed by the container image.

[0076] How to verify the signature of the container image is crucial. In the container image processing method provided in the first embodiment of the present application, verifying the container image based on the signature information through the target engine includes: obtaining the public key in the key pair generated by the target tool through the target engine; decrypting the signature information according to the public key to obtain the decrypted signature information; and verifying the container image based on the decrypted signature information.

[0077] Optionally, the public key in the key pair generated by the target tool is sent to the target engine, and the container runtime in the target engine decrypts the signature information according to the public key, and then verifies the container image according to the decrypted signature information to obtain a verification result. For example, the signature information is obtained by encrypting the version attribute of the container image with the private key in the key pair, then the corresponding verification is the consistency of the decrypted signature information (i.e., the decrypted version attribute) and the original version attribute. If the two are the same, the verification passes, and if the two are different, the verification fails.

[0078] In an optional embodiment, the following may be used: Figure 3 The processing diagram of the container image shown in the figure processes the container image, creates the container image in the CICD build phase of the private cloud, and pushes it directly to the vendor's image repository. In the private cloud package output phase, after pulling the specified version image from the image repository, the private cloud private key is used to sign the built container image through the signature service (i.e., the target tool mentioned above), and the image and signature are pushed to the OCI image repository deployed in the charter machine that supports the storage of signature information. The signature can carry version attributes and product customization information. Finally, the container products are packaged and output according to the OCI image repository.

[0079] When trying to pull up a container instance through the self-developed container engine COP (the target container mentioned above) that implements the Dockerd and Containerd standard interfaces, the container image and signature information are obtained from the OCI image repository and the signature of the container is verified using the cloud signature service tool using the proprietary cloud container signature public key. When the verification passes, the container image is deployed.

[0080] By means of factory signing and deployment verification, the pain point of lack of sufficient anti-tampering, leakage traceability, and anti-duplication capabilities at the level of proprietary cloud container products is solved. At the same time, it also enables the platform to quickly locate and prove its innocence for container product poisoning and contamination problems in the entire link of privatized output, and has the ability to block untrusted container images from running on the platform, reducing the stability and security risks of the platform.

[0081] In the container image processing method provided in the first embodiment of the present application, before signing the container image to be deployed by the target tool to obtain the signature information, the method also includes: obtaining the container deployment task initiated by the target object through the management and control platform; pulling the container image to be deployed from the target database according to the container deployment task through the management and control platform, so as to sign the container image through the target tool, wherein the target database is a database of an object that provides platform services for the target object.

[0082] Optionally, a user-triggered container deployment task can be obtained through a management and control platform, and then the container image to be deployed can be pulled from the target database according to the container deployment task, so as to sign the container image through the target tool. It should be noted that the target database is the database of the object (i.e., the above-mentioned supplier) that provides platform services for the target object.

[0083] It should be noted that the container images in the target database can be self-developed by the object providing platform services, or they can be some open source container images, but these container images are container images that have been security inspected by the object providing platform services.

[0084] In the container image processing method provided in the first embodiment of the present application, the deployment of the container image may include the following steps: building a corresponding container instance based on the container image. It should be noted that one container image can build multiple container instances, and these container instances are used to provide corresponding services and functions for the target object.

[0085] In an optional embodiment, the Figure 4 The schematic diagram shown completes the deployment of the container image: the R&D personnel create the container image and store the created container image in the image library. When the container image needs to be deployed to the user's space, the container image is signed with the private key through the signing tool, and the container image and signature information are stored in the OCI image warehouse of the dedicated cloud packager. The container image can be deployed to the on-site project through on-site deployment copying. It should be noted that during deployment, the public key is used to verify the signature of the container image.

[0086] In the container image processing method provided in the first embodiment of the present application, after the container image is deployed in the virtual environment through the target engine, the method also includes: sending the service interaction protocol to the target engine through the operation and maintenance platform to establish interaction between the operation and maintenance platform and the target engine, wherein the target object sends the control policy of the container image in the virtual environment to the target engine through the operation and maintenance platform.

[0087] Optionally, when the platform deployment is completed and the transfer state is completed, the container image management and control capabilities will be uniformly exposed by the operation and maintenance platform. In the operation and maintenance state, users can use the operation and maintenance platform to uniformly observe the verification results of all container images, establish the association between container images and instances, and quickly lock abnormal targets; according to the on-site safety requirements, freely switch the abnormal container processing mode for different scenarios; provide multiple types of custom trust policy management capabilities, and provide escape routes for special on-site whitelisting scenarios, etc.

[0088] In an optional embodiment, the target engine and the operation and maintenance platform interact as follows: Figure 5As shown in the figure, after the deployment is completed, the operation and maintenance platform encapsulates the service interaction protocol in the configuration file and sends it to the host where the target engine is located through the command distribution channel, that is, the above-mentioned service interaction protocol is sent to the target engine through the operation and maintenance platform to establish the interaction between the operation and maintenance platform and the target engine. The protocol contains the service domain name, authentication method and other contents of the operation and maintenance platform, and the protocol will be synchronized and updated regularly. The operation and maintenance platform can also obtain the current container image information and associated container information in real time through the command channel to assist users in abnormal analysis and location.

[0089] At the same time, the target engine can actively synchronize the latest control mode and custom trust policy from the operation and maintenance platform according to the service interaction protocol, so that signature verification and processing can be performed based on this information. In addition, the container runtime will actively report the container image information and signature verification results to the operation and maintenance platform for summary display.

[0090] By providing a unified and visual container image signature management platform, continuous product identity authentication and trust policy management capabilities can be provided for the platform container operating environment after the platform is deployed, thereby improving the stability and security of the platform.

[0091] In an optional embodiment, the user can set the abnormal container processing mode through the operation and maintenance platform according to needs, for example, observation mode: only display abnormal information after discovering that the container image signature verification fails; interception mode: intercept the container startup action after discovering that the container image signature verification fails, etc.

[0092] In an optional embodiment, the user can customize the trust policy configuration through the operation and maintenance platform according to the needs, for example, add a custom trust policy and delete a custom trust policy. In an optional embodiment, adding a custom trust policy may include:

[0093] (1) Image digest matching: Trust the container image through the image digest;

[0094] (2) Image name rule matching: trust the container image by the prefix and suffix of the image name;

[0095] (3) Image signing: Provide users with signing tools, generate signing key pairs for users, and trust the container image signed by the user through the user's public key.

[0096] It should be noted that the above image signature is for personal container images uploaded by users. For these personal container images, the signature tool can be downloaded to the user's local computer through the operation and maintenance platform, and then these personal container images can be signed using the signature tool on the user's local computer, and then the personal container images and signatures can be pulled to the user's private platform. Users can also allow some container images that are not signed or have failed signature verification to run based on image summary matching and image name rule matching.

[0097] In an optional embodiment, the interface for adding a custom trust policy is as follows: Figure 6 As shown, the user can enter information such as policy name, policy description, and policy type in the interface. If the policy type is image summary matching, the image summary needs to be entered accordingly.

[0098] In an optional embodiment, in the container image processing method provided in Embodiment 1 of the present application, after establishing the interaction between the operation and maintenance platform and the target engine, the method further includes: receiving, through the target engine, a control policy for the container image configured by the target object issued by the operation and maintenance platform; performing security verification on the running container image in the virtual environment through the target engine to obtain a verification result; and processing the running container image through the target engine based on the verification result and the control policy.

[0099] After performing security verification on the running container image in the virtual environment through the target engine and obtaining the verification result, the method also includes: displaying the verification result to the target object through the operation and maintenance platform; when it is detected that the verification result shows that there is an abnormality in the target container image, displaying the container instance associated with the target container image to the target object through the operation and maintenance platform.

[0100] Optionally, after establishing the interaction between the operation and maintenance platform and the target engine, the target engine can actively synchronize the latest management and control mode and custom trust policy from the operation and maintenance platform according to the service-to-service interaction protocol, that is, receive the control policy of the container image configured by the target object issued by the operation and maintenance platform through the target engine, and then perform security verification on the running container image in the virtual environment to obtain the verification result. It should be noted that the way in which the target engine performs security verification on the running container image in the virtual environment can be determined according to the custom trust policy. For example, if it is a custom trust policy for image signature, security verification is performed by verifying the signature of the running container image. If it is a custom trust policy that matches the image name rule, security verification can be performed by the name corresponding to the running container image. If it is a custom trust policy that matches the image summary, security verification can be performed by the summary corresponding to the running container image.

[0101] After obtaining the verification results, the verification results and the corresponding container image information are displayed to the target object through the operation and maintenance platform. And the target engine processes the running container image according to the verification results and control strategies. For example, if the container image signature verification fails, only abnormal information is displayed, or if the container image signature verification fails, the container startup action is intercepted.

[0102] In the operation and maintenance platform, the operation and maintenance platform can display the container instance associated with the abnormal container image to the target object based on the association relationship between the container image and the container instance, so as to remind the user whether to process the container instance associated with the abnormal container image.

[0103] In an optional embodiment, the display interface of the full container image verification result of the operation and maintenance platform is as follows: Figure 7 As shown, the interface displays the machine where the container image is located, the image ID / summary, the image name, the image tag, the image verification result, the verification strategy, and the associated image instance.

[0104] In an optional embodiment, the Figure 8 The schematic diagram shown in the figure implements the management of container images, which specifically includes: the management of container images mainly involves the platform layer and the single machine layer. The platform layer is the control platform and the operation and maintenance platform, and the single machine layer is the target engine mentioned above. Figure 8 As shown, the single machine layer includes a container engine for docker and a container engine for kubernetes, a container runtime, a container operation agent container cop-agent and sqlite (a lightweight database). An image verification plug-in is set in the container runtime. Users submit container tasks through the management and control platform, and the management and control platform submits container tasks to different container engines for task execution. The container engine for docker and the container engine for kubernetes process container tasks (for example, downloading images, etc.). The container runtime performs regular inspections and verifications on the container image according to the configuration information such as the image verification rules received, and returns the verification results to cop-agent. Cop-agent persists the verification results to sqlite, and transmits the verification results and container images to the operation and maintenance platform for display. The configuration file (for example, image verification rules) is sent to cop-agent through the operation and maintenance platform. And the image verification rules are synchronized to the container runtime through cop-agent.

[0105] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0106] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, 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 ROM / RAM, disk, CD), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods of each embodiment of the present application.

[0107] Example 2

[0108] According to an embodiment of the present application, a container image processing device for implementing the above container image processing method is also provided. Fig. 9 As shown, the device includes: a first pulling unit 901 and a first verification unit 902.

[0109] The first pulling unit 901 is used to pull the container image to be deployed and the signature information corresponding to the container image into the virtual environment through the target engine in the virtual environment corresponding to the target object;

[0110] The first verification unit 902 is used to verify the container image based on the signature information through the target engine, and if the verification passes, deploy the container image in the virtual environment through the target engine, wherein a private platform of the target object is constructed by deploying the container image.

[0111] In the container image processing device provided in the second embodiment of the present application, the first pulling unit 901 pulls the container image to be deployed and the signature information corresponding to the container image from the target area to the virtual environment through the target engine in the virtual environment corresponding to the target object, wherein the container image is signed by the target tool to obtain the signature information, and the container image and the signature information are stored in the target area; the first verification unit 902 is used to verify the container image based on the signature information through the target engine, and deploy the container image in the virtual environment through the target engine when the verification passes, wherein a private platform of the target object is constructed by deploying the container image, thereby achieving the purpose of improving the security of the container image, and by verifying the signature of the container image, it is possible to effectively block the operation of untrusted container images on the platform, reducing the stability and security risks of the platform, thereby achieving the technical effect of improving the security of the platform, and further solving the technical problem that there is a lack of integrity protection methods for container images output by the platform in the field of platform privatization deployment, resulting in relatively low security of the container image.

[0112] Optionally, in the container image processing device provided in Example 2 of the present application, the device also includes: a signature unit, used to sign the container image through a target tool to obtain the signature information; and a storage unit, used to store the container image and signature information to a target area.

[0113] Optionally, in the container image processing device provided in Example 2 of the present application, the signature unit includes: a generation module, used to generate a key pair through a target tool; a signature module, used to sign the container image based on the private key in the key pair and the attribute information of the container image through the target tool to obtain signature information.

[0114] Optionally, in the container image processing device provided in Example 2 of the present application, the device also includes: a first processing unit, used to perform a hash change on the container image through a hash algorithm to obtain a signature tag before storing the container image and signature information in the target area; and an establishment unit, used to establish a correspondence between the signature tag and the signature information, so as to pull the signature information corresponding to the container image from the target area based on the correspondence.

[0115] Optionally, in the container image processing device provided in Example 2 of the present application, the first verification unit includes: an acquisition module, used to obtain a public key in a key pair generated by a target tool through a target engine; a processing module, used to decrypt the signature information based on the public key to obtain the decrypted signature information; and a verification module, used to verify the container image based on the decrypted signature information.

[0116] Optionally, in the container image processing device provided in Example 2 of the present application, the device also includes: an acquisition unit, which is used to sign the container image to be deployed through the target tool and obtain the signature information before obtaining the container deployment task initiated by the target object through the management and control platform; a second pulling unit, which is used to pull the container image to be deployed from the target database through the management and control platform according to the container deployment task, so as to sign the container image through the target tool, wherein the target database is a database of an object that provides platform services for the target object.

[0117] Optionally, in the container image processing device provided in Example 2 of the present application, the first verification unit includes: a construction module, used to build a container instance based on the container image to complete the deployment of the container image, wherein the container instance is used to execute a data processing request of the target object.

[0118] Optionally, in the container image processing device provided in Example 2 of the present application, the device also includes: a sending unit, which is used to send a service interaction protocol to the target engine through the operation and maintenance platform after the container image is deployed in the virtual environment through the target engine, so as to establish interaction between the operation and maintenance platform and the target engine, wherein the target object sends the control policy of the container image in the virtual environment to the target engine through the operation and maintenance platform.

[0119] Optionally, in the container image processing device provided in Example 2 of the present application, the device also includes: a receiving unit, which is used to receive, through the target engine, a control policy for the container image configured by the target object issued by the operation and maintenance platform after establishing the interaction between the operation and maintenance platform and the target engine; a second verification unit, which is used to perform security verification on the running container image in the virtual environment through the target engine to obtain a verification result; and a second processing unit, which is used to process the running container image through the target engine according to the verification result and the control policy.

[0120] Optionally, in the container image processing device provided in Example 2 of the present application, the device also includes: a first display unit, used to perform security verification on the running container image in the virtual environment through the target engine, and after obtaining the verification result, display the verification result to the target object through the operation and maintenance platform; a second display unit, used to display the container instance associated with the target container image to the target object through the operation and maintenance platform when it is detected that the verification result indicates that there is an abnormality in the target container image.

[0121] It should be noted that the above-mentioned pulling unit 901 and the first verification unit 902 correspond to steps S201 to S202 in the first embodiment, and the examples and application scenarios implemented by the two units and the corresponding steps are the same, but are not limited to the contents disclosed in the first embodiment. It should be noted that the above-mentioned module as part of the device can be run in the computer terminal 10 provided in the first embodiment.

[0122] It should be noted that the preferred implementation scheme involved in the above embodiments of the present application is the same as the scheme provided in Example 1, as well as the application scenario and implementation process, but is not limited to the scheme provided in Example 1.

[0123] Example 3

[0124] The embodiment of the present application may provide an electronic device, which may be any electronic device in an electronic device terminal group. Optionally, in this embodiment, the electronic device may also be replaced by a terminal device such as a mobile terminal.

[0125] Optionally, in this embodiment, the electronic device may be located in at least one network device among a plurality of network devices of a computer network.

[0126] In this embodiment, the above-mentioned computer terminal can execute the program code of the following steps in the method for processing a container image: through the target engine in the virtual environment corresponding to the target object, the container image to be deployed and the signature information corresponding to the container image are pulled into the virtual environment, wherein the container image is signed by the target tool to obtain the signature information, and the container image and the signature information are stored in the target area; the container image is verified by the target engine based on the signature information, and if the verification passes, the container image is deployed in the virtual environment through the target engine, wherein a private platform of the target object is constructed by deploying the container image.

[0127] The above-mentioned computer terminal can execute the program code of the following steps in the container image processing method: before pulling the container image to be deployed and the signature information corresponding to the container image into the virtual environment through the target engine in the virtual environment corresponding to the target object, the method also includes: signing the container image through the target tool to obtain the signature information; storing the container image and the signature information in the target area.

[0128] The above-mentioned computer terminal can execute the program code of the following steps in the method for processing a container image: signing the container image through a target tool to obtain signature information includes: generating a key pair through the target tool; signing the container image through the target tool based on the private key in the key pair and the attribute information of the container image to obtain signature information.

[0129] The above-mentioned computer terminal can execute the program code of the following steps in the method for processing a container image: before storing the container image and signature information in the target area, the method also includes: performing a hash change on the container image through a hash algorithm to obtain a signature tag; establishing a corresponding relationship between the signature tag and the signature information to pull the signature information corresponding to the container image from the target area based on the corresponding relationship.

[0130] The above-mentioned computer terminal can execute the program code of the following steps in the method for processing a container image: verifying the container image based on the signature information through the target engine includes: obtaining the public key in the key pair generated by the target tool through the target engine; decrypting the signature information based on the public key to obtain the decrypted signature information; and verifying the container image based on the decrypted signature information.

[0131] The above-mentioned computer terminal can execute the program code of the following steps in the method for processing container images: before signing the container image to be deployed through the target tool to obtain the signature information, the method also includes: obtaining the container deployment task initiated by the target object through the management and control platform; pulling the container image to be deployed from the target database according to the container deployment task through the management and control platform, so as to sign the container image through the target tool, wherein the target database is a database of an object that provides platform services for the target object.

[0132] The above-mentioned computer terminal can execute the program code of the following steps in the method for processing container images: after the container image is deployed in the virtual environment through the target engine, the method also includes: sending the service interaction protocol to the target engine through the operation and maintenance platform to establish interaction between the operation and maintenance platform and the target engine, wherein the target object sends the control policy of the container image in the virtual environment to the target engine through the operation and maintenance platform.

[0133] The above-mentioned computer terminal can execute the program code of the following steps in the method for processing container images: after establishing the interaction between the operation and maintenance platform and the target engine, the method also includes: receiving the control policy of the container image configured by the target object issued by the operation and maintenance platform through the target engine; performing security verification on the running container image in the virtual environment through the target engine to obtain the verification result; and processing the running container image through the target engine according to the verification result and the control policy.

[0134] The above-mentioned computer terminal can execute the program code of the following steps in the container image processing method: after performing security verification on the running container image in the virtual environment through the target engine and obtaining the verification result, the method also includes: displaying the verification result to the target object through the operation and maintenance platform; when it is detected that the verification result shows that there is an abnormality in the target container image, displaying the container instance associated with the target container image to the target object through the operation and maintenance platform.

[0135] Optionally, Fig.10 is a structural block diagram of an electronic device according to an embodiment of the present application. Fig.10 As shown, the electronic device 100 may include: one or more ( Fig.10 Only one is shown in the figure) processor 1002, memory 1004. The electronic device 100 may also include a storage controller, through which the memory 1004 is controlled and managed; the electronic device 100 may also include a peripheral interface, through which the radio frequency module, audio module and display screen are connected.

[0136] Among them, the memory can be used to store software programs and modules, such as the program instructions / modules corresponding to the method and device for processing container images in the embodiments of the present application. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory, that is, realizing the above-mentioned method for processing container images. The memory may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include a memory remotely arranged relative to the processor, and these remote memories can be connected to the electronic device 20 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0137] The processor can call the information and application stored in the memory through the transmission device to execute the following steps: pull the container image to be deployed and the signature information corresponding to the container image into the virtual environment through the target engine in the virtual environment corresponding to the target object; verify the container image based on the signature information through the target engine, and deploy the container image in the virtual environment through the target engine if the verification passes, wherein a private platform of the target object is constructed by deploying the container image.

[0138] Optionally, the processor may also execute the program code of the following steps: before pulling the container image to be deployed and the signature information corresponding to the container image into the virtual environment through the target engine in the virtual environment corresponding to the target object, the method further includes: signing the container image through the target tool to obtain the signature information; storing the container image and the signature information in the target area.

[0139] Optionally, the processor may also execute the program code of the following steps: signing the container image through the target tool to obtain the signature information including: generating a key pair through the target tool; signing the container image through the target tool based on the private key in the key pair and the attribute information of the container image to obtain the signature information.

[0140] Optionally, the processor may also execute the program code of the following steps: before storing the container image and signature information in the target area, the method also includes: performing a hash change on the container image through a hash algorithm to obtain a signature tag; establishing a correspondence between the signature tag and the signature information to pull the signature information corresponding to the container image from the target area based on the correspondence.

[0141] Optionally, the processor may also execute the program code of the following steps: verifying the container image based on the signature information through the target engine includes: obtaining the public key in the key pair generated by the target tool through the target engine; decrypting the signature information based on the public key to obtain the decrypted signature information; and verifying the container image based on the decrypted signature information.

[0142] Optionally, the processor may also execute the program code of the following steps: before signing the container image to be deployed through the target tool and obtaining the signature information, the method also includes: obtaining the container deployment task initiated by the target object through the management and control platform; pulling the container image to be deployed from the target database through the management and control platform according to the container deployment task, so as to sign the container image through the target tool, wherein the target database is a database of an object that provides platform services for the target object.

[0143] Optionally, the processor may also execute program code of the following steps: after the container image is deployed in the virtual environment through the target engine, the method further includes: sending an inter-service interaction protocol to the target engine through the operation and maintenance platform to establish interaction between the operation and maintenance platform and the target engine, wherein the target object sends a control policy of the container image in the virtual environment to the target engine through the operation and maintenance platform.

[0144] Optionally, the processor may also execute the program code of the following steps: after establishing the interaction between the operation and maintenance platform and the target engine, the method further includes: receiving, through the target engine, a control policy for the container image configured for the target object issued by the operation and maintenance platform; performing security verification on the running container image in the virtual environment through the target engine to obtain a verification result; and processing the running container image through the target engine based on the verification result and the control policy.

[0145] Optionally, the processor may also execute the program code of the following steps: after performing security verification on the running container image in the virtual environment through the target engine and obtaining the verification result, the method further includes: displaying the verification result to the target object through the operation and maintenance platform; when it is detected that the verification result indicates that there is an abnormality in the target container image, displaying the container instance associated with the target container image to the target object through the operation and maintenance platform.

[0146] It can be understood by those skilled in the art that Fig.10 The structure shown is for illustration only, and the electronic device 100 may also be a terminal device such as a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a PDA, a mobile Internet device (Mobile Internet Devices, MID), a PAD, etc. Fig.10 The structure of the electronic device is not limited. Fig.10 More or fewer components (such as network interfaces, display devices, etc.) shown in, or with Fig.10 Different configurations are shown.

[0147] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the hardware related to the terminal device through a program, and the program can be stored in a computer-readable storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0148] Example 4

[0149] The embodiment of the present application also provides a computer-readable storage medium. Optionally, in this embodiment, the storage medium can be used to store the program code executed by the intrusion detection method provided in the first embodiment.

[0150] Optionally, in this embodiment, the above storage medium may be located in any computer terminal in a computer terminal group in a computer network, or in any mobile terminal in a mobile terminal group.

[0151] Optionally, in this embodiment, the storage medium is configured to store a program code for executing the method for processing the container image provided in the first embodiment.

[0152] Example 5

[0153] The embodiment of the present application further provides a computer program product. Optionally, in this embodiment, the computer program product can be used to store the program code executed by the container image processing method provided in the first embodiment.

[0154] Optionally, in this embodiment, the computer program product may be located in any computer terminal in a computer terminal group in a computer network, or in any mobile terminal in a mobile terminal group.

[0155] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0156] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0157] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0158] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0159] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0160] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk, etc., which can store program code.

[0161] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A method for processing a container image, characterized in that: include: Pulling the container image to be deployed and the signature information corresponding to the container image into the virtual environment through the target engine in the virtual environment corresponding to the target object; The target engine verifies the container image based on the signature information, and if the verification passes, the target engine deploys the container image in the virtual environment, wherein a private platform of the target object is constructed by deploying the container image.

2. The method according to claim 1, characterized in that Before pulling the container image to be deployed and the signature information corresponding to the container image into the virtual environment through the target engine in the virtual environment corresponding to the target object, the method further includes: Sign the container image by using a target tool to obtain the signature information; The container image and the signature information are stored in a target area.

3. The method according to claim 1, characterized in that: The container image is signed by a target tool, and the signature information obtained includes: Generate a key pair through the target tool; The container image is signed by the target tool based on the private key in the key pair and the attribute information of the container image to obtain the signature information.

4. The method according to claim 1, characterized in that: Before storing the container image and the signature information in the target area, the method further includes: Performing a hash change on the container image using a hash algorithm to obtain a signature tag; A correspondence between the signature tag and the signature information is established, so as to pull the signature information corresponding to the container image from the target area based on the correspondence.

5. The method according to claim 1, characterized in that Verifying the container image based on the signature information by the target engine includes: Acquire a public key in a key pair generated by a target tool through the target engine; Decrypting the signature information according to the public key to obtain decrypted signature information; The container image is verified according to the decrypted signature information.

6. The method according to claim 1, characterized in that Before signing the container image to be deployed by the target tool to obtain signature information, the method further includes: Obtaining the container deployment task initiated by the target object through the management and control platform; The container image to be deployed is pulled from the target database through the management and control platform according to the container deployment task, so as to sign the container image through the target tool, wherein the target database is a database of objects that provide platform services for the target object.

7. The method according to claim 1, characterized in that After deploying the container image in the virtual environment by the target engine, the method further includes: The inter-service interaction protocol is sent to the target engine through the operation and maintenance platform to establish interaction between the operation and maintenance platform and the target engine, wherein the target object sends the control policy of the container image in the virtual environment to the target engine through the operation and maintenance platform.

8. The method according to claim 7, characterized in that After establishing the interaction between the operation and maintenance platform and the target engine, the method further includes: Receiving, through the target engine, a control policy for the container image configured by the target object issued by the operation and maintenance platform; Performing security verification on the running container image in the virtual environment by the target engine to obtain a verification result; The target engine processes the running container image according to the verification result and the control strategy.

9. The method according to claim 8, characterized in that After performing security verification on the running container image in the virtual environment by the target engine and obtaining a verification result, the method further includes: Displaying the verification result to the target object through the operation and maintenance platform; When it is detected that the verification result indicates that the target container image has an abnormality, the container instance associated with the target container image is displayed to the target object through the operation and maintenance platform.

10. A container image processing device, characterized in that: include: A first pulling unit is used to pull the container image to be deployed and the signature information corresponding to the container image into the virtual environment corresponding to the target object through a target engine in the virtual environment; The first verification unit is used to verify the container image based on the signature information through the target engine, and if the verification passes, deploy the container image in the virtual environment through the target engine, wherein a private platform of the target object is constructed by deploying the container image.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the storage medium is located is controlled to execute the container image processing method according to any one of claims 1 to 9.

12. An electronic device, characterized in that: include: A memory storing an executable program; A processor, configured to run the program, wherein the program, when running, executes the method for processing a container image according to any one of claims 1 to 9.

13. A computer program product, characterized in that The computer program product includes a stored computer program, and when the computer program is executed by a processor, the method for processing a container image according to any one of claims 1 to 9 is implemented.

Citation Information

Patent Citations

  • Container instance creation method and device, electronic device and storage medium

    CN111562970A

  • Container cloud platform inspection method and device

    CN114756328A

  • Data processing method based on container engine and related equipment

    CN115113970A

  • Container mirror image deployment method

    CN115758371A

  • Mirror image signature verification method, application creation method, device, equipment and medium

    CN116522411A

Cited By

  • Container mirror image security attribute transmission method and device, electronic equipment and storage medium

    CN119883522A