IP Library Granted Patent US 12,225,054
Granted Patent B2
US 12,225,054 · App. 17/928,113 · Granted Feb 11, 2025

Application isolation method, system and device, and computer-readable storage medium

Inventors: Qiang Zhang (Shandong, CN); Zhengwei Liu (Shandong, CN)
Assignee: INSPUR ELECTRONIC INFORMATION INDUSTRY CO., LTD.
H04L63/20G06F21/629
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,225,054
App. No.
17/928,113
Granted
Feb 11, 2025
Kind
B2
Abstract

An application isolation method, system and device, and a computer-readable storage medium. The method includes: determining a target application to be isolated in Kubernetes; acquiring isolation polices of components in the target application, creating an initial network security policy corresponding to the target application; on the basis of the isolation policies, modifying a pushing rule, a popping nule and a matching label of the initial network security policy, so as to obtain a target network security policy; converting the target network security policy into an Iptables rule that matches the Kubernetes; and isolating the target application on the basis of the Iptables rule.

Claims (78)

1. An application isolation method, comprising:

determining a target application to be isolated in Kubernetes;

acquiring an isolation policy for each component in the target application;

creating an initial network security policy corresponding to the target application;

modifying a push rule, a pop rule, and a match label of the initial network security policy according to the isolation policy to obtain a target network security policy;

converting the target network security policy into an Iptables rule matching the Kubernetes; and

isolating the target application according to the Iptables rule-¿ creating the initial network security policy corresponding to the target application comprises:

creating the initial network security policy;

setting a podSelector field of the initial network security policy as in a form of matchExpression;

setting a value of an operator of the initial network security policy as a conditional operator In; and

setting the match label of the initial network security policy as a set of identifications of all components in the target application.

2. The method according to claim 1 , wherein modifying the push rule, the pop rule, and the match label of the initial network security policy according to the isolation policy comprises:

modifying the push rule according to a passive access policy in the isolation policy;

modifying the pop rule according to an active access policy in the isolation policy; and

setting a value of the match label as an identification of the component being isolated in the isolation policy;

wherein the passive access policy characterizes a policy of other components accessing the components of the target application; and

the active access policy characterizes the policy of the components of the target application accessing other components.

3. The method according to claim 2 , wherein modifying the push rule according to the passive access policy in the isolation policy comprises:

determining a first component corresponding to the passive access policy;

changing a port number corresponding to the first component in the push rule to a corresponding port number in the passive access policy;

changing a network data exchange rule corresponding to the first component in the push rule to a corresponding network data exchange rule in the passive access policy; and

changing the podSelector field corresponding to the first component in the push rule to matchlabel, and setting a value of the matchlabel to be an identification of corresponding other components in the passive access policy.

4. The method according to claim 3 , wherein modifying the pop rule according to the active access policy in the isolation policy comprises:

determining a second component corresponding to the active access policy;

changing a port number corresponding to the second component in the pop rule to a corresponding port number in the active access policy;

changing a network data exchange rule corresponding to the second component in the pop rule to a corresponding network data exchange rule in the active access policy; and

changing the podSelector field corresponding to the second component in the pop rule to matchlabel, and setting a value of the matchlabel as an identification of corresponding other components in the active access policy.

5. The method according to claim 1 , before determining the target application to be isolated in Kubernetes, further comprising:

deploying a calico network plug-in in the Kubernetes;

setting the calico node in the calico network plug-in to operate in a demonest mode; and

setting a calico controller in the calico network plug-in to run in a stateless load mode.

6. The method according to claim 5 , wherein the identification of the component comprises a label of the component.

7. The application isolation method according to claim 5 , wherein calico is a pure three-layer protocol that provides multi-host communication for Docker containers.

8. The application isolation method according to claim 7 , wherein in the pure three-layer protocol, virtual routes are used instead of virtual exchanges, and each virtual route propagates reachable information to remaining data centers through the border gateway protocol.

9. The application isolation method according to claim 1 , wherein the initial network security policy is a network security policy for isolating each component of the target application.

10. The application isolation method according to claim 9 , wherein isolating each component of the target application comprises: complete isolation or complete disclosure.

11. The application isolation method according to claim 1 , wherein the push rule is to limit other components to access the access information of the current component;

the pop rule is to limit the current component to access the access information of other components; and

the match label is to limit identity information of other components.

12. The application isolation method according to claim 1 , wherein the Iptables rule is an IP information packet filtering system integrated with version 3.5 Linux kernel.

13. The application isolation method according to claim 1 , wherein commas are added between the identifications to separate the identifications.

14. An application isolation apparatus, comprising:

a processor; and

a memory, storing a computer program that is executed executable by a processor, and upon execution by the processor, is configured to cause the processor to a processor configured for implementing steps:

determine a target application to be isolated in Kubernetes;

acquire an isolation policy for each component in the target application;

create an initial network security policy corresponding to the target application;

modify a push rule, a pop rule, and a match label of the initial network security policy according to the isolation policy to obtain a target network security policy;

convert the target network security policy into an Iptables rule matching the Kubernetes; and

isolate the target application according to the Iptables rule;

creating the initial network security policy corresponding to the target application comprises:

creating the initial network security policy;

setting a podSelector field of the initial network security policy as in a form of matchExpression;

setting a value of an operator of the initial network security policy as a conditional operator In; and

setting the match label of the initial network security policy as a set of identifications of all components in the target application.

15. The application isolation apparatus according to claim 14 , wherein modifying the push rule, the pop rule, and the match label of the initial network security policy according to the isolation policy comprises:

modifying the push rule according to a passive access policy in the isolation policy;

modifying the pop rule according to an active access policy in the isolation policy; and

setting a value of the match label as an identification of the component being isolated in the isolation policy;

wherein the passive access policy characterizes a policy of other components accessing the components of the target application; and

the active access policy characterizes the policy of the components of the target application accessing other components.

16. The application isolation apparatus according to claim 15 , wherein modifying the push rule according to the passive access policy in the isolation policy comprises:

determining a first component corresponding to the passive access policy;

changing a port number corresponding to the first component in the push rule to a corresponding port number in the passive access policy;

changing a network data exchange rule corresponding to the first component in the push rule to a corresponding network data exchange rule in the passive access policy; and

changing the podSelector field corresponding to the first component in the push rule to matchlabel, and setting a value of the matchlabel to be an identification of corresponding other components in the passive access policy.

17. A non-transitory computer-readable storage medium storing a computer program that is executed executable by a processor, and upon execution by the processor, is configured to cause the processor to:

determine a target application to be isolated in the Kubernetes;

acquire an isolation policy for each component in the target application;

creat an initial network security policy corresponding to the target application;

modify a push rule, a pop rule, and a match label of the initial network security policy according to the isolation policy to obtain a target network security policy;

convert the target network security policy into an Iptables rule matching the Kubernetes; and

isolate the target application according to the Iptables rule;

creating the initial network security policy corresponding to the target application comprises:

creating the initial network security policy;

setting a podSelector field of the initial network security policy as in a form of match Expression;

setting a value of an operator of the initial network security policy as a conditional operator In; and

setting the match label of the initial network security policy as a set of identifications of all components in the target application.

Assignments (2)
LICENSE Recorded Jun 30, 2026
From: IEIT SYSTEMS CO., LTD
To: AIVRES SYSTEMS INC.
Reel/Frame 075857/0939 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Nov 28, 2022
From: ZHANG, QIANG; LIU, ZHENGWEI
To: INSPUR ELECTRONIC INFORMATION INDUSTRY CO., LTD.
Reel/Frame 061892/0402 →
Priority Claims (1)
CN 202010461867.2 · May 27, 2020 · national
Continuity (1)
Related Publication 20230208881A1 · Jun 29, 2023
References Cited (10)
US 10855531B2 · Vaidya · 2020 [cited by examiner]
US 20090235324A1 · Griffin · 2009 [cited by examiner]
US 20180336351A1 · Jeffries · 2018 [cited by examiner]
US 20190377591A1 · Dimitrov · 2019 [cited by examiner]
US 20200076685A1 · Vaidya · 2020 [cited by examiner]
CN 109561108A · 2019 [cited by applicant]
CN 110266679A · 2019 [cited by applicant]
CN 111049796A · 2020 [cited by applicant]
CN 111709014A · 2020 [cited by applicant]
PCT/CN2021/073438 international search report. [cited by applicant]