Method and system for realizing data transmission encryption of credential environment container

By deploying the Calico VPP component in the Xinchuang environment and enabling the IPSec function, using IPIP mode and IPSec protocol, the problem of container data encryption is solved, packet-level encryption is achieved, security and flexibility are improved, and the Xinchuang environment is satisfied. high security requirements.

CN118694587AActive Publication Date: 2024-09-24SHANDONG LANGCHAO YUNTOU INFORMATION TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410800010.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-20
Publication Date
2024-09-24
Estimated Expiration
2044-06-20

AI Technical Summary

Technical Problem

In the Xinchuang environment, existing technologies are difficult to effectively encrypt container data, especially in complex infrastructure and application systems, and cannot meet high security requirements.

Method used

By deploying the Calico VPP component and enabling the IPSec function, IPIP mode and IPSec protocol are used to establish tunnels for data transmission encryption, support different TCP services, and achieve packet-level encryption.

Benefits of technology

It improves the security of IP data packets, effectively prevents network attacks, realizes flexible and efficient encryption of container data transmission in Xinchuang environment, and meets the data security needs in complex environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118694587A
    Figure CN118694587A
Patent Text Reader

Abstract

The invention relates to the technical field of cloud native Kubernetes containers, in particular to a method and system for achieving data transmission encryption of a credential environment container, and the method comprises the following steps: deploying a Calico VPP component, starting an architecture design of an IPSec function, and achieving data transmission encryption of the credential environment container; the calico uses an IPIP mode, and a calico VPP is deployed in a mode of deploying a component in a cluster; an IPSec function is started, and the IPSec function is started through parameter setting, so that data transmission encryption of the credential environment container is realized; according to the method and the system for realizing data transmission encryption of the container in the credential environment, in the credential environment, data encryption takes a data packet as a unit instead of a whole data stream as a unit, so that the method and the system are flexible, the security of the IP data packet is further improved, and network attacks can be effectively prevented; in a credential environment, container data transmission encryption is realized, all communication traffic can be carried by establishing a tunnel by using IPSec, and different TCP services can be supported.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of cloud-native Kubernetes container technology, and specifically to a method and system for implementing encrypted data transmission in a trusted computing environment container. Background Art

[0002] With the increasing application of container technology in cloud native and other fields, users have more complete requirements for container data encryption. Under the influence of multiple factors such as the trend of information innovation, digital transformation, and business development, government and enterprise information departments are undoubtedly facing higher requirements and challenges in information and digital construction. The superposition of information innovation with emerging information technologies such as cloud computing, big data, and distributed computing has opened up new thinking for digital innovation construction in government and enterprise units, while also increasing the complexity from infrastructure to application systems. If users want to find new ways and stand out in the torrent of the information innovation era, they also have more complete requirements for container data encryption.

[0003] In the prior art, container data transmission encryption is implemented, and IPSec is used to provide a mutual authentication method for the end system, protecting one or more paths between hosts, between security gateways, between security gateways and hosts, and data in transmission from being stolen and attacked. IPSec can be used to establish a tunnel to carry all traffic, and can support different TCP services. IPSec can provide end-to-end security across IP networks. Supporting IKE (Internet Key Exchange) can realize the automatic negotiation function of keys, reducing the overhead of key negotiation. SA services can be established and maintained through IKE, simplifying the use and management of IPsec. All application systems and services that use the IP protocol for data transmission can use IPsec without making any modifications to these application systems and services themselves. Data encryption is based on data packets rather than the entire data stream, which is not only flexible but also helps to further improve the security of IP data packets and can effectively prevent network attacks.

[0004] Therefore, a method and system are needed to implement encrypted data transmission in a trusted computing environment container. Summary of the invention

[0005] The purpose of the present invention is to provide a method and system for realizing encrypted data transmission in a trusted environment container, so as to solve the problems raised in the above-mentioned background technology.

[0006] To achieve the above object, the present invention provides the following technical solution: a method for realizing data transmission encryption of a trusted environment container, the method comprising the following steps:

[0007] Deploy Calico VPP components and enable the architecture design of IPSec functions to achieve encrypted data transmission in the trusted environment container;

[0008] Calico uses IPIP mode to deploy Calico VPP by deploying components in the cluster;

[0009] Enable the IPSec function and enable the IPSec function through parameter settings to achieve data transmission encryption in the trusted environment container.

[0010] Preferably, the specific operations of deploying the Calico VPP component include:

[0011] Deploy the cni plug-in before the K8S cluster and clear the previous cni plug-in;

[0012] Deploy calico VPP, set the interface used by VPP and the network segment of the service in the parameters of calico respectively. The parameter setting directly modifies the configuration of ConfigMap. The interface parameters used by VPP, vpp_dataplane_interface is set to the network card used by the current cluster, and the service network segment is set to the network segment of the current cluster service; use the calico VPP mode to expand to a higher throughput. After deploying calico VPP, there is a calico-vpp-nodepod on each node, which is responsible for the configuration of vpp.

[0013] Preferably, the VPP Manager is used to handle the VPP startup configuration and life cycle. When the Manager is started, it checks and configures its own uplink port, that is, the physical network port of the host. After startup, all original network devices are taken over by the VPP, and a tap0 interface is created on the host, representing the original host network card.

[0014] Calico VPP agent is used to be responsible for all VPP runtime configurations of calico, including CNI Server, which is connected to the calicocni interface; Service load balancing, and the NAT plug-in implemented by vpp to implement the service in k8s; Policies: responsible for implementing Felix's policies.

[0015] Preferably, the specific operations of calico using IPIP mode include:

[0016] Add the parameter calico_network_mode in calico and set calico_network_mode to IPIP. The parameter settings include setting ipipMode in Ippool to Always and setting the parameter CALICO_IPV4POOL_IPIP in Calico-node Damonset to Always.

[0017] Preferably, the specific operations of enabling the IPSec function include:

[0018] Set IPSec to true in the parameter configuration of calico. The parameter creates secret: calicovpp-ipsec-secret in the namespace calico-vpp-dataplane by default, and configures two environment variables in calico-vpp-node. CALICOVPP_IPSEC_ENABLED is true, and in secretKeyRef in CALICOVPP_IPSEC_IKEV2_PSK, the name is calicovpp-ipsec-secret and the key is psk.

[0019] A system for realizing encrypted data transmission in a trusted environment container, the system comprising a Calico VPP component deployment module, a Calico VPP component management module, and an IPSec activation module;

[0020] Calico VPP component deployment module, which is used to deploy Calico VPP components and enable the architecture design of IPSec function to realize data transmission encryption of containers in the trusted innovation environment;

[0021] The calico VPP component management module is used to deploy calico VPP by deploying components in the cluster using the IPIP mode of calico.

[0022] The IPSec enabling module is used to enable the IPSec function. It enables the IPSec function through parameter settings, thereby realizing data transmission encryption in the trusted innovation environment container.

[0023] Preferably, the Calico VPP component deployment module deploys the cni plug-in before the K8S cluster and clears the previous cni plug-in;

[0024] Deploy calico VPP, set the interface used by VPP and the network segment of the service in the parameters of calico respectively. The parameter setting directly modifies the configuration of ConfigMap. The interface parameters used by VPP, vpp_dataplane_interface is set to the network card used by the current cluster, and the service network segment is set to the network segment of the current cluster service; use the calico VPP mode to expand to a higher throughput. After deploying calico VPP, there is a calico-vpp-nodepod on each node, which is responsible for the configuration of vpp.

[0025] Preferably, the Calico VPP component deployment module uses VPP Manager to handle VPP startup configuration and life cycle. When the Manager is started, it checks and configures its own uplink port, that is, the physical network port of the host. After startup, all original network devices are taken over by VPP, and a tap0 interface is created on the host, representing the original host network card.

[0026] Calico VPP agent is used to be responsible for all VPP runtime configurations of calico, including CNI Server, which is connected to the calicocni interface; Service load balancing, and the NAT plug-in implemented by vpp to implement the service in k8s; Policies: responsible for implementing Felix's policies.

[0027] Preferably, the calico VPP component management module adds a parameter calico_network_mode in calico, sets calico_network_mode to IPIP, and the parameter setting includes setting ipipMode in Ippool to Always and setting the parameter CALICO_IPV4POOL_IPIP in Calico-node Damonset to Always.

[0028] Preferably, the IPSec enabling module sets IPSec to true in the parameter configuration of calico, the parameter creates secret: calicovpp-ipsec-secret in namespacecalico-vpp-dataplane by default, and configures two environment variables in calico-vpp-node, CALICOVPP_IPSEC_ENABLED is true, and in secretKeyRef in CALICOVPP_IPSEC_IKEV2_PSK, name is calicovpp-ipsec-secret, and key is psk.

[0029] Compared with the prior art, the present invention has the following beneficial effects:

[0030] The present invention proposes a method and system for implementing encrypted data transmission in a trusted computing environment. In the trusted computing environment, data is encrypted in units of data packets rather than entire data streams, which is not only flexible but also helps to further improve the security of IP data packets and can effectively prevent network attacks. In the trusted computing environment, container data transmission encryption is implemented. Using IPSec, a tunnel can be established to carry all communication traffic and different TCP services can be supported. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] Figure 1 This is the architecture diagram of the calico VPP of the present invention;

[0032] Figure 2 It is a schematic diagram of the IPSec architecture of the present invention. DETAILED DESCRIPTION

[0033] In order to make the purpose and technical solution of the present invention clearly and completely described, and the advantages more clearly understood, the embodiments of the present invention are further described in detail with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are part of the embodiments of the present invention, rather than all of the embodiments, and are only used to explain the embodiments of the present invention, and are not used to limit the embodiments of the present invention. All other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0034] Embodiment 1

[0035] See also Figure 1 to Figure 2 The present invention provides a technical solution: a method for realizing encrypted data transmission in a trusted environment container, the method comprising the following steps:

[0036] Step 1: Deploy Calico VPP components.

[0037] (1) If the K8S cluster has previously deployed a cni plug-in, you need to clear the previous cni plug-in.

[0038] (2) Deploy calico VPP. As the deployment component of Inspur Xinchuang Cloud, set the interface used by VPP and the network segment of the service in the parameters of calico. The parameter setting can directly modify the configuration of ConfigMap. The interface parameters used by VPP, vpp_dataplane_interface is set to the network card used by the current cluster, and the service network segment is set to the network segment of the current cluster service. Using the calico VPP mode, it can be expanded to a higher throughput. After deploying calicoVPP, there is a calico-vpp-nodepod on each node, which is responsible for the configuration of vpp.

[0039] VPP Manager is responsible for handling VPP startup configuration and life cycle. When Manager starts, it will check and configure its own uplink port, which is generally the physical network port of the host. After startup, all original network devices will be taken over by VPP, and it will create a tap0 interface on the host, representing the original host network card. Calico VPPagent is responsible for all VPP runtime configurations of calico, including CNI Server, docking with calicocni interface; Service load balancing, implementing the service in k8s through the NAT plug-in implemented by vpp; Policies: responsible for implementing Felix's policies.

[0040] Step 2: calico uses IPIP mode.

[0041] Add the parameter calico_network_mode in calico and set calico_network_mode to IPIP. This parameter setting includes setting ipipMode in Ippool to Always and setting the parameter CALICO_IPV4POOL_IPIP in Calico-node Damonset to Always.

[0042] Step 3: Enable IPSec function.

[0043] Set IPSec to true in the parameter configuration of calico. This parameter will create secret: calicovpp-ipsec-secret in namespace calico-vpp-dataplane by default. And configure two environment variables in calico-vpp-node, CALICOVPP_IPSEC_ENABLED to true, and in secretKeyRef in CALICOVPP_IPSEC_IKEV2_PSK, name is calicovpp-ipsec-secret, key is psk.

[0044] Use IPsec to further improve encryption performance. IPsec is a collection of protocols and services that provide security for IP networks. It is a technology commonly used in VPNs. Since IP packets themselves do not integrate any security features, the main technical problem to be solved is that IP data packets may be forged, stolen or tampered with when transmitted in public networks such as the Internet. The communicating parties establish an IPsec tunnel through IPsec, and IP data packets are encrypted and transmitted through the IPsec tunnel, effectively ensuring the security of data transmission in an insecure network environment such as the Internet.

[0045] This implementation method is to deploy the calico VPP architecture, set the interface used by VPP and the network segment of the service in the parameters of calico, and the parameter settings can directly configure ConfigMap. The interface parameters used by VPP, vpp_dataplane_interface is set to the network card used by the current cluster, and the service network segment is set to the network segment of the current cluster service. Add the parameter calico_network_mode in the calico component and set calico_network_mode to ipip. This parameter setting includes setting ipipMode in Ippool to Always and setting the parameter CALICO_IPV4POOL_IPIP in Calico-node Damonset to Always. Set Ipsec to true in the parameter configuration of calico. This parameter will create secret: calicovpp-ipsec-secret in namespace:calico-vpp-dataplane by default. And configure two environment variables in calico-vpp-node, CALICOVPP_IPSEC_ENABLED is true, and in secretKeyRef in CALICOVPP_IPSEC_IKEV2_PSK, name is calicovpp-ipsec-secret and key is psk.

[0046] Embodiment 2

[0047] Based on the first embodiment, a system for realizing data transmission encryption of containers in a trusted environment is proposed, wherein the system is composed of a Calico VPP component deployment module, a Calico VPP component management module, and an IPSec activation module;

[0048] The Calico VPP component deployment module is used to deploy the Calico VPP component and enable the architecture design of the IPSec function to achieve encrypted data transmission in the trusted environment container; deploy the cni plug-in before the K8S cluster and clear the previous cni plug-in;

[0049] Deploy calico VPP, set the interface used by VPP and the network segment of the service in the parameters of calico respectively. The parameter setting directly modifies the configuration of ConfigMap. The interface parameters used by VPP, vpp_dataplane_interface is set to the network card used by the current cluster, and the service network segment is set to the network segment of the current cluster service; use the calico VPP mode to expand to a higher throughput. After deploying calico VPP, there is a calico-vpp-nodepod on each node, which is responsible for the configuration of vpp.

[0050] The VPP Manager is used to handle the VPP startup configuration and life cycle. When the Manager is started, it checks and configures its own uplink port, that is, the physical network port of the host. After startup, all original network devices are taken over by VPP, and a tap0 interface is created on the host, representing the original host network card.

[0051] Calico VPP agent is used to be responsible for all VPP runtime configurations of calico, including CNI Server, which is connected to the calicocni interface; Service load balancing, and the NAT plug-in implemented by vpp to implement the service in k8s; Policies: responsible for implementing Felix's policies.

[0052] The calico VPP component management module is used for calico to use IPIP mode. By deploying components in the cluster, calico VPP is deployed. In calico, the parameter calico_network_mode is added and calico_network_mode is set to IPIP. The parameter settings include setting ipipMode in Ippool to Always and setting the parameter CALICO_IPV4POOL_IPIP in Calico-nodeDamonset to Always.

[0053] The IPSec enabling module is used to enable the IPSec function. The IPSec function is enabled through parameter settings to achieve encrypted data transmission in the trusted environment container. In the parameter configuration of calico, IPSec is set to true. The parameter creates secret: calicovpp-ipsec-secret in namespace calico-vpp-dataplane by default, and two environment variables are configured in calico-vpp-node. CALICOVPP_IPSEC_ENABLED is true, and in secretKeyRef in CALICOVPP_IPSEC_IKEV2_PSK, the name is calicovpp-ipsec-secret and the key is psk.

[0054] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. A method for realizing encrypted data transmission in a trusted environment container, characterized in that: The method comprises the following steps: Deploy Calico VPP components and enable the architecture design of IPSec functions to achieve encrypted data transmission in the trusted environment container; Calico uses IPIP mode to deploy Calico VPP by deploying components in the cluster; Enable the IPSec function and enable the IPSec function through parameter settings to achieve data transmission encryption in the trusted environment container.

2. According to claim 1, a method for realizing encrypted data transmission in a trusted environment container is characterized in that: The specific operations for deploying Calico VPP components include: Deploy the cni plug-in before the K8S cluster and clear the previous cni plug-in; Deploy calico VPP, set the interface used by VPP and the network segment of the service in the parameters of calico respectively. The parameter setting directly modifies the configuration of ConfigMap. The interface parameters used by VPP, vpp_dataplane_interface is set to the network card used by the current cluster, and the service network segment is set to the network segment of the current cluster service; use the calico VPP mode to expand to a higher throughput. After deploying calico VPP, there is a calico-vpp-nodepod on each node, which is responsible for the configuration of vpp.

3. According to claim 2, a method for realizing encrypted data transmission in a trusted environment container is characterized in that: The VPP Manager is used to handle the VPP startup configuration and life cycle. When the Manager is started, it checks and configures its own uplink port, that is, the physical network port of the host. After startup, all original network devices are taken over by VPP, and a tap0 interface is created on the host, representing the original host network card. Calico VPP agent is used to configure all VPP runtimes of Calico, including CNI Server, and connect to the Calico CNI interface. Service load balancing, implements the service in k8s through the NAT plug-in implemented by vpp; Policies: responsible for implementing Felix's policies.

4. According to claim 1, a method for realizing encrypted data transmission in a trusted environment container is characterized in that: The specific operations of calico using IPIP mode include: Add the parameter calico_network_mode in calico and set calico_network_mode to IPIP. The parameter settings include setting ipipMode in Ippool to Always and setting the parameter CALICO_IPV4POOL_IPIP in Calico-node Damonset to Always.

5. According to claim 1, a method for realizing encrypted data transmission in a trusted environment container is characterized in that: The specific operations to enable the IPSec function include: Set IPSec to true in the parameter configuration of calico. The parameter creates secret: calicovpp-ipsec-secret in the namespace calico-vpp-dataplane by default, and configures two environment variables in calico-vpp-node. CALICOVPP_IPSEC_ENABLED is true, and in secretKeyRef in CALICOVPP_IPSEC_IKEV2_PSK, the name is calicovpp-ipsec-secret and the key is psk.

6. A method for implementing encrypted data transmission in a trusted environment container according to any one of claims 1 to 5, and a system for implementing encrypted data transmission in a trusted environment container, characterized in that: The system consists of a Calico VPP component deployment module, a Calico VPP component management module, and an IPSec activation module; Calico VPP component deployment module, which is used to deploy Calico VPP components and enable the architecture design of IPSec function to realize data transmission encryption of containers in the trusted innovation environment; The calico VPP component management module is used to deploy calico VPP by deploying components in the cluster using the IPIP mode of calico. The IPSec enabling module is used to enable the IPSec function. It enables the IPSec function through parameter settings, thereby realizing data transmission encryption in the trusted innovation environment container.

7. According to claim 6, a system for implementing encrypted data transmission in a trusted environment container is characterized in that: The Calico VPP component deployment module deploys the cni plug-in before the K8S cluster and clears the previous cni plug-in; Deploy calico VPP, set the interface used by VPP and the network segment of the service in the parameters of calico respectively. The parameter setting directly modifies the configuration of ConfigMap. The interface parameters used by VPP, vpp_dataplane_interface is set to the network card used by the current cluster, and the service network segment is set to the network segment of the current cluster service; Use the calico VPP mode to scale to higher throughput. After deploying calico VPP, there is a calico-vpp-nodepod on each node, which is responsible for the configuration of vpp.

8. According to claim 6, a system for implementing encrypted data transmission in a trusted environment container is characterized in that: The Calico VPP component deployment module uses VPP Manager to handle VPP startup configuration and life cycle. When the Manager starts, it checks and configures its own uplink port, that is, the physical network port of the host. After startup, all original network devices are taken over by VPP, and a tap0 interface is created on the host, representing the original host network card. Calico VPP agent is used to configure all VPP runtimes of Calico, including CNI Server, and connect to the Calico CNI interface. Service load balancing, implements the service in k8s through the NAT plug-in implemented by vpp; Policies: responsible for implementing Felix's policies.

9. According to claim 6, a system for implementing encrypted data transmission in a trusted environment container is characterized in that: The calico VPP component management module adds a parameter calico_network_mode in calico, sets calico_network_mode to IPIP, and the parameter setting includes setting ipipMode in Ippool to Always and setting the parameter CALICO_IPV4POOL_IPIP in Calico-node Damonset to Always.

10. According to claim 6, a system for implementing encrypted data transmission in a trusted environment container is characterized in that: The IPSec enabling module sets IPSec to true in the parameter configuration of calico. The parameter creates secret: calicovpp-ipsec-secret in the namespace calico-vpp-dataplane by default, and configures two environment variables in calico-vpp-node, CALICOVPP_IPSEC_ENABLED to true, and in secretKeyRef in CALICOVPP_IPSEC_IKEV2_PSK, the name is calicovpp-ipsec-secret and the key is psk.

Citation Information

Patent Citations

  • Hybrid cloud network architecture and network deployment method

    CN110611697A

  • Service implementation method and system in Kubernetes cluster system, medium and equipment

    CN116192937A

  • IPSec-VPN implementation method and device of OVN architecture, electronic equipment and storage medium

    CN116647425A

  • Secure communication method and system based on industrial internet multilateral platform

    CN117857226A

  • Remote smart NIC-based service acceleration

    US20200278892A1