Customized watermark filling method for informatization system with multiple authentication modes

Through Nginx reverse proxy and Golang middleware services, the personalized watermarks are dynamically generated in a multi-authentication environment and high-concurrency requests are processed, which solves the problems of watermark application limitations and insufficient performance in a multi-authentication environment, and improves the information system Security and traceability, suitable for a variety of authentication methods and high concurrency scenarios.

CN119004418APending Publication Date: 2024-11-22BEIJING BITE YIPAI INFORMATION TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411222522.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-02
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

The existing watermark technology is limited in the application of multiple authentication methods in enterprise environments. Static watermarks are prone to forgery, have low security, and have poor performance in high concurrency scenarios, which cannot meet the needs of large enterprises.

Method used

Using Nginx reverse proxy configuration, Golang middleware service, personalized watermark generation, document output and watermark addition, as well as high concurrency processing and log monitoring, authenticated information through Nginx and Golang services, dynamically generate personalized watermarks, and use Golang The concurrency model handles multiple concurrent requests to ensure data security and consistency.

Benefits of technology

It realizes document output and personalized watermark addition under multiple authentication methods, improves the security of the information system and traceability of information, supports multiple authentication methods, enhances the compatibility and flexibility of the system, and ensures high efficiency. run.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119004418A_ABST
    Figure CN119004418A_ABST
Patent Text Reader

Abstract

The invention discloses a customized watermark filling method for an informatization system with multiple authentication modes. The filling method comprises the steps of Nginx reverse proxy configuration, Golang middleware service, personalized watermark generation, document output and watermark filling, high-concurrency processing and logging and monitoring. The method has the beneficial effects that the filling method is suitable for performing document output and personalized watermark filling in multiple authentication modes in an enterprise, the problems of document output and personalized watermark filling in multiple authentication modes in the enterprise are solved, and the safety of an information system and the traceability of information are improved; the personalized watermark can be dynamically generated according to user information to mark a document source and ensure marking of information traceability, various authentication modes in an enterprise are supported, the compatibility and flexibility of the system are improved, the traceability and safety of the document are enhanced through the personalized watermark, and the user experience is improved. And the high concurrent processing capability of the Golang ensures the efficient operation of the system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to a method for adding watermarks, specifically a method for adding customized watermarks to an information system with multiple authentication methods, and belongs to the technical field of power transmission engineering cost application. Background Art

[0002] With the development of enterprise informatization, internal information system security and information traceability have become increasingly important. Existing watermark technology is usually used to protect intellectual property rights and prevent information leakage, but its application has limitations in enterprise environments with multiple authentication methods. The limitations are mainly manifested in:

[0003] (1) A watermarking scheme that uses a single authentication system only supports one authentication method and adds a static watermark when the document is output. Its disadvantages are: it does not support multiple authentication methods, which limits its application in complex enterprise environments; static watermarks are easily forged or tampered with, and are not very secure.

[0004] (2) Use server-side scripts to dynamically generate watermarks, but only for specific types of documents and do not support high-concurrency processing; its disadvantages are: limited support for document types, cannot meet the diverse document processing needs of enterprises, and poor performance in high-concurrency scenarios, which cannot meet the needs of large enterprises.

[0005] Therefore, in order to solve the above problems, a method for adding customized watermarks to an information system with multiple authentication methods is proposed. Summary of the invention

[0006] The purpose of this application is to solve the problem of document output and personalized watermarking under multiple authentication methods within the enterprise in order to improve the security of the information system and the traceability of information, and to provide a method for adding customized watermarks to an information system with multiple authentication methods.

[0007] The present application achieves the above-mentioned purpose through the following technical solutions, a method for adding customized watermarks to an information system of multiple authentication methods, and the adding method comprises the following steps:

[0008] (1) Nginx reverse proxy configuration;

[0009] (2) Golang middleware service;

[0010] (3) Personalized watermark generation;

[0011] (4) Document output and watermarking;

[0012] (5) High concurrent processing;

[0013] (6) Logging and monitoring.

[0014] In the technical solution, in step (1), in the Nginx configuration file, a reverse proxy rule is set for the output request path of each information system to redirect all output requests to the Golang middleware service.

[0015] In the technical solution, the SSL module of Nginx is used in step (1) to ensure that all communications are encrypted and transmitted via HTTPS, thereby improving security.

[0016] In the technical solution, a Golang Web service is written in step (2) as the backend processing service of the Nginx reverse proxy. In the service, the request from Nginx is first verified, the authentication information (such as JWT token, OAuth token, etc.) therein is parsed, and it is converted into an internal unified authentication token.

[0017] In the technical solution, in step (2), user information is obtained from the enterprise's internal user database based on the authentication token.

[0018] In the technical solution, in step (3), a personalized watermark is dynamically generated in the Golang middleware service according to user information. The watermark content may include user name, user ID, timestamp, IP address, etc. to ensure the traceability of the document. The generated watermark is superimposed on the document using an image processing library (such as Go's image package).

[0019] In the technical solution, in step (4), when the user requests to output a document, Nginx forwards the request to the Golang middleware service. After receiving the request, the Golang service selects an appropriate method to add a personalized watermark to the document according to the document type and format in the request. For documents such as PDF and Word, the corresponding libraries (such as gofpdf, unioffice, etc.) can be used to edit and add watermarks. After the watermark is added, the watermarked document is returned to Nginx, and then returned to the client by Nginx.

[0020] In the technical solution, the concurrency model of Golang is used in step (5), multiple concurrent document output requests are processed through goroutines, channels are used for communication between goroutines, the security and consistency of data are ensured, and the concurrent processing capability of the system is monitored and adjusted to adapt to the request load in different time periods.

[0021] In the technical solution, in step (6), the Golang middleware service records detailed logs of each request, including request time, user information, document type, and watermark content, and uses monitoring tools (such as Prometheus, Grafana, etc.) to monitor the performance and health of the system in real time.

[0022] In the present technical solution, all communications in step (6) are conducted via HTTPS to ensure the security of data during transmission, encrypt the storage and transmission of user authentication information to prevent information leakage, and regularly perform security audits and vulnerability scans on the system to ensure the security of the system.

[0023] The beneficial effects of the present application are as follows: the annotation method is suitable for document output and personalized watermark annotation under multiple authentication methods within the enterprise, solves the problem of document output and personalized watermark annotation under multiple authentication methods within the enterprise, improves the security of the information system and the traceability of information, and can dynamically generate personalized watermarks based on user information to identify the source of the document and ensure the traceability of information. It supports multiple authentication methods within the enterprise, improves the compatibility and flexibility of the system, enhances the traceability and security of the document through personalized watermarks, and Golang's high concurrent processing capability ensures the efficient operation of the system. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Figure 1 This is a flow chart of the filling method of this application. DETAILED DESCRIPTION

[0025] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only 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 creative work are within the scope of protection of this application.

[0026] Embodiment 1:

[0027] A method for adding customized watermarks to an information system with multiple authentication methods, the method comprising the following steps:

[0028] (1) Nginx reverse proxy configuration;

[0029] (2) Golang middleware service;

[0030] (3) Personalized watermark generation;

[0031] (4) Document output and watermarking;

[0032] (5) High concurrent processing;

[0033] (6) Logging and monitoring.

[0034] In the technical solution, in step (1), in the Nginx configuration file, a reverse proxy rule is set for the output request path of each information system to redirect all output requests to the Golang middleware service.

[0035] In the technical solution, the SSL module of Nginx is used in step (1) to ensure that all communications are encrypted and transmitted via HTTPS, thereby improving security.

[0036] In the technical solution, a Golang Web service is written in step (2) as the backend processing service of the Nginx reverse proxy. In the service, the request from Nginx is first verified, the authentication information (such as JWT token, OAuth token, etc.) therein is parsed, and it is converted into an internal unified authentication token.

[0037] In the technical solution, in step (2), user information is obtained from the enterprise's internal user database based on the authentication token, and the obtained user information is saved and backed up.

[0038] In the technical solution, in step (3), a personalized watermark is dynamically generated in the Golang middleware service according to user information. The watermark content may include user name, user ID, timestamp, IP address, etc. to ensure the traceability of the document. The generated watermark is superimposed on the document using an image processing library (such as Go's image package).

[0039] In the technical solution, in step (4), when the user requests to output a document, Nginx forwards the request to the Golang middleware service. After receiving the request, the Golang service selects an appropriate method to add a personalized watermark to the document according to the document type and format in the request. For documents such as PDF and Word, the corresponding libraries (such as gofpdf, unioffice, etc.) can be used to edit and add watermarks. After the watermark is added, the watermarked document is returned to Nginx, and then returned to the client by Nginx.

[0040] In the technical solution, the concurrency model of Golang is used in step (5), multiple concurrent document output requests are processed through goroutines, channels are used for communication between goroutines, the security and consistency of data are ensured, and the concurrent processing capability of the system is monitored and adjusted to adapt to the request load in different time periods.

[0041] In the technical solution, in step (6), the Golang middleware service records detailed logs of each request, including request time, user information, document type, and watermark content, and uses monitoring tools (such as Prometheus, Grafana, etc.) to monitor the performance and health of the system in real time.

[0042] In the present technical solution, all communications in step (6) are conducted via HTTPS to ensure the security of data during transmission, encrypt the storage and transmission of user authentication information to prevent information leakage, and regularly perform security audits and vulnerability scans on the system to ensure the security of the system.

[0043] The above method is suitable for the annotation of customized watermarks, which can save the acquired data, facilitate subsequent query, and the annotation method is convenient.

[0044] Embodiment 2:

[0045] A method for adding customized watermarks to an information system with multiple authentication methods, the method comprising the following steps:

[0046] (1) Nginx reverse proxy configuration;

[0047] (2) Golang middleware service;

[0048] (3) Personalized watermark generation;

[0049] (4) Document output and watermarking;

[0050] (5) High concurrent processing;

[0051] (6) Logging and monitoring.

[0052] In the technical solution, in step (1), in the Nginx configuration file, a reverse proxy rule is set for the output request path of each information system to redirect all output requests to the Golang middleware service.

[0053] In the technical solution, the SSL module of Nginx is used in step (1) to ensure that all communications are encrypted and transmitted via HTTPS, thereby improving security.

[0054] In the technical solution, a Golang Web service is written in step (2) as the backend processing service of the Nginx reverse proxy. In the service, the request from Nginx is first verified, the authentication information (such as JWT token, OAuth token, etc.) therein is parsed, and it is converted into an internal unified authentication token.

[0055] In the technical solution, in step (2), user information is obtained from the enterprise's internal user database based on the authentication token.

[0056] In the technical solution, in step (3), a personalized watermark is dynamically generated in the Golang middleware service according to user information. The watermark content may include user name, user ID, timestamp, IP address, etc. to ensure the traceability of the document. The generated watermark is superimposed on the document using an image processing library (such as Go's image package).

[0057] In the technical solution, in step (4), when the user requests to output a document, Nginx forwards the request to the Golang middleware service. After receiving the request, the Golang service selects an appropriate method to add a personalized watermark to the document according to the document type and format in the request. For documents such as PDF and Word, the corresponding libraries (such as gofpdf, unioffice, etc.) can be used to edit and add watermarks. After the watermark is added, the watermarked document is returned to Nginx, and then returned to the client by Nginx.

[0058] In the technical solution, the concurrency model of Golang is used in step (5), multiple concurrent document output requests are processed through goroutines, channels are used for communication between goroutines, the security and consistency of data are ensured, and the concurrent processing capability of the system is monitored and adjusted to adapt to the request load in different time periods.

[0059] In the technical solution, in step (6), the Golang middleware service records detailed logs of each request, including request time, user information, document type, and watermark content, and uses monitoring tools (such as Prometheus, Grafana, etc.) to monitor the performance and health of the system in real time.

[0060] In the present technical solution, all communications in step (6) are conducted via HTTPS to ensure the security of data during transmission, encrypt the storage and transmission of user authentication information to prevent information leakage, and regularly perform security audits and vulnerability scans on the system to ensure the security of the system.

[0061] The above method is suitable for adding customized watermarks, directly obtaining user data to achieve customized watermarking.

[0062] It is obvious 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 regarded as 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 regarded as limiting the claim to which it relates.

[0063] In addition, it should be understood that although the present specification is described according to implementation modes, not every implementation mode contains only one independent technical solution. This description of the specification is only for the sake of clarity. Those skilled in the art should regard the specification as a whole. The technical solutions in each embodiment may also be appropriately combined to form other implementation modes that can be understood by those skilled in the art.

Claims

1. A method for adding customized watermarks to an information system with multiple authentication methods, characterized in that: The filling method comprises the following steps: (1) Nginx reverse proxy configuration; (2) Golang middleware service; (3) Personalized watermark generation; (4) Document output and watermarking; (5) High concurrent processing; (6) Logging and monitoring.

2. The method for adding customized watermarks to an information system with multiple authentication modes according to claim 1, characterized in that: In the step (1), in the Nginx configuration file, a reverse proxy rule is set for the output request path of each information system to redirect all output requests to the Golang middleware service.

3. The method for adding customized watermarks to an information system with multiple authentication modes according to claim 1, characterized in that: In the step (1), the SSL module of Nginx is used to ensure that all communications are encrypted and transmitted via HTTPS, thereby improving security.

4. The method for adding customized watermarks to an information system with multiple authentication methods according to claim 1, characterized in that: In the step (2), a Golang Web service is written as the backend processing service of the Nginx reverse proxy. In the service, the request from Nginx is first verified, the authentication information (such as JWT token, OAuth token, etc.) therein is parsed, and it is converted into an internal unified authentication token.

5. The method for adding customized watermarks to an information system with multiple authentication methods according to claim 1, characterized in that: In the step (2), user information is obtained from the enterprise's internal user database based on the authentication token.

6. The method for adding customized watermarks to an information system with multiple authentication methods according to claim 1, characterized in that: In the step (3), in the Golang middleware service, a personalized watermark is dynamically generated according to the user information. The watermark content may include the user name, user ID, timestamp, IP address, etc. to ensure the traceability of the document. The generated watermark is superimposed on the document using an image processing library (such as Go's image package).

7. The method for adding customized watermarks to an information system with multiple authentication methods according to claim 1, characterized in that: In step (4), when the user requests to output a document, Nginx forwards the request to the Golang middleware service. After receiving the request, the Golang service selects an appropriate method to add a personalized watermark to the document according to the document type and format in the request. For documents such as PDF and Word, the corresponding libraries (such as gofpdf, unioffice, etc.) can be used to edit and add watermarks. After the watermark is added, the document with the watermark is returned to Nginx, and then returned to the client by Nginx.

8. The method for adding customized watermarks to an information system with multiple authentication methods according to claim 1, characterized in that: In the step (5), Golang's concurrency model is used to process multiple concurrent document output requests through goroutines, and channels are used for communication between goroutines to ensure data security and consistency, monitor and adjust the system's concurrent processing capabilities to adapt to request loads in different time periods.

9. The method for adding customized watermarks to an information system with multiple authentication methods according to claim 1, characterized in that: In step (6), the Golang middleware service records detailed logs of each request, including request time, user information, document type, and watermark content, and uses monitoring tools (such as Prometheus, Grafana, etc.) to monitor the performance and health of the system in real time.

10. The method for adding customized watermarks to an information system with multiple authentication methods according to claim 1, characterized in that: All communications in step (6) are conducted via HTTPS to ensure the security of data during transmission, encrypt the storage and transmission of user authentication information to prevent information leakage, and regularly perform security audits and vulnerability scans on the system to ensure the security of the system.