A method and system for implementing clientless SDP architecture
The SPA authentication method of the clientless SDP architecture and SDP proxy server solves the problem that the traditional SDP architecture requires local terminals for authentication, and achieves a lightweight SPA authentication process and high-security network stealth capabilities.
Patent Information
- Application Number
- CN202210227306.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-08
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2042-03-08
AI Technical Summary
The traditional software-defined perimeter (SDP) architecture requires users to install local terminal programs for Single Package Authorization (SPA) authentication, which cannot adapt to the cloudification and lightweight trends of the Internet, resulting in limited security and implementation.
It adopts clientless SDP architecture and provides SPA authentication function through SDP proxy server. The terminal and SDP controller are authenticated through UDP packets and use counters to prevent malicious logins to achieve a lightweight SPA authentication process. At the same time, the SDP controller generates Token is used for authentication and access permission configuration.
It enables users to perform SPA authentication in a lightweight manner, improves the implementability and network stealth capabilities of the SDP architecture, and enhances system security.
Smart Images

Figure CN114615329B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of software defined boundaries, and in particular to a method for implementing a clientless SDP architecture. Background Art
[0002] Software Defined Perimeter (SDP) is a security framework developed by the Cloud Security Alliance (CSA) that hides core network assets and settings and is not exposed to the Internet by default. Visitors use the Single Packet Authorization (SPA) technology through the terminal to send an authentication request. After the authentication is passed, the SDP controller dynamically opens the access rights of the specified network assets to the specified visitor. In implementation, the SDP gateway usually adopts the default access policy of discarding all data packets. Therefore, unauthorized users and devices will not be able to detect or access protected application ports, which greatly improves the security level of the system.
[0003] The traditional SDP architecture adopts the gateway mode. The access rules established by the SDP controller are only open to authorized users and services. The keys and policies are also dynamic and only for single access. Unauthorized stranger access is completely blocked and rejected during the TCP link establishment phase. The system security is enhanced through a single access control method.
[0004] However, the gateway mode of SDP requires users to install the SDP terminal program to complete the SPA authentication process with the SDP controller. Under the influence of the current Internet wave, all businesses are gradually moving towards cloud computing and lightweight. At this time, if you still need to rely on local SDP terminals for the SPA authentication process, it is obviously not in line with the development direction of modern Internet technology. Therefore, finding a lightweight SDP architecture implementation method has become a technical problem that urgently needs to be solved in the existing technology. Summary of the invention
[0005] In order to solve the problems existing in the related art, the present invention provides a method for implementing an SDP architecture, which solves the lightweight problem of the SDP architecture and improves the security of the SDP architecture.
[0006] To achieve the above object, the present invention adopts the following technical solution:
[0007] As a first aspect of the present invention, a method for implementing a clientless SDP architecture includes a SPA authentication method, wherein the SPA authentication method includes the following steps:
[0008] The terminal sends a login packet to the SDP proxy server;
[0009] The SDP proxy server receives the login packet and obtains the login parameters;
[0010] The SDP proxy server sends a SPA request to the SDP controller;
[0011] The SDP controller receives the SPA request and performs authentication.
[0012] Furthermore, the SDP proxy server includes a counter, which counts the number of identical login packets at a fixed time interval. When the counter reaches an alarm threshold, the identical login packets are rejected.
[0013] Furthermore, the SPA request is sent to the SDP server via a UDP data packet.
[0014] Optionally, a gateway configuration method is also included, and the gateway configuration method includes the following steps:
[0015] The SDP controller receives the application address, generates the corresponding proxy address, and forms the application information;
[0016] The SDP controller sends application information to the SDP gateway;
[0017] The SDP gateway parses application information and generates address conversion rules;
[0018] SDP controller configures access rights.
[0019] Optionally, the following steps are also included:
[0020] The terminal obtains the login page from the SDP proxy server;
[0021] The terminal sends login content to the SDP proxy server to initiate SPA authentication, wherein the login content includes the terminal IP, user name, and password, and the SPA authentication is to execute the SPA authentication method;
[0022] The SDP controller generates a token Token and sends authentication information to the SDP gateway, wherein the authentication information includes the token Token and the terminal IP;
[0023] The SDP controller returns the request information, wherein the request information includes the token Token and the terminal IP;
[0024] The terminal makes a request to the SDP gateway according to the request information;
[0025] The SDP gateway authenticates the request.
[0026] Optionally, as in the aforementioned method, after the SPA authentication is passed, the request information is returned to the SDP proxy server, the SDP proxy server obtains the proxy address result set of the controllable application from the SDP controller, and the terminal selects one of the proxy addresses in the proxy address result set of the SDP proxy server, adds the request information, and requests access to the SDP gateway.
[0027] Optionally, as in the aforementioned method, the terminal intercepts the application address and redirects to the login page of the SDP proxy server, the terminal sends the login content to the SDP proxy server, initiates the SPA authentication, and after the SPA authentication is passed, the SPA controller returns the proxy address and request information to the terminal, and the terminal requests access to the SDP gateway through the returned proxy address and request information.
[0028] As a second aspect of the present invention, a SDP architecture system includes:
[0029] Terminal, used to provide interactive operation between user and SDP proxy server;
[0030] SDP proxy server, used for communication between the terminal and the SDP controller;
[0031] SDP controller, used for SPA authentication, generating tokens and distributing authentication information and request information;
[0032] SDP gateway, used for user authentication, authorization verification of user requests and request forwarding;
[0033] Application server is a physical device that stores the target application or service for the user's final destination.
[0034] As a third aspect of the present invention, an electronic device includes: a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;
[0035] The memory is used to store computer programs;
[0036] The processor is used to execute the program stored in the memory to implement the method described in any of the preceding items.
[0037] As a fourth aspect of the present invention, a storage medium includes a stored program, wherein the program executes any of the methods described above when running.
[0038] The beneficial effects of the present invention are as follows: by providing the SPA authentication function through the SDP proxy server, the user can access the SDP proxy server in a lightweight manner for SPA authentication, thereby realizing the SDP architecture function and improving the feasibility of the SDP architecture solution; at the same time, the SDP proxy server can effectively isolate the connection relationship between the terminal and the SDP architecture, so that the SDP architecture has a higher network stealth capability. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0040] Figure 1 The figure is a flowchart of the SPA authentication method.
[0041] Figure 2 Flowchart of how to configure a gateway.
[0042] Figure 3 A flowchart of a method for implementing the SDP architecture is shown in FIG.
[0043] Figure 4 This is a schematic diagram of the SDP architecture system structure.
[0044] Figure 5 A schematic diagram of the electronic device structure. DETAILED DESCRIPTION
[0045] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution 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 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 making creative work are within the scope of protection of this application.
[0046] Reference Figure 1 , a method for implementing an SDP architecture provided in an embodiment of the present application, including a SPA authentication method, wherein the SPA authentication method includes the following steps:
[0047] Step S11: The terminal sends a login packet to the SDP proxy server.
[0048] Specifically, the terminal has a communication function and is connected to the SDP proxy server for communication. The login package includes the terminal IP, user name, and password.
[0049] Step S12: The SDP proxy server receives the login package and obtains login parameters.
[0050] Specifically, the SDP proxy server parses the login package, obtains the terminal IP, user name, and password, and verifies the data security of the login package.
[0051] As a preferred implementation, the SDP proxy server includes a counter, which counts the number of identical login packets at a fixed time interval. When the counter reaches an alarm threshold, the server refuses to receive the identical login packets.
[0052] Step S13: The SDP proxy server sends a SPA request to the SDP controller.
[0053] Specifically, the SPA request includes request parameters, and the request parameters include terminal IP, user name, and password.
[0054] As a preferred implementation, the SPA request is sent to the SDP server via a UDP data packet.
[0055] Step S14: The SDP controller receives the SPA request and performs authentication.
[0056] Specifically, the SDP server receives the SPA request, obtains the username and password, and performs authentication based on the username and password. The SDP controller stores the username and password that are entered in advance, and checks whether the matching password is correct based on the username, thereby verifying whether the user is legitimate.
[0057] Sending SPA authentication requests to the SDP controller through the SDP proxy server makes the entire authentication process more flexible. Authentication can be completed through lightweight network interactions such as browsers or applets. At the same time, the two operations of users sending login information and SPA authentication are isolated, making it impossible for users to track and crack SPA authentication, further improving the security of the entire SDP architecture.
[0058] Reference Figure 2 The embodiment of the present application provides a method for implementing an SDP architecture, further comprising a gateway configuration method, wherein the gateway configuration method comprises the following steps:
[0059] Step S21, the SDP controller receives the application address, generates a corresponding proxy address, and forms application information.
[0060] Specifically, the application address can be input by the user, or automatically reported to the SDP controller by the application or service. The proxy address is a network request address generated by SDP by parsing the application address, which is different from other application addresses. The proxy address domain name is the SDP gateway IP address or its network mapping address. The SDP gateway can be requested through the proxy address, and the SDP gateway can obtain the application address corresponding to the proxy address by parsing the proxy address. The application information includes the corresponding relationship between the application address and the proxy address.
[0061] Step S22: The SDP controller sends application information to the SDP gateway.
[0062] Step S23: The SDP gateway parses the application information and generates an address conversion rule.
[0063] Specifically, the SDP gateway parses the application address, obtains the correspondence between the application address and the proxy address, and maps the proxy address to the application address. When a request is made to the SDP gateway through the proxy address, the SDP gateway will find the corresponding mapped application address through the proxy address and forward the request to the corresponding application address.
[0064] Step S24: The SDP controller configures access rights.
[0065] Specifically, the SDP controller matches the user name with the proxy address and saves it to the SDP controller.
[0066] Through this gateway configuration method, user authority limitation and request forwarding can be implemented, network environment isolation can be achieved, and application access can be made more secure and confidential.
[0067] Reference Figure 3 , a method for implementing a clientless SDP architecture provided in an embodiment of the present application, comprising the following steps:
[0068] Step S31: The terminal obtains a login page from the SDP proxy server.
[0069] Specifically, the SDP proxy server pre-saves the page script of the login page, and the terminal obtains the page script of the login page from the SDP proxy server through a network request, and displays it on the terminal through a page rendering method.
[0070] As a preferred implementation, the terminal requests the SDP proxy server to obtain the login page through https request.
[0071] Step S32: The terminal sends login content to the SDP proxy server to initiate SPA authentication.
[0072] Specifically, the login content is the content required for SPA authentication. In this embodiment, the login content includes the terminal IP, user name, and password. The SPA authentication is the SPA authentication method described in the above steps S11 to S14.
[0073] Step S33: The SDP controller generates a token Token and sends authentication information to the SDP gateway.
[0074] Specifically, the SDP controller performs SPA authentication, generates a token Token after the authentication is passed, and sends authentication information to the SDP gateway, wherein the authentication information includes the token Token and the terminal IP. The SDP gateway receives and stores the authentication information.
[0075] Step S34: The SDP controller returns request information.
[0076] Specifically, the request information includes a token Token and a terminal IP, which correspond to the authentication information stored in the SDP gateway.
[0077] Step S35: The terminal makes a request to the SDP gateway according to the request information.
[0078] Specifically, the terminal obtains the proxy address corresponding to the application address to be accessed, and adds request information to make a request to the SDP gateway.
[0079] As an optional implementation, after the SPA authentication is passed, the request information is returned to the SDP proxy server. The SDP proxy server obtains the proxy address result set of the controllable application from the SDP controller. The terminal selects one of the proxy addresses in the proxy address result set of the SDP proxy server, adds the request information, and requests access to the SDP gateway.
[0080] As another optional implementation, the terminal intercepts the application address and redirects to the login page of the SDP proxy server. The terminal sends the login content to the SDP proxy server and initiates SPA authentication. After the SPA authentication is passed, the SPA controller returns the proxy address and request information to the terminal through the SDP proxy server. The terminal requests access to the SDP gateway through the returned proxy address and request information.
[0081] Step S36: The SDP gateway authenticates the request.
[0082] Specifically, the SDP gateway parses the request information, obtains the token, verifies the token, and detects the validity of the token.
[0083] According to the embodiment of the present invention, the SPA authentication function is provided by the SDP proxy server, and the user only needs to perform SPA authentication in a lightweight manner to realize the SDP architecture function and improve the feasibility of the SDP architecture solution. At the same time, the association between the SDP architecture and the user side is isolated by the SDP proxy server, so that the entire SDP architecture has a higher network stealth capability.
[0084] Reference Figure 4 On the other hand, the present application also provides an SDP architecture system, including:
[0085] The terminal is used to provide interactive operations between the user and the SDP proxy server. Specifically, the terminal is an operating terminal such as a mobile phone or a tablet that can perform network communication.
[0086] The SDP proxy server is used for communication between the terminal and the SDP controller.
[0087] The SDP controller is used to perform SPA authentication, generate tokens, and distribute authentication information and request information.
[0088] The SDP gateway is used for user authentication, authorization verification of user requests, and request forwarding.
[0089] Application server is a physical device that stores the target application or service for the user's final destination.
[0090] Reference Figure 5 On the other hand, the present application also provides an electronic device, including: a processor 11, a communication interface 12, a memory 13 and a communication bus 14, wherein the processor 11, the communication interface 12, and the memory 13 communicate with each other through the communication bus 14.
[0091] A memory 13, used for storing computer programs;
[0092] The processor 11 is used to execute the program stored in the memory 13 to implement the steps of the above method embodiment.
[0093] The bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0094] The communication interface is used for communication between the above electronic device and other devices.
[0095] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0096] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0097] An embodiment of the present application further provides a storage medium, the storage medium includes a stored program, wherein when the program is run, the method steps of the above method embodiment are executed.
[0098] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0099] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.
Claims
1. A method for implementing a clientless SDP architecture, characterized in that: The following steps are involved: The terminal obtains the login page from the SDP proxy server; The terminal sends login information to the SDP proxy server to initiate SPA authentication, wherein the login information includes the terminal IP, user name, and password; The SDP proxy server receives the login information and obtains the login parameters; The SDP proxy server sends a SPA request to the SDP controller; the SPA request includes the terminal IP, user name, and password; The SDP controller receives the SPA request and performs SPA authentication; After the SDP controller passes the authentication, it generates a token Token and sends authentication information to the SDP gateway, where the authentication information includes the token Token and the terminal IP; The SDP controller returns the request information, wherein the request information includes the token Token and the terminal IP; The terminal makes a request to the SDP gateway according to the request information; The SDP gateway authenticates the request.
2. The SDP architecture implementation method according to claim 1, characterized in that: The SDP proxy server includes a counter, which counts the number of identical login packets at a fixed time interval. When the counter reaches an alarm threshold, the server refuses to receive the identical login packets.
3. The method for implementing the SDP architecture according to claim 1, characterized in that: The SPA request is sent to the SDP server via a UDP data packet.
4. The method for implementing the SDP architecture according to claim 1, characterized in that: Also included is a gateway configuration method, the gateway configuration method comprising the following steps: The SDP controller receives the application address, generates the corresponding proxy address, and forms the application information; The SDP controller sends application information to the SDP gateway; The SDP gateway parses application information and generates address conversion rules; SDP controller configures access rights.
5. The method for implementing the SDP architecture according to claim 1, characterized in that: After the SPA authentication is passed, the request information is returned to the SDP proxy server. The SDP proxy server obtains the proxy address result set of the controllable application from the SDP controller. The terminal selects one of the proxy addresses in the proxy address result set of the SDP proxy server, adds the request information, and requests access to the SDP gateway.
6. The method for implementing the SDP architecture according to claim 1, characterized in that: The terminal intercepts the application address and redirects to the login page of the SDP proxy server. The terminal sends the login content to the SDP proxy server and initiates the SPA authentication. After the SPA authentication is passed, the SDP controller returns the proxy address and request information to the terminal, and the terminal requests access to the SDP gateway through the returned proxy address and request information.
7. A clientless SDP architecture system, characterized in that: include: Terminal, SDP proxy server, SDP controller, SDP gateway and application server; The terminal obtains the login page from the SDP proxy server; The terminal sends login information to the SDP proxy server to initiate SPA authentication, wherein the login information includes the terminal IP, user name, and password; The SDP proxy server receives the login information and obtains the login parameters; The SDP proxy server sends a SPA request to the SDP controller; the SPA request includes the terminal IP, user name, and password; The SDP controller receives the SPA request and performs SPA authentication; After the SDP controller passes the authentication, it generates a token Token and sends authentication information to the SDP gateway, where the authentication information includes the token Token and the terminal IP; The SDP controller returns the request information, wherein the request information includes the token Token and the terminal IP; The terminal makes a request to the SDP gateway according to the request information; The SDP gateway authenticates the request and forwards the request after successful authentication; Application server is the physical device that stores the target application or service for the user's final destination.
8. An electronic device, characterized in that: include: A processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; The memory is used to store computer programs; The processor is used to execute the program stored in the memory to implement the method described in any one of claims 1-6.
9. A storage medium, characterized in that: The storage medium includes a stored program, wherein the program executes the method according to any one of claims 1 to 6 when executed.
Citation Information
Patent Citations
Container login method and system, application server and storage medium
CN107948203A
Data processing method, device, system, medium and program
CN111600906A
Single packet authorization method and system
CN111770090A
Data security transmission method and device based on equipment identity pre-authentication
CN113612790A
Microservice authentication method, device and equipment for SaaS multi-tenant architecture
CN113923020A
