An automated testing method and device for zero-trust identity authorization
The dynamic configuration and concurrent script testing of the zero-trust network are realized through automated procedures, which solves the problem of complicated and time-consuming test steps in the existing technology, improves the testing efficiency, and quickly troubleshoots link connectivity problems.
Patent Information
- Application Number
- CN202211692074.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-28
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2042-12-28
AI Technical Summary
When testing zero-trust user identity access resource permissions using existing technology, the steps are complex and time-consuming, making it difficult to quickly verify the connectivity and permission configuration of the zero-trust network.
Use automated programs to implement zero trust user role configuration and accessible resource management in standardized format files, call the zero trust control center through interfaces to implement dynamic effective loading, and perform back-to-origin request testing through concurrent scripts to generate test reports.
It greatly improves testing efficiency and can quickly troubleshoot link connectivity issues among zero-trust clients, edges, centers, and intranet penetrators, reducing the burden of manual verification and meeting rapid testing and regression verification scenarios.
Smart Images

Figure CN116032798B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of computer technology, and in particular, relates to an automated testing method and device for zero-trust identity authorization. Background Art
[0002] Zero Trust is a technology that provides secure access to enterprise network applications in complex environments such as cross-region, multi-node, and hybrid cloud. The purpose is to reasonably control access to the dynamically changing environment of the enterprise, so as to achieve the goals of reducing enterprise operating costs, improving enterprise business security, and increasing business convenience. Zero Trust identity authorization is a method of granting single access rights to each user who logs into the zero trust network through identity authentication and resource permission identification.
[0003] Currently, for zero-trust user identity access resource permission testing, it is necessary to log in to the application platform every time and configure the identity. For accessible backend testing, it is necessary to capture packets at the backend of each network source station to verify the actual access network connectivity. The overall steps are relatively complicated and not conducive to rapid system testing and verification. Zero-trust products need to perform back-to-source configuration management for different networks in the context of solving the unified management of different cloud networks and private networks of enterprises. In conventional zero-trust testing scenarios, it often takes a lot of time to detect each network device and test permissions. Summary of the invention
[0004] The main purpose of the present invention is to overcome the shortcomings and deficiencies of the prior art, and to provide an automated testing method and device for zero-trust identity authorization. Through an automated program, the detection of zero-trust network connectivity can be achieved, which can greatly improve the testing efficiency and troubleshoot the link connectivity problems of zero-trust clients, edges, centers, and intranet penetrators.
[0005] According to one aspect of the present invention, the present invention provides an automated testing method for zero-trust identity authorization, the method comprising the steps of:
[0006] S1: Through automated programs, standardized format files are used to implement role configuration and accessible resource management for zero-trust users, and the zero-trust control center is called through an interface to implement dynamic entry into force of zero-trust access.
[0007] S2: Test the client's authorized resource access to the zero-trust network and implement back-to-origin request testing through concurrent scripts;
[0008] S3: Based on the statistics of requests sent by the client and the status of connection establishment, determine the establishment and authorization status of the zero-trust network and generate a test report.
[0009] Preferably, the implementation of role configuration and accessible resource management for zero-trust users in a standardized format file through an automated program includes:
[0010] Configure a zero-trust control center, deploy an automated testing server program in the zero-trust control center, automatically generate authorized users, generate user roles based on the configuration, associate user roles to generate network access permissions, and call the zero-trust control center interface to enable the zero-trust edge machine to automatically load the control center user authorization information.
[0011] Preferably, the implementation of role configuration and accessible resource management for zero-trust users in a standardized format file through an automated program includes:
[0012] Configure the client, which connects to the server program, obtains the login user account configuration information, launches the zero-trust client program through commands, and dynamically configures the login user account according to the server test case, so that the client environment has zero-trust network access permissions; the client calls the test script to implement the availability detection of network resource permissions.
[0013] Preferably, the implementation of role configuration and accessible resource management for zero-trust users in a standardized format file through an automated program includes:
[0014] Configure a zero-trust edge server, which is installed with a log collection program to aggregate and collect logs according to specified fields, collect users, access resources, and granted permissions; set parsing fields through instruction formats, and count user access logs in real time, and report to the server after collection and aggregation.
[0015] Preferably, the testing client's access to authorized resources in the zero-trust network and implementing a back-to-source request test through a concurrent script include:
[0016] Test the user organization authorization and single user authorization based on resources of different back-to-origin protocols, including IP, domain name, port, and network segment.
[0017] According to another aspect of the present invention, the present invention also provides an automated testing device for zero-trust identity authorization, the device comprising:
[0018] The configuration module is used to implement role configuration and accessible resource management for zero-trust users through automated programs and standardized format files, and to call the zero-trust control center through an interface to implement dynamic entry into force of zero-trust access;
[0019] The test module is used to test the client's authorized resource access to the zero-trust network and implement the back-to-origin request test through concurrent scripts;
[0020] The reporting module is used to determine the establishment and authorization status of the zero-trust network based on the statistical information of the requests sent by the client and the connection establishment status, and generate a test report.
[0021] Preferably, the configuration module implements role configuration and accessible resource management for zero-trust users in a standardized format file through an automated program, including:
[0022] Configure a zero-trust control center, deploy an automated testing server program in the zero-trust control center, automatically generate authorized users, generate user roles based on the configuration, associate user roles to generate network access permissions, and call the zero-trust control center interface to enable the zero-trust edge machine to automatically load the control center user authorization information.
[0023] Preferably, the configuration module implements role configuration and accessible resource management for zero-trust users in a standardized format file through an automated program, including:
[0024] Configure the client, which connects to the server program, obtains the login user account configuration information, launches the zero-trust client program through commands, and dynamically configures the login user account according to the server test case, so that the client environment has zero-trust network access permissions; the client calls the test script to implement the availability detection of network resource permissions.
[0025] Preferably, the configuration module implements role configuration and accessible resource management for zero-trust users in a standardized format file through an automated program, including:
[0026] Configure a zero-trust edge server, which is installed with a log collection program to aggregate and collect logs according to specified fields, collect users, access resources, and granted permissions; set parsing fields through instruction formats, and count user access logs in real time, and report to the server after collection and aggregation.
[0027] Preferably, the test module tests the client's authorized resource access to the zero-trust network, and the back-to-source request test is implemented through a concurrent script, including:
[0028] Test the user organization authorization and single user authorization based on resources of different back-to-origin protocols, including IP, domain name, port, and network segment.
[0029] Beneficial effects: The present invention uses automated procedures to detect zero-trust network connectivity. For scenarios where it is difficult to manually test different network partitions one by one, automatic scripts can be configured to quickly create users and configure user permissions for different network sources. The automated test server collects and aggregates client and zero-trust edge logs to achieve data normalization management, count the number of requests that pass the test, and automatically generate a current zero-trust network authorization access report to meet the needs of rapid testing of zero-trust products and regression verification scenarios. Compared with traditional zero-trust authorization testing, the present invention can greatly improve testing efficiency, reduce problems with manual verification of zero-trust networks, and troubleshoot link connectivity issues between zero-trust clients, edges, centers, and intranet penetrators.
[0030] The features and advantages of the present invention will become clear through reference to the following drawings and detailed description of specific embodiments of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 It is a flow chart of the automated testing method for zero-trust identity authorization;
[0032] Figure 2 It is a topology diagram for automated testing of zero-trust identity authorization;
[0033] Figure 3 It is a schematic diagram of the automated testing device for zero-trust identity authorization. DETAILED DESCRIPTION
[0034] The following is a clear and complete description of the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on 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.
[0035] Example 1
[0036] Figure 1 This is a flow chart of the automated testing method for zero-trust identity authorization. Figure 1 As shown, the present invention provides an automated testing method for zero-trust identity authorization, the method comprising the steps of:
[0037] S1: Through automated programs, standardized format files are used to implement role configuration and accessible resource management for zero-trust users, and the zero-trust control center is called through an interface to implement dynamic entry into force of zero-trust access.
[0038] S2: Test the client's authorized resource access to the zero-trust network and implement back-to-origin request testing through concurrent scripts;
[0039] S3: Based on the statistics of requests sent by the client and the status of connection establishment, determine the establishment and authorization status of the zero-trust network and generate a test report.
[0040] Specifically, refer to Figure 2 In this embodiment, the Go language is used to implement the interaction and data transmission between the server and the client, and the source station uses web services belonging to different networks. Through different test cases on the server, authorization access verification for different user roles and different isolated network segments can be achieved quickly, meeting the requirements of efficient network connectivity verification and network authorization access.
[0041] This embodiment uses an automated program to detect zero-trust network connectivity, which can greatly improve testing efficiency and troubleshoot link connectivity issues between zero-trust clients, edges, centers, and intranet penetrators.
[0042] Preferably, the implementation of role configuration and accessible resource management for zero-trust users in a standardized format file through an automated program includes:
[0043] Configure a zero-trust control center, deploy an automated testing server program in the zero-trust control center, automatically generate authorized users, generate user roles based on the configuration, associate user roles to generate network access permissions, and call the zero-trust control center interface to enable the zero-trust edge machine to automatically load the control center user authorization information.
[0044] Specifically, through automated programs, automated testing server programs are deployed in the center. Use cases are configured according to information such as users, organizational structures, and roles, and resources are configured according to domain names and protocols. This enables automatic generation of authorized users, user roles based on configurations, and network access permissions generated by associating user roles. By calling the zero-trust control center interface, the zero-trust edge machine can automatically load the control center user authorization information to achieve the purpose of quickly taking effect on permissions. The user authorization testing method is not limited to role authorization, but can also achieve user organization authorization and single-user authorization testing through extension methods. User resource access authorization includes web site authorization, IP resource authorization, port access authorization, etc.
[0045] Preferably, the implementation of role configuration and accessible resource management for zero-trust users in a standardized format file through an automated program includes:
[0046] Configure the client, which connects to the server program, obtains the login user account configuration information, launches the zero-trust client program through commands, and dynamically configures the login user account according to the server test case, so that the client environment has zero-trust network access permissions; the client calls the test script to implement the availability detection of network resource permissions.
[0047] Specifically, the client connects to the server program, obtains the login user account configuration information, launches the zero-trust client program through commands, calls the webkit automation framework, and dynamically configures the login user account according to the server test case, so that the client environment has zero-trust network access permissions. According to the pre-made resource access script, the client calls the test script to detect the availability of network resource permissions.
[0048] Preferably, the implementation of role configuration and accessible resource management for zero-trust users in a standardized format file through an automated program includes:
[0049] Configure a zero-trust edge server, which is installed with a log collection program to aggregate and collect logs according to specified fields, collect users, access resources, and granted permissions; set parsing fields through instruction formats, and count user access logs in real time, and report to the server after collection and aggregation.
[0050] Specifically, the zero-trust edge server installs a log collection program to aggregate and collect logs according to the specified fields, and collect information about users, access resources, and granted permissions. Through the instruction format, the parsing fields are set, including user name, role name, access resources, and authorization status, and user access logs are counted in real time. After the collection and aggregation, the data is reported to the server.
[0051] The server collects statistics on requests sent by the client and connection establishment status, collects user access information from the edge, determines the establishment and authorization status of the zero-trust network, and generates a test report.
[0052] Preferably, the testing client's access to authorized resources in the zero-trust network and implementing a back-to-source request test through a concurrent script include:
[0053] Test the user organization authorization and single user authorization based on resources of different back-to-origin protocols, including IP, domain name, port, and network segment.
[0054] Specifically, the user authorization test method is not limited to role authorization, but can also be extended to implement user organization authorization and single user authorization testing. Through automated test scripts, it can not only be used to test identity-based zero-trust access policies, but also to extend the testing of ABAC-based authorization policies and resources based on different back-source protocols, including but not limited to IP, domain name, port, and network segment.
[0055] This embodiment uses an automated program to detect zero-trust network connectivity. For scenarios where it is difficult to manually test different network partitions one by one, automatic scripts are configured to quickly create users and configure user permissions for different network sources. The automated test server collects and aggregates client and zero-trust edge logs to achieve data normalization management, counts the number of requests that pass the test, and automatically generates a current zero-trust network authorization access report to meet the scenarios of rapid testing and regression verification of zero-trust products. This embodiment can not only verify the execution of user authorization for zero-trust products, but also verify the availability of each zero-trust network under the condition that the authorization is passed, and determine the health and fault switching capabilities of other zero-trust components; compared with traditional zero-trust authorization testing, it can greatly improve testing efficiency, reduce problems with manual verification of zero-trust networks, and troubleshoot link connectivity issues between zero-trust clients, edges, centers, and intranet penetrators.
[0056] Example 2
[0057] Figure 3 This is a schematic diagram of the automated testing device for zero-trust identity authorization. Figure 3 As shown, this embodiment provides an automated testing device for zero-trust identity authorization, the device comprising:
[0058] Configuration module 301, used to implement role configuration and accessible resource management for zero-trust users in a standardized format file through an automated program, and to call the zero-trust control center through an interface to implement dynamic validation loading of zero-trust access;
[0059] Testing module 302, used to test the client's authorized resource access to the zero-trust network and implement back-to-source request testing through concurrent scripts;
[0060] The reporting module 303 is used to determine the establishment and authorization status of the zero-trust network based on the statistical information of the request sent by the client and the connection establishment status, and generate a test report.
[0061] Preferably, the configuration module 301 implements role configuration and accessible resource management for zero-trust users in a standardized format file through an automated program, including:
[0062] Configure a zero-trust control center, deploy an automated testing server program in the zero-trust control center, automatically generate authorized users, generate user roles based on the configuration, associate user roles to generate network access permissions, and call the zero-trust control center interface to enable the zero-trust edge machine to automatically load the control center user authorization information.
[0063] Preferably, the configuration module 301 implements role configuration and accessible resource management for zero-trust users in a standardized format file through an automated program, including:
[0064] Configure the client, which connects to the server program, obtains the login user account configuration information, launches the zero-trust client program through commands, and dynamically configures the login user account according to the server test case, so that the client environment has zero-trust network access permissions; the client calls the test script to implement the availability detection of network resource permissions.
[0065] Preferably, the configuration module 301 implements role configuration and accessible resource management for zero-trust users in a standardized format file through an automated program, including:
[0066] Configure a zero-trust edge server, which is installed with a log collection program to aggregate and collect logs according to specified fields, collect users, access resources, and granted permissions; set parsing fields through instruction formats, and count user access logs in real time, and report to the server after collection and aggregation.
[0067] Preferably, the test module 302 tests the client's authorized resource access to the zero-trust network, and implements the back-to-source request test through concurrent scripts, including:
[0068] Test the user organization authorization and single user authorization based on resources of different back-to-origin protocols, including IP, domain name, port, and network segment.
[0069] The specific implementation process of the functions realized by each module in this embodiment 2 is the same as the implementation process in embodiment 1, and will not be repeated here.
[0070] The above description is only a preferred embodiment of the present invention, and does not limit the patent scope of the present invention. All equivalent structural changes made by using the contents of the present invention specification and drawings under the concept of the present invention, or directly / indirectly applied in other related technical fields are included in the patent protection scope of the present invention.
Claims
1. An automated testing method for zero-trust identity authorization, characterized in that: The method comprises the steps of: S1: Through automated programs, standardized format files are used to implement role configuration and accessible resource management for zero-trust users, and the zero-trust control center is called through an interface to implement dynamic entry into force of zero-trust access. S2: Test the client's authorized resource access to the zero-trust network and implement back-to-origin request testing through concurrent scripts; S3: Based on the statistical information of the requests sent by the test client and the connection establishment status, determine the establishment and authorization status of the zero-trust network and generate a test report; The implementation of role configuration and accessible resource management for zero-trust users through automated procedures in standardized format files includes: Configure a zero-trust control center, deploy an automated testing server program in the zero-trust control center, automatically generate authorized users, generate user roles according to the configuration, associate user roles to generate network access rights, and call the zero-trust control center interface to enable the zero-trust edge server to automatically load the control center user authorization information; The implementation of role configuration and accessible resource management for zero-trust users through automated procedures in standardized format files includes: Configure a test client, which connects to the test server program, obtains login user account configuration information, launches the zero-trust client program through commands, and dynamically configures the login user account according to the test server test case, so that the client environment has zero-trust network access permissions; the test client calls the test script to implement the availability detection of network resource permissions; The implementation of role configuration and accessible resource management for zero-trust users through automated procedures in standardized format files includes: Configure a zero-trust edge server, which is installed with a log collection program to aggregate and collect logs according to specified fields, collect users, access resources, and granted permissions; set parsing fields through instruction formats, and count user access logs in real time, and report to the test server after collection and aggregation.
2. The method according to claim 1, characterized in that The test client's authorized resource access to the zero-trust network and the back-to-origin request test implemented through concurrent scripts include: Test the user organization authorization and single user authorization based on resources of different back-to-origin protocols, including IP, domain name, port, and network segment.
3. An automated testing device for zero-trust identity authorization, characterized in that: The device comprises: The configuration module is used to implement role configuration and accessible resource management for zero-trust users through automated programs and standardized format files, and to call the zero-trust control center through an interface to implement dynamic entry into force of zero-trust access; The test module is used to test the client's authorized resource access to the zero-trust network and implement the back-to-origin request test through concurrent scripts; The reporting module is used to determine the establishment and authorization of the zero-trust network and generate a test report based on the statistical information of the client's request and the connection establishment status; The configuration module implements role configuration and accessible resource management for zero-trust users through automated procedures in a standardized format file, including: Configure a zero-trust control center, deploy an automated testing server program in the zero-trust control center, automatically generate authorized users, generate user roles according to the configuration, associate user roles to generate network access rights, and call the zero-trust control center interface to enable the zero-trust edge server to automatically load the control center user authorization information; The configuration module implements role configuration and accessible resource management for zero-trust users through automated procedures in a standardized format file, including: Configure a test client, which connects to the test server program, obtains login user account configuration information, launches the zero-trust client program through commands, and dynamically configures the login user account according to the test server test case, so that the client environment has zero-trust network access permissions; the test client calls the test script to implement the availability detection of network resource permissions; The configuration module implements role configuration and accessible resource management for zero-trust users through automated procedures in a standardized format file, including: Configure a zero-trust edge server, which is installed with a log collection program to aggregate and collect logs according to specified fields, collect users, access resources, and granted permissions; set parsing fields through instruction formats, and count user access logs in real time, and report to the test server after collection and aggregation.
4. The device according to claim 3, characterized in that The test module tests the client's authorized resource access to the zero-trust network, and implements the back-to-origin request test through concurrent scripts, including: Test the user organization authorization and single user authorization based on resources of different back-to-origin protocols, including IP, domain name, port, and network segment.
