Management method and device of bastion host, electronic equipment and storage medium
By optimizing the management method of bastion machines, including allocating target server and client permissions and adjusting bastion machine resources, the problem of rising bastion machines number and cost caused by the increase in the number of clients is solved, and efficient resource utilization and operation and maintenance audit reduction is achieved. .
Patent Information
- Application Number
- CN202410987855.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-23
- Publication Date
- 2024-11-12
AI Technical Summary
As the number of clients increases, the number of bastion machines and computing resources also increase, resulting in an increase in operation and maintenance audit costs.
By obtaining the management relationship chain of historical bastion machines, assigning target servers to target bastion machines, finding and adding target clients and permissions, optimizing operation and maintenance operations, adjusting the security level and running time of bastion machines engines, and converting the abnormal engine position to handle Operation and maintenance operations.
The number of fortress machines has been reduced, the operation and maintenance audit costs have been reduced, and management efficiency and safety have been improved.
Smart Images

Figure CN118939424A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of data processing technology, and in particular to a management method and device of a bastion host, an electronic device, and a storage medium. Background Art
[0002] The bastion host is used to manage the client's operation and maintenance operations on the server. The bastion host isolates the client from the server. The client must go through the bastion host to perform operation and maintenance operations on the server. The bastion host audits the client's operation and maintenance operations. The bastion host's operation and maintenance audit function ensures the security of the client's operation and maintenance operations on the server.
[0003] In the related technologies of bastion host management, a bastion host is usually assigned to each client. Each client can only perform operation and maintenance operations on the server through its corresponding bastion host, and each bastion host can only perform operation and maintenance audits on the operation and maintenance operations of its corresponding client.
[0004] In real life, the number of clients is increasing, and the corresponding number of bastion hosts is also increasing. The bastion hosts occupy more computing resources, resulting in increased operation and maintenance audit costs. Summary of the invention
[0005] The present disclosure provides a bastion host management method and device, electronic device and storage medium. Its main purpose is to solve the problem that the number of clients is increasing, the number of corresponding bastion hosts is also increasing, and the computing resources occupied by the bastion hosts are increasing, resulting in an increase in operation and maintenance audit costs.
[0006] According to a first aspect of the present disclosure, a bastion host management method is provided, which includes:
[0007] Obtaining first management relationship chains of at least two historical bastion hosts respectively; the first management relationship chain is a client managed by the historical bastion host accessing a server managed by the historical bastion host through authority;
[0008] Allocate a target server located in the same resource pool among the servers to a second management relationship chain of a target bastion host; the target bastion host is a bastion host corresponding to the resource pool;
[0009] In the first management relationship chain, respectively searching for the target client and the corresponding target authority corresponding to the target server;
[0010] The target client and the target permission are added to the second management relationship chain so that the target bastion host processes the operation and maintenance operations of the target client based on the second management relationship chain.
[0011] Optionally, after processing the operation and maintenance operation of the target client based on the second management relationship chain, the method further includes:
[0012] Obtaining attribute categories of the log data of the operation and maintenance operation, and identifying the attribute categories;
[0013] If the recognition result of the attribute category is a text category, storing the log data in a preset text library;
[0014] If the identification result of the attribute category is a video category, the log data is stored in a preset video library.
[0015] Optionally, before allocating the target server in the server that is located in the same resource pool to the second management relationship chain of the target bastion host, the method further includes:
[0016] Obtain the target security level of each bastion host engine in the target bastion host respectively;
[0017] According to the pre-established mapping relationship between the security level and the security execution mode, the target security execution mode corresponding to the target security level is searched, so as to perform security protection on the bastion host engine corresponding to the target security level based on the target security execution mode.
[0018] Optionally, after performing security protection on the bastion host engine corresponding to the target security level based on the target security execution mode, the method further includes:
[0019] Obtain the running time corresponding to each bastion host engine respectively;
[0020] If the running time is greater than the preset time threshold, the running time of each bastion host engine is adjusted until the running time is less than the preset time threshold.
[0021] Optionally, the adjusting the running time of each bastion host engine until the running time is less than the preset time threshold includes:
[0022] According to the trend of making the running time less than or equal to the preset time threshold, the running time of each bastion host engine is adjusted until the running time is less than the preset time threshold.
[0023] Optionally, before processing the operation and maintenance operation of the target client based on the second management relationship chain, the method further includes:
[0024] If the operation and maintenance operation carries the position of the first bastion host engine, determining whether the first bastion host engine corresponding to the position of the first bastion host engine is abnormal; the first bastion host engine is any bastion host engine in the target bastion host;
[0025] When it is determined that there is an abnormality in the first bastion host engine, the position of the first bastion host engine is converted to the position of the second bastion host engine, so that based on the position of the second bastion host engine, the operation and maintenance operation is transmitted to the second bastion host engine corresponding to the second bastion host engine for processing; the second bastion host engine is any bastion host engine in the target bastion host except the first bastion host engine.
[0026] According to a second aspect of the present disclosure, a management device of a bastion host is provided, including:
[0027] An acquisition unit, used to respectively acquire first management relationship chains of at least two historical bastion hosts; the first management relationship chain is a client managed by the historical bastion host accessing a server managed by the historical bastion host through authority;
[0028] An allocation unit, configured to allocate a target server located in the same resource pool among the servers to a second management relationship chain of a target bastion host; the target bastion host is a bastion host corresponding to the resource pool;
[0029] A search unit, used to search for a target client and a corresponding target authority corresponding to the target server in the first management relationship chain respectively;
[0030] An adding unit is used to add the target client and the target permission to the second management relationship chain so that the target bastion host processes the operation and maintenance operations of the target client based on the second management relationship chain.
[0031] Optionally, the device further comprises:
[0032] The acquisition unit is further configured to, after processing the operation and maintenance operation of the target client based on the second management relationship chain, acquire the attribute category of the log data of the operation and maintenance operation and identify the attribute category;
[0033] A storage unit, used for storing the log data in a preset text library when the recognition result of the attribute category is a text category;
[0034] The storage unit is further configured to store the log data in a preset video library when the identification result of the attribute category is a video category.
[0035] Optionally, the device further comprises:
[0036] The acquisition unit is further used to respectively acquire the target security level of each bastion server engine in the target bastion server before allocating the target server in the server and located in the same resource pool to the second management relationship chain of the target bastion server;
[0037] The search unit is also used to search for the target security execution mode corresponding to the target security level according to a pre-established mapping relationship between the security level and the security execution mode, so as to perform security protection on the bastion host engine corresponding to the target security level based on the target security execution mode.
[0038] Optionally, the device further comprises:
[0039] The acquisition unit is further used to, after performing security protection on the bastion engine corresponding to the target security level based on the target security execution mode, respectively acquire the corresponding running time of each bastion engine;
[0040] The adjustment unit is used to adjust the running time of each bastion host engine when the running time is greater than the preset time threshold, until the running time is less than the preset time threshold.
[0041] Optionally, the adjustment unit includes:
[0042] The adjustment module is used to adjust the running time of each bastion engine according to the trend of making the running time less than or equal to the preset time threshold, until the running time is less than the preset time threshold.
[0043] Optionally, the device further comprises:
[0044] A judgment unit is used to judge whether there is an abnormality in a first bastion host engine corresponding to the first bastion host engine position before processing the operation and maintenance operation of the target client based on the second management relationship chain, when the operation and maintenance operation carries the first bastion host engine position; the first bastion host engine is any bastion host engine in the target bastion host;
[0045] A conversion unit is used to convert the position of the first bastion host engine to the position of a second bastion host engine when it is determined that an abnormality exists in the first bastion host engine, so as to transmit the operation and maintenance operation to the second bastion host engine corresponding to the second bastion host engine for processing based on the position of the second bastion host engine; the second bastion host engine is any bastion host engine in the target bastion host except the first bastion host engine.
[0046] According to a third aspect of the present disclosure, there is provided an electronic device, including:
[0047] at least one processor; and
[0048] a memory communicatively connected to the at least one processor; wherein,
[0049] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method described in the first aspect.
[0050] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute the method described in the first aspect.
[0051] According to a fifth aspect of the present disclosure, a computer program product is provided, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements the method as described in the first aspect above.
[0052] The management method and device, electronic device and storage medium of the bastion host provided by the present disclosure respectively obtain the first management relationship chain of at least two historical bastion hosts; the first management relationship chain is for the client managed by the historical bastion host to access the server managed by the historical bastion host through the authority; the target server in the server located in the same resource pool is assigned to the second management relationship chain of the target bastion host; the target bastion host is the bastion host corresponding to the resource pool; in the first management relationship chain, the target client and the corresponding target authority corresponding to the target server are respectively searched; the target client and the target authority are added to the second management relationship chain, so that the target bastion host processes the operation and maintenance operation of the target client based on the second management relationship chain. Compared with the related art, the embodiment of the present disclosure allocates a target bastion host to the target server in the same resource pool, respectively searches for the target client and the corresponding target authority corresponding to the target server, and allocates the target client, the target authority and the target server to the second management relationship chain of the target bastion host, so that the target bastion host processes the operation and maintenance operation of the target client based on the second management relationship chain, so as to realize the allocation of bastion hosts according to the number of resource pools, reduce the number of bastion hosts, and thus reduce the operation and maintenance audit cost.
[0053] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present application, nor is it intended to limit the scope of the present application. Other features of the present application will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.
[0055] Figure 1A flowchart of a bastion host management method provided by an embodiment of the present disclosure;
[0056] Figure 2 A flowchart of a log data storage method provided by an embodiment of the present disclosure;
[0057] Figure 3 A schematic diagram of the structure of a management device of a bastion host provided in an embodiment of the present disclosure;
[0058] Figure 4 A schematic diagram of the structure of another bastion host management device provided in an embodiment of the present disclosure;
[0059] Figure 5 A schematic block diagram of an exemplary electronic device provided for an embodiment of the present disclosure. DETAILED DESCRIPTION
[0060] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.
[0061] The following describes the management method and device of the bastion host, the electronic device, and the storage medium of the embodiments of the present disclosure with reference to the accompanying drawings.
[0062] Figure 1 A flowchart of a bastion host management method provided in an embodiment of the present disclosure.
[0063] like Figure 1 As shown, the method is applied in a server, and the method comprises the following steps:
[0064] Step 101, respectively obtain the first management relationship chain of at least two historical bastion hosts; the first management relationship chain is for the client managed by the historical bastion host to access the server managed by the historical bastion host through authority.
[0065] A historical bastion host refers to a unique bastion host assigned to a client in the past period of time. Each client corresponds to a historical bastion host. A client is a device that can connect to the bastion host through the network and access the server through the bastion host, such as a computer, mobile phone, tablet computer, etc. Permissions are the scope or level of operations allowed to be performed by the client. Different clients may have different permissions, which determine which commands the client can execute, which files or databases in the server can be accessed, etc. The first management relationship chain is the permission relationship chain between the client and the server managed by the historical bastion host.
[0066] The first management relationship chain is obtained by calling the application programming interface (API) of the historical bastion host, but it should be clear that this statement is not intended to limit the first management relationship chain acquisition method to only calling the API implementation of the historical bastion host, and the first management relationship chain can also be obtained through other methods.
[0067] By obtaining the first management relationship chain of the historical bastion host, the first management relationship chains originally dispersed in multiple historical bastion hosts can be centralized, which is helpful for unified management and analysis of the first management relationship chain.
[0068] Step 102, assigning the target server in the server that is located in the same resource pool to the second management relationship chain of the target bastion host; the target bastion host is the bastion host corresponding to the resource pool.
[0069] The resource pool is a collection of multiple servers, and the target bastion host is the only bastion host corresponding to the resource pool; the second management relationship chain is the permission relationship chain between the client and the server managed by the target bastion host.
[0070] Find the target server located in the same resource pool from the first management relationship chain of the historical bastion host, and assign the target server to the second management relationship chain of the target bastion host.
[0071] By assigning the target server to the target bastion host for centralized management, the management process can be simplified and management efficiency can be improved.
[0072] To facilitate understanding, an example is provided. Suppose there are three historical bastion hosts, namely a, b, and c. The server managed by a is A, the server managed by b is B, and the server managed by c is C. A and B belong to the same resource pool, and C does not belong to the same resource pool as A and B. In this case, A and B are assigned to the second management relationship chain of the target bastion host.
[0073] Step 103: Search the first management relationship chain for the target client and the target authority corresponding to the target server.
[0074] In the first management relationship chain, all servers in the first management relationship chain are traversed according to the identification information of the target server (such as IP address, host name, etc.) until the target server is located, and then the access control list of the target server is checked to determine which clients have what permissions to access the target server, thereby determining the target client and the corresponding target permissions.
[0075] By determining which clients have what rights to access the target server, it helps to conduct security audits on the target bastion host to check for unauthorized access or excessive permissions.
[0076] Step 104: Add the target client and the target permission to the second management relationship chain so that the target bastion host processes the operation and maintenance operations of the target client based on the second management relationship chain.
[0077] In the second management relationship chain of the target bastion host, an association relationship is established between the target server, the target client, and the target permissions between the target server and the target client, and the association relationship is added to the second management relationship chain.
[0078] By centrally managing and controlling the target server and the corresponding target client and the corresponding target permissions, the target bastion host can optimize the operation and maintenance process and improve the operation and maintenance efficiency.
[0079] The management method of the bastion host provided by the present disclosure obtains the first management relationship chain of at least two historical bastion hosts respectively; the first management relationship chain is for the client managed by the historical bastion host to access the server managed by the historical bastion host through the authority; the target server in the server located in the same resource pool is assigned to the second management relationship chain of the target bastion host; the target bastion host is the bastion host corresponding to the resource pool; in the first management relationship chain, the target client and the corresponding target authority corresponding to the target server are respectively searched; the target client and the target authority are added to the second management relationship chain, so that the target bastion host processes the operation and maintenance operations of the target client based on the second management relationship chain. Compared with the related art, the embodiment of the present disclosure allocates a target bastion host to the target server in the same resource pool, respectively searches for the target client and the corresponding target authority corresponding to the target server, and allocates the target client, the target authority and the target server to the second management relationship chain of the target bastion host, so that the target bastion host processes the operation and maintenance operations of the target client based on the second management relationship chain, thereby realizing the allocation of bastion hosts according to the number of resource pools, reducing the number of bastion hosts, and thus reducing the operation and maintenance audit cost.
[0080] In actual applications, after the operation and maintenance operation of the target client is processed based on the second management relationship chain, the operation and maintenance operation will generate log data. In order to facilitate the subsequent review of the log data, the log data needs to be stored, which can be implemented in but not limited to the following ways, such as Figure 2 As shown, Figure 2 A flow chart of a log data storage method provided by an embodiment of the present disclosure includes:
[0081] Step 201: Obtain the attribute category of the log data of the operation and maintenance operation, and identify the attribute category.
[0082] Log data refers to data that records information generated during operation and maintenance operations. Log data includes but is not limited to the timestamp of the operation and maintenance operation, the operation command executed, the result of the operation, the operator's information, and other information that may be useful for monitoring and auditing. Log data is an important basis for monitoring and troubleshooting.
[0083] Attribute categories refer to the characteristics or types of log data. Attribute categories can help the system distinguish different types of log data and classify log data. Attribute categories may be varied, including but not limited to text, video, pictures, audio, binary data, etc. Attribute categories may have different definitions and division methods. Specifically, the attribute categories of log data can be divided according to actual business needs. The embodiment of the present disclosure does not limit the method of dividing attribute categories.
[0084] The content in the log data is identified through a preset attribute category identification algorithm to obtain the attribute category of the log data, wherein the preset attribute category algorithm is a preset attribute category algorithm obtained by training based on a neural network algorithm.
[0085] The purpose of acquiring and identifying the attribute categories of log data of operation and maintenance operations is to better manage and analyze log data and improve operation and maintenance efficiency.
[0086] For ease of understanding, an example is provided. If the log data only contains text information, then the attribute category of the log data is the text category. If the log data only contains video data, then the attribute category of the log data is the video category.
[0087] Step 202: If the recognition result of the attribute category is a text category, the log data is stored in a preset text library.
[0088] The preset text library is a database specifically used to store text-type log data. Since the text-type log data is clear and easy to access, the physical address of the preset text library is usually the same or close to the physical address of the target bastion host, making it convenient for the target bastion host to retrieve text-type log data.
[0089] Storing text-type log data in a preset text library helps to uniformly manage and maintain text-type log data, facilitates access to text-type log data, and helps improve the efficiency and accuracy of operation and maintenance management.
[0090] Step 203: If the identification result of the attribute category is a video category, the log data is stored in a preset video library.
[0091] The preset video library is a database specifically used to store text-type log data. Since video-type log data occupies a large storage space and is inconvenient to access, video-type log data is rarely accessed. Usually, the physical address of the preset video library is far away from the physical address of the target bastion host. For example, the physical address of the preset video library is in an area with relatively cheap rent.
[0092] Storing log data identified as video categories in a preset video library helps with efficient storage and retrieval, easy playback and analysis, security protection, long-term archiving and backup, and meeting compliance requirements, helping to improve the efficiency and accuracy of operation and maintenance management.
[0093] In actual applications, before allocating the target server in the same resource pool in the server to the second management relationship chain of the target bastion host, in order to protect the security of the target bastion host, the target bastion host needs to be protected, which can be achieved by but not limited to the following methods: obtaining the target security level of each bastion host engine in the target bastion host respectively; according to the mapping relationship between the pre-established security level and the security execution mode, finding the target security execution mode corresponding to the target security level, so as to perform security protection on the bastion host engine corresponding to the target security level based on the target security execution mode. According to the security level of each bastion host engine, the most appropriate security execution mode can be selected for it. Different security execution modes may include different access control policies, encryption methods, audit mechanisms, etc. This precise protection can ensure that each engine is protected most appropriately, without excessive protection leading to waste of resources, or insufficient protection causing security risks.
[0094] To facilitate understanding, an example is provided. Assuming there are three security levels, namely d, e, and f, the security execution mode corresponding to d is D, the security execution mode corresponding to e is E, and the security execution mode corresponding to f is F. The target security level is d, then the target security execution mode is D.
[0095] In actual applications, after security protection is performed on the bastion engine corresponding to the target security level based on the target security execution mode, the running time of each bastion engine in the target bastion may be different, which in turn leads to different loads of each bastion engine. In order to make the load of each bastion engine in the target bastion as similar as possible, the following method can be adopted but not limited to achieve: respectively obtain the running time corresponding to each bastion engine; if the running time is greater than the preset time threshold, adjust the running time of each bastion engine until the running time is less than the preset time threshold. Among them, the preset time threshold can be any value, for example, 1 hour, but it should be clear that this statement is not intended to limit the preset time threshold to only 1 hour, it can also be other values. As an important security device, the bastion host engine will occupy certain computing resources during operation. If the running time of one bastion host engine is longer, while the running time of other bastion host engines is shorter, it will cause load imbalance among the bastion host engines. Therefore, when the running time is greater than the preset time threshold, the running time of the bastion host engine is adjusted until the running time is less than the preset time threshold. The load between different bastion host engines can be adjusted so that the load between the bastion host engines can be balanced.
[0096] For ease of understanding, an example is provided. Suppose there are three bastion host engines in the target bastion host, namely g, h, and i. The running time of g is 3 hours, the running time of h is 2 hours, and the running time of i is 1 hour. The preset time threshold is 2 hours. In this case, g and h will be stopped first, and the operation and maintenance operations will be handled by i.
[0097] As a refinement of the above embodiment, when the running time of each bastion engine is adjusted until the running time is less than the preset time threshold, it can be implemented in the following manner but not limited to: according to the trend of making the running time less than or equal to the preset time threshold, the running time of each bastion engine is adjusted until the running time is less than the preset time threshold. By adjusting the running time, excessive occupation of computing resources can be avoided and reasonable allocation of computing resources can be ensured.
[0098] In actual applications, before the operation and maintenance operation of the target client is processed based on the second management relationship chain, the operation and maintenance operation may specify a specific bastion engine for processing. If the specified bastion engine has an abnormality, the operation and maintenance operation may not be processed in time. In order to avoid the situation where the operation and maintenance operation cannot be processed in time, it can be implemented in the following manner but not limited to: if the operation and maintenance operation carries the position of the first bastion engine, it is determined whether the first bastion engine corresponding to the position of the first bastion engine has an abnormality; the first bastion engine is any bastion engine in the target bastion engine; if it is determined that the first bastion engine has an abnormality, the position of the first bastion engine is converted to the position of the second bastion engine, so that based on the position of the second bastion engine, the operation and maintenance operation is transmitted to the second bastion engine corresponding to the second bastion engine for processing; the second bastion engine is any bastion engine in the target bastion engine except the first bastion engine. When the first bastion engine has an abnormality, the operation and maintenance operation is transferred to the second bastion engine for continued execution, which ensures the continuity and non-interruption of the operation and maintenance operation and improves the processing efficiency of the operation and maintenance operation.
[0099] In summary, the embodiments of the present disclosure can achieve the following effects:
[0100] The disclosed embodiment allocates a target bastion host to the target server in the same resource pool, respectively searches for the target client and the corresponding target permission corresponding to the target server, and allocates the target client, target permission and target server to the second management relationship chain of the target bastion host, so that the target bastion host processes the operation and maintenance operations of the target client based on the second management relationship chain, thereby allocating bastion hosts according to the number of resource pools, reducing the number of bastion hosts, and further reducing the operation and maintenance audit costs.
[0101] Corresponding to the above-mentioned bastion host management method, the present invention also provides a bastion host management device. Since the device embodiment of the present invention corresponds to the above-mentioned method embodiment, the details not disclosed in the device embodiment can be referred to the above-mentioned method embodiment, and will not be repeated in the present invention.
[0102] Figure 3 A schematic diagram of a management device for a bastion host provided in an embodiment of the present disclosure, wherein the device is applied to a server, such as Figure 3 As shown, including:
[0103] The acquisition unit 31 is used to respectively acquire the first management relationship chain of at least two historical bastion hosts; the first management relationship chain is that the client managed by the historical bastion host accesses the server managed by the historical bastion host through the authority;
[0104] The allocation unit 32 is used to allocate the target server located in the same resource pool among the servers to the second management relationship chain of the target bastion host; the target bastion host is the bastion host corresponding to the resource pool;
[0105] A search unit 33, configured to search the target client and the corresponding target authority corresponding to the target server in the first management relationship chain respectively;
[0106] The adding unit 34 is used to add the target client and the target permission to the second management relationship chain, so that the target bastion host processes the operation and maintenance operations of the target client based on the second management relationship chain.
[0107] The management device of the bastion host provided by the present disclosure obtains the first management relationship chain of at least two historical bastion hosts respectively; the first management relationship chain is for the client managed by the historical bastion host to access the server managed by the historical bastion host through the authority; the target server in the server located in the same resource pool is assigned to the second management relationship chain of the target bastion host; the target bastion host is the bastion host corresponding to the resource pool; in the first management relationship chain, the target client and the corresponding target authority corresponding to the target server are respectively searched; the target client and the target authority are added to the second management relationship chain, so that the target bastion host processes the operation and maintenance operations of the target client based on the second management relationship chain. Compared with the related art, the embodiment of the present disclosure allocates a target bastion host to the target server in the same resource pool, respectively searches for the target client and the corresponding target authority corresponding to the target server, and allocates the target client, the target authority and the target server to the second management relationship chain of the target bastion host, so that the target bastion host processes the operation and maintenance operations of the target client based on the second management relationship chain, thereby realizing the allocation of bastion hosts according to the number of resource pools, reducing the number of bastion hosts, and thus reducing the operation and maintenance audit cost.
[0108] Furthermore, in a possible implementation of the embodiment of the present disclosure, as Figure 4 As shown, the device also includes:
[0109] The acquisition unit is further configured to, after processing the operation and maintenance operation of the target client based on the second management relationship chain, acquire the attribute category of the log data of the operation and maintenance operation and identify the attribute category;
[0110] The storage unit 35 is used to store the log data in a preset text library when the recognition result of the attribute category is a text category;
[0111] The storage unit 35 is further configured to store the log data in a preset video library when the identification result of the attribute category is a video category.
[0112] Furthermore, in a possible implementation of the embodiment of the present disclosure, as Figure 4 As shown, the device also includes:
[0113] The acquisition unit 31 is also used to respectively acquire the target security level of each bastion server engine in the target bastion server before allocating the target server in the server and located in the same resource pool to the second management relationship chain of the target bastion server;
[0114] The search unit 33 is also used to search for the target security execution mode corresponding to the target security level according to a pre-established mapping relationship between the security level and the security execution mode, so as to perform security protection on the bastion engine corresponding to the target security level based on the target security execution mode.
[0115] Furthermore, in a possible implementation of the embodiment of the present disclosure, as Figure 4 As shown, the device also includes:
[0116] The acquisition unit 31 is also used to respectively acquire the corresponding running time of each bastion engine after performing security protection on the bastion engine corresponding to the target security level based on the target security execution mode;
[0117] The adjustment unit 36 is used to adjust the running time of each bastion engine when the running time is greater than the preset time threshold, until the running time is less than the preset time threshold.
[0118] Furthermore, in a possible implementation of the embodiment of the present disclosure, as Figure 4 As shown, the adjustment unit 36 includes:
[0119] The adjustment module 361 is used to adjust the running time of each bastion engine according to the trend of making the running time less than or equal to the preset time threshold, until the running time is less than the preset time threshold.
[0120] Furthermore, in a possible implementation of the embodiment of the present disclosure, as Figure 4 As shown, the device also includes:
[0121] A judgment unit 37 is used to judge whether there is an abnormality in a first bastion host engine corresponding to the first bastion host engine position before processing the operation and maintenance operation of the target client based on the second management relationship chain, when the operation and maintenance operation carries the first bastion host engine position; the first bastion host engine is any bastion host engine in the target bastion host;
[0122] The conversion unit 38 is used to convert the position of the first bastion host engine to the position of the second bastion host engine when it is determined that there is an abnormality in the first bastion host engine, so as to transmit the operation and maintenance operation to the second bastion host engine corresponding to the second bastion host engine for processing based on the position of the second bastion host engine; the second bastion host engine is any bastion host engine in the target bastion host except the first bastion host engine.
[0123] It should be noted that the above explanation of the method embodiment is also applicable to the device of the embodiment of the present disclosure, and the principle is the same, which is no longer limited in the embodiment of the present disclosure.
[0124] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.
[0125] Figure 5 A schematic block diagram of an example electronic device 400 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0126] like Figure 5 As shown, the device 400 includes a computing unit 401, which can perform various appropriate actions and processes according to a computer program stored in a ROM (Read-Only Memory) 402 or a computer program loaded from a storage unit 408 to a RAM (Random Access Memory) 403. In the RAM 403, various programs and data required for the operation of the device 400 can also be stored. The computing unit 401, the ROM 402, and the RAM 403 are connected to each other via a bus 404. An I / O (Input / Output) interface 405 is also connected to the bus 404.
[0127] A number of components in the device 400 are connected to the I / O interface 405, including: an input unit 406, such as a keyboard, a mouse, etc.; an output unit 407, such as various types of displays, speakers, etc.; a storage unit 408, such as a disk, an optical disk, etc.; and a communication unit 409, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 409 allows the device 400 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0128] The computing unit 401 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 401 include, but are not limited to, a CPU (Central Processing Unit), a GPU (Graphic Processing Units), various dedicated AI (Artificial Intelligence) computing chips, various computing units running machine learning model algorithms, a DSP (Digital Signal Processor), and any appropriate processor, controller, microcontroller, etc. The computing unit 401 performs the various methods and processes described above, such as the management method of the bastion host. For example, in some embodiments, the management method of the bastion host may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 408. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 400 via the ROM 402 and / or the communication unit 409. When the computer program is loaded into the RAM 403 and executed by the computing unit 401, one or more steps of the method described above may be performed. Alternatively, in other embodiments, the computing unit 401 may be configured to execute the aforementioned bastion host management method in any other appropriate manner (eg, by means of firmware).
[0129] Various embodiments of the systems and techniques described above herein may be implemented in digital electronic circuit systems, integrated circuit systems, FPGAs (Field Programmable Gate Arrays), ASICs (Application-Specific Integrated Circuits), ASSPs (Application Specific Standard Products), SOCs (System On Chips), CPLDs (Complex Programmable Logic Devices), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include: being implemented in one or more computer programs that may be executed and / or interpreted on a programmable system including at least one programmable processor that may be a dedicated or general-purpose programmable processor that may receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0130] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0131] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing. More specific examples of machine-readable storage media may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a RAM, a ROM, an EPROM (Electrically Programmable Read-Only-Memory) or a flash memory, an optical fiber, a CD-ROM (Compact Dis sc Read-Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0132] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (Cathode-Ray Tube) or LCD (Liquid Crystal Display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0133] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: LAN (Local Area Network), WAN (Wide Area Network), the Internet, and blockchain networks.
[0134] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services ("Virtual Private Server", or "VPS" for short). The server may also be a server of a distributed system, or a server combined with a blockchain.
[0135] It should be noted that artificial intelligence is a discipline that studies how computers can simulate certain human thought processes and intelligent behaviors (such as learning, reasoning, thinking, planning, etc.), and includes both hardware-level and software-level technologies. Artificial intelligence hardware technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, and big data processing; artificial intelligence software technologies mainly include computer vision technology, speech recognition technology, natural language processing technology, as well as machine learning / deep learning, big data processing technology, knowledge graph technology, and other major directions.
[0136] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0137] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. A method for managing a bastion host, characterized in that: include: Obtain the first management relationship chains of at least two historical bastion hosts respectively; The first management relationship chain is that the client managed by the historical bastion host accesses the server managed by the historical bastion host through permissions; Allocate a target server located in the same resource pool among the servers to a second management relationship chain of a target bastion host; the target bastion host is a bastion host corresponding to the resource pool; In the first management relationship chain, respectively searching for the target client and the corresponding target authority corresponding to the target server; The target client and the target permission are added to the second management relationship chain so that the target bastion host processes the operation and maintenance operations of the target client based on the second management relationship chain.
2. The method according to claim 1, characterized in that After processing the operation and maintenance operation of the target client based on the second management relationship chain, the method further includes: Obtaining attribute categories of the log data of the operation and maintenance operation, and identifying the attribute categories; If the recognition result of the attribute category is a text category, storing the log data in a preset text library; If the identification result of the attribute category is a video category, the log data is stored in a preset video library.
3. The method according to claim 1, characterized in that Before allocating the target server in the server that is located in the same resource pool to the second management relationship chain of the target bastion host, the method further includes: Obtain the target security level of each bastion host engine in the target bastion host respectively; According to the pre-established mapping relationship between the security level and the security execution mode, the target security execution mode corresponding to the target security level is searched, so as to perform security protection on the bastion host engine corresponding to the target security level based on the target security execution mode.
4. The method according to claim 3, characterized in that After performing security protection on the bastion host engine corresponding to the target security level based on the target security execution mode, the method further includes: Obtain the running time corresponding to each bastion host engine respectively; If the running time is greater than the preset time threshold, the running time of each bastion host engine is adjusted until the running time is less than the preset time threshold.
5. The method according to claim 4, characterized in that The adjusting the running time of each bastion host engine until the running time is less than the preset time threshold includes: According to the trend of making the running time less than or equal to the preset time threshold, the running time of each bastion host engine is adjusted until the running time is less than the preset time threshold.
6. The method according to claim 1, characterized in that Before processing the operation and maintenance operation of the target client based on the second management relationship chain, the method further includes: If the operation and maintenance operation carries the position of the first bastion host engine, determining whether the first bastion host engine corresponding to the position of the first bastion host engine is abnormal; the first bastion host engine is any bastion host engine in the target bastion host; When it is determined that there is an abnormality in the first bastion host engine, the position of the first bastion host engine is converted to the position of the second bastion host engine, so that based on the position of the second bastion host engine, the operation and maintenance operation is transmitted to the second bastion host engine corresponding to the second bastion host engine for processing; the second bastion host engine is any bastion host engine in the target bastion host except the first bastion host engine.
7. A management device for a bastion host, characterized in that: include: An acquisition unit, used to respectively acquire first management relationship chains of at least two historical bastion hosts; The first management relationship chain is that the client managed by the historical bastion host accesses the server managed by the historical bastion host through permissions; An allocation unit, configured to allocate a target server located in the same resource pool among the servers to a second management relationship chain of a target bastion host; the target bastion host is a bastion host corresponding to the resource pool; A search unit, used to search for a target client and a corresponding target authority corresponding to the target server in the first management relationship chain respectively; An adding unit is used to add the target client and the target permission to the second management relationship chain so that the target bastion host processes the operation and maintenance operations of the target client based on the second management relationship chain.
8. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 6.
9. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-6.
10. A computer program product, characterized in that The invention comprises a computer program which, when executed by a processor, implements the method according to any one of claims 1 to 6.
