Method and system for access management

By setting up a client on the server to distribute access commands, a stateless operation and maintenance channel instance is implemented, which solves the problem that the bastion host system cannot quickly recover or expand capacity, and improves the availability and security of the service.

WO2024198734A1PCT designated stage expired Publication Date: 2024-10-03HUAWEI CLOUD COMPUTING TECHNOLOGIES CO LTD

Patent Information

Application Number
PCT/CN2024/075967
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-31
Filing Date
2024-02-05
Publication Date
2024-10-03

AI Technical Summary

Technical Problem

Because the existing bastion host system is stateful, state information needs to be reconfigured when replacing or adding nodes, making it impossible to quickly recover or expand capacity, and cannot switch nodes without interrupting services.

Method used

By setting the client on the server as the entrance to the server, the operation and maintenance channel management cluster distributes access commands to the client, making the operation and maintenance channel instances stateless, so that the operation and maintenance channel instances can be switched without interrupting the service. , solving the problem of rapid expansion and contraction of the operation and maintenance channel management cluster.

Benefits of technology

It realizes the switching of operation and maintenance channel instances without interrupting services, improves the rapid disaster recovery and capacity expansion capabilities of the operation and maintenance channel management cluster, and improves the availability and security of services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024075967_03102024_PF_FP_ABST
    Figure CN2024075967_03102024_PF_FP_ABST
Patent Text Reader

Abstract

The embodiments of the present application relate to the field of cloud computing. Provided are a method and system for access management. The system comprises an operation and maintenance channel management cluster and a client, wherein the client runs on a target server. The method comprises: an operation and maintenance channel management cluster acquiring an access command of a user for a target server; the operation and maintenance channel management cluster sending the access command to a client; and the client executing the access command according to session state information, wherein the session state information is access information of the user for the target server, which access information is recorded by the client. In the method, state information is recorded on a client located at a server, and an operation and maintenance channel instance allocates an access command to the client, such that the operation and maintenance channel instance is stateless, and thus the operation and maintenance channel instance can be switched without interrupting a service, thereby solving the problem of rapid capacity expansion and shrinkage of the operation and maintenance channel management cluster.
Need to check novelty before this filing date? Find Prior Art

Description

Access management method and system

[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on March 31, 2023, with application number 202310339767.6 and application name “Method and System for Access Management”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The embodiments of the present application relate to the field of cloud computing, and more specifically, to a method and system for access management. Background Art

[0003] In the cloud computing world, cloud service providers are faced with an increasing number of cloud service resources, and access security for these resources is becoming increasingly important. Therefore, many cloud service providers are deploying bastion hosts as systems for operational and maintenance security access audits, centrally managing user access requests to their servers.

[0004] However, existing bastion host systems are stateful services because they need to record user login status and session control between users and servers. Since bastion host nodes are stateful, replacing or adding new nodes requires reconfiguring the bastion host node's state, a time-consuming process that hinders rapid disaster recovery and capacity expansion. Therefore, how to enable the O&M channel management cluster to quickly replace nodes without losing connectivity has become a pressing technical challenge.

[0005] Summary of the Invention

[0006] An embodiment of the present application provides an access management method and system, which can record status information on a client located on a server. The operation and maintenance channel instance distributes access commands to the client, making the operation and maintenance channel instance stateless, thereby enabling the operation and maintenance channel instance to be switched without interrupting service.

[0007] In a first aspect, a method for access management is provided, which is applied to an access management system, the system including an operation and maintenance channel management cluster and a client, the client running on a target server, the operation and maintenance channel management cluster including multiple operation and maintenance channel instances, each operation and maintenance channel instance being used to interact with the client, each operation and maintenance channel instance being composed of at least one computing instance, and at least one computing instance including at least one of a physical host, a virtual machine, and a container, the method comprising: the operation and maintenance channel management cluster obtaining a user's access command to the target server; the operation and maintenance channel management cluster sending the access command to the client; the client executing the access command according to session status information, the session status information being the user's access information to the target server recorded by the client.

[0008] According to the technical solution provided in this application, by setting a client on the server as the entrance to access the server, the operation and maintenance channel management cluster directly communicates with the client and distributes access commands to the client, so that the tasks of recording status information and managing sessions are completed by the client. The operation and maintenance channel instance is stateless, so that while isolating the direct interaction between users and servers through the operation and maintenance channel management cluster and ensuring the security of server access, the operation and maintenance channel instance can be switched without interrupting the service, thereby solving the problem of rapid expansion and contraction of the operation and maintenance channel management cluster.

[0009] In combination with the first aspect, in certain implementations of the first aspect, the operation and maintenance channel management cluster also includes a load balancing component, and the multiple operation and maintenance channel instances include a first operation and maintenance channel instance and a second operation and maintenance channel instance, and sending an access command to the client includes: the load balancing component sends the access command to the first operation and maintenance channel instance; the first operation and maintenance channel instance sends the access command to the client.

[0010] According to the above technical solution, by setting up multiple nodes in the operation and maintenance channel management cluster, the operation and maintenance channel management cluster can manage the nodes responsible for distributing access commands, so that the operation and maintenance channel management cluster can autonomously regulate the working status of the nodes when needed.

[0011] In combination with the first aspect, in certain implementations of the first aspect, sending an access command to the client also includes: the first operation and maintenance channel instance reports exception information to the load balancing component, and the exception information is used to indicate that the first operation and maintenance channel instance failed to send the access command to the client; the load balancing component sends the access command to the second operation and maintenance channel instance; and the second operation and maintenance channel instance sends the access command to the client.

[0012] According to the above technical solution, when the operation and maintenance channel instance currently responsible for forwarding access commands is abnormal, the forwarding task is reallocated to other nodes within the operation and maintenance channel management cluster, so as to achieve node switching without interrupting access, thereby improving the rapid disaster recovery or load balancing capabilities of the operation and maintenance channel management cluster and improving the availability of the operation and maintenance channel management cluster service.

[0013] In combination with the first aspect, in some implementations of the first aspect, the first operation and maintenance channel instance and the second operation and maintenance channel instance are deployed in different areas.

[0014] According to the above technical solution, the nodes of the operation and maintenance channel management cluster can be deployed across regions, so that the nodes responsible for forwarding before and after the switch are located in different physical areas, reducing the possibility of simultaneous anomalies, thereby achieving remote disaster recovery and further improving the availability of the operation and maintenance channel management cluster service.

[0015] In combination with the first aspect, in certain implementations of the first aspect, sending an access command to the client also includes: the first operation and maintenance channel instance reports exception information to the load balancing component, and the exception information is used to indicate that the first operation and maintenance channel instance failed to send the access command to the client; the load balancing component establishes a third operation and maintenance channel instance; the load balancing component sends the access command to the third operation and maintenance channel instance; and the third operation and maintenance channel instance sends the access command to the client.

[0016] According to the above technical solution, when the operation and maintenance channel instance currently responsible for forwarding access commands is abnormal, a new operation and maintenance channel instance is deployed, and the forwarding task is reallocated to the new operation and maintenance channel instance, so that the operation and maintenance channel management cluster can be expanded without interrupting access, thereby improving the rapid expansion capability of the operation and maintenance channel management cluster and improving the availability of the operation and maintenance channel management cluster service.

[0017] In combination with the first aspect, in some implementations of the first aspect, sending the access command to the client includes: the operation and maintenance channel management cluster sending the access command to the client according to the transmission control protocol.

[0018] According to the above technical solution, the operation and maintenance channel instance and the client communicate directly through the transmission control protocol (TCP) of the transport layer, thereby avoiding the use of the secure shell protocol (SSH) as a remote connection tool and eliminating the need for the server to open the high-risk port 22 for the SSH service, thereby improving the security of the server.

[0019] In combination with the first aspect, in certain implementations of the first aspect, the access command includes a session identifier, the session status information includes a correspondence between the session identifier and a subprocess in the operating system of the target server, and the access command is executed based on the session status information, including: determining the subprocess corresponding to the session identifier based on the session identifier and the session status information of the access command; and calling the subprocess to execute the access command.

[0020] According to the above technical solution, the client assigns an identification value to each user's session, manages the session based on the identification value carried in the user instruction, and calls the corresponding subprocess in the server operating system to execute the command, so that the client can manage the sessions of different users separately, thereby improving the efficiency of access management.

[0021] In combination with the first aspect, in certain implementations of the first aspect, before obtaining the user's access command to the target server, the method also includes: the operation and maintenance channel management cluster obtains the user's login command; the operation and maintenance channel management cluster sends the login command to the authentication service, and the authentication service is used to authenticate the user's identity; the operation and maintenance channel management cluster receives authentication information from the authentication service; the operation and maintenance channel management cluster determines the user's login status based on the authentication information.

[0022] According to the technical solution provided in this application, the operation and maintenance channel management cluster provides identity authentication for users by interacting with external services, so that the user's login status does not need to be recorded in the node of the operation and maintenance channel management cluster. Therefore, after the user logs in, the user does not need to log in again when the node providing the service is changed. On the basis of ensuring the security of user access, the user experience is improved.

[0023] In combination with the first aspect, in certain implementations of the first aspect, before sending the access command to the client, the method further includes: the operation and maintenance channel management cluster obtains access rights from the external storage service; and the operation and maintenance channel management cluster determines that the access command satisfies the access rights.

[0024] According to the above technical solution, the operation and maintenance channel management cluster obtains the user's access rights to the server from the external storage service, so that any node in the operation and maintenance channel management cluster can manage the user's access rights without pre-configuration, thereby improving the security of access management.

[0025] In combination with the first aspect, in some implementations of the first aspect, the method further includes: the client sending the execution result of the access command to the operation and maintenance channel management cluster; and the operation and maintenance channel management cluster sending the execution result to the user.

[0026] According to the above technical solution, the access results are displayed to the user through the operation and maintenance channel management cluster, so that the operation and maintenance channel management cluster can monitor the entire process of user access to the server, facilitate the monitoring and auditing of user behavior, and improve the security of access management.

[0027] In a second aspect, an access management system is provided, which includes an operation and maintenance channel management cluster and a client. The client runs on a target server. The operation and maintenance channel management cluster includes multiple operation and maintenance channel instances. Each operation and maintenance channel instance is used to interact with the client. Each operation and maintenance channel instance is composed of at least one computing instance. The at least one computing instance includes at least one of a physical host, a virtual machine, and a container. The operation and maintenance channel management cluster includes: a command acquisition module for obtaining the user's access command to the target server; a command distribution module for sending the access command to the client; the client is used to: execute the access command according to the session status information. The session status information is the user's access information to the target server recorded by the client.

[0028] In combination with the second aspect, in certain implementations of the second aspect, the operation and maintenance channel management cluster also includes a load balancing component, the multiple operation and maintenance channel instances include a first operation and maintenance channel instance and a second operation and maintenance channel instance, and a command distribution module, which is used to: the load balancing component sends the access command to the first operation and maintenance channel instance; the first operation and maintenance channel instance sends the access command to the client.

[0029] In combination with the second aspect, in certain implementations of the second aspect, the command distribution module is also used for: the first operation and maintenance channel instance reports exception information to the load balancing component, and the exception information is used to indicate that the first operation and maintenance channel instance failed to send an access command to the client; the load balancing component sends the access command to the second operation and maintenance channel instance; and the second operation and maintenance channel instance sends the access command to the client.

[0030] In combination with the second aspect, in some implementations of the second aspect, the first operation and maintenance channel instance and the second operation and maintenance channel instance are deployed in different areas.

[0031] In combination with the second aspect, in certain implementations of the second aspect, the command distribution module is also used for: the first operation and maintenance channel instance reports exception information to the load balancing component, and the exception information is used to indicate that the first operation and maintenance channel instance failed to send an access command to the client; the load balancing component establishes a third operation and maintenance channel instance; the load balancing component sends the access command to the third operation and maintenance channel instance; and the third operation and maintenance channel instance sends the access command to the client.

[0032] In combination with the second aspect, in some implementations of the second aspect, the command distribution module is used to: send an access command to the client according to the transmission control protocol.

[0033] In combination with the second aspect, in certain implementations of the second aspect, the access command includes a session identifier, and the session status information includes a correspondence between the session identifier and a sub-process in the operating system of the target server. The client is used to: determine the sub-process corresponding to the session identifier based on the session identifier and session status information of the access command; and call the sub-process to execute the access command.

[0034] In combination with the second aspect, in certain implementations of the second aspect, the operation and maintenance channel management cluster also includes a login authentication module, which, before obtaining the user's access command to the target server, is used to: obtain the user's login command; send the login command to the authentication service, which is used to authenticate the user's identity; receive authentication information from the authentication service; and determine the user's login status based on the authentication information.

[0035] In combination with the second aspect, in some implementations of the second aspect, the operation and maintenance channel management cluster also includes a permission management module, which is used to: obtain access rights from the external storage service; and determine whether the access command satisfies the access rights before sending the access command to the client.

[0036] In combination with the second aspect, in some implementations of the second aspect, the client is also used to: send the execution result of the access command to the operation and maintenance channel management cluster; the operation and maintenance channel management cluster also includes a result display module for sending the execution result to the user.

[0037] In a third aspect, a computing device is provided, comprising a processor and a memory, wherein the memory is used to store instructions, and the processor is used to call and execute the instructions from the memory, so that the computing device executes the method in the first aspect or any possible implementation of the first aspect.

[0038] In a fourth aspect, a computing device cluster is provided, comprising at least one computing device, each computing device comprising a processor and a memory, wherein the memory is used to store instructions, and the processor is used to call and execute the instructions from the memory, so that the computing device cluster executes the method in the first aspect or any possible implementation of the first aspect.

[0039] Optionally, the processor may be a general-purpose processor, which may be implemented in hardware or software. When implemented in hardware, the processor may be a logic circuit, an integrated circuit, or the like; when implemented in software, the processor may be a general-purpose processor implemented by reading software code stored in a memory, which may be integrated into the processor or located independently of the processor.

[0040] In a fifth aspect, a chip is provided, which obtains instructions and executes the instructions to implement the method in the above-mentioned first aspect or any possible implementation manner of the first aspect.

[0041] Optionally, as an implementation, the chip includes a processor and a data interface, and the processor reads instructions stored in the memory through the data interface to execute the method in the above-mentioned first aspect or any possible implementation of the first aspect.

[0042] Optionally, as an implementation method, the chip may also include a memory, in which instructions are stored, and the processor is used to execute the instructions stored in the memory. When the instructions are executed, the processor is used to execute the method in the above-mentioned first aspect or any possible implementation method of the first aspect.

[0043] In a sixth aspect, a computer program product comprising instructions is provided. When the instructions are executed by a computing device cluster, the computing device cluster executes the method in the first aspect or any possible implementation of the first aspect.

[0044] In a seventh aspect, a computer-readable storage medium is provided, comprising computer program instructions. When the computer instructions are executed by a computing device cluster, the computing device cluster executes the method in the above-mentioned first aspect or any possible implementation manner of the first aspect.

[0045] By way of example, these computer-readable storage media include, but are not limited to, one or more of the following: read-only memory (ROM), programmable ROM (PROM), erasable PROM (EPROM), Flash memory, electrically EPROM (EEPROM), and a hard drive.

[0046] Optionally, as an implementation manner, the above-mentioned storage medium may specifically be a non-volatile storage medium. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 is a schematic diagram of a bastion host system.

[0048] FIG2 is a schematic diagram of a system architecture for access management provided in an embodiment of the present application.

[0049] FIG3 is a schematic flowchart of an access management method provided in an embodiment of the present application.

[0050] FIG4 is a schematic flow chart of an example of a scheduling and operation and maintenance channel provided in an embodiment of the present application.

[0051] FIG5 is a schematic flowchart of another access management method provided in an embodiment of the present application.

[0052] FIG6 is a schematic structural block diagram of an access management system provided in an embodiment of the present application.

[0053] FIG7 is a schematic flow chart of an operation and maintenance channel management cluster in an access management system provided in an embodiment of the present application.

[0054] FIG8 is a schematic structural block diagram of a computing device provided in an embodiment of the present application.

[0055] FIG9 is a schematic structural block diagram of a computing device cluster provided in an embodiment of the present application.

[0056] FIG10 is a schematic structural block diagram of another computing device cluster provided in an embodiment of the present application. DETAILED DESCRIPTION

[0057] The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings.

[0058] This application will present various aspects, embodiments, or features around systems including multiple devices, components, modules, etc. It should be understood and appreciated that each system may include additional devices, components, modules, etc., and / or may not include all of the devices, components, modules, etc. discussed in conjunction with the figures. Furthermore, combinations of these aspects may also be used.

[0059] Additionally, in the embodiments of this application, words such as "exemplary" and "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described in this application as "exemplary" should not be construed as being preferred or advantageous over other embodiments or designs. Rather, the use of the word "exemplary" is intended to present concepts in a concrete manner.

[0060] In the embodiments of the present application, “corresponding” and “relevant” may sometimes be used interchangeably. It should be noted that when the distinction between them is not emphasized, the meanings they intend to express are consistent.

[0061] The network architecture and business scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. A person skilled in the art will appreciate that, with the evolution of the network architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are equally applicable to similar technical problems.

[0062] References to "one embodiment" or "some embodiments" in this specification mean that a particular feature, structure, or characteristic described in conjunction with that embodiment is included in one or more embodiments of the present application. Thus, phrases such as "in one embodiment," "in some embodiments," "in other embodiments," and "in yet other embodiments" appearing in various places in this specification do not necessarily refer to the same embodiment, but rather mean "one or more but not all embodiments," unless otherwise specifically emphasized. The terms "including," "comprising," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.

[0063] In this application, "at least one" means one or more, and "more" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: including the existence of A alone, the existence of A and B at the same time, and the existence of B alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can mean: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.

[0064] To facilitate understanding, the following first introduces relevant terms and concepts that may be involved in the embodiments of this application.

[0065] 1. Operations and Maintenance Channel Management Cluster: Also known as the Operations and Maintenance Security Audit System, this service is responsible for centrally managing user access to cloud service resources. The Operations and Maintenance Channel Management Cluster receives access commands from users and distributes them to the servers hosting the cloud service resources. This allows for real-time collection and monitoring of system status, security events, and network activity for every component in the network environment, protecting the network and data from intrusion and damage from external or internal users. This facilitates centralized alerting, timely processing, and audit accountability. In other implementations, the Operations and Maintenance Channel Management Cluster is also referred to as a bastion host or cloud bastion host.

[0066] 2. Session control: A session refers to the connection established when an end user communicates with an interactive system. The session control (session) object is used to store the attributes and configuration information required for a specific user to access a specific service. In this way, when the user jumps between services, the variables stored in the session control object will not be lost, but will persist throughout the user session. When a user requests access to a specific service, if the user does not have a session yet, the server will automatically create a session control object. For a session that has already established a session control object, the new access instructions sent by the user need to be executed based on the session state information stored in the session control object. The session state information is the user's access information to the server. As an example, the session state information may include the user's identity, the user's preferences, the access commands that the user has executed for the service, etc. When the session expires or is abandoned, the server will terminate the session.

[0067] In the cloud computing sector, cloud service providers are faced with an increasing number of cloud service resources to manage, and the number of users accessing these resources is also increasing. If the servers providing cloud service resources were to directly manage user access, each server would need to store and process a large amount of user information and access records, hindering centralized access control, resulting in significant waste of computing resources and inefficient access. Furthermore, the increasing importance of cloud service resources makes access security increasingly crucial. Allowing users to directly access servers would expose server addresses, posing security risks and making it difficult to identify, audit, and determine responsibility in the event of an attack.

[0068] Therefore, many cloud service providers choose to deploy a system for operation and maintenance security access auditing between users and servers, such as a bastion host, to centrally manage user access requests to the server. Figure 1 shows an existing bastion host system. As shown in Figure 1, the bastion host system includes multiple bastion hosts, a user interface (portal), and a load balancing (nginx) component. The bastion host is used to provide functions such as authentication, authorization, authorization, command auditing, behavior recording and playback. The user interface is used to provide a front-end operation interface for users to log in to the bastion host and access cloud service resources. The access command entered by the user through the user interface is forwarded to a bastion host through the load balancing component. The bastion host sends the access command to the server where the target cloud service resource is located through the secure shell protocol (SSH).

[0069] However, in the bastion host system shown in Figure 1, the bastion host needs to record status information such as the user's login status and the session control (session) established between the user and the server, which is called stateful. Since bastion host nodes are stateful, if a node needs to be replaced or a new node needs to be added, the state information of the bastion host node needs to be reconfigured. As an example, if a bastion host cluster has N nodes, after a single bastion host node fails, 1 / N of the user's ongoing sessions may be disconnected. Operations and maintenance personnel will need to re-authenticate and establish a new connection, and the entire process will take at least several minutes to recover. The stateful nature of the bastion host makes it impossible for the bastion host system to quickly recover from disasters or expand capacity. Therefore, how to enable the operation and maintenance channel management cluster to quickly replace nodes without disconnecting has become a technical problem that needs to be solved urgently.

[0070] In view of this, embodiments of the present application provide an access management method, which is applied to an access management system comprising an operation and maintenance channel management cluster and a client running on a server. By recording state information on the client located on the server, the operation and maintenance channel instance distributes access commands to the client, making the operation and maintenance channel instance stateless, thereby enabling switching operation and maintenance channel instances without interrupting service.

[0071] FIG2 shows a schematic diagram of the access management system architecture provided by the present application. As shown in FIG2 , the system includes an operation and maintenance channel management cluster 110 and a client 120 running on a server 20 .

[0072] The client 120 is used to establish and manage the user's session control object. Specifically, the client 120 stores session state information. When the client 120 receives an access command, it interacts with the operating system (OS) of the server 20 based on the session state information in the session control object to execute the user's access command and return the execution result of the access command to the user.

[0073] The operation and maintenance channel management cluster 110 is used to distribute the access commands input by the user, and can also display the execution results returned by the client 120 after executing the access command to the customer. The operation and maintenance channel management cluster 110 is composed of multiple operation and maintenance channel instances 111, and each operation and maintenance channel instance 111 can be composed of one or more computing instances, wherein the computing instance can include at least one of a physical host (computing device), a virtual machine, and a container. Optionally, different operation and maintenance channel instances 111 can be distributed in different regions (regions) or in the same region, that is, each region can include multiple operation and maintenance channel instances, wherein different regions correspond to different physical areas. Optionally, the operation and maintenance channel management cluster 110 can also include a load balancing (nginx) component 112, which is used to forward the user's operation and maintenance request to access the operation and maintenance channel management cluster to a specific operation and maintenance channel instance 111.

[0074] Optionally, the operation and maintenance channel management cluster 110 can transmit commands with the client 120 through the transmission control protocol (TCP). In existing operation and maintenance channel management cluster implementation solutions such as bastion hosts, the operation and maintenance channel management cluster uses the secure shell protocol (SSH) as a remote connection tool with the server. The use of the SSH service requires opening port 22 of the server. This port has many vulnerabilities. Attackers can detect it for remote access and launch security attacks, thereby posing a security risk to the server. The components within the system can communicate directly through the TCP protocol of the transport layer, which can avoid the use of the SSH service, thereby improving the security of the server.

[0075] Optionally, the system may also include a front-end component user interface 130. User interface 130 provides an access interface (such as a user interface or application program interface (API)). Users can remotely access the access interface through an operating interface such as a web page or application, register a cloud account and password on user interface 130, and log in to the operation and maintenance channel management cluster 110. After the operation and maintenance channel management cluster 110 successfully authenticates the cloud account and password, the user can further send access commands to the operation and maintenance channel management cluster 110 through user interface 130. User interface 130 can also display the execution results returned by the operation and maintenance channel management cluster 110 to the user through the operating interface.

[0076] Optionally, the operation and maintenance channel management cluster 110 can communicate with the user interface 130 via the WebSocket protocol. In the WebSocket protocol, the operation and maintenance channel management cluster 110 and the user interface 130 only need to complete a single handshake to directly establish a persistent connection between them and enable bidirectional data transmission, allowing the operation and maintenance channel management cluster 110 to receive user input and return execution results in real time.

[0077] Optionally, the operation and maintenance channel management cluster 110 can also interact with external services 30 to provide additional functions for the operation and maintenance channel management cluster 110 through other cloud services. External services 30 may include but are not limited to authentication and authorization services, audit management services, storage services, etc. As an example, the authentication and authorization service may be a unified identity authentication service (identity and access management, IAM), which provides identity authentication for users who request to log in to the operation and maintenance channel management cluster 110. For another example, the audit management service may be a cloud trace service (CTS), which records the access commands and execution results forwarded by the operation and maintenance channel management cluster 110, so as to facilitate future queries, audits and backtracking by users. For another example, the storage service may be a relational database service (RDS), which may store the user's access rights to the server or the cloud service in the server, so that the operation and maintenance channel management cluster 110 can obtain the access rights and thereby perform permission management on the access commands sent by the user.

[0078] The access management method of the present application is described in detail below with reference to FIG3 .

[0079] Figure 3 shows a schematic flow chart of an access management method provided in an embodiment of the present application. Optionally, the method of Figure 3 can be performed by an access management system, such as the system shown in Figure 2 above. Specifically, the system for performing the access management method provided in an embodiment of the present application includes an operation and maintenance channel management cluster and a client running on a server.

[0080] As shown in FIG3 , the method includes the following steps.

[0081] S310: The operation and maintenance channel management cluster obtains the user's access command to the target server.

[0082] For example, in step S310, the operation and maintenance channel management cluster can obtain a user's access command for the target server. For example, a user can select the cloud service resource to be accessed on the user interface and enter a specific access operation. Based on the target server where the cloud service resource resides, the user interface generates the user's access command for the target server and sends the access command to the operation and maintenance channel management cluster. Alternatively, the operation and maintenance channel management cluster can obtain the access command from the user interface via the WebSocket protocol.

[0083] S320: The operation and maintenance channel management cluster sends the access command to the client.

[0084] For example, in step S320, the operation and maintenance channel management cluster can send the user's access command for the target server to the client. As an example, the operation and maintenance channel management cluster can be responsible for access management of multiple servers, and each server is deployed with a client responsible for executing the access command of the corresponding server. The access command indicates the target server, so the operation and maintenance channel management cluster can send the access command to the client on the target server.

[0085] Optionally, the operation and maintenance channel management cluster can send access commands to the client on the target server using TCP. By enabling direct communication between the operation and maintenance channel management cluster and the client using TCP at the transport layer, the use of SSH as a remote connection tool can be avoided, eliminating the need to open the high-risk port 22 on the target server for SSH service, thereby improving server security.

[0086] S330: The client executes the access command according to the session status information.

[0087] For example, in step S330, the client on the target server can execute the access command. Specifically, the client can create a session object for the session established between the user and the target server. The session object stores the session state information recorded by the client, so the client can execute the access command according to the session state information.

[0088] As an example, during the time a user establishes a session with a server, the user may issue multiple consecutive and interrelated access commands. For example, the access commands may include a first access command, a second access command, and a third access command, wherein the first access command and the second access command are issued and executed before the third access command, and the third access command needs to be executed based on the content and execution results of the first access command and the second access command. When the client receives the third access command, the session state information of the current session stored in the client may include the content and execution results of the first access command and the second access command, so the client can correctly execute the third access command; if the above session state information is lost, the third access command cannot be correctly executed.

[0089] Optionally, the client can manage multiple sessions at the same time, and the client can call different sub-processes to execute according to different sessions corresponding to different access commands. Specifically, the client can establish session objects according to different users' access to different cloud services on the target server. After the session object is established, a unique session identifier will be assigned to each session object. The access command may include the session identifier, so the client can determine the session corresponding to the access command based on the session identifier carried in the access command. Furthermore, the session status information can include the correspondence between the session identifier and the sub-process in the target server OS, where different sub-processes can be used to perform access operations on different cloud services. Therefore, after determining the session corresponding to the access command, the client can further determine the sub-process used to execute the access command. In the above manner, the client can call the corresponding sub-process in the server OS to execute the command based on the session identifier and session status information in the access command, so that the client can manage the sessions of different users separately, thereby improving the efficiency of access management.

[0090] Optionally, after executing the access command, the client can display the access results to the user through the operation and maintenance channel management cluster. Specifically, the client can send the execution results to the operation and maintenance channel management cluster, which then sends the results to the user. For example, the operation and maintenance channel management cluster can send the execution results to the user interface, which generates a visual interface to display the execution results to the user. This allows the operation and maintenance channel management cluster to monitor the entire process of user access to the server, facilitating the monitoring and auditing of user behavior and improving the security of access management.

[0091] Through the technical solution of the embodiment of the present application, a client is set up on the server as the entrance to the server, and the operation and maintenance channel management cluster directly communicates with the client and distributes access commands to the client, so that session state information can be recorded on the client rather than on the operation and maintenance channel management cluster. Therefore, the nodes in the operation and maintenance channel management cluster are stateless. When switching nodes, the new node can work directly without configuring session state information. This can avoid the interruption of established sessions caused by the loss of session state information, thereby switching operation and maintenance channel instances without interrupting service, solving the problem of rapid expansion and contraction of the operation and maintenance channel management cluster.

[0092] Regarding step S320 above, in some possible implementations, the operation and maintenance channel management cluster may be configured with multiple nodes, enabling the operation and maintenance channel management cluster to manage the nodes responsible for distributing access commands. Because the nodes in the operation and maintenance channel management cluster are stateless, the operation and maintenance channel management cluster can autonomously regulate the working status of the nodes when needed. Specifically, the operation and maintenance channel management cluster may include a load balancing component and at least one operation and maintenance channel instance. The load balancing component is configured to forward received access commands to a currently operational operation and maintenance channel instance, which is then configured to send the access commands to the client.

[0093] In this case, Figure 4 shows a schematic flow chart of a scheduling operation and maintenance channel instance provided by an embodiment of the present application. As shown in Figure 4, the process begins with the establishment of a session between the user and the server, and ends with the disconnection of the session established between the user and the service. During this process, after the operation and maintenance channel management cluster receives an access command, the load balancing component forwards the access command to the currently working operation and maintenance channel instance, which then sends the access command to the client.

[0094] For example, the operation and maintenance channel management cluster may include a first operation and maintenance channel instance, and the load balancing component may forward the obtained first access command to the first operation and maintenance channel instance. The first operation and maintenance channel instance sends the first access command to the client. If the first operation and maintenance channel instance successfully sends the first access command, the client can receive the first access command and execute it. Optionally, the specific process of the client executing the first access command may include obtaining the corresponding sub-process in the server OS based on the session identifier carried in the first access command, calling the sub-process to execute the first access command and returning the execution result. After the execution of the first access command, if the session has not ended, the operation and maintenance channel management cluster can continue to obtain access commands and repeat the above steps.

[0095] If the operation channel instance fails to send an access command to the client, it can report the exception to the load balancing component, which then forwards the access command to another currently working operation channel instance. The following two examples illustrate this in detail.

[0096] Example 1: In addition to the first operation and maintenance channel instance, the operation and maintenance channel management cluster may also include a second operation and maintenance channel instance. The load balancing component forwards the obtained second access command to the first operation and maintenance channel instance, but the first operation and maintenance channel instance fails to successfully send the second access command to the client after receiving the second access command. For example, because the first operation and maintenance channel instance currently has a large number of access commands from other sessions being sent, the load on the first operation and maintenance channel instance is too high, and the second access command wait times out; for another example, because the first operation and maintenance channel instance fails after receiving the second access command, the first operation and maintenance channel instance loses the ability to operate normally. In the above case, the first operation and maintenance channel instance can report the exception information to the load balancing component. After the load balancing component receives the exception information sent by the first operation and maintenance channel instance, the load balancing component can forward the second access command to the second operation and maintenance channel instance, and the second operation and maintenance channel instance sends the second access command to the client. After the second operation and maintenance channel instance successfully sends the second access command to the client, the client can receive and execute the second access command.

[0097] Through the technical solution of the embodiments of the present application, when the operation and maintenance channel instance currently responsible for forwarding access commands becomes abnormal due to load balancing or disaster recovery, for example, the current node fails to send the command to the client, and the forwarding task is reallocated to other nodes in the operation and maintenance channel management cluster, thereby achieving node switching without interrupting access, thereby improving the rapid disaster recovery or load balancing capabilities of the operation and maintenance channel management cluster and improving the availability of the operation and maintenance channel management cluster service.

[0098] Optionally, in the above example, the first and second operation and maintenance channel instances can be deployed in different regions. Because switching nodes does not require reconfiguring session state information, there is no need for information exchange between operation and maintenance channel instance nodes, eliminating the need to restrict the physical region of the operation and maintenance channel instance, enabling cross-region deployment of operation and maintenance channel instances. This allows forwarding nodes before and after the switch to be located in different physical regions, reducing the likelihood of simultaneous failures on different nodes. This enables remote disaster recovery and further improves the availability of the operation and maintenance channel management cluster service.

[0099] Example 2: The operation and maintenance channel management cluster can also deploy new operation and maintenance channel instances. The load balancing component forwards the obtained third access command to the first operation and maintenance channel instance. After the first operation and maintenance channel instance fails to send the third access command and reports an exception, for example, when the operation and maintenance channel management cluster is fully loaded or all operation and maintenance channel instances fail, resulting in the second operation and maintenance channel instance also being in an unworkable state, the load balancing component can establish a third operation and maintenance channel instance and forward the third access command to the third operation and maintenance channel instance, which will then send the third access command to the client. As an example, the load balancing component can request one or more computing instances that were originally not included in the operation and maintenance channel management cluster to include the one or more computing instances in the scope of the operation and maintenance channel management cluster, thereby using them as the third operation and maintenance channel instance.

[0100] It should be understood that Example 2 above only illustrates the situation where the Operation Channel Management Cluster currently has no operational Operation Channel instances. This illustrates the ability of the Operation Channel Management Cluster to expand the number of Operation Channel instances, and does not limit the ability to add new Operation Channel instances to this specific situation. For example, if a user purchases a larger Operation Channel Management Cluster service through the user interface, the user interface can also issue instructions to instruct the Operation Channel Management Cluster to establish a new Operation Channel instance.

[0101] Through the technical solution of the embodiment of the present application, the operation and maintenance channel management cluster can deploy a new operation and maintenance channel instance and reallocate the forwarding task to the new operation and maintenance channel instance, thereby realizing the expansion of the operation and maintenance channel management cluster without interrupting access, thereby improving the rapid expansion capability of the operation and maintenance channel management cluster and improving the availability of the operation and maintenance channel management cluster service.

[0102] Optionally, in addition to its rapid capacity expansion capability, the operation and maintenance channel management cluster can also provide rapid capacity reduction capabilities. For example, when the operation and maintenance channel management cluster needs to delete a first operation and maintenance channel instance, the first operation and maintenance channel instance can report its currently unsuccessfully sent access commands to the load balancing component, which then redistributes these access commands to other operation and maintenance channel instances, thereby deleting the first operation and maintenance channel instance from the operation and maintenance channel management cluster.

[0103] Because the operation and maintenance channel instances in this application's technical solution are stateless, switching the operation and maintenance channel instance responsible for forwarding access commands does not affect the session state information recorded in the client. Therefore, switching the operation and maintenance channel instance in all the above examples will not cause the user's established session to be disconnected with the server. The switched node can be used directly without configuration, making the switching time controllable and rapid, so that the above switching process can be completed without the user's awareness.

[0104] In the access management system provided by the embodiment of the present application, only functions that require stateful nodes, such as session control, are transferred from the operation and maintenance channel management cluster to the client on the target server for execution. Functions that can be executed in a stateless state on a node can continue to be executed by the operation and maintenance channel management cluster, thereby providing users with services such as operation auditing, authority management, and security compliance. By forwarding user access commands to the server through the operation and maintenance channel management cluster, users and servers can be isolated, thereby ensuring the security of server access; in addition, centralized management of different users' access to different servers can be achieved, facilitating authentication and subsequent audit and accountability.

[0105] As an example, the operation and maintenance channel management cluster can provide identity authentication services for users. In this case, FIG5 shows a schematic flow chart of an access management method provided in an embodiment of the present application.

[0106] As shown in FIG5 , the method includes the following steps.

[0107] S510: The operation and maintenance channel management cluster obtains a login command.

[0108] For example, in step S510, the operation and maintenance channel management cluster can obtain a login command from the user before establishing a session between the user and the target server. Specifically, this login command is used to confirm the identity of the user currently requesting login and subsequently issuing access commands. For example, a user can log in by entering their registered cloud account and password in the user interface. The user interface can then generate a login command based on the user input and send it to the operation and maintenance channel management cluster.

[0109] S520: The operation and maintenance channel management cluster sends a login command to the authentication service.

[0110] For example, in step S520, the operation and maintenance channel management cluster can send the login command to the authentication service, so that the authentication service authenticates the user's identity based on the login command. Optionally, the authentication service includes but is not limited to an IAM service.

[0111] S530: The operation and maintenance channel management cluster receives authentication information from the authentication service.

[0112] For example, in step S530, the authentication service can confirm the user identity according to the login command sent by the operation and maintenance channel management cluster, thereby generating authentication information and sending it to the operation and maintenance channel management cluster, so that the operation and maintenance channel management cluster can receive the authentication information.

[0113] S540: The operation and maintenance channel management cluster determines the user's login status based on the authentication information.

[0114] For example, in step S540, the operation and maintenance channel management cluster can determine the user's login status based on the authentication information. As an example, the authentication information can be authentication success information, for example, the cloud account and password entered by the user are registered and match, and the user of the cloud account has the authority to access at least some of the cloud services managed by the operation and maintenance channel management cluster, then the authentication service generates and sends authentication success information, and the operation and maintenance channel management cluster can determine that the user has successfully logged in based on the authentication success information and can continue to perform subsequent access steps. The authentication information can also be authentication failure information, for example, the cloud account entered by the user is not registered, or the cloud account and password do not match, or the cloud account does not have the authority to access any cloud service managed by the operation and maintenance channel management cluster, etc., then the authentication service generates and sends authentication failure information, and the operation and maintenance channel management cluster can determine that the user has not successfully logged in based on the authentication failure information. Optionally, when the authentication fails, the operation and maintenance channel management cluster can inform the user of the login failure through the user interface and request the user to log in again. If the user fails to log in again correctly, he or she will not be entitled to subsequent access.

[0115] It should be understood that in the above scheme, since the authentication information is sent by the authentication service to the operation and maintenance channel management cluster, any operation and maintenance channel instance in the operation and maintenance channel management cluster can receive the authentication information from the authentication service when needed. Therefore, the user's login status does not need to be recorded in the node of the operation and maintenance channel management cluster, so that the identity authentication service does not depend on a specific operation and maintenance channel instance. For example, after switching the operation and maintenance channel instance responsible for forwarding access commands during a session, the switched operation and maintenance channel instance can request the user's authentication information from the authentication service again based on the user who sent the access command, thereby determining the user's login status without the user having to log in again. On the basis of ensuring user access security, the user's usage experience is improved.

[0116] If the authenticated user logs in successfully, the access management system can continue to manage the access command, specifically including the following steps:

[0117] S550: The operation and maintenance channel management cluster obtains access commands.

[0118] S560: The operation and maintenance channel management cluster sends an access command to the client, or in other words, the client receives the access command from the operation and maintenance channel management cluster.

[0119] Optionally, before sending an access command to the client, the operation and maintenance channel management cluster can also obtain the user's access rights from the external storage service, and determine whether to send the access command to the client based on whether the access command meets the access rights. Specifically, the access rights are used to indicate the cloud services that the user can access and the specific operations that can be performed. If the operation and maintenance channel management cluster determines that the access command meets the access rights, the operation and maintenance channel management cluster can execute step S560 and subsequent steps; if the operation and maintenance channel management cluster determines that the access command does not meet the access rights, the operation and maintenance channel management cluster does not execute S560 and returns to step S550. Optionally, external storage services include but are not limited to databases, cloud databases, cloud storage services, etc., and this application does not make specific limitations. As an example, the external storage service can be an authentication and authorization service. The authentication and authorization service can store the access rights corresponding to the user identity while storing the registered user identity, so that the user's access rights are sent to the operation and maintenance channel management cluster when the user login authentication is successful; the external storage service can also be other independent storage services, such as RDS. After the user's access rights are set, the operation and maintenance channel management cluster can upload them to RDS, so that any operation and maintenance channel instance can request the access rights from RDS when needed.

[0120] Through the above solution, the operation and maintenance channel management cluster can obtain the user's access rights to the server from the external storage service, so that any node in the operation and maintenance channel management cluster can manage the user's access rights without pre-configuration, thereby enabling the operation and maintenance channel management cluster to provide permission management services and improve the security of access management.

[0121] S570: The client executes the access command according to the session state information.

[0122] Optionally, the method may further include:

[0123] S580: The client sends the execution result to the operation and maintenance channel management cluster, or in other words, the operation and maintenance channel management cluster receives the execution result from the client.

[0124] Optionally, the implementation of the above steps S550 to S580 may be the same as the access management method described above. For specific implementation methods, reference may be made to the description of FIG. 3 and FIG. 4 and corresponding embodiments, which will not be repeated here.

[0125] Through the technical solutions of the embodiments of the present application, the operation and maintenance channel management cluster can interact with external authentication and authorization services, thereby strengthening user identity authentication management.

[0126] It should be understood that the method shown in Figure 5 only takes the authentication and authorization service as an example to illustrate that the operation and maintenance channel management cluster provided in the embodiment of the present application can provide stateless functions, but is not limited to providing identity authentication or authority management functions. The operation and maintenance channel management cluster can also provide other stateless functions such as security compliance and operation audit.

[0127] As an example, the operation and maintenance channel management cluster can audit and manage the user's access operations. Specifically, after the user logs in successfully, the operation and maintenance channel management cluster can send each access command forwarded to the client during the session to CTS at the same time, and also send the corresponding execution results fed back by the client to CTS, so that CTS monitors and records the user's behavior throughout the process. When CTS finds that there is a security risk in the user's access behavior, the operation and maintenance channel management cluster can receive early warning information from CTS, and the operation and maintenance channel management cluster prompts the user through the user interface based on the early warning information, and can stop forwarding the user's access command if necessary. When the user requests to view the operation record, the operation and maintenance channel management cluster can send a request to CTS and receive the operation record from CTS, and then feedback to the user through the user interface.

[0128] The above description uses FIG3 to FIG5 to illustrate an embodiment of the method for access management provided by the present application. The following description uses FIG6 to FIG10 to illustrate an embodiment of the device for access management provided by the present application.

[0129] Figure 6 shows a schematic structural diagram of an access management system 600 provided in an embodiment of the present application. As shown in Figure 6, the system 600 includes an operation and maintenance channel management cluster 610 and a client 620, wherein the client 620 runs on a target server.

[0130] FIG7 shows a schematic structural block diagram of an operation and maintenance channel management cluster 610 in an access management system 600 provided in an embodiment of the present application.

[0131] As shown in FIG7 , the operation and maintenance channel management cluster 610 includes: a command acquisition module 611 and a command distribution module 612 .

[0132] Specifically, the command acquisition module 611 is used to acquire a user's access command to a target server.

[0133] Specifically, the command distribution module 612 is used to send the access command to the client.

[0134] Optionally, the operation and maintenance channel management cluster includes a load balancing component, and the operation and maintenance channel management cluster also includes at least a first operation and maintenance channel instance and a second operation and maintenance channel instance. The command distribution module 612 is specifically used for the load balancing component to send the access command to the first operation and maintenance channel instance; the first operation and maintenance channel instance sends the access command to the client.

[0135] Optionally, the command distribution module 612 is also specifically used for the first operation and maintenance channel instance to report exception information to the load balancing component, where the exception information is used to indicate that the first operation and maintenance channel instance failed to send an access command to the client; the load balancing component sends the access command to the second operation and maintenance channel instance; and the second operation and maintenance channel instance sends the access command to the client.

[0136] Optionally, the first operation and maintenance channel instance and the second operation and maintenance channel instance are deployed in different areas.

[0137] Optionally, the command distribution module 612 is also specifically used for the first operation and maintenance channel instance to report exception information to the load balancing component, where the exception information is used to indicate that the first operation and maintenance channel instance failed to send an access command to the client; the load balancing component establishes a third operation and maintenance channel instance; the load balancing component sends the access command to the third operation and maintenance channel instance; and the third operation and maintenance channel instance sends an access command to the client.

[0138] Optionally, the command distribution module 612 is specifically configured to send an access command to the client according to the Transmission Control Protocol.

[0139] Specifically, the client 620 is used to execute the access command according to the session state information. The session state information is the user's access information to the target server recorded by the client.

[0140] Optionally, the access command includes a session identifier, and the session status information includes the correspondence between the session identifier and the sub-process in the operating system of the target server. The client 620 is specifically used to determine the sub-process corresponding to the session identifier based on the session identifier and session status information of the access command; and call the sub-process to execute the access command.

[0141] Optionally, the operation and maintenance channel management cluster 610 may also include a login authentication module 613, which is used to: obtain the user's login command before obtaining the user's access command to the target server; send the login command to the authentication service, which is used to authenticate the user's identity; receive authentication information from the authentication service; and determine the user's login status based on the authentication information.

[0142] Optionally, the operation and maintenance channel management cluster 610 may further include a rights management module 614 , which is used to obtain access rights from an external storage service and determine whether the access command satisfies the access rights before sending the access command to the client.

[0143] Optionally, the client 620 is further configured to send the execution result of the access command to the operation and maintenance channel management cluster; the operation and maintenance channel management cluster 610 may further include a result display module 615 for sending the execution result to the user.

[0144] The above modules can be implemented in software or hardware. For example, the implementation of the command distribution module 612 will be described below, taking the command distribution module 612 as an example. Similarly, the implementation of the command acquisition module 611, login authentication module 613, authority management module 614, and result display module 615 can refer to the implementation of the command distribution module 612.

[0145] As an example of a software functional unit, the command distribution module 612 may include code running on a computing instance. The computing instance may include at least one of a physical host (computing device), a virtual machine, and a container. Furthermore, the computing instance may be one or more. For example, the command distribution module 612 may include code running on multiple hosts / virtual machines / containers. It should be noted that the multiple hosts / virtual machines / containers used to run the code may be distributed in the same region or in different regions. Furthermore, the multiple hosts / virtual machines / containers used to run the code may be distributed in the same availability zone (AZ) or in different AZs, each AZ including one data center or multiple geographically close data centers. Typically, a region may include multiple AZs.

[0146] Similarly, multiple hosts / virtual machines / containers running the code can be distributed within the same virtual private cloud (VPC) or across multiple VPCs. Typically, a VPC is set up within a region. Cross-region communication between two VPCs within the same region, or between VPCs in different regions, requires a communication gateway within each VPC to interconnect the VPCs.

[0147] As an example of a hardware functional unit, the command distribution module 612 may include at least one computing device, such as a server. Alternatively, the command distribution module 612 may be implemented using an application-specific integrated circuit (ASIC) or a programmable logic device (PLD). The PLD may be a complex programmable logical device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.

[0148] The multiple computing devices included in the command distribution module 612 can be distributed in the same region or in different regions. The multiple computing devices included in the command distribution module 612 can be distributed in the same AZ or in different AZs. Similarly, the multiple computing devices included in the command distribution module 612 can be distributed in the same VPC or in multiple VPCs. The multiple computing devices can be any combination of servers, ASICs, PLDs, CPLDs, FPGAs, GALs, and other computing devices.

[0149] It should be noted that, in other embodiments, the command acquisition module 611, the command distribution module 612, the login authentication module 613, the permission management module 614 and the result display module 615 can be used to execute any steps in the above-mentioned access management method respectively. The steps that the command acquisition module 611, the command distribution module 612, the login authentication module 613, the permission management module 614 and the result display module 615 are responsible for implementing can be specified as needed. The command acquisition module 611, the command distribution module 612, the login authentication module 613, the permission management module 614 and the result display module 615 respectively implement different steps in the above-mentioned access management method to realize all the functions of the operation and maintenance channel management cluster.

[0150] This application also provides a computing device 100. As shown in FIG8 , computing device 100 includes a bus 102, a processor 104, a memory 106, and a communication interface 108. Processor 104, memory 106, and communication interface 108 communicate with each other via bus 102. Computing device 100 may be a server or a terminal device. It should be understood that this application does not limit the number of processors and memories in computing device 100.

[0151] Bus 102 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, among others. Buses may be classified as address buses, data buses, control buses, and the like. For ease of illustration, FIG8 illustrates a single bus line, but this does not imply a single bus or type of bus. Bus 102 may include a path for transmitting information between various components of computing device 100 (e.g., memory 106, processor 104, and communication interface 108).

[0152] The processor 104 may include any one or more processors such as a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).

[0153] The memory 106 may include volatile memory, such as random access memory (RAM). The processor 104 may also include non-volatile memory, such as read-only memory (ROM), flash memory, hard disk drive (HDD), or solid state drive (SSD).

[0154] Memory 106 stores executable program code, which processor 104 executes to implement the functions of the aforementioned command acquisition module, command distribution module, login authentication module, rights management module, and result presentation module, thereby implementing the aforementioned access management method. In other words, memory 106 stores instructions for executing the aforementioned access management method.

[0155] The communication interface 108 uses a command distribution module such as, but not limited to, a network interface card, a transceiver, etc. to implement communication between the computing device 100 and other devices or a communication network.

[0156] Embodiments of the present application also provide a computing device cluster. The computing device cluster includes at least one computing device. The computing device can be a server, such as a central server, an edge server, or a local server in a local data center. In some embodiments, the computing device can also be a terminal device such as a desktop computer, a laptop computer, or a smartphone.

[0157] As shown in Figure 9, the computing device cluster includes at least one computing device 100. The memory 106 in one or more computing devices 100 in the computing device cluster may store the same instructions for executing the above access management method.

[0158] In some possible implementations, the memory 106 of one or more computing devices 100 in the computing device cluster may also store partial instructions for executing the aforementioned access management method. In other words, the combination of one or more computing devices 100 may jointly execute the instructions for executing the aforementioned access management method.

[0159] It should be noted that the memory 106 in different computing devices 100 in the computing device cluster can store different instructions, each used to perform part of the functions of the above-mentioned operation and maintenance channel management cluster. In other words, the instructions stored in the memory 106 in different computing devices 100 can implement the functions of one or more modules among the command acquisition module, command distribution module, login authentication module, permission management module, and result display module.

[0160] In some possible implementations, one or more computing devices in a computing device cluster may be connected via a network. The network may be a wide area network or a local area network, etc. FIG10 shows a possible implementation. As shown in FIG10 , two computing devices 100A and 100B are connected via a network. Specifically, the connection to the network is made via a communication interface in each computing device. In this type of possible implementation, the memory 106 in the computing device 100A stores instructions for executing the functions of the command acquisition module and the command distribution module. At the same time, the memory 106 in the computing device 100B stores instructions for the functions of the client.

[0161] It should be understood that the functions of the computing device 100A shown in FIG10 may also be completed by multiple computing devices 100. Similarly, the functions of the computing device 100B may also be completed by multiple computing devices 100.

[0162] An embodiment of the present application further provides a chip, which includes a processor and a data interface. The processor reads instructions stored in a memory through the data interface to execute the above-mentioned access management method.

[0163] Embodiments of the present application also provide a computer program product containing instructions. The computer program product may be software or a program product containing instructions that can be run on a computing device or stored on any available medium. When the computer program product is run on at least one computing device, it causes the at least one computing device to perform the access management method described above.

[0164] The embodiment of the present application also provides a computer-readable storage medium. The computer-readable storage medium can be any available medium that can be stored by a computing device or a data storage device such as a data center containing one or more available media. The available medium can be a magnetic medium (for example, a floppy disk, a hard disk, a tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid-state hard disk), etc. The computer-readable storage medium includes instructions that instruct the computing device to perform the above-mentioned management. The various technical features can be arbitrarily combined. In order to make the description concise, not all possible combinations of the various technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0165] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the protection scope of the technical solutions of the embodiments of the present application.

Claims

1. A method of access management, It is characterized in that The method is applied to an access management system, the system includes an operation and maintenance channel management cluster and a client, the client runs on a target server, the operation and maintenance channel management cluster includes multiple operation and maintenance channel instances, each operation and maintenance channel instance is used to interact with the client, each operation and maintenance channel instance is composed of at least one computing instance, and the at least one computing instance includes at least one of a physical host, a virtual machine, and a container, and the method includes: The operation and maintenance channel management cluster obtains a user's access command to the target server; The operation and maintenance channel management cluster sends the access command to the client; The client executes the access command according to session state information, where the session state information is the access information of the user to the target server recorded by the client.

2. The method according to claim 1, It is characterized in that The operation and maintenance channel management cluster further includes a load balancing component, the multiple operation and maintenance channel instances include a first operation and maintenance channel instance and a second operation and maintenance channel instance, and sending the access command to the client includes: The load balancing component sends the access command to the first operation and maintenance channel instance; The first operation and maintenance channel instance sends the access command to the client.

3. The method according to claim 2, It is characterized in that The sending of the access command to the client further includes: The first operation and maintenance channel instance reports abnormal information to the load balancing component, where the abnormal information is used to indicate that the first operation and maintenance channel instance fails to send the access command to the client; The load balancing component sends the access command to the second operation and maintenance channel instance; The second operation and maintenance channel instance sends the access command to the client.

4. The method according to claim 3, It is characterized in that The first operation and maintenance channel instance and the second operation and maintenance channel instance are deployed in different areas.

5. The method according to claim 2, It is characterized in that The sending of the access command to the client further includes: The first operation and maintenance channel instance reports abnormal information to the load balancing component, where the abnormal information is used to indicate that the first operation and maintenance channel instance fails to send the access command to the client; The load balancing component establishes a third operation and maintenance channel instance; The load balancing component sends the access command to the third operation and maintenance channel instance; The third operation and maintenance channel instance sends the access command to the client.

6. The method according to any one of claims 1 to 5, It is characterized in that The sending the access command to the client comprises: The operation and maintenance channel management cluster sends the access command to the client according to the transmission control protocol.

7. The method according to any one of claims 1 to 6, It is characterized in that The access command includes a session identifier, the session state information includes a correspondence between the session identifier and a subprocess in the operating system of the target server, and executing the access command according to the session state information includes: Determine a subprocess corresponding to the session identifier according to the session identifier of the access command and the session state information; The subprocess is called to execute the access command.

8. The method according to any one of claims 1 to 7, It is characterized in that Before obtaining the user's access command to the target server, the method further includes: The operation and maintenance channel management cluster obtains a login command of the user; The operation and maintenance channel management cluster sends the login command to the authentication service, and the authentication service is used to authenticate the identity of the user; The operation and maintenance channel management cluster receives authentication information from the authentication service; The operation and maintenance channel management cluster determines the login status of the user according to the authentication information.

9. The method according to any one of claims 1 to 8, It is characterized in that Before sending the access command to the client, the method further includes: The operation and maintenance channel management cluster obtains access rights from the external storage service; The operation and maintenance channel management cluster determines that the access command satisfies the access permission.

10. The method according to any one of claims 1 to 9, It is characterized in that The method further comprises: The client sends the execution result of the access command to the operation and maintenance channel management cluster; The operation and maintenance channel management cluster sends the execution result to the user.

11. A system for access management, It is characterized in that The system includes an operation and maintenance channel management cluster and a client, wherein the client runs on a target server, the operation and maintenance channel management cluster includes multiple operation and maintenance channel instances, each of which is used to interact with the client, each of which is composed of at least one computing instance, and the at least one computing instance includes at least one of a physical host, a virtual machine, and a container, and the operation and maintenance channel management cluster includes: A command acquisition module, used to acquire a user's access command to the target server; A command distribution module, used for sending the access command to the client; The client is used to: The access command is executed according to the session state information, where the session state information is the access information of the user to the target server recorded by the client.

12. The system according to claim 11, It is characterized in that The operation and maintenance channel management cluster further includes a load balancing component, the multiple operation and maintenance channel instances include a first operation and maintenance channel instance and a second operation and maintenance channel instance, and the command distribution module is used to: The load balancing component sends the access command to the first operation and maintenance channel instance; The first operation and maintenance channel instance sends the access command to the client.

13. The system according to claim 12, It is characterized in that The command distribution module is also used for: The first operation and maintenance channel instance reports abnormal information to the load balancing component, where the abnormal information is used to indicate that the first operation and maintenance channel instance fails to send the access command to the client; The load balancing component sends the access command to the second operation and maintenance channel instance; The second operation and maintenance channel instance sends the access command to the client.

14. The system according to claim 13, It is characterized in that The first operation and maintenance channel instance and the second operation and maintenance channel instance are deployed in different areas.

15. The system according to claim 12, It is characterized in that The command distribution module is also used for: The first operation and maintenance channel instance reports abnormal information to the load balancing component, where the abnormal information is used to indicate that the first operation and maintenance channel instance fails to send the access command to the client; The load balancing component establishes a third operation and maintenance channel instance; The load balancing component sends the access command to the third operation and maintenance channel instance; The third operation and maintenance channel instance sends the access command to the client.

16. A system according to any one of claims 11 to 15, It is characterized in that The command distribution module is used to: The access command is sent to the client according to the transmission control protocol.

17. A system according to any one of claims 11 to 16, It is characterized in that The access command includes a session identifier, the session state information includes a corresponding relationship between the session identifier and a subprocess in the operating system of the target server, and the client is used to: Determine a subprocess corresponding to the session identifier according to the session identifier of the access command and the session state information; The subprocess is called to execute the access command.

18. A system according to any one of claims 11 to 17, It is characterized in that The operation and maintenance channel management cluster further includes a login authentication module, which is used to: Obtaining a login command of the user; Sending the login command to an authentication service, where the authentication service is used to authenticate the identity of the user; Receiving authentication information from the authentication service; The login status of the user is determined according to the authentication information.

19. A system according to any one of claims 11 to 18, It is characterized in that The operation and maintenance channel management cluster further includes a rights management module, which is used to: Get access permissions from external storage services; It is determined that the access command satisfies the access permission.

20. The system according to any one of claims 11 to 19, It is characterized in that The client is also used to: The client sends the execution result of the access command to the operation and maintenance channel management cluster; The operation and maintenance channel management cluster also includes a result display module, which is used to send the execution result to the user.

21. A computing device, It is characterized in that The computer comprises a processor and a memory, wherein the processor is configured to execute instructions stored in the memory so that the computing device executes the method according to any one of claims 1 to 10.

22. A computing device cluster, It is characterized in that comprising at least one computing device, each computing device comprising a processor and a memory; The processor of the at least one computing device is configured to execute instructions stored in the memory of the at least one computing device, so that the computing device cluster executes the method according to any one of claims 1 to 10.

23. A computer-readable storage medium, It is characterized in that The method comprises computer program instructions, which, when executed by a computing device cluster, cause the computing device cluster to perform the method according to any one of claims 1 to 10.

Citation Information

Patent Citations

  • Access management method and system

    CN118740661A

  • Load balancing method and device

    CN111478937A

  • Operation and maintenance access method and system of operation and maintenance auditing system

    CN113114643A

  • Apparatus and method for remote access

    CN115248922A

  • Efficient virtual IP address management for service clusters

    US20210243250A1

Cited By

  • Database bastion resource management and control method based on HTML5 technology

    CN120493285A

  • Elastic load balancing ten-million-level concurrent access processing method and system

    CN120711010A

  • Interaction system and method coupled with artificial intelligence session state and control equipment

    CN121501196A