Authorization management method and device, storage medium and electronic equipment

By receiving and verifying authorization requests on the CDN server and generating and managing authorization rules, the problems of remote functional service security and dynamic changes in user IP in the CDN service system are solved, and the dual guarantee of security and flexibility is achieved.

CN119011218APending Publication Date: 2024-11-22HUNAN HAPPLY SUNSHINE INTERACTIVE ENTERTAINMENT MEDIA CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411009214.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-25
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

In CDN service systems, the security of remote functional services is difficult to ensure, especially when the user's IP address changes dynamically, the existing static IP whitelist update mechanism cannot be effectively adapted, increasing the risk of unauthorized access.

Method used

By receiving the authorization request sent by the management server on the CDN server, an authorization rule is generated based on the request identification, username, source IP and authorization time limit, and a listening port is assigned to it, verifying the source IP address of the remote function service connection request, if match Then forward, otherwise it will not respond, maintain the connection status to ensure the validity and security of the rules.

Benefits of technology

It realizes the security and flexibility of remote functional services, avoids direct monitoring of public IP, prevents unauthorized access, and adapts to the dynamic changes of user IP addresses.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119011218A_ABST
    Figure CN119011218A_ABST
Patent Text Reader

Abstract

The invention provides an authorization management method and apparatus, a storage medium and an electronic device, applied to a CDN server, the method comprising: receiving an authorization request from a management server, the request comprising a request identifier, a user name, a source IP address and authorization timeliness; and generating an authorization rule according to the request identifier, the user name, the source IP address and the authorization timeliness. And assigning a monitoring port for the authorization request, wherein the monitoring port is used for monitoring the source IP address. And when the monitoring port receives a remote function service connection request, verifying whether the request is from a specified source IP address. If yes, forwarding the request to a remote function service of the content distribution network for processing; and if not, not responding to the request. According to the method, the authorized user is guided to access the remote function service through the specific monitoring port, direct public network monitoring of the remote function service is avoided, the safety of the remote function service is ensured, and meanwhile, the dynamic change of the IP address of the user can be flexibly adapted.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to an authorization management method, device, storage medium and electronic equipment. Background Art

[0002] In the current Internet environment, Content Delivery Network (CDN) servers are usually equipped with public IP addresses to facilitate remote management and maintenance. To achieve this goal, remote function services including Secure Shell Daemon (SSHD) are usually deployed on the server and configured to listen to the public IP address. This configuration enables remote function services to be accessed directly on the Internet, allowing administrators to use remote function services from any location.

[0003] However, this approach brings a series of security risks. First, although the remote function service itself supports multiple authentication algorithms, including username and password and username and key authentication, with the development of network security technology, some authentication algorithms may become easy to crack, thereby increasing the risk of unauthorized access to the server. Secondly, although access can be restricted by setting a whitelist or blacklist of source IPs, the update mechanism of this static list often cannot adapt to the actual situation where authorized user IPs change frequently, making it difficult to effectively implement access control in a dynamic network environment.

[0004] Therefore, in the CDN business system, how to ensure the security of remote functional services while flexibly adapting to the dynamic changes of user IP addresses is a technical problem that technical personnel in this field urgently need to solve. Summary of the invention

[0005] In view of the above problems, the present invention provides an authorization management method, device, storage medium and electronic device that overcome the above problems or at least partially solve the above problems. The technical solution is as follows:

[0006] An authorization management method is applied to a CDN server, and the method includes:

[0007] Receiving an authorization request sent by a management server, wherein the authorization request includes a request identifier, a user name, a source IP address, and an authorization time limit;

[0008] Generate an authorization rule for the authorization request based on the request identifier, the user name, the source IP address, and the authorization time limit;

[0009] Allocating a listening port to the authorization request, wherein the listening port is used to listen to the source IP address;

[0010] When the listening port receives a remote function service connection request, verify whether the remote function service connection request is sent by the source IP address. If so, forward the remote function service connection request to the remote function service of the content distribution network for processing; if not, do not respond to the remote function service connection request.

[0011] Optionally, the method further includes:

[0012] Maintaining the connection status of the authorization rule;

[0013] In the case where the source IP address is disconnected from the remote function service, setting the connection state to used;

[0014] When the connection status is used, it is confirmed that the authorization rule has expired so that the authorization rule will not be used again.

[0015] Optionally, the method further includes:

[0016] In case of generating the authorization rule, setting the connection state to requesting authorization;

[0017] In case of allocating a listening port to the authorization request, setting the connection state to authorized;

[0018] When the listening port receives a remote function service connection request, setting the connection state to in use;

[0019] When the connection state has been used for more than a preset time, the connection state is set to be expired.

[0020] Optionally, the method further includes:

[0021] The connection status is reported to the management server, so that the management server updates the connection status of the authorization rule of the CDN server stored in a database, and records the change time of the connection status.

[0022] Optionally, the authorization request is generated based on the user name, the source IP address and the authorization time limit edited by the administrator on the WEB management page provided by the management server.

[0023] Optionally, before generating the authorization rule of the authorization request based on the request identifier, the user name, the source IP address and the authorization time limit, the method further includes:

[0024] Decrypting the authorization request to obtain the request content of the authorization request;

[0025] Verifying the request content and obtaining an authorization verification result;

[0026] When the authorization verification result is successful, the step of generating the authorization rule of the authorization request based on the request identifier, the user name, the source IP address and the authorization time limit is performed.

[0027] Optionally, the remote function service connection request is an SSH connection request, and the remote function service is an SSHD service.

[0028] An authorization management device is applied to a CDN server, the device comprising: an authorization request receiving unit, an authorization rule generating unit, a listening port allocating unit, a connection request verifying unit, a connection request forwarding unit and a connection request discarding unit.

[0029] The authorization request receiving unit is used to receive the authorization request sent by the management server, wherein the authorization request includes a request identifier, a user name, a source IP address and an authorization time limit;

[0030] The authorization rule generating unit is used to generate the authorization rule of the authorization request based on the request identifier, the user name, the source IP address and the authorization time limit;

[0031] The listening port allocation unit is used to allocate a listening port to the authorization request, wherein the listening port is used to listen to the source IP address;

[0032] The connection request verification unit is used to verify whether the remote function service connection request is sent by the source IP address when the remote function service connection request is received at the listening port, and if so, trigger the remote function service connection request forwarding unit; if not, trigger the remote function service connection request discarding unit;

[0033] The connection request forwarding unit is used to forward the remote function service connection request to the remote function service of the content distribution network for processing;

[0034] The connection request discarding unit is used for not responding to the remote function service connection request.

[0035] A computer-readable storage medium stores a program, wherein the program, when executed by a processor, implements any one of the authorization management methods described above.

[0036] An electronic device, comprising at least one processor, and at least one memory and a bus connected to the processor; wherein the processor and the memory communicate with each other via the bus; and the processor is used to call program instructions in the memory to execute any of the above-mentioned authorization management methods.

[0037] By means of the above technical scheme, an authorization management method, device, storage medium and electronic device provided by the present invention are applied to a CDN server, the method comprising: receiving an authorization request sent by a management server, wherein the authorization request comprises a request identifier, a user name, a source IP address and an authorization time limit; generating an authorization rule for the authorization request based on the request identifier, the user name, the source IP address and the authorization time limit; allocating a listening port to the authorization request, wherein the listening port is used to listen to the source IP address; in the case where the listening port receives a remote function service connection request, verifying whether the remote function service connection request is sent by the source IP address, if yes, forwarding the remote function service connection request to the remote function service of the content distribution network for processing, if not, not responding to the remote function service connection request. The embodiment of the present invention guides the authorized user to access the remote function service through a specific listening port through an authorization request, so that the remote function service does not need to directly listen to the public network IP address, thereby avoiding the risk of the remote function service being arbitrarily accessed on the Internet, while ensuring the security of the remote function service, it can flexibly adapt to the dynamic changes of the user's IP address.

[0038] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0040] Figure 1 A flowchart of an implementation method of an authorization management method provided by an embodiment of the present invention is shown;

[0041] Figure 2 A flow chart showing another implementation of the authorization management method provided by an embodiment of the present invention;

[0042] Figure 3A flow chart showing another implementation of the authorization management method provided by an embodiment of the present invention;

[0043] Figure 4 A schematic diagram showing the structure of an authorization management device provided by an embodiment of the present invention is shown;

[0044] Figure 5 A schematic structural diagram of an electronic device provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0045] The exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present invention and to enable the scope of the present invention to be fully communicated to those skilled in the art.

[0046] In the modern Internet architecture, Content Delivery Network (CDN) servers generally have public IP addresses to support remote management and operation. To this end, servers usually install and configure remote function services including the SSH daemon (SSHD) service to listen to the public IP, so that administrators can remotely use the CDN server's remote function services securely from any network location.

[0047] Although this setting provides convenient remote access capabilities, it also raises a series of security challenges. Although the remote function service has built-in multiple authentication mechanisms, such as username and password and key authentication, as network security threats continue to evolve, some authentication methods may be at risk of being cracked, which increases the possibility of illegal access to the server. In addition, although access to remote function services can be restricted by configuring a whitelist or blacklist of IP addresses, this static list update method often cannot flexibly cope with the frequent changes in the authorized user's IP address, which limits the implementation of effective access control policies in a dynamically changing network environment.

[0048] Based on this, in an embodiment of the present invention, an authorization management method is provided. When the management server issues an authorization request, the request will include some necessary information, such as the unique identifier of the request, the user name, the source IP address, and the validity period of the authorization, so as to generate a set of specific authorization rules based on this information. Next, a specific listening port is assigned to the authorization rule. The task of this port is to monitor network activities from the specified source IP address. If a remote function service connection request is received through this listening port, it will first check whether the request is indeed from the previously specified source IP address. If the source address verification is passed, then the remote function service connection request will be forwarded to the remote function service of the content distribution network for processing; if the source address does not match, no response will be made to the remote function service connection request. It can be seen that when the user needs to use the remote function service, the currently used IP address can be authorized by sending an authorization request, and then the remote function service can be used through a specific listening port, so that the remote function service does not need to monitor the public network IP address, which enhances the security of the remote function service and is suitable for scenarios where the authorized user IP changes frequently.

[0049] The authorization management method provided by the embodiment of the present invention is applied to the CDN server. By deploying the corresponding control program in the CDN server, the control program responds to the authorization request from the master control program or the administrator, and creates corresponding authorization rules according to the specific information of the request. These rules define which external IP addresses can access specific listening ports. Once the authorization rules are set, monitoring is performed on the specified listening port, which is specially set for the external IP address of the authorized user. When an authorized user tries to access through this port, it will verify whether its IP address meets the authorization rules. If the verification is successful, the user's traffic is forwarded to the remote function service, so that the authorized user can smoothly use the remote function service for remote login or other function operations. The control program ensures that only authorized users can access the remote function service, thereby ensuring the security and controllability of the system.

[0050] like Figure 1 As shown, a flowchart of an implementation of an authorization management method provided by an embodiment of the present invention is provided, and the method includes:

[0051] S100: Receive an authorization request sent by a management server, wherein the authorization request includes a request identifier, a user name, a source IP address, and an authorization time limit.

[0052] The management server refers to a server responsible for managing and configuring network resources of a content distribution network.

[0053] The authorization request is used to request authorization of access rights for a specific user.

[0054] The request identifier is a unique identifier of the authorization request.

[0055] The user name is the unique identity of the authorized user on the content distribution network.

[0056] The source IP address refers to the IP address from which the authorized user requests access permission.

[0057] Among them, the authorization validity period refers to the effective time range of the authorization.

[0058] S110: Generate authorization rules for the authorization request based on the request identifier, user name, source IP address, and authorization time limit.

[0059] Among them, the authorization rule is a set of conditions and restrictions that define which users can access specific resources under what conditions. The authorization rule can record all fields, listening ports, and connection status in the authorization request.

[0060] Specifically, the embodiment of the present invention can create authorization rules based on the information received in the authorization request, and the authorization rules indicate that the authorized user (identified by the user name) can access from a specific IP address (source IP address) within a specific time period (authorization time limit).

[0061] S120. Allocate a listening port to the authorization request, wherein the listening port is used to listen to a source IP address.

[0062] The listening port refers to a specific network port on the server used to listen for network connection requests.

[0063] Specifically, the embodiment of the present invention can randomly allocate a specific listening port for the authorization request. The listening port will be specifically used to listen to the connection request from the source IP address specified in the authorization rule.

[0064] S130. When a remote function service connection request is received on the listening port, verify whether the remote function service connection request is sent by the source IP address. If yes, execute step S140; if not, execute step S150.

[0065] Among them, the remote function service may include at least one remote service among remote login service, remote desktop service, remote file transfer service, remote application management service, remote monitoring service, remote storage service, remote printing service and remote collaboration service.

[0066] Optionally, the remote function service connection request provided in the embodiment of the present invention may be an SSH connection request, and the remote function service is an SSHD (Secure Shell Daemon, SSHD) service.

[0067] S140: Forward the remote function service connection request to the remote function service of the content distribution network for processing.

[0068] S150: Do not respond to the remote function service connection request.

[0069] The remote function service connection request refers to a request by a user to establish a secure connection with a remote server through the remote function service (Secure Shell) protocol.

[0070] When a remote function service connection request is received on a listening port, the embodiment of the present invention checks whether the remote function service connection request is indeed from the source IP address specified in the authorization rule. If so, the remote function service connection request is forwarded to the remote function service of the content distribution network for further processing, allowing the user to perform secure remote access. If it is not from the specified source IP address, no response will be made to the remote function service connection request, and the remote function service connection request will be discarded, thereby preventing unauthorized access.

[0071] Specifically, the embodiment of the present invention can directly pass-through the remote function service connection request to the remote function service of the content distribution network without performing any processing on the remote function service connection request when verifying that the remote function service connection request is sent by the source IP address, thereby improving the efficiency of remote access.

[0072] An authorization management method provided by the present invention is applied to a CDN server, the method comprising: receiving an authorization request sent by a management server, wherein the authorization request includes a request identifier, a user name, a source IP address and an authorization time limit; generating an authorization rule for the authorization request based on the request identifier, the user name, the source IP address and the authorization time limit; allocating a listening port to the authorization request, wherein the listening port is used to listen to the source IP address; in the case where the listening port receives a remote function service connection request, verifying whether the remote function service connection request is sent by the source IP address, if yes, forwarding the remote function service connection request to the remote function service of the content distribution network for processing, if not, not responding to the remote function service connection request. The embodiment of the present invention guides the authorized user to access the remote function service through a specific listening port through an authorization request, so that the remote function service does not need to directly listen to the public network IP address, thereby avoiding the risk of the remote function service being arbitrarily accessed on the Internet, while ensuring the security of the remote function service, it can flexibly adapt to the dynamic changes of the user's IP address.

[0073] Optional, based on Figure 1 The method shown, such as Figure 2As shown, a flowchart of another implementation of the authorization management method provided by an embodiment of the present invention is shown, and the method may also include:

[0074] S200: Maintain the connection status of the authorization rule.

[0075] Specifically, the embodiment of the present invention can maintain a database or memory structure in advance to record the current connection status of the authorization rule. This status can be "unused", "in use" or "used". The embodiment of the present invention can check the connection status regularly and update the connection status according to relevant connection events.

[0076] S210. When the source IP address is disconnected from the remote function service, the connection status is set to used.

[0077] When the embodiment of the present invention detects that the remote function service connection of the source IP address is disconnected, it can search for the authorization rule related to the source IP address and update the connection status of the authorization rule to "used".

[0078] S220: When the connection status is used, confirm that the authorization rule has expired so that the authorization rule will not be used again.

[0079] When the embodiment of the present invention identifies that the connection status of an authorization rule is "used", the authorization rule may be marked as invalid and removed from the active rule list to ensure that the authorization rule will not be used again.

[0080] The embodiment of the present invention can ensure that each authorization rule can only be used once by maintaining and updating the connection status of the authorization rules, thereby preventing unauthorized repeated use. At the same time, the connection status is updated after the source IP address is disconnected, so that the system can adapt to the dynamic changes of the user's IP address, ensuring that the authorization rules will not be abused even if the IP address changes, thereby further ensuring the security of the remote function service.

[0081] Optional, in the above Figure 2 On the basis of one or more corresponding embodiments, in another optional embodiment provided by the embodiment of the present invention, the authorization management method may further include:

[0082] When an authorization rule is generated, the connection state is set to requesting authorization.

[0083] When creating a new authorization rule, the embodiment of the present invention can set the connection status of the authorization rule to "requesting authorization", indicating that the authorization rule is waiting for authorization verification. This status helps to distinguish newly generated authorization rules from authorization rules in other states, and helps to identify which authorization rules have not completed the entire authorization process, thereby ensuring that each authorization link is strictly reviewed and enhancing security.

[0084] Optional, in the above Figure 2 On the basis of one or more corresponding embodiments, in another optional embodiment provided by the embodiment of the present invention, the authorization management method may further include:

[0085] In the case where the listening port is assigned to an authorized request, the connection state is set to authorized.

[0086] The embodiment of the present invention can update the connection status of the corresponding authorization rule to "authorized" when the authorization request is authorized and a port for listening to the connection request from the user's remote function service is assigned to the authorization request, indicating that the authorization rule has the conditions for receiving the connection request, and can effectively manage and control the incoming connection through a specific listening port to avoid the risk of unauthorized access.

[0087] Optional, in the above Figure 2 On the basis of one or more corresponding embodiments, in another optional embodiment provided by the embodiment of the present invention, the authorization management method may further include:

[0088] When the listening port receives a remote function service connection request, the connection state is set to in use.

[0089] In an embodiment of the present invention, when the listening port successfully receives a remote function service connection request, the connection status of the corresponding authorization rule is updated to "in use", indicating that the remote function service connection has been activated and is in use, so as to monitor the authorization rules being used, thereby facilitating corresponding resource allocation and monitoring of possible abnormal activities, and improving the responsiveness of the content distribution network.

[0090] Optional, in the above Figure 2 On the basis of one or more corresponding embodiments, in another optional embodiment provided by the embodiment of the present invention, the authorization management method may further include:

[0091] When the connection state has been used for more than a preset time, the connection state is set to expire.

[0092] Among them, the preset duration is the safe usage time limit pre-set for the remote function service connection.

[0093] In the embodiment of the present invention, when a remote function service connection related to an authorization rule is active for a long time and exceeds the safe use time limit, the connection status of the authorization rule will be updated to "expired", thereby disconnecting the remote function service connection. By setting a connection expiration mechanism, the embodiment of the present invention can prevent the security risks that may be caused by long-term continuous connection, thereby helping to strengthen security protection measures and ensure the security and stability of remote function services.

[0094] Optional, in the above Figure 1 On the basis of one or more corresponding embodiments, in another optional embodiment provided by the embodiment of the present invention, the authorization management method may further include:

[0095] The connection status is reported to the management server so that the management server updates the connection status of the authorization rule of the CDN server stored in the database and records the change time of the connection status.

[0096] The embodiment of the present invention can send the connection status change information to the management server when the connection status of the authorization rule changes. After the management server receives the connection status update of the authorization rule sent by the CDN server, it will update the connection status of the authorization rule of the corresponding CDN server in its database. At the same time, the management server will also record the specific time of this status change for subsequent auditing and tracking.

[0097] The embodiment of the present invention realizes centralized management and monitoring of the connection status of the authorization rules of all CDN servers by reporting the connection status to the management server, which helps to understand the connection status of the authorization rules in real time and promptly discover and handle abnormal situations. The management server records the change time of the connection status, providing important data support for subsequent auditing and problem tracking. The administrator can track the change history of the connection status according to the timestamp and analyze potential security issues or performance bottlenecks.

[0098] Optional, in the above Figure 1 On the basis of one or more corresponding embodiments, in another optional embodiment provided by the embodiment of the present invention, the authorization request is generated based on the user name, source IP address and authorization time limit edited by the administrator on the WEB management page provided by the management server.

[0099] A master control program is deployed on the management server provided by the embodiment of the present invention, and functional support can be provided to the administrator through a WEB management interface. The WEB management interface supports batch processing of authorization requests, which simplifies the administrator's operation process. The master control program is responsible for sending authorization requests to the control programs of each CDN server and receiving status update information from these control programs. Once the status report from the CDN server control program is received, the master control program will update the corresponding authorization request status in the database and store this information persistently. This process ensures real-time updating and accurate recording of status information, which is convenient for management and tracking. In addition, the master control program also has a powerful audit function. The administrator can query various detailed information about the authorization request through the WEB interface, including the initiation time of the request, the change time of the status, and the specific content of the request, which provides transparency for authorization management and helps to quickly locate problems and make decisions. Through these functions, the management server can effectively improve the efficiency and security of CDN server authorization management, and also support comprehensive auditing of operations.

[0100] Optional, based on Figure 1 The method shown, such as Figure 3 As shown, a flowchart of another implementation of the authorization management method provided by an embodiment of the present invention is provided. Before generating the authorization rule of the authorization request based on the request identifier, user name, source IP address and authorization time limit, the authorization management method may further include:

[0101] S300: Decrypt the authorization request to obtain the request content of the authorization request.

[0102] In order to ensure the security of authorization, the data content in the authorization request is usually encrypted. The embodiment of the present invention can decrypt the authorization request, convert the encrypted data content in the authorization request back to its original format, and obtain the request content of the authorization request. The request content includes the data and data format of the request identifier, user name, source IP address, and authorization time limit.

[0103] S310: Verify the request content and obtain the authorization verification result.

[0104] Specifically, the embodiment of the present invention can verify whether the data format of the request content is correct, whether the fields are complete, and whether the field content is correct. For example, the field should be a non-empty string, the source IP address should be a correct IP address format, the authorization time should be a number, etc.

[0105] S320: When the authorization verification result is successful, execute the step of generating authorization rules for the authorization request based on the request identifier, user name, source IP address and authorization time limit.

[0106] The embodiment of the present invention provides precise access control through strict decryption, verification and authorization rule generation mechanisms, ensures the security of the authorization process, and thus facilitates subsequent secure access to remote functional services based on authorization rules.

[0107] Optional, in the above Figure 3 On the basis of one or more corresponding embodiments, in another optional embodiment provided by the embodiment of the present invention, after verifying the request content and obtaining the authorization verification result, the authorization management method may further include:

[0108] Feedback the authorization verification result to the management server.

[0109] The embodiment of the present invention can monitor the status of authorization requests in real time by feeding back the authorization verification results to the management server in real time. At the same time, the authorization verification results of the authorization requests are recorded in the management server, providing key data for subsequent audits, thereby helping to track potential security issues, analyze the reasons for request failures, and adjust security policies in a timely manner.

[0110] The control program provided in the embodiment of the present invention completely eliminates the security threats that may be posed by external networks to remote function services by limiting the remote function services to listen only on the intranet IP and not opening them to the external network IP, thereby ensuring the security of data transmission. When a user needs to access a remote function service, the user will be required to initiate an authorization request. Once the access is over, the authorization is destroyed. This "use and destroy" mechanism combined with the record retention function of the master control program facilitates post-audit and backtracking, and enhances the manageability and security of the system. The ports specified by the authorization rules only respond to requests from authorized user source IPs. This setting prevents malicious users on the Internet from detecting these ports, thereby avoiding port scanning and attacks and protecting CDN server resources from external threats.

[0111] Although operations are depicted in a particular order, this should not be understood as requiring that the operations be performed in the particular order shown or in a sequential order.Multitasking and parallel processing may be advantageous under certain circumstances.

[0112] It should be understood that the various steps described in the method embodiments of the present invention may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present invention is not limited in this respect.

[0113] Corresponding to the above method embodiment, the embodiment of the present invention further provides an authorization management device, which is applied to a CDN server. The structure of the authorization management device is as follows: Figure 4As shown, the authorization management device may include: an authorization request receiving unit 10, an authorization rule generating unit 20, a listening port allocating unit 30, a connection request verifying unit 40, a connection request forwarding unit 50 and a connection request discarding unit 60.

[0114] The authorization request receiving unit 10 is used to receive the authorization request sent by the management server, wherein the authorization request includes a request identifier, a user name, a source IP address and an authorization time limit.

[0115] The authorization rule generation unit 20 is used to generate authorization rules for the authorization request based on the request identifier, user name, source IP address and authorization time limit.

[0116] The listening port allocation unit 30 is used to allocate a listening port to the authorization request, wherein the listening port is used to monitor the source IP address.

[0117] The remote function service connection request verification unit 40 is used to verify whether the remote function service connection request is sent by the source IP address when the remote function service connection request is received at the listening port. If so, the remote function service connection request forwarding unit 50 is triggered; if not, the remote function service connection request discarding unit 60 is triggered.

[0118] The remote function service connection request forwarding unit 50 is used to forward the remote function service connection request to the remote function service of the content distribution network for processing.

[0119] The remote function service connection request discarding unit 60 is used for not responding to the remote function service connection request.

[0120] Optionally, the authorization management device may further include: a connection status maintenance unit, a connection status setting unit and an authorization rule expiration confirmation unit.

[0121] The connection status maintenance unit is used to maintain the connection status of the authorization rule.

[0122] The connection status setting unit is used to set the connection status to used when the source IP address is disconnected from the remote function service.

[0123] The authorization rule invalidation confirmation unit is used to confirm that the authorization rule has expired when the connection status is used, so that the authorization rule will not be used again.

[0124] Optionally, the connection state setting unit may also be used to set the connection state to requesting authorization when generating an authorization rule.

[0125] Optionally, the connection state setting unit may also be used to set the connection state to requesting authorization when generating an authorization rule.

[0126] Optionally, the connection state setting unit may also be used to set the connection state to requesting authorization when generating an authorization rule.

[0127] Optionally, the connection status setting unit may also be configured to set the connection status to expire when the connection status has been used for more than a preset time period.

[0128] Optionally, the authorization management device may further include: a connection status reporting unit.

[0129] The connection status reporting unit is used to report the connection status to the management server so that the management server updates the connection status of the authorization rule of the CDN server stored in the database and records the change time of the connection status.

[0130] Optionally, the authorization request is generated based on the user name, source IP address, and authorization time limit edited by the administrator on the WEB management page provided by the management server.

[0131] Optionally, the authorization management device may further include: an authorization request decryption unit and an authorization request verification unit.

[0132] The authorization request decryption unit is used for the authorization rule generation unit 20 to decrypt the authorization request to obtain the request content of the authorization request before generating the authorization rule of the authorization request based on the request identifier, user name, source IP and authorization time limit.

[0133] The authorization request verification unit is used to verify the request content and obtain an authorization verification result. When the authorization verification result is successful, the authorization rule generation unit 20 is triggered.

[0134] Optionally, the remote function service connection request is an SSH connection request, and the remote function service is an SSHD service.

[0135] The present invention provides an authorization management device, which is applied to a CDN server, and the device is used to: receive an authorization request sent by a management server, wherein the authorization request includes a request identifier, a user name, a source IP address, and an authorization time limit; generate an authorization rule for the authorization request based on the request identifier, the user name, the source IP address, and the authorization time limit; allocate a listening port to the authorization request, wherein the listening port is used to listen to the source IP address; when the listening port receives a remote function service connection request, verify whether the remote function service connection request is sent by the source IP address, if yes, forward the remote function service connection request to the remote function service of the content distribution network for processing, if not, do not respond to the remote function service connection request. The embodiment of the present invention guides the authorized user to access the remote function service through a specific listening port through an authorization request, so that the remote function service does not need to directly listen to the public network IP address, thereby avoiding the risk of the remote function service being arbitrarily accessed on the Internet, while ensuring the security of the remote function service, it can flexibly adapt to the dynamic changes of the user's IP address.

[0136] Regarding the device in the above embodiment, the specific manner in which each unit performs the operation has been described in detail in the embodiment of the method, and will not be elaborated here.

[0137] The authorization management device includes a processor and a memory. The above-mentioned authorization request receiving unit 10, authorization rule generating unit 20, listening port allocation unit 30, connection request verification unit 40, connection request forwarding unit 50 and connection request discarding unit 60 are all stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to realize corresponding functions.

[0138] The processor contains a kernel, which calls the corresponding program unit from the memory. One or more kernels can be set, and the kernel parameters can be adjusted to guide authorized users to access remote function services through specific listening ports, avoiding direct public network listening of remote function services. While ensuring the security of remote function services, it can flexibly adapt to dynamic changes in user IP addresses.

[0139] An embodiment of the present invention provides a computer-readable storage medium on which a program is stored. When the program is executed by a processor, the authorization management method is implemented.

[0140] An embodiment of the present invention provides a processor, which is used to run a program, wherein the authorization management method is executed when the program is running.

[0141] like Figure 5As shown, an embodiment of the present invention provides an electronic device 1000, which includes at least one processor 1001, at least one memory 1002 connected to the processor 1001, and a bus 1003; wherein the processor 1001 and the memory 1002 communicate with each other through the bus 1003; the processor 1001 is used to call the program instructions in the memory 1002 to execute the above-mentioned authorization management method. The electronic device in this article can be a server, a PC, a PAD, a mobile phone, etc.

[0142] The present invention also provides a computer program product, which, when executed on an electronic device, is suitable for executing a program that initializes the steps of the authorization management method.

[0143] The present invention is described with reference to flowcharts and / or block diagrams of methods, apparatuses, electronic devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable device to generate a machine, so that the instructions executed by the processor of the computer or other programmable device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0144] In a typical configuration, an electronic device includes one or more processors (CPU), a memory, and a bus. The electronic device may also include an input / output interface, a network interface, and the like.

[0145] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip. The memory is an example of a computer-readable medium.

[0146] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0147] In the description of the present invention, it should be understood that the terms "up", "down", "front", "back", "left" and "right" etc. indicating directions or positional relationships are based on the directions or positional relationships shown in the accompanying drawings. They are only for the convenience of describing the present invention and simplifying the description. They do not indicate or imply that the positions or elements referred to must have specific directions, be constructed and operate in specific directions. Therefore, they should not be understood as limitations of the present invention.

[0148] It should be noted that, in this article, relational terms such as first and second, etc. 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. It should also be noted that the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity 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, commodity 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, commodity or device including the elements.

[0149] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0150] The above are only embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent substitution, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of the claims of the present invention.

Claims

1. An authorization management method, characterized in that: Applied in a CDN server, the method includes: Receiving an authorization request sent by a management server, wherein the authorization request includes a request identifier, a user name, a source IP address, and an authorization time limit; Generate an authorization rule for the authorization request based on the request identifier, the user name, the source IP address, and the authorization time limit; Allocating a listening port to the authorization request, wherein the listening port is used to listen to the source IP address; When the listening port receives a remote function service connection request, verify whether the remote function service connection request is sent by the source IP address. If so, forward the remote function service connection request to the remote function service of the content distribution network for processing; if not, do not respond to the remote function service connection request.

2. The method according to claim 1, characterized in that Also includes: Maintaining the connection status of the authorization rule; In the case where the source IP address is disconnected from the remote function service, setting the connection state to used; When the connection status is used, it is confirmed that the authorization rule has expired so that the authorization rule will not be used again.

3. The method according to claim 2, characterized in that The method further comprises: In case of generating the authorization rule, setting the connection state to requesting authorization; In case of allocating a listening port to the authorization request, setting the connection state to authorized; When the listening port receives a remote function service connection request, setting the connection state to in use; When the connection state has been used for more than a preset time, the connection state is set to be expired.

4. The method according to any one of claims 1 to 3, characterized in that Also includes: The connection status is reported to the management server, so that the management server updates the connection status of the authorization rule of the CDN server stored in a database, and records the change time of the connection status.

5. The method according to claim 1, characterized in that: The authorization request is generated based on the user name, the source IP address and the authorization time limit edited by the administrator on the WEB management page provided by the management server.

6. The method according to claim 1, characterized in that Before generating the authorization rule of the authorization request based on the request identifier, the user name, the source IP address and the authorization time limit, the method further includes: Decrypting the authorization request to obtain the request content of the authorization request; Verifying the request content and obtaining an authorization verification result; When the authorization verification result is successful, the step of generating the authorization rule of the authorization request based on the request identifier, the user name, the source IP address and the authorization time limit is performed.

7. The method according to claim 1, characterized in that The remote function service connection request is an SSH connection request, and the remote function service is an SSHD service.

8. An authorization management device, characterized in that: Applied in a CDN server, the device comprises: an authorization request receiving unit, an authorization rule generating unit, a listening port allocating unit, a connection request verifying unit, a connection request forwarding unit and a connection request discarding unit. The authorization request receiving unit is used to receive the authorization request sent by the management server, wherein the authorization request includes a request identifier, a user name, a source IP address and an authorization time limit; The authorization rule generating unit is used to generate the authorization rule of the authorization request based on the request identifier, the user name, the source IP address and the authorization time limit; The listening port allocation unit is used to allocate a listening port to the authorization request, wherein the listening port is used to listen to the source IP address; The connection request verification unit is used to verify whether the remote function service connection request is sent by the source IP address when the remote function service connection request is received at the listening port, and if so, trigger the remote function service connection request forwarding unit; if not, trigger the remote function service connection request discarding unit; The connection request forwarding unit is used to forward the remote function service connection request to the remote function service of the content distribution network for processing; The connection request discarding unit is used for not responding to the remote function service connection request.

9. A computer-readable storage medium having a program stored thereon, characterized in that: When the program is executed by a processor, the authorization management method according to any one of claims 1 to 7 is implemented.

10. An electronic device, comprising at least one processor, and at least one memory and a bus connected to the processor; wherein: The processor and the memory communicate with each other via the bus; The processor is used to call the program instructions in the memory to execute the authorization management method according to any one of claims 1 to 7.