Authority operation method and device based on distributed cluster, equipment and storage medium
By establishing an association between temporary user names and access rights in the rights management service device, dynamically generating login credentials and verifying access rights, the problem of easy cracking of user names and credentials is solved, the security of server nodes is improved, and information leakage and malicious intent are prevented. operate.
Patent Information
- Application Number
- CN202311385816.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-24
- Publication Date
- 2024-08-30
AI Technical Summary
In the existing technology, user names and login credentials are easily cracked, leading to information leakage and malicious manipulation of server node functions, threatening network security.
By establishing an association between temporary user names and access rights in the rights management service device, dynamically generating login credentials, and verifying the access rights of the temporary user names on the server node, the difficulty of access rights is increased, thereby improving the security of the server node.
Effectively prevent information leakage and malicious operations, improve the security of server nodes, and ensure the difficulty and stability of access rights.
Smart Images

Figure CN118573386A
Abstract
Description
Technical Field
[0001] The present application belongs to the field of computer technology, and specifically relates to a permission operation method, device, equipment and storage medium based on a distributed cluster. Background Art
[0002] At present, the Internet is fully integrated into social production and life, pushing mankind into the digital age and changing human production and lifestyle. In the digital age, cyber attacks are more frequent, and the attack methods are complex and varied, which seriously threatens the network security of enterprises.
[0003] In the prior art, when a user remotely logs in to a server node in a server cluster, once he obtains the user name and login credentials, he can log in to the specific server node and obtain the corresponding permissions. In other words, any user only needs to obtain the user name and login credentials to log in to the corresponding server node and obtain the corresponding permissions.
[0004] However, in the above method, the username and login credentials can be easily cracked, resulting in information leakage and malicious operation of server node functions. Summary of the invention
[0005] The present application provides a permission operation method, apparatus, device and storage medium based on a distributed cluster, which is used to solve the problem in the prior art that user names and login credentials are easily cracked, resulting in information leakage and malicious operation of server node functions.
[0006] In a first aspect, the present application provides a permission operation method based on a distributed cluster, which is applied to a server node, including:
[0007] Acquire a login request sent by a client, the login request including: a temporary user name of an accessing user, a login credential, and a first association relationship corresponding to the temporary user name, the first association relationship being determined by the authority management service device according to a mapping relationship between an operation and an access authority;
[0008] Verify the temporary user name according to the login credential to obtain a verification result;
[0009] When the verification result indicates that the verification is successful, granting the target access right corresponding to the first association relationship to the access user, and generating a command language corresponding to the target access right;
[0010] The command language is sent to the client, so that when the logged-in user in the client is the temporary user name, the function corresponding to the target access authority is called.
[0011] Optionally, the verifying the temporary user name according to the login credential to obtain a verification result includes:
[0012] Obtaining at least one stored login credential verification information;
[0013] The temporary user name is verified according to the login credential and the at least one login credential verification information to obtain a verification result.
[0014] Optionally, the method further includes:
[0015] Acquire a stored second association relationship, and determine a target access time period of a target operation corresponding to the first association relationship according to the second association relationship;
[0016] The granting of the target access right corresponding to the first association relationship to the access user includes:
[0017] The target access permission corresponding to the first association relationship is granted to the access user within the target access period.
[0018] In a second aspect, the present application provides a permission operation method based on a distributed cluster, which is applied to a permission management service device, and the method includes:
[0019] Obtaining an access request sent by an access user, wherein the access request includes: a UID of the access user and a target operation;
[0020] According to the target operation, determining a target access right corresponding to the target operation from a first mapping relationship table, wherein the first mapping relationship table includes: a mapping relationship between operations and access rights;
[0021] Establishing a first association relationship between the UID and the target access permission, and randomly generating a temporary user name corresponding to the UID based on the first association relationship;
[0022] Setting corresponding login credentials for the temporary user name;
[0023] Login information corresponding to the accessing user is generated according to the temporary user name, the login credentials and the first association relationship, and the login information is sent to the accessing user, so that the accessing user can access the function corresponding to the target access authority according to the login information.
[0024] Optionally, the method further includes:
[0025] generating login credential verification information corresponding to the login credential;
[0026] The login credential verification information is stored in a server node, so that the server node performs verification processing on the temporary user name according to the login credential verification information.
[0027] Optionally, the method further includes:
[0028] Acquire a second mapping relationship table, wherein the second mapping relationship table includes: a mapping relationship between operations and access time periods;
[0029] Determining a target access period corresponding to the target operation according to the target operation and the second mapping relationship table;
[0030] A second association relationship is established between the target access period and the temporary user name, and the second association relationship is stored in the server node, so that the server node allocates permissions for the temporary user name according to the second association relationship when allocating permissions.
[0031] In a third aspect, the present application provides a permission operation device based on a distributed cluster, comprising:
[0032] An acquisition module, configured to acquire a login request sent by a client, wherein the login request includes: a temporary user name of an accessing user, a login credential, and a first association relationship corresponding to the temporary user name, wherein the first association relationship is determined by the authority management service device according to a mapping relationship between an operation and an access authority;
[0033] A processing module, used to verify the temporary user name according to the login credential to obtain a verification result;
[0034] The processing module is further configured to grant the access user a target access right corresponding to the first association relationship when the verification result indicates that the verification is successful.
[0035] A generating module, used for generating a command language corresponding to the target access authority;
[0036] The sending module is used to send the command language to the client, so that when the logged-in user in the client is the temporary user name, the function corresponding to the target access authority is called.
[0037] Optionally, the acquisition module is further used to acquire at least one stored login credential verification information;
[0038] The processing module is further used to verify the temporary user name according to the login credential and the at least one login credential verification information to obtain a verification result.
[0039] Optionally, the acquisition module is further used to acquire a stored second association relationship, and determine a target access period of a target operation corresponding to the first association relationship according to the second association relationship;
[0040] The processing module is further configured to grant the target access right corresponding to the first association relationship to the access user, including:
[0041] The processing module is further configured to grant the access user a target access right corresponding to the first association relationship within the target access period.
[0042] In a fourth aspect, the present application provides a permission operation device based on a distributed cluster, further comprising:
[0043] An acquisition module, used to acquire an access request sent by an access user, wherein the access request includes: a UID of the access user and a target operation;
[0044] A determination module, configured to determine, according to the target operation, a target access right corresponding to the target operation from a first mapping relationship table, wherein the first mapping relationship table includes: a mapping relationship between operations and access rights;
[0045] A processing module is used to establish a first association relationship between the UID and the target access right, and
[0046] A generating module, used to randomly generate a temporary user name corresponding to the UID;
[0047] The processing module is further used to set corresponding login credentials for the temporary user name;
[0048] The generating module is further configured to generate login information corresponding to the accessing user according to the temporary user name, the login credential and the first association relationship;
[0049] The sending module is used to send the login information to the access user, so that the access user can access the function corresponding to the target access permission according to the login information.
[0050] Optionally, the generating module is further used to generate login credential verification information corresponding to the login credential;
[0051] The processing module is further used to store the login credential verification information to the server node, so that the server node verifies the temporary user name according to the login credential verification information.
[0052] Optionally, the acquisition module is further used to acquire a second mapping relationship table, wherein the second mapping relationship table includes: a mapping relationship between operations and access time periods;
[0053] The determination module is further configured to determine a target access period corresponding to the target operation according to the target operation and the second mapping relationship table;
[0054] The processing module is further used to establish a second association relationship between the target access period and the temporary user name, and store the second association relationship in the server node, so that the server node allocates permissions for the temporary user name according to the second association relationship when allocating permissions.
[0055] In a fifth aspect, the present application provides a permission operation device based on a distributed cluster, including:
[0056] Memory;
[0057] processor;
[0058] Wherein, the memory stores computer-executable instructions;
[0059] The processor executes the computer-executable instructions stored in the memory to implement the distributed cluster-based permission operation method as described in the first aspect and various possible implementations of the first aspect and the second aspect and various possible implementations of the second aspect.
[0060] In a sixth aspect, the present application provides a computer storage medium, characterized in that the computer storage medium stores computer execution instructions, and when the computer execution instructions are executed by a processor, they are used to implement the distributed cluster-based permission operation method as described in the first aspect and various possible implementations of the first aspect and the second aspect and various possible implementations of the second aspect.
[0061] The present application provides a permission operation method based on a distributed cluster, which obtains a login request sent by a client, wherein the login request includes: a temporary user name of an accessing user, a login credential, and a first association relationship corresponding to the temporary user name, wherein the first association relationship is determined by a permission management service device according to a mapping relationship between an operation and an access right, and the temporary user name is verified according to the login credential to obtain a verification result. When the verification result indicates that the verification is successful, the accessing user is granted a target access right corresponding to the first association relationship, and a command language corresponding to the target access right is generated, and the command language is sent to the client, so that when the login user in the client is the temporary user name, the function corresponding to the target access right is called; the method increases the difficulty of access rights by setting a dynamically adjusted temporary user name, thereby improving the security of the corresponding functions of the server node. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0063] Figure 1 It is a flow chart of the permission operation method based on distributed cluster provided by this application;
[0064] Figure 2 It is an interactive diagram of the permission operation method based on distributed cluster provided by this application;
[0065] Figure 3 A schematic diagram of the structure of the distributed cluster-based permission operation device provided in this application Figure 1 ;
[0066] Figure 4 A schematic diagram of the structure of the distributed cluster-based permission operation device provided in this application Figure 2 ;
[0067] Figure 5 A schematic diagram of the structure of a distributed cluster-based permission operation device provided in this application.
[0068] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0069] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in this application will be clearly and completely described below in conjunction with the drawings in this application. Obviously, the described embodiments are part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0070] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in sequences other than those illustrated or described herein, for example.
[0071] In the embodiments of the present application, the words "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0072] At present, the Internet is fully integrated into social production and life, pushing mankind into the digital age and changing human production and lifestyle. In the digital age, cyber attacks are more frequent, and the attack methods are complex and varied, which seriously threatens the network security of enterprises.
[0073] In the prior art, when a user remotely logs in to a server node in a server cluster, once he obtains the user name and login credentials, he can log in to the specific server node and obtain the corresponding permissions. In other words, any user only needs to obtain the user name and login credentials to log in to the corresponding server node and obtain the corresponding permissions.
[0074] However, in the above method, the username and login credentials can be easily cracked, resulting in information leakage and malicious operation of server node functions.
[0075] The distributed cluster-based permission operation method provided in the present application establishes an association between a temporary user name and access rights through a permission management service device, generates a login credential based on the temporary user name and sends it to the accessing user, and then the client sends the temporary user name and login credential to the server node, and the server node verifies the temporary user's access rights. When the temporary user has access rights, the client calls the function corresponding to the access rights. The method increases the difficulty of access rights by setting a dynamically adjusted temporary user name, thereby improving the security of the corresponding functions of the server node.
[0076] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0077] Figure 1 This is a flow chart of the permission operation method based on the distributed cluster provided by this application. Figure 1 The distributed cluster-based permission operation method provided in this embodiment includes:
[0078] S101: Obtain a login request sent by a client, the login request including: a temporary user name of an accessing user, login credentials, and a first association relationship corresponding to the temporary user name, wherein the first association relationship is determined by a rights management service device according to a mapping relationship between operations and access rights.
[0079] Among them, the login request is usually used to instruct the access user to enter the program page on the client according to the IP address and port number, and then enter the user name and login credentials to enter the server node.
[0080] The temporary user name is used to indicate that the user name cannot be used for a long time, and its usage time and number of uses are limited. In this step, the temporary user name has corresponding access rights.
[0081] The difference between a username and a temporary username is that a username can be used by the user for a long time. Any user only needs to have a username to have the corresponding access rights, while a temporary username is used by the user for a short period of time. After the current user has used the temporary username, other users cannot obtain access rights based on the temporary username even if they know the temporary username. Setting a temporary username increases the security of user access rights.
[0082] The login credentials are used to indicate the real login number and login password for entering the server node. In this step, the temporary user name will have a corresponding real login number and login password. There is an association between the temporary user name and the login credentials. The temporary user name and the login credentials are used together as the basis for entering the server node. Users who only have a temporary user name or only have login credentials cannot enter the server node.
[0083] The first association relationship is determined by the rights management service device according to the mapping relationship between the operation and the access right. The operation and access right in the server node are determined, and the corresponding relationship between the operation and the access right is determined. When the access right is determined, there is usually at least one operation.
[0084] It can be understood that the purpose of this step of obtaining the login request sent by the client is to limit the users entering the server node. Since the information and functions corresponding to the server node will involve the company's internal resources and internal programs, in order to ensure that its internal resources are not transmitted or internal programs are not operated at will, the users entering the server node will be restricted. By obtaining the login request sent by the client, the users entering the server node can be restricted.
[0085] For example, the temporary user name sent by the client is: yonghuming, and the login credentials include: the real user name and login password, where the real user name is: zhangsan, and the login password is: 000000; when the corresponding access user of the client enters the temporary user name: yonghuming, the real user name zhangsan corresponding to the login credential can be determined based on the temporary user name yonghuming. In order to ensure the security of the server node, the real user name can be hidden, and the login password requires the access user to enter: 000000. That is to say, the login request sent by the client obtained by the server node includes: temporary user name: yonghuming, login credentials: zhangsan and 000000.
[0086] S102: Verify the temporary user name according to the login credential to obtain a verification result.
[0087] The verification result is used to indicate whether the login request input by the client enters the server node. The verification result includes: verification success and verification failure.
[0088] It can be understood that the purpose of verifying the temporary user name according to the login credential is to determine whether the temporary user name is authorized to access the server node, and there is a corresponding relationship between the login credential and the temporary user name.
[0089] After the temporary user name is verified by the login credential, if the correspondence between the temporary user name and the login credential is correct, it means that the temporary user name has the authority to enter the server node. At this time, the verification result is: verification successful.
[0090] After the temporary user name is verified by the login credential, if the correspondence between the temporary user name and the login credential is incorrect, it means that the temporary user name does not have the authority to enter the server node. At this time, the verification result is: verification failed.
[0091] S103: When the verification result indicates that the verification is successful, granting the target access right corresponding to the first association relationship to the access user, and generating a command language corresponding to the target access right.
[0092] The target access right is used to indicate the access right corresponding to the login request sent by the accessing user. Since the first association relationship refers to the correspondence between the operation and the access right, the target access right is an access right in the first association relationship.
[0093] The command language is used to indicate the language that the server node corresponding to the login request can recognize and give feedback to the client. The language that the server node can recognize and give feedback to the client can be generated after the temporary user and target access rights are determined through the login request.
[0094] It is understandable that when the verification result indicates that the verification is successful, the server node will grant the target access rights corresponding to the temporary user name in the first association relationship to the accessing user, and generate a command language that the server node can recognize and give feedback to the client, thereby allowing the accessing user to enter the server node.
[0095] Optionally, when the verification result indicates that the verification failed, the server node cannot obtain the target access rights corresponding to the temporary user name in the first association relationship. At this time, the server node will deny the user access. At this time, the server node will send a command language indicating that the temporary user name login failed to the client.
[0096] S104: Send the command language to the client, so that when the logged-in user in the client is the temporary user name, the function corresponding to the target access authority is called.
[0097] The function corresponding to the target access permission is used to indicate the function that the access user can perform operations after entering the server node.
[0098] It can be understood that after the command language is sent to the client, the logged-in user of the client will be displayed as a temporary user name, and then the server node will open the target access rights corresponding to the temporary user name to the accessing user, so that the accessing user can operate the functions corresponding to the target access rights.
[0099] For example, the temporary user name is: yonghuming, the target access right is: network configuration, and the corresponding function of the target access right is: network A, device 1. After the server node sends the command language to the client, the login user in the client is: yonghuming, and the corresponding target permission of the login user is: network configuration. At this time, the access user can enter the server node to perform binding or unbinding operations on network A and device 1.
[0100] The distributed cluster-based permission operation method provided in this embodiment obtains a login request sent by a client, wherein the login request includes: a temporary user name of an accessing user, a login credential, and a first association relationship corresponding to the temporary user name, wherein the first association relationship is determined by a permission management service device according to a mapping relationship between an operation and an access right, and the temporary user name is verified according to the login credential to obtain a verification result. When the verification result indicates that the verification is successful, the accessing user is granted a target access right corresponding to the first association relationship, and a command language corresponding to the target access right is generated, and the command language is sent to the client, so that when the login user in the client is the temporary user name, the function corresponding to the target access right is called; the method increases the difficulty of access rights by setting a dynamically adjusted temporary user name, thereby improving the security of the corresponding functions of the server node.
[0101] Figure 2 The process of the permission operation method based on the distributed cluster provided in the embodiment of the present application Figure 2 .like Figure 2 As shown, this embodiment is in Figure 1 Based on the embodiment, a permission operation method based on a distributed cluster is described in detail. The permission operation method based on a distributed cluster provided in this embodiment includes:
[0102] S201: The rights management service device obtains an access request sent by an access user, wherein the access request includes: the UID of the access user and a target operation.
[0103] Among them, UID is used to indicate user identity proof. The UID of each accessing user is unique and fixed, and the UIDs of different accessing users are different.
[0104] The target operation is used to indicate the operation that the access user needs to perform on the server node.
[0105] It is understandable that if the accessing user needs to enter the server node to perform operations, he must send an access request to the rights management service device. The purpose of sending the access request is to enable the rights management service device to set the accessing user's rights to perform operations and assign a temporary user name to the accessing user.
[0106] Since the UID of the accessing user is fixed, each accessing user is aware of his corresponding UID, and the purpose of entering the server node is to perform the target operation. The accessing user needs to determine the target operation according to the existing situation and send it to the authority management service device.
[0107] For example, the UID of the access user is 123456789, and the target operation is: bind network A and device 1. At this time, the access request sent by the access user obtained by the rights management service device is: UID: 123456789, and the target operation is: bind network A and device 1.
[0108] S202: The rights management service device determines, according to the target operation, a target access right corresponding to the target operation from a first mapping relationship table.
[0109] It is understandable that since the rights management service device will contain all operations and access rights corresponding to the server nodes, an association relationship between operations and access rights will be established in advance, a first mapping relationship table will be generated, and the first mapping relationship table will be saved to the rights management service device. The information in the first mapping relationship table can be deleted or added.
[0110] When the rights management service device obtains the target operation sent by the accessing user, it will find the access permission corresponding to the target operation in the first mapping relationship table, and use the access permission as the target access permission.
[0111] S203: The rights management service device establishes a first association relationship between the UID and the target access rights, and randomly generates a temporary user name corresponding to the UID based on the first association relationship.
[0112] The first association relationship is used to indicate the association relationship between the UID and the target access permission.
[0113] The temporary user name is used to indicate that the number of times the user name enters the server node is limited. In order to ensure the security of the server node, the number of temporary user name logins can be set to once, and the corresponding usage period can also be set for the temporary user name.
[0114] It is understandable that when the rights management service device obtains the UID sent by the access user, it can establish an association relationship between the UID and the target access rights corresponding to the target operation to generate a first association relationship. The rights management service device can randomly generate a corresponding temporary user name based on the UID.
[0115] S204: The rights management service device sets corresponding login credentials for the temporary user name.
[0116] Among them, the UID in the access request corresponds to a real user name. Therefore, the authority management service device can bind the generated temporary user name and the real user name corresponding to the UID, and use the credential generator to generate a login password to obtain the login credential.
[0117] That is to say, after the authority management service device sets the corresponding login credential for the temporary user name, the temporary user name and the corresponding login credential form a corresponding relationship.
[0118] S205: The authority management service device generates login information corresponding to the accessing user according to the temporary user name, the login credentials and the first association relationship, and sends the login information to the accessing user, so that the accessing user can access the function corresponding to the target access right according to the login information.
[0119] Among them, there is a corresponding relationship between the temporary user name, the login credentials and the first association, and the authority management service device can generate corresponding login information for the visiting user based on the temporary user name, the login credentials and the first association. The login information will be sent to the visiting user, so that the visiting user can obtain the login information for this visit to the server node. The login information can be used as the only information for the visiting user to enter the server node to perform the target operation.
[0120] S206: The rights management service device generates login credential verification information corresponding to the login credential.
[0121] The login credential verification information is used to verify whether the temporary user name and login credential have the authority to enter the server node.
[0122] The authority management service device can input the corresponding relationship between the generated temporary user name and the login credential into the login credential verification information. Therefore, the access user can be restricted according to the login credential verification information, thereby ensuring the security of the server node.
[0123] S207: The rights management service device sends the login credential verification information to a server node.
[0124] Among them, since the accessing user sends the login information (including: temporary user name and login credentials) to the server node through the client, and the login credential verification information verifies the temporary user based on the login credential, the authority management service device needs to send the login credential verification information to the server node.
[0125] S208: The server node stores the login credential verification information.
[0126] Among them, since the server node needs to verify the temporary user according to the login credential verification information, the login credential verification information sent by the authority management service device to the server node needs to be stored.
[0127] Optionally, this step also includes: obtaining a second mapping relationship table, the second mapping relationship table including: a mapping relationship between operations and access time periods; determining a target access time period corresponding to the target operation based on the target operation and the second mapping relationship table; establishing a second association relationship between the target access time period and the temporary user name, and storing the second association relationship to a server node, so that the server node allocates permissions for the temporary user name according to the second association relationship when allocating permissions.
[0128] Among them, the relationship between setting operations and access periods is to prevent the access user from entering the server node and performing the target operation on the function corresponding to the target access permission without logging out of the current login information, causing other people to enter the server node to operate, causing the server node to be attacked, and even leaking internal company information.
[0129] S209: The server node obtains a login request sent by the client, where the login request includes: a temporary user name of the accessing user, a login credential, and a first association relationship corresponding to the temporary user name.
[0130] Among them, since there are differences in the first association relationships corresponding to different access users, in order to enable the access users to enter the server node safely and efficiently, the authority management service device can send the login information generated according to the access request sent by the access user to the access user, and the access user can enter the login request on the client, and then the server node will obtain the login request sent by the client.
[0131] S210: The server node obtains at least one stored login credential verification information.
[0132] Among them, when the server node receives the login request sent by the client, in order to verify the access rights of the temporary user name corresponding to the login credentials in the login request, it is necessary to obtain the login credential verification information that the server node has previously stored. The server node can verify the temporary user name based on the login credential verification information.
[0133] S211: The server node verifies the temporary user name according to the login credential and the at least one login credential verification information to obtain a verification result.
[0134] Among them, after the server node obtains the temporary user name and login credentials, it verifies the temporary user name according to at least one login credential verification information, and can determine whether the login credential is in the login credential verification information. When the login credential is in the login credential verification information, it can determine the temporary user name corresponding to the login credential in the login credential verification information. When the temporary user name in the login credential verification information is consistent with the temporary user name entered by the accessing user, the verification result obtained is: verification successful.
[0135] S212: When the verification result indicates that the verification is successful, the server node grants the access user a target access right corresponding to the first association relationship, and generates a command language corresponding to the target access right.
[0136] Among them, step S212 is similar to step S103 and will not be repeated here.
[0137] Optionally, a specific implementation of this step is: obtaining a stored second association relationship, and determining a target access time period of a target operation corresponding to the first association relationship according to the second association relationship;
[0138] The granting of the target access right corresponding to the first association relationship to the access user includes:
[0139] The target access permission corresponding to the first association relationship is granted to the access user within the target access period.
[0140] This step is to bind the target operation, target access period, temporary user name, and target access permission. The target access permission can be determined by the temporary user name during the target access period, thereby receiving the target operation of the accessing user.
[0141] S213: The server node sends the command language to the client, so that when the logged-in user in the client is the temporary user name, the function corresponding to the target access authority is called.
[0142] Among them, step S213 is similar to step S104 and will not be repeated here.
[0143] The permission operation method based on distributed cluster provided in this embodiment obtains the access request sent by the access user through the permission management service device, and the access request includes: the UID of the access user and the target operation, then determines the target access right corresponding to the target operation from the first mapping relationship table, and establishes a first association relationship between the UID and the target access right, randomly generates a temporary user name corresponding to the UID according to the first association relationship, and sets a corresponding login credential for the temporary user name, generates login information corresponding to the access user and login credential verification information corresponding to the login credential according to the temporary user name, the login credential and the first association relationship, and sends the login information to the access user, sends the login credential verification information to the server node, and the server node obtains the login information sent by the client. The method comprises the steps of: sending a login request, the login request comprising: a temporary user name of the accessing user, a login credential, and a first association relationship corresponding to the temporary user name, obtaining at least one stored login credential verification information, the server node performing verification processing on the temporary user name according to the login credential and the at least one login credential verification information, obtaining a verification result, granting the accessing user a target access right corresponding to the first association relationship when the verification result indicates that the verification is successful, generating a command language corresponding to the target access right, and sending the command language to the client, so that when the login user in the client is the temporary user name, the function corresponding to the target access right is called; the method increases the difficulty of access right by setting a dynamically adjusted temporary user name, thereby improving the security of the corresponding function of the server node.
[0144] Figure 3 A schematic diagram of the structure of the distributed cluster-based permission operation device provided in this application Figure 1 .like Figure 3 As shown, the present application provides a permission operation device based on a distributed cluster, and the permission operation device 300 based on a distributed cluster includes:
[0145] The acquisition module 301 is used to acquire a login request sent by a client, wherein the login request includes: a temporary user name of an accessing user, a login credential, and a first association relationship corresponding to the temporary user name, wherein the first association relationship is determined by the authority management service device according to a mapping relationship between an operation and an access authority;
[0146] The processing module 302 is used to verify the temporary user name according to the login credential to obtain a verification result;
[0147] The processing module 302 is further configured to grant the access user a target access right corresponding to the first association relationship when the verification result indicates that the verification is successful.
[0148] A generating module 303, used to generate a command language corresponding to the target access authority;
[0149] The sending module 304 is used to send the command language to the client, so that when the logged-in user in the client is the temporary user name, the function corresponding to the target access permission is called.
[0150] Optionally, the acquisition module 301 is further used to acquire at least one stored login credential verification information;
[0151] The processing module 302 is further configured to perform verification processing on the temporary user name according to the login credential and the at least one login credential verification information to obtain a verification result.
[0152] Optionally, the acquisition module 301 is further configured to acquire a stored second association relationship, and determine a target access period of a target operation corresponding to the first association relationship according to the second association relationship;
[0153] The processing module 302 is further configured to grant the target access right corresponding to the first association relationship to the access user, including:
[0154] The processing module 302 is further configured to grant the access user a target access right corresponding to the first association relationship within the target access period.
[0155] Figure 4 A schematic diagram of the structure of the distributed cluster-based permission operation device provided in this application Figure 2 .like Figure 4 As shown, the present application provides a permission operation device based on a distributed cluster, and the permission operation device 400 based on a distributed cluster includes:
[0156] The acquisition module 401 is used to acquire an access request sent by an access user, wherein the access request includes: the UID of the access user and a target operation;
[0157] A determination module 402 is configured to determine, according to the target operation, a target access right corresponding to the target operation from a first mapping relationship table, wherein the first mapping relationship table includes: a mapping relationship between operations and access rights;
[0158] Processing module 403, used to establish a first association relationship between the UID and the target access right, and
[0159] A generating module 404, configured to randomly generate a temporary user name corresponding to the UID;
[0160] The processing module 403 is further used to set corresponding login credentials for the temporary user name;
[0161] The generating module 404 is further configured to generate login information corresponding to the accessing user according to the temporary user name, the login credentials and the first association relationship;
[0162] The sending module 405 is used to send the login information to the accessing user, so that the accessing user can access the function corresponding to the target access permission according to the login information.
[0163] Optionally, the generating module 404 is further configured to generate login credential verification information corresponding to the login credential;
[0164] The processing module 403 is further configured to store the login credential verification information to a server node, so that the server node performs verification processing on the temporary user name according to the login credential verification information.
[0165] Optionally, the acquisition module 401 is further used to acquire a second mapping relationship table, wherein the second mapping relationship table includes: a mapping relationship between operations and access time periods;
[0166] The determination module 402 is further configured to determine a target access period corresponding to the target operation according to the target operation and the second mapping relationship table;
[0167] The processing module 403 is further used to establish a second association relationship between the target access period and the temporary user name, and store the second association relationship in the server node, so that the server node allocates permissions for the temporary user name according to the second association relationship when allocating permissions.
[0168] Figure 5 This is a schematic diagram of the structure of the distributed cluster-based permission operation device provided in this application. Figure 5 As shown, the present application provides a distributed cluster-based permission operation device, and the distributed cluster-based permission operation device 500 includes: a receiver 501, a transmitter 502, a processor 503 and a memory 504.
[0169] Receiver 501, used for receiving instructions and data;
[0170] A transmitter 502, used for sending instructions and data;
[0171] Memory 504, used to store computer-executable instructions;
[0172] The processor 503 is used to execute the computer-executable instructions stored in the memory 504 to implement the various steps performed by the permission operation method based on the distributed cluster in the above embodiment. For details, please refer to the relevant description in the above embodiment of the permission operation method based on the distributed cluster.
[0173] Optionally, the memory 504 may be independent or integrated with the processor 503 .
[0174] When the memory 504 is independently provided, the electronic device further includes a bus for connecting the memory 504 and the processor 503 .
[0175] The present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, a distributed cluster-based permission operation method as performed by the above-mentioned distributed cluster-based permission operation device is implemented.
[0176] It will be appreciated by those skilled in the art that all or some of the steps, systems, and functional modules / units in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. In hardware implementations, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include (or non-transitory media) and a communication medium (or temporary media). As known to those skilled in the art, the term computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, it is well known to those of ordinary skill in the art that communication media typically contain computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
[0177] So far, the technical solution of the present application has been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present application is obviously not limited to these specific embodiments, and the above embodiments are only used to illustrate the technical solution of the present application rather than to limit it. 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 replace some or all of the technical features therein by equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A permission operation method based on a distributed cluster, characterized in that: Applied to a server node, the method comprises: Acquire a login request sent by a client, the login request including: a temporary user name of an accessing user, a login credential, and a first association relationship corresponding to the temporary user name, the first association relationship being determined by the authority management service device according to a mapping relationship between an operation and an access authority; Verify the temporary user name according to the login credential to obtain a verification result; When the verification result indicates that the verification is successful, granting the target access right corresponding to the first association relationship to the access user, and generating a command language corresponding to the target access right; The command language is sent to the client, so that when the logged-in user in the client is the temporary user name, the function corresponding to the target access authority is called.
2. The method according to claim 1, characterized in that The step of verifying the temporary user name according to the login credential to obtain a verification result includes: Obtaining at least one stored login credential verification information; The temporary user name is verified according to the login credential and the at least one login credential verification information to obtain a verification result.
3. The method according to claim 1, characterized in that The method further comprises: Acquire a stored second association relationship, and determine a target access time period of a target operation corresponding to the first association relationship according to the second association relationship; The granting of the target access right corresponding to the first association relationship to the access user includes: The target access permission corresponding to the first association relationship is granted to the access user within the target access period.
4. A permission operation method based on a distributed cluster, characterized in that: Applied to a rights management service device, the method comprises: Obtaining an access request sent by an access user, wherein the access request includes: a UID of the access user and a target operation; According to the target operation, determining a target access right corresponding to the target operation from a first mapping relationship table, wherein the first mapping relationship table includes: a mapping relationship between operations and access rights; Establishing a first association relationship between the UID and the target access permission, and randomly generating a temporary user name corresponding to the UID based on the first association relationship; Setting corresponding login credentials for the temporary user name; Login information corresponding to the accessing user is generated according to the temporary user name, the login credentials and the first association relationship, and the login information is sent to the accessing user, so that the accessing user can access the function corresponding to the target access authority according to the login information.
5. The method according to claim 4, characterized in that The method further comprises: generating login credential verification information corresponding to the login credential; The login credential verification information is stored in a server node, so that the server node performs verification processing on the temporary user name according to the login credential verification information.
6. The method according to claim 4, characterized in that The method further comprises: Acquire a second mapping relationship table, wherein the second mapping relationship table includes: a mapping relationship between operations and access time periods; Determining a target access period corresponding to the target operation according to the target operation and the second mapping relationship table; A second association relationship is established between the target access period and the temporary user name, and the second association relationship is stored in the server node, so that the server node allocates permissions for the temporary user name according to the second association relationship when allocating permissions.
7. A permission operation device based on a distributed cluster, characterized in that: The device comprises: An acquisition module, configured to acquire a login request sent by a client, wherein the login request includes: a temporary user name of an accessing user, a login credential, and a first association relationship corresponding to the temporary user name, wherein the first association relationship is determined by the authority management service device according to a mapping relationship between an operation and an access authority; A processing module, used to verify the temporary user name according to the login credential to obtain a verification result; The processing module is further configured to grant the access user a target access right corresponding to the first association relationship when the verification result indicates that the verification is successful. A generating module, used for generating a command language corresponding to the target access authority; The sending module is used to send the command language to the client, so that when the logged-in user in the client is the temporary user name, the function corresponding to the target access authority is called.
8. A permission operation device based on a distributed cluster, characterized in that: The device comprises: An acquisition module, used to acquire an access request sent by an access user, wherein the access request includes: a UID of the access user and a target operation; A determination module, configured to determine, according to the target operation, a target access right corresponding to the target operation from a first mapping relationship table, wherein the first mapping relationship table includes: a mapping relationship between operations and access rights; A processing module is used to establish a first association relationship between the UID and the target access right, and A generating module, used to randomly generate a temporary user name corresponding to the UID; The processing module is further used to set corresponding login credentials for the temporary user name; The generating module is further configured to generate login information corresponding to the accessing user according to the temporary user name, the login credential and the first association relationship; The sending module is used to send the login information to the access user, so that the access user can access the function corresponding to the target access permission according to the login information.
9. A permission operation device based on a distributed cluster, characterized in that: include: Memory; processor; Wherein, the memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the permission operation method based on a distributed cluster as described in any one of claims 1-6.
10. A computer storage medium, characterized in that: The computer storage medium stores computer execution instructions, and when the computer execution instructions are executed by the processor, they are used to implement the distributed cluster-based permission operation method according to any one of claims 1 to 6.
Citation Information
Cited By
Association relationship determination method and apparatus, device, storage medium, and program product
WO2026067487A1
