Data security authentication method and system based on WebFlux gateway

Through the non-blocking data security authentication method based on WebFlux gateway, the problems of poor performance and waste of hardware resources in traditional network security solutions are solved, efficient access rights control and data information security authentication are achieved, reducing the use of hardware resources and avoiding the original use Impact of business systems.

CN118972086APending Publication Date: 2024-11-15GANSUHAOBAI INFORMATION SERVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410875125.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-02
Publication Date
2024-11-15

AI Technical Summary

Technical Problem

While ensuring data security, traditional network security solutions lead to poor performance and waste of hardware resources, and cannot achieve efficient access control and data information security authentication without sacrificing data processing and transmission efficiency.

Method used

Using the data security authentication method based on WebFlux gateway, non-blocking data security authentication is achieved through encryption and format verification, authentication of access authentication processors, security processing of self-signed verification plug-ins, and security disposal of audit modules. Reduce the use of hardware resources and enable decoupling of business and permissions.

Benefits of technology

It significantly improves overall performance, reduces the use of hardware resources, realizes efficient access permission control and data information security authentication results, and avoids intrusion into the original business system code, ensuring the efficiency and security of data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118972086A_ABST
    Figure CN118972086A_ABST
Patent Text Reader

Abstract

The invention provides a data security authentication method and system based on a WebFlux gateway, and relates to the technical field of network security, the method comprises the following steps: S1, request data is encrypted and packaged into a data packet, and the data packet is sent to a data exchange channel of the WebFlux gateway for data inspection; transmitting the data packet passing the data check to an access authentication processor for data authentication; performing security authentication on the request data passing the authentication, and releasing the request data after the authentication is passed, so that the request data correctly enter a service executor; performing security processing on data or abnormal information returned by the service executor; and after auditing the data after security processing, outputting final security data. According to the data security authentication method and system based on the WebFlux gateway, the use of hardware resources can be reduced on the basis of remarkably improving the overall performance, and efficient calculation of access authority control and data information security authentication results is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of network security technology, and in particular to a data security authentication method and system based on a WebFlux gateway. Background Art

[0002] In the field of network security, there are currently a variety of encryption methods and access self-signature technologies. Although these technologies have been widely used, the implementation of these technologies often requires sacrificing efficiency to ensure data security. The same is true in the field of Web network security applications. In traditional solutions, it is often necessary to upgrade and accumulate computing hardware resources to ensure data security. The hard code implementation method cannot avoid the invasiveness of the code at all, resulting in poor performance of traditional authentication control methods when applied to the system, and a lot of hardware resources are wasted. Therefore, how to ensure data security without sacrificing the efficiency of data processing and transmission is an urgent problem that needs to be solved. Summary of the invention

[0003] The purpose of the present invention is to provide a data security authentication method and system based on WebFlux gateway, which can significantly improve the overall performance, reduce the use of hardware resources, and realize efficient calculation of access permission control and data information security authentication results.

[0004] The technical solution of the present invention is: In a first aspect, the present application provides a data security authentication method based on a WebFlux gateway, which comprises the following steps: S1, encrypts and encapsulates the request data into a data packet and sends it to the data exchange channel of the WebFlux gateway for data inspection; S2, forwarding the data packet that has passed the data check to the access authentication processor for data authentication; S3, conduct security authentication on the request data after authentication, and release the request data after authentication, so that it can correctly enter the business execution party; S4. Safely handle the data or abnormal information returned by the business executor; S5. Audit the data after security disposal and output the final security data.

[0005] Furthermore, in step S1, the data check includes: the data exchange channel performs a format check on the received data packets, discards the data packets that do not meet the requirements, and transfers the data packets that meet the requirements to the access authentication processor.

[0006] Furthermore, in step S2, the data authentication step includes: After receiving the data packet, the access authentication processor extracts the identification metadata information of the requester from the data packet; Query the source data of the access application according to the metadata identification information, and compare it with the data in the cache pool to confirm whether the requested data has application access rights; Perform mapping inclusion relationship check on the request data that passes the data comparison; After the data check is passed, the access source of the data is verified to determine whether the request data is sent by an abnormal requester. If so, the data packet is discarded. If not, the authentication is passed.

[0007] Furthermore, the mapping includes checking the relationship, including using the permission set identifier preset in the metadata to check with the request identifier in the current request data. If it passes, proceed to the next step; if it fails, a rejection signal is thrown.

[0008] Furthermore, in step S3, the above-mentioned safety identification step includes: Decrypt the data packet. If the decryption fails, a failure message is returned. If the decryption succeeds, the data packet is transferred to access the self-signed verification plug-in. The data packet is digitally verified by accessing the self-signed verification plug-in. If the verification fails, the verification failure information is returned. If the verification succeeds, the data packet is forwarded to the data security processing plug-in for security processing; The securely processed data packets are forwarded to the business executor to wait for the return data.

[0009] Furthermore, step S4 includes: uniformly encrypting and encapsulating the data or abnormal information returned by the business executor.

[0010] Furthermore, in step S5, the above-mentioned step of auditing the data after security disposal includes: verifying whether the requester of the data after security disposal has security risks. If so, the requester is allowed to be marked as an abnormal request source, and when the request sent by the requester arrives at the WebFlux gateway again, all requests from the requester are directly rejected. If not, the verification is passed to output the final security data.

[0011] In a second aspect, the present application provides a data security authentication system based on a WebFlux gateway, including: The data exchange module is used to encrypt and encapsulate the request data into data packets and send them to the data exchange channel of the WebFlux gateway for data inspection; The access authentication module is used to forward the data packets that have passed the data check to the access authentication processor for data authentication; The data security authentication module is used to perform security authentication on the request data after authentication, and release the request data after authentication, so that it can enter the business execution party correctly; Data security processing module, used to safely process data or abnormal information returned by the business executor; The audit module is used to audit the data after security disposal and output the final security data.

[0012] In a third aspect, the present application provides an electronic device, including: A memory for storing one or more programs; processor; When the above one or more programs are executed by the above processor, a data security authentication method and system based on the WebFlux gateway as described in any one of the above first aspects is implemented.

[0013] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a data security authentication method and system based on a WebFlux gateway as described in any one of the first aspects above.

[0014] Compared with the prior art, the present invention has at least the following advantages or beneficial effects: The present invention provides a data security authentication method and system based on WebFlux gateway, which implements a front-end entry mode of all access authentications in a customized non-declarative manner in a high-performance non-blocking WebFlux gateway, and combines customization to implement multiple filter chain data security authentications. Different from the traditional method of performing access declarative authentication control in a blocking MVC Servlet thread, the present invention significantly improves the overall performance, reduces the use of hardware resources, decouples business and permissions of the business system, and completely isolates it from the original business system, making it completely non-invasive to the business system code, without affecting the operation of the original business system or increasing the work of the original business system, and realizing efficient calculation of access permission control and data information security authentication results. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.

[0016] Figure 1 A flow chart of a data security authentication method based on a WebFlux gateway according to the present invention; Figure 2 A schematic structural block diagram of a data security authentication system based on a WebFlux gateway of the present invention; Figure 3The figure is a schematic structural block diagram of an electronic device according to an embodiment of the present invention.

[0017] Icon: 101, memory; 102, processor; 103, communication interface. DETAILED DESCRIPTION

[0018] 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, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations.

[0019] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.

[0020] It should be noted that, in this article, the term "comprises" or any other variant thereof is 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 includes 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 "comprises..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0021] In conjunction with the accompanying drawings, some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.

[0022] Example 1 In a first aspect, the present application provides a data security authentication method based on a WebFlux gateway, which comprises the following steps: S1, encrypts and encapsulates the request data into a data packet and sends it to the data exchange channel of the WebFlux gateway for data inspection; S2, forwarding the data packet that has passed the data check to the access authentication processor for data authentication; S3, conduct security authentication on the request data after authentication, and release the request data after authentication, so that it can correctly enter the business execution party; S4. Safely handle the data or abnormal information returned by the business executor; S5. Audit the data after security disposal and output the final security data.

[0023] As a preferred implementation, in step S1, the data check includes: the data exchange channel performs a format check on the received data packets, discards the data packets that do not meet the requirements, and forwards the data packets that meet the requirements to the access authentication processor.

[0024] As a preferred implementation, in step S2, the step of data authentication includes: After receiving the data packet, the access authentication processor extracts the identification metadata information of the requester from the data packet; Query the source data of the access application according to the metadata identification information, and compare it with the data in the cache pool to confirm whether the requested data has application access rights; Perform mapping inclusion relationship check on the request data that passes the data comparison; After the data check is passed, the access source of the data is verified to determine whether the request data is sent by an abnormal requester. If so, the data packet is discarded. If not, the authentication is passed.

[0025] As a preferred implementation, the mapping inclusion relationship check includes using the permission set identifier preset in the metadata to check with the request identifier in the current request data. If it passes, the next step is performed; if it fails, a rejection signal is thrown.

[0026] As a preferred implementation, in step S3, the step of security identification includes: Decrypt the data packet. If the decryption fails, a failure message is returned. If the decryption succeeds, the data packet is transferred to access the self-signed verification plug-in. The data packet is digitally verified by accessing the self-signed verification plug-in. If the verification fails, the verification failure information is returned. If the verification succeeds, the data packet is forwarded to the data security processing plug-in for security processing; The securely processed data packets are forwarded to the business executor to wait for the return data.

[0027] It should be noted that the decryption operation of the data packet corresponds to the encryption operation, and both use the SM2 and SM4 encryption algorithms, with 128-bit and 256-bit key lengths, to ensure the efficiency and security of encryption and decryption; The digital signature verification process includes using ApiKey and ApiSecret to carry the specified request parameters for dictionary sorting and combining Nonce, TimeStamp, and SignType for encryption operations, where Nonce is a random string, TimeStamp is a timestamp, and SignType is the agreed encryption algorithm. SHA256 is selected for operation, and the signature character Sign is generated through the signature service. Then, the generated Sign is matched with the signature in the data packet for consistency; The data security processing plug-in includes a data body malicious code implantation processing plug-in. After these plug-ins complete the processing, the decrypted and authenticated complete data packet is forwarded to the business executor, and after sending, the plug-in waits for the business executor to return the data.

[0028] As a preferred implementation, step S4 includes: uniformly encrypting and encapsulating the data or exception information returned by the business executor.

[0029] As a preferred implementation, in step S5, the step of auditing the data after security disposal includes: verifying whether the requester of the data after security disposal has security risks. If so, the requester is allowed to be marked as an abnormal request source, and when the request sent by the requester arrives at the WebFlux gateway again, all requests from the requester are directly rejected. If not, the verification is passed to output the final security data.

[0030] In this example, see Figure 1 , Figure 1 The figure shows a process step diagram of a data security authentication method based on a WebFlux gateway provided in an embodiment of the present application.

[0031] Step S101, the data requester encrypts and encapsulates the requester's identification metadata information and request parameters and sends them to the data exchange channel of the WebFlux gateway; Step S102, the data exchange channel performs format verification on the received data packets, and the data packets that do not meet the requirements will be discarded, and the data packets that meet the requirements will be forwarded to the access authentication processor; Step S103, after receiving the data packet, the access authentication processor extracts the identification metadata information of the requester from the data packet, queries the access application source data according to the metadata identification information, and compares it with the data in the cache pool to confirm whether it has the application access rights; after passing, enter the access control main policy, and use the metadata preset permission set identifier and the current request identifier to map the inclusion relationship check. If true is returned, proceed to the next step, otherwise a rejection signal is thrown; finally, the process queries the abnormal access source pool to verify whether it is the data sent by the abnormal requester. If so, the data packet is discarded. If not, the authentication is passed and the data packet is forwarded to the WebFlux data security authentication link for processing; Step S104, the data packet enters the data security authentication processing link, and firstly performs a decryption operation on the encrypted content of the data packet; Step S105: After the data is decrypted, it will be forwarded to the access self-signature verification plug-in. If it does not match, the digital signature verification fails and the verification failure information is returned; if it succeeds, the data packet will continue to be forwarded to the next processing plug-in; Step S107: The business executor receives the complete request data, executes its own business code logic, and returns the response data after the processing is completed. In this process, the business executor does not need to worry about the authentication behavior of data security, but can focus on its own business behavior; Step S108, after receiving the response data, the data security authentication link post-processing plug-in uniformly encrypts and encapsulates the data, and the encapsulation rule is consistent with the encapsulation rule of the requester; Step S109, after the response data packet is encapsulated, it will be forwarded to the data exchange channel; Step S110: the data exchange channel encapsulates the response data packet into an HTTP data packet and returns it to the requesting party.

[0032] Example 2 See also Figure 2 , Figure 2 Shown is a schematic structural block diagram of a data security authentication system based on the WebFlux gateway.

[0033] In a second aspect, the present application provides a data security authentication system based on a WebFlux gateway, including: The data exchange module is used to encrypt and encapsulate the request data into data packets and send them to the data exchange channel of the WebFlux gateway for data inspection; The access authentication module is used to forward the data packets that have passed the data check to the access authentication processor for data authentication; The data security authentication module is used to perform security authentication on the request data after authentication, and release the request data after authentication, so that it can enter the business execution party correctly; Data security processing module, used to safely process data or abnormal information returned by the business executor; The audit module is used to audit the data after security disposal and output the final security data.

[0034] Example 3 See also Figure 3 , Figure 3 A schematic structural block diagram of an electronic device provided in an embodiment of the present application.

[0035] An electronic device includes a memory 101, a processor 102 and a communication interface 103, wherein the memory 101, the processor 102 and the communication interface 103 are electrically connected to each other directly or indirectly to realize data transmission or interaction. For example, these components can be electrically connected to each other through one or more communication buses or signal lines. The memory 101 can be used to store software programs and modules, and the processor 102 executes various functional applications and data processing by executing the software programs and modules stored in the memory 101. The communication interface 103 can be used to communicate signaling or data with other node devices.

[0036] Among them, the memory 101 can be, but is not limited to, a random access memory (RAM), a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable read-only memory (EEPROM), etc.

[0037] The processor 102 may be an integrated circuit chip with signal processing capability. The processor 102 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may 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, or discrete hardware components.

[0038] It can be understood that the structure shown in the figure is only for illustration, and a data security authentication method and system based on WebFlux gateway may also include more or fewer components than shown in the figure, or have a different configuration than shown in the figure. Each component shown in the figure can be implemented by hardware, software or a combination thereof.

[0039] In the embodiments provided in the present application, it should be understood that the disclosed method can also be implemented in other ways. The embodiments described above are merely schematic, for example, the flowchart or block diagram in the accompanying drawings shows the possible implementation architecture, functions and operations of the method and computer program product according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or the flowchart, and the combination of the boxes in the block diagram and / or the flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0040] In addition, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.

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

[0042] To summarize, the embodiment of the present application provides a data security authentication method and system based on the WebFlux gateway, which implements the front-end entry method of all access authentications through a customized non-declarative method in a high-performance non-blocking WebFlux gateway, and combines customization to implement multiple filter chain data security authentications. On the basis of significantly improving the overall performance, it reduces the use of hardware resources, decouples the business system from the permissions, and completely isolates it from the original business system, making it completely non-invasive to the business system code, without affecting the operation of the original business system or increasing the work of the original business system, and achieving efficient calculation of access permission control and data information security authentication results.

[0043] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

[0044] It will be apparent to those skilled in the art that the present application is not limited to the details of the exemplary embodiments described above, and that the present application can be implemented in other specific forms without departing from the spirit or essential features of the present application. Therefore, the embodiments should be considered exemplary and non-limiting in all respects, and the scope of the present application is defined by the appended claims rather than the above description, and it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims be included in the present application. Any reference numeral in a claim should not be considered as limiting the claim to which it relates.

Claims

1. A data security authentication method based on WebFlux gateway, characterized in that: The following steps are involved: S1, encrypts and encapsulates the request data into a data packet and sends it to the data exchange channel of the WebFlux gateway for data inspection; S2, forwarding the data packet that has passed the data check to the access authentication processor for data authentication; S3, conduct security authentication on the request data after authentication, and release the request data after authentication, so that it can correctly enter the business execution party; S4. Safely handle the data or abnormal information returned by the business executor; S5. Audit the data after security disposal and output the final security data.

2. A data security authentication method based on WebFlux gateway as described in claim 1, characterized in that: In step S1, the data check includes: the data exchange channel performs a format check on the received data packets, discards the data packets that do not meet the requirements, and transfers the data packets that meet the requirements to the access authentication processor.

3. A data security authentication method based on WebFlux gateway as described in claim 1, characterized in that: In step S2, the data authentication step includes: After receiving the data packet, the access authentication processor extracts the identification metadata information of the requester from the data packet; Query the source data of the access application according to the metadata identification information, and compare it with the data in the cache pool to confirm whether the requested data has application access rights; Perform mapping inclusion relationship check on the request data that passes the data comparison; After the data check is passed, the access source of the data is verified to determine whether the request data is sent by an abnormal requester. If so, the data packet is discarded. If not, the authentication is passed.

4. A data security authentication method based on WebFlux gateway as described in claim 3, characterized in that: The mapping includes checking the relationship, including using the permission set identifier preset in the metadata to check with the request identifier in the current request data, if passing, proceeding to the next step, if not passing, throwing out a rejection signal.

5. A data security authentication method based on WebFlux gateway as claimed in claim 1, characterized in that: In step S3, the safety identification step includes: Decrypt the data packet. If the decryption fails, a failure message is returned. If the decryption succeeds, the data packet is transferred to access the self-signed verification plug-in. The data packet is digitally verified by accessing the self-signed verification plug-in. If the verification fails, the verification failure information is returned. If the verification succeeds, the data packet is forwarded to the data security processing plug-in for security processing; The securely processed data packets are forwarded to the business executor to wait for the return data.

6. A data security authentication method based on WebFlux gateway as described in claim 1, characterized in that: Step S4 includes: uniformly encrypting and encapsulating the data or abnormal information returned by the business executor.

7. A data security authentication method based on WebFlux gateway as described in claim 1, characterized in that: In step S5, the step of auditing the data after security disposal includes: verifying whether the requester of the data after security disposal has security risks. If so, the requester is allowed to be marked as an abnormal request source. When the request sent by the requester arrives at the WebFlux gateway again, all requests from the requester are directly rejected. If not, the verification is passed to output the final security data.

8. A data security authentication system based on WebFlux gateway as described in claim 1, characterized in that: include: The data exchange module is used to encrypt and encapsulate the request data into data packets and send them to the data exchange channel of the WebFlux gateway for data inspection; The access authentication module is used to forward the data packets that have passed the data check to the access authentication processor for data authentication; The data security authentication module is used to perform security authentication on the request data after authentication, and release the request data after authentication, so that it can enter the business execution party correctly; Data security processing module, used to safely process data or abnormal information returned by the business executor; The audit module is used to audit the data after security disposal and output the final security data.

9. An electronic device, characterized in that: include: A memory for storing one or more programs; processor; When the one or more programs are executed by the processor, a data security authentication method based on a WebFlux gateway as described in any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, a data security authentication method based on a WebFlux gateway as described in any one of claims 1 to 7 is implemented.