Tenant user management in cloud database operations
By introducing the scheduler and role-based user rights management into the cloud database environment, the problem of tenant user management complexity is solved, security and efficiency are improved, rights management is simplified, and the load on the database management system is reduced.
Patent Information
- Application Number
- CN202111489093.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2021-03-05
- Filing Date
- 2021-12-08
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2041-12-08
AI Technical Summary
In a cloud database environment, tenant user management is complicated, especially due to the exponential growth in the number of users and the deployment of multi-tenant platforms, which leads to increased security risks and difficulty in permission management. Traditional user permission management methods are difficult to expand, especially in databases. Manage system kernel dependencies.
Introducing a scheduler, through three-party authentication and role-based user rights management, using authentication managers and role managers to verify user rights, and reducing the risk of user login credentials exposure through a dynamic cookie mechanism, mapping users to predefined roles to simplify Permission management.
It improves the security and efficiency of the cloud database environment, reduces the computing resource load of the database management system, simplifies the complexity of user rights management, and reduces the cost of rights management under traditional methods.
Smart Images

Figure CN115037743B_ABST
Abstract
Description
Background Art
[0001] Tenant user management in cloud foundries is a fundamental task. In modern times, rapid response to cloud foundry requirements and potential security risks complicate user use of cloud databases. In addition, resource competition and database service provisioning on cloud platforms make job scheduling and quality assurance challenging. Therefore, there is room for improved tenant user management in cloud database operations. BRIEF DESCRIPTION OF THE DRAWINGS
[0002] Figure 1 is a general block diagram of an example computing system configured to implement improved tenant user management techniques in cloud database operations.
[0003] Figure 2 is a flow chart illustrating an example overall method for implementing improved tenant user management techniques in cloud database operations.
[0004] Figure 3 is an example block diagram illustrating an example three-party authentication.
[0005] Figure 4 is a flow chart illustrating an example method of implementing dynamic cookies used by a scheduler in conjunction with user authentication.
[0006] Figure 5 is a flow chart illustrating an example method of authenticating a user by a scheduler.
[0007] Figure 6 is a block diagram illustrating an example system for role-based user rights management.
[0008] Figure 7 is a block diagram illustrating an example topographic mapping between users, roles, and database services.
[0009] Figure 8 is a block diagram illustrating an example data flow involved in implementing role-based user rights management by a scheduler.
[0010] Fig. 9 is a flow chart illustrating an example method for implementing role-based user rights management.
[0011] Fig.10 is a block diagram of an example computing system in which the described embodiments may be implemented.
[0012] Fig.11 is a block diagram of an example cloud computing environment that can be used in conjunction with the techniques described herein. DETAILED DESCRIPTION
[0013] Example 1 - Overview of tenant user management in a cloud computing environment
[0014] Multi-tenancy is a feature in multiple types of cloud computing services, where a service provider can support multiple clients of different customers (called "tenants") in a cloud solution. In a Database as a Service (DBaaS) environment, multi-tenancy means that a cloud solution can support multiple users accessing multiple databases from multiple tenants, and each tenant can have one or more databases. Users can be grouped into multiple tenants, where users of a tenant can share common access to a DBaaS instance with certain specific permissions. Users using the service do not need to manage availability or capacity-related issues of resources (e.g., CPU consumption, storage consumption, backup service consumption, network bandwidth consumption, etc.). Instead, such tasks are managed by the DBaaS service provider. Therefore, cloud services supported by DBaaS are attractive to end users because they can provide benefits such as low maintenance costs, overall reliability, and high elasticity.
[0015] However, from the perspective of DBaaS service providers, the management of large-scale cloud databases, especially when the DBaaS includes many database clusters (which may be geographically distributed), can be expensive. The complexity of tenant user management in a distributed cloud computing environment can increase significantly due to a variety of reasons, such as the exponential growth of the user base and the deployment of multiple distributed DBaaS platforms. When many end users send job requests to multiple DBaaS platforms for different services, security risks may arise and permission management may become complicated.
[0016] As an example, secure authentication of many users by a corresponding DBaaS platform can be a challenging task. All end users must protect their login credentials and may be required to frequently update these credentials. It is not uncommon for users to inadvertently expose their passwords to others or lose their credential data for a variety of reasons.
[0017] As another example, end users may have different user permissions, and their job requests may have different priorities and require different resources. A particular challenge may come from the agile development cycle. For example, if a cloud database cluster is used by multiple teams and / or different team members, the permissions for each team and / or team member to use the database cluster need to be managed separately, thereby increasing communication costs. Challenges may also come from changes in resource usage and different roles played by end users. For example, developers, testers, and customers may each have their own unique configuration for using a database cluster. Traditionally, user permission management is performed in the kernel of the database management system. For example, a single user's permissions can be configured by one or more SQL commands (e.g., GRANT and REVOKE) to provide or remove special permissions (e.g., INSERT, UPDATE, SELECT, DELETE, etc.) for accessing a special database. As databases move to cloud environments, software applications and database and cluster management will be deployed as DBaaS to support more users and easier use. However, this change also brings new challenges to cloud database providers because traditional methods of user permission management are difficult to scale on complex DBaaS platforms. For example, it becomes infeasible to still rely on the database management system kernel to manage the permissions of each user, because such a task will reduce or even exhaust the computing resources of the database management system. In another example, the permissions to be managed are not limited to traditional database access rights. Instead, they can include access rights to certain DBaaS-specific features that the database kernel cannot directly authorize, such as the right to access the database explorer (for DBaaS-managed (administrative) tasks), the right to access a certain DBaaS-based enterprise software application, the right to access ultra-large capacity storage (e.g., >1TB), cluster / replication rights, etc.
[0018] Therefore, an improved tenant user management system in a DBaaS environment would be advantageous, which can mitigate security vulnerabilities of users and manage users' permissions more effectively. This improved tenant user management technology can be applied to various enterprise software environments.
[0019] Example 2 - Example Overview System for Improved Tenant User Management in Cloud Database Operations
[0020] Figure 1 A general block diagram of an example database system 100 configured to implement improved tenant user management techniques in a cloud foundry environment is shown.
[0021] As shown, the database system 100 may include multiple DBaaS platforms 140a, 140b, ..., 140n (collectively referred to as 140), each of which may instantiate multiple instances 150a, 150b, ..., 150n (collectively referred to as 150). In a typical example, the DBaaS platform 140 may provide a web-based management tool for managing, monitoring, and maintaining an enterprise database in a cloud computing environment. For example, each DBaaS platform (e.g., 140a, 140b, ..., 140n) may provide a single point of access to a range of tools for a cluster of databases, and may also integrate development functions required by administrators through a database explorer or browser. In addition, the DBaaS platform 140 may also start and stop services, monitor underlying databases, configure database settings, and manage users and authorizations.
[0022] like Figure 1 As depicted, the database system 100 can support multiple users 110a, 110b, ..., 110m (collectively referred to as 110). In some examples, the users 110 can be grouped into different tenants, each of which can have tenant-specific roles and / or permissions. Each user can send one or more job requests (also referred to as "service requests"), such as 120a, 120b, ..., 120m (collectively referred to as 120), for database services from a DBaaS platform 140. The database system 100 can also include a scheduler 130 that acts as an intermediary between the job requests 120 sent by the users 110 and the DBaaS platform 140. The scheduler 130 that receives the job request 120 from the user 110, after authenticating the user and validating the user's permissions, can determine which DBaaS platform 140 should be used to service the job request 120 based on multiple factors (e.g., the location of the user 110 and its proximity to the DBaaS platform 140, the computing resources required by the job request 120, etc.). The DBaaS platform 140 selected by the scheduler 130 can then determine which instance(s) 150 need to be assigned to the user 110 so that the assigned instance(s) 150 can cooperate to run the job that satisfies the job request 120 while balancing the load on the corresponding DBaaS platform 140. In general, the scheduler 130 can schedule the running of jobs (e.g., determine the time and / or order in which the jobs run) and enable limited computing resources to be appropriately allocated among competing jobs. Since a job can go through multiple states from its creation to its completion, the scheduler 130 can also track the running of the job and log related information (e.g., the job status, the last time the job was run, etc.).
[0023] As described herein, the scheduler 130 can be configured to implement additional, advanced, technical features beyond the traditional platform selection and job scheduling functions. Specifically, the scheduler 130 can include an authentication manager 170 configured to implement three-party user authentication, and a role manager 160 configured to implement role-based user authority management, as described more fully below.
[0024] In practice, the systems shown herein, such as system 100, may vary in complexity, with additional functionality, more complex components, etc. For example, there may be additional functionality within scheduler 130. Additional components may be included to implement security, redundancy, load balancing, reporting designs, etc.
[0025] The described computing systems can be networked via wired or wireless network connections (including the Internet). Alternatively, the systems can be connected via intranet connections (e.g., in corporate environments, government environments, etc.).
[0026] System 100 and any other systems described herein can be implemented in conjunction with any hardware components described herein, such as the computing systems described below (e.g., processing units, memory, etc.). In any examples herein, job requests, user credentials, public and / or private keys, roles, etc. can be stored in one or more computer-readable storage media or computer-readable storage devices. The techniques described herein can be general techniques for specific circumstances of operating systems or hardware, and can be applied in any kind of environment to utilize the described features.
[0027] Example 3 - Example Overall Approach for Improved Tenant User Management in Cloud Database Operations
[0028] Figure 2 is a flow chart of an example overall method 200 for implementing improved tenant user management techniques in a cloud foundry environment and may be, for example, Figure 1 system to execute.
[0029] At 210, a scheduler (e.g., 130) may receive a job request (e.g., 120) for a database service from a user (e.g., 110). At 220, the scheduler may authenticate the user's login credentials, for example, by means of a three-party authentication described below. At 230, the scheduler may also verify that the user has permissions for the job request. At 240, the scheduler may create a modified job request based on a predefined role corresponding to the user's permissions. At 250, the scheduler may forward the modified job request to a selected DBaaS platform (e.g., 140). Then, at 260, in response to the modified job request, an instance of the database service may be assigned to the user. For example, the DBaaS platform may allocate or assign an instance of the database service to the user in response to the modified job request.
[0030] Method 200 and any other methods described herein may be performed by computer executable instructions (e.g., causing a computing system to perform the methods) stored in one or more computer readable media (e.g., storage or other tangible media) or stored in one or more computer readable storage devices. Such methods may be performed in software, firmware, hardware, or a combination thereof. Such methods may be performed, at least in part, by a computing system (e.g., one or more computing devices).
[0031] The operations shown can be described from alternative perspectives while still implementing the technology. For example, "receiving" can also be described as "sending" from a different perspective.
[0032] Example 4 - Example three-party authentication scheme
[0033] Figure 3 is a block diagram 300 illustrating an example three-party authentication scheme in accordance with the disclosed technology.
[0034] As shown, the depicted authentication scheme involves three parties: user 110, scheduler 130, and DBaaS platform 140. Before user 110 can use any database services provided by DBaaS platform 140, user 110 must be authenticated by scheduler 130, and scheduler 130 must be authenticated by DBaaS platform 140. In some embodiments, two-way secure socket layer (SSL) authentication (also referred to as mutual authentication) may be performed between user 110 and scheduler 130 and / or between scheduler 130 and DBaaS platform 140. Authentication manager 170 included in scheduler 130 may support this three-way authentication.
[0035] In some examples, the user 110 and the scheduler 130 can authenticate each other to ensure that both parties involved in the communication are credible. Specifically, the authentication manager 170 can hold a public key 172, which can be paired with a private key 112 held by the user 110 through a client SSL 174 to authenticate the user's login credentials 114 (e.g., username and password). Typically, the user's private key 112 and login credentials 114 can be included in the job request 120 sent by the user 110. As described below, the scheduler 130 can specify an encryption algorithm for encrypting the user's login credentials. Similarly, the scheduler 130 and the DBaaS platform 140 can verify each other's identities. For example, the authentication manager 170 can hold a private key 176, which can be paired with a public key 142 held by the DBaaS platform 140 through a DBaaS SSL 178, so that the scheduler 130 can be authenticated by the DBaaS platform 140.
[0036] In addition, the authentication manager 170 can maintain a dynamic cookie 175. Specifically, after the scheduler 130 verifies the authentication of the user, the authentication manager 170 can create a dynamic cookie 175 that contains the encrypted login credentials 114 of the user 110 and can be used to schedule future jobs of the user 110 (for example, the authentication of the user 110 can be automatically verified by using the user's private key 112 to decrypt the user's login credentials 114 contained in the dynamic cookie 175). The user's login credentials 114 can have a predefined validity period (for example, one week, etc.) set by the DBaaS platform 140 and managed by the scheduler 130. In other words, the user 110 can be required to periodically update or change its login credentials 114 to use the services provided by the DBaaS platform 140. After the validity period expires, the previously created dynamic cookie 175 will not be able to authenticate the user 110. Therefore, the user 110 needs to be re-authenticated by the scheduler 130 to access the DBaaS platform 140. In some embodiments, when certain activities are detected (e.g., patterns of abnormal or suspicious use of database resources, etc.), the predefined validity period can be shortened. In such a case, the DBaaS platform 140 can instruct the scheduler 130 to re-authenticate the user 110. In some examples, the scheduler 130 can generate a dynamic password, for example, a random string that expires within a short period of time (e.g., 5 minutes, etc.). The dynamic password can be sent to the user, for example, via SMS or email, to verify the user's identity and / or prompt the user to change his login credentials. After a successful re-authentication, the scheduler 130 can update or refresh the dynamic cookie 175 so that it contains the user's updated login credentials 114 so that it can be used again for scheduling future jobs for the user 110. Note that the dynamic cookie 175 is stored on the scheduler 130, not on the user's local computer, so the risk of exposing the user's login credentials (e.g., via decryption of the cookie) can be reduced.
[0037] In other words, the task of user authentication for using the services provided by the DBaaS platform 140 may be Figure 3130 and enabled by the authentication manager 170. Such an authentication scheme can be implemented through a protocol managed by the scheduler 130, wherein the protocol specifies an encryption algorithm for encrypting the user's login credentials, a validity period for the user's login credentials specified by the DBaaS platform, an algorithm for generating dynamic passwords, etc. Therefore, in contrast to traditional cloud database operations, where the DBaaS platform is typically responsible for authenticating thousands of users or more, the three-party authentication scheme described herein is more secure through the added authentication layer (i.e., the scheduler 130) and the dynamic cookie mechanism. In addition, the three-party authentication scheme can improve overall efficiency by offloading a large number of user authentication tasks to the scheduler 130, while the DBaaS platform 140 only needs to authenticate the scheduler 130.
[0038] Example 5 - Example overall method for dynamic cookie-based user authentication
[0039] Figure 4 A flow chart 400 is shown illustrating an example overall method of user authentication based on a dynamic cookie (eg, 175).
[0040] At 410, a scheduler (e.g., 130) may receive a job request (e.g., 120) for a database service from a user (e.g., 110). At 420, an authentication manager (e.g., 170) may perform cookie authentication, i.e., determine whether the user's private key (e.g., 112) can correctly decrypt the user's login credentials (e.g., 114) contained in a dynamic cookie. If the dynamic cookie has been successfully authenticated, the method may continue service at 460 (e.g., checking the user's permissions based on the job request, as further described below). On the other hand, if the authentication manager cannot authenticate the user using the dynamic cookie, the method may proceed to 430 to perform user authentication by the scheduler, as further described in the following example. The result of such user authentication may be checked at 440. If such authentication is successful, the scheduler may update the dynamic cookie at 450 and continue service at 460. Otherwise, the user's service request may be rejected at 470.
[0041] Example 6 - Example method for user authentication via the scheduler
[0042] Figure 5 is a flow chart 500 illustrating an example method of authenticating a user (eg, 110 ) by a scheduler (eg, 130 ).
[0043] At 510, a user may submit a job request (e.g., 120) to a scheduler with a job identifier (ID). The job ID may include a timestamp and other job description information, and may be generated in a random manner and / or in sequence. At 520, the scheduler may return or send its public key (e.g., 172) to the user. At 530, the user may verify the scheduler's public key, for example, by verifying the scheduler's public key through a certificate authority. After such verification is successful, at 540, the user may send his login credentials (e.g., 114) to the scheduler. At 550, the scheduler may select or determine an asymmetric encryption algorithm (e.g., a digital signature algorithm, an RSA algorithm, etc.) for the user. At 560, the user may generate an encrypted login credential using an asymmetric encryption algorithm selected or determined by the scheduler. Then, at 570, the user may send his encrypted login credential to the scheduler. After receiving the user's encrypted login credential, the scheduler may retain such information in a dynamic cookie at 580 for future cookie-based authentication purposes, i.e., when there is a following job request by the user requiring such login credential, the scheduler may decrypt it using his private key.
[0044] Example 7 - Example overview of role-based user rights management
[0045] Figure 6 is a block diagram 600 illustrating an example system for role-based user rights management.
[0046] As shown, the scheduler 130 includes a role manager 160 that can be used as an intermediary between the job request 120 sent by the user 110 and the DBaaS platform 140. The role manager 160 may include a permission checker 162, a plurality of predefined roles 164, and a plurality of predefined public users 166 associated with or mapped to the predefined roles 164. As described herein, the public users 166 are virtual users that exist only in the scheduler 130 and have their own encrypted, pre-authenticated login credentials. The default or assigned permission information of all users of the DBaaS platform 140 can be stored in a permission database 180, which can be evaluated by the permission checker 162. In addition, the scheduler 130 may include a logger 132 that is configured to create an internal log 134 to record certain information about the job session corresponding to the job request 120.
[0047] As described herein, the permissions of user 110 define the user's access to the services of DBaaS platform 140. As in conventional database management systems, user permissions may include specific permissions for user 110 to directly operate on database objects, such as system permissions to create, alter, and / or drop database tables, and / or object permissions to select or update records in database tables, etc. Unlike conventional database management systems, the user permissions described herein may be more extensive and include access to specific features of the DBaaS platform, such as the right to browse the DBaaS platform hosting website (e.g., SAP HANA Cockpit provided by SAP SE of Walldorf, Germany), the right to create a private cloud, the right to browse DBaaS internal containers (docker), etc.
[0048] In some embodiments, the user's job request 120 may specify and / or define a list of permissions requested for the job, for example in a configuration format. For example, one such permission configuration may be: {disk:128GB; memory:32GB; CPU:16; operation:r+w; explorer:yes; administrator explorer:no; ERP:no}, which specifies that the job request seeks 128GB of disk space, 32GB of memory space, 16 CPUs, read and write access to the database, and access to a regular database resource manager, but does not seek access to a hosted database resource manager or enterprise resource planning (ERP) software application. As described below, the permission checker 162 may analyze the job request 120 to compare the permissions requested by the user with the permissions assigned to it to determine the validity of the job request 120.
[0049] As described herein, a role 164 is a combination of permissions for the above-mentioned users. Different roles typically have a combination of permissions for different users, and the number of permissions included in a role may vary. For example, a role may include a combination of multiple permissions (e.g., permissions to insert, update, select, or delete certain database records, and permissions to browse the DBaaS platform's managed website), while another role may only include a single permission (e.g., permissions to select certain database records). In an example embodiment, multiple predefined roles 164 may be saved in corresponding configuration files located on the scheduler 130.
[0050] In an example embodiment, the plurality of roles 164 predefined by the scheduler 130 may cover all possible combinations of permissions for users to use all available services provided by the DBaaS platform 140. In other words, each user 110 may be mapped to one or more roles 164 predefined by the scheduler 130. Figure 7 7 is a block diagram 700 showing an example mapping between users 110, roles 164, and DBaaS platform 140. In the depicted example, two predefined roles A 164a and B 164b are shown, each containing a corresponding combination of permissions for certain services provided by DBaaS platform 140. As shown, both user A 110a and user M 110m are mapped to predefined role A 164a, indicating that the combination of permissions contained in role A 164a can cover the access rights of both user A 110a and user M 110m. In other words, user A 110a and user M 110m share the same permissions contained in role A 164a. On the other hand, user B 110b is mapped to both role A 164a and role B 164b, indicating that user B 110b needs permissions contained in roles A and B in order to use the services provided by DBaaS platform 140. The user-role mapping described in this article establishes the protocol by which the DBaaS platform can manage the permissions of users.
[0051] Since the total number of permissions used to evaluate the DBaaS platform 140 is typically limited (e.g., less than 100), and the roles 164 represent multiple combinations of permissions of a user, the total number of predefined roles 164 is also typically limited (e.g., a few hundred), which can be significantly less (e.g., by several orders of magnitude) than the total number of users of the DBaaS platform 140 (e.g., millions). Therefore, by mapping different users 110 to corresponding roles 164 predefined by the scheduler 130, a significant dimensionality reduction in user permission management can be achieved. For example, compared to the traditional approach in which the database management system kernel is responsible for verifying the permissions of each user, the techniques described herein can free the DBaaS platform 140 from direct interaction with the user 110 and offload the task of user permission management to the scheduler 130, which can map a large number of users 110 to a smaller, and thus more manageable, set of predefined roles 164.
[0052] Example 8 - Example method for role-based user permission management
[0053] Figure 88 is a block diagram 800 illustrating an example data flow involved in implementing a scheduler 130 for role-based user rights management. As described above, the role manager 160 may have a plurality of predefined public users 166. Each public user 166 may have its corresponding encrypted login credentials 168 (e.g., username and password) that are authenticated by default, i.e., the public user 166 is pre-authorized to use the services provided by the DBaaS platform 140. As described herein, each predefined role 164 may be associated with or mapped to at least one public user 166. A public user 166 associated with or mapped to a role 164 may inherit all the rights contained in the role 164. In some embodiments, a public user 166 may be associated with or mapped to a plurality of roles 164. In this case, a public user 166 may inherit all the rights contained in each of the plurality of roles 164 associated with or mapped to the public user 166.
[0054] When the scheduler 130 receives the job request 120, the role manager 160 may (after verifying that the user has permissions to run the job, as further described below) map the user to one or more predefined roles 164, as described above. Next, through the role manager 160, the public user 166 may be associated with or mapped to the one or more predefined roles 164 mapped to the user. The role manager 160 may then modify the job request 120 by replacing the user's login credentials (e.g., 114) with the encrypted credentials 168 of the public user 166 that has been mapped to the one or more predefined roles 164. The scheduler 130 may then forward the modified job request to the DBaaS platform 140, which may select one or more instances 152 from the available instances 150 to assign to the user. The scheduler 130 may then schedule these assigned instances 152 for the job to run.
[0055] Compared with the traditional user rights management method in which the DBaaS platform is directly responsible for granting, changing, or revoking user rights through SQL commands, the role-based user management method described in this article operates through protocols. Specifically, the DBaaS platform can use the scheduler as an intermediary to map a large number of users to certain predefined roles, each of which has a corresponding combination of rights. Therefore, the DBaaS platform only needs to handle a limited number of predefined roles in the scheduler.
[0056] Fig. 9 A flowchart 900 is shown of an example method for implementing role-based user rights management, which may be implemented, for example, by role manager 160 .
[0057] At 910, the requested permissions (e.g., 120) corresponding to the job request can be determined. The requested permissions are the permissions that the job request seeks. For example, a job request that includes a task to delete certain data records from certain database tables will require DELETE permissions on the relevant database objects, and a job request that seeks to perform some DBaaS-managed work will require special permissions to browse the DBaaS platform-managed website, etc. As described above, in some cases, the requested permissions can be included in the job request in a configuration format. In an example embodiment, the permissions checker 162 can be configured to analyze the job request to determine what permissions the job request seeks. At 920, the requested permissions can be compared with the user's actual permissions, such as by the permissions checker 162. As described above, the user's actual permissions can be stored in the permissions database 180. Typically, when a user registers with the DBaaS platform, the actual permissions are assigned to the user. In some embodiments, the user's actual permissions stored in the permissions database 180 can be specified in a configuration format. For example, the actual permissions assigned to a user may be {disk:<256GB; memory:<64GB; CPU:<32; operation:r+w; database explorer:2; ERP:no}, which indicates that the user is limited to 256GB of disk space, 64GB of memory space, and 32 CPUs, has read and write access to the database, and access to a regular database explorer (for example, assuming the following predefined codes: 1=no access, 2=access to regular database exploration, 3=access to managed database explorer), but has no access to the ERP software application.
[0058] If the conditional check at 930 determines that the requested permissions exceed the actual permissions assigned to the user, the user's job request will be rejected at 980. Otherwise, the method will proceed to 940, where the scheduler can identify the predefined role (e.g., 164) mapped to the user, that is, the predefined role includes all requested permissions sought by the user's job request. Next at 950, the scheduler can associate a predefined public user (e.g., 166) with the predefined role. As described above, the public user has its own encrypted, pre-authenticated login credentials and will inherit all permissions of the predefined role. Then at 960, the scheduler can replace the user with the public user in the job request. Specifically, the login credentials (e.g., 114) of the user included in the job request will be replaced with the encrypted login credentials (e.g., 168) of the public user. Then, the job request modified in this way can be submitted to the DBaaS platform at 970 for assignment to the user's instance. Because the public user has been pre-authenticated and has all requested permissions, the DBaaS platform can assign the instance to the user for job operation as long as there is an instance available for allocation or assignment. Importantly, since the user's login credentials are not present in the modified job request, it cannot be leaked to or stolen by other users with access to the same DBaaS platform.
[0059] When the scheduler submits a modified job request to the DBaaS platform, the scheduler can establish a new session with the DBaaS platform. The job console can generate a session log during the operation of the job. For example, each job can be associated with a corresponding job log containing a message thread that tracks the operation of the job, and the job log can be viewed through a web browser or other means. However, traditional job logs cannot reveal the real user information of role participation. As described herein, the scheduler can have its own internal logging mechanism (logging mechanism). For example, the scheduler can also record an internal log 134 containing user / role mapping details via a logger 132, as described above. Therefore, the user can search for more detailed information of the job in the internal log 134 (for example, by entering a job identifier), such as checking user-role mapping information, error exceptions and other job operation details.
[0060] Example 9 - Example Advantages
[0061] Many advantages can be achieved through the technology described herein. In particular, the scheduler 130 can play a more central role in user authentication and rights management in addition to performing traditional tasks such as DBaaS platform selection and job scheduling. Therefore, by unloading user authentication and rights management functions from the DBaaS platform 140 to the scheduler 130, the database system 100 can have a more streamlined architecture and operate with improved security and higher efficiency. For example, compared with the previous method of direct user authentication by the DBaaS platform, the three-party authentication scheme described herein adds another layer (i.e., the scheduler) between the two. Combined with the dynamic cookies retained on the scheduler, the three-party authentication scheme can not only reduce the workload of the DBaaS platform (e.g., authenticating users), but also improve the security of the authentication process. By replacing the user's login credentials in the job request with the encrypted credentials of the public user, security can be further enhanced, as described above. As another example, by getting rid of the traditional SQL command-based rights management model and adopting a protocol-based rights management model (e.g., via user-role mapping), the technology described herein can greatly simplify the complexity of user rights management. By shifting the user permission management responsibility from the DBaaS platform to the scheduler, the DBaaS platform's computing resources can be used to process instances of job runs rather than to manage tasks (e.g., managing user permissions), which may be numerous as the number of users increases.
[0062] Example 10 - Example computing system
[0063] Fig.10 An example of a suitable computing system 1000 is depicted in which the described innovations may be implemented. Computing system 1000 is not intended to suggest any limitation as to the scope of use or functionality of the invention, as these innovations may be implemented in different computing systems.
[0064] refer to Fig.10 , the computing system 1000 includes one or more processing units 1010, 1015 and memories 1020, 1025. Fig.10 , the basic configuration 1030 is included within the dashed line. Processing units 1010, 1015 execute computer executable instructions, such as for implementing the features described in the examples herein. The processing units may be general-purpose central processing units (CPUs), processors in application-specific integrated circuits (ASICs), or any other type of processor. In a multi-processing system, multiple processing units execute computer executable instructions to increase processing power. For example, Fig.10A central processing unit 1010 and a graphics processing unit or synergistic processing unit 1015 are shown. Tangible memory 1020, 1025 may be volatile memory (e.g., registers, cache, RAM), non-volatile memory (e.g., ROM, EEPROM, flash memory, etc.), or some combination of the two accessible by the processing unit(s) 1010, 1015. The memory 1020, 1025 stores software 1080 implementing one or more innovations described herein in the form of computer executable instructions suitable for execution by the processing unit(s) 1010, 1015.
[0065] The computing system 1000 may have additional features. For example, the computing system 1000 includes storage 1040, one or more input devices 1050, one or more output devices 1060, and one or more communication connections 1070 including input devices, output devices, and communication connections for interacting with a user. An interconnection mechanism (not shown) such as a bus, controller, or network interconnects the components of the computing system 1000. Typically, operating system software (not shown) provides an operating environment for other software running in the computing system 1000 and coordinates the activities of the components of the computing system 1000.
[0066] Tangible storage 1040 may be removable or non-removable and include disks, tapes or cassettes, CD-ROMs, DVDs, or any other medium that can be used to store information in a non-transitory manner and that can be accessed within computing system 1000. Storage 1040 stores instructions for software implementation of one or more innovations described herein.
[0067] Input device(s) 1050 may be an input device such as a keyboard, a mouse, a pen or trackball, a voice input device, a scanning device, a touch device (e.g., a touchpad, a display, etc.), or other device that provides input to the computing system 1000. Output device(s) 1060 may be a display, a printer, a speaker, a CD burner, or another device that provides output from the computing system 1000.
[0068] Communication connection(s) 1070 enable communication with another computing entity over a communication medium. The communication medium transmits information, such as computer executable instructions, audio or video input or output, or other data in a modulated data signal. A modulated data signal is a signal that has one or more of its characteristics set or changed in such a manner as to encode information in the signal. For example, but not limitation, the communication medium may use electrical, optical, RF or other carriers.
[0069] Innovations may be described in the context of computer-executable instructions, such as instructions included in program modules, which are executed in a computing system on a target real or virtual processor (e.g., ultimately on one or more hardware processors). Typically, program modules or components include routines, programs, libraries, objects, classes, components, data structures, etc. that perform special tasks or implement special abstract data types. In various embodiments, the functionality of program modules may be combined or split between program modules as desired. The computer-executable instructions of program modules may be executed in a local or distributed computing system.
[0070] For ease of presentation, the detailed description uses terms such as "determine" and "use" to describe computer operations in a computing system. These terms are high-level descriptions of operations performed by a computer and should not be confused with actions performed by a human. The actual computer operations corresponding to these terms vary depending on the implementation.
[0071] Example 11 - Computer Readable Medium
[0072] Any computer-readable medium herein may be non-transitory (e.g., volatile memory, such as DRAM or SRAM, non-volatile memory, such as magnetic storage, optical storage, etc.) and / or tangible. Any storage action described herein may be implemented by storing in one or more computer-readable media (e.g., computer-readable storage media or other tangible media). Anything described as stored (e.g., data created and used during implementation) may be stored in one or more computer-readable media (e.g., computer-readable storage media or other tangible media). Computer-readable media may be limited to implementations that do not contain signals.
[0073] Any of the methods described herein can be implemented by computer executable instructions in (e.g., stored in, encoded in, etc.) one or more computer readable media (e.g., computer readable storage media or other tangible media) or one or more computer readable storage devices (e.g., memory, magnetic storage, optical storage, etc.). Such instructions can cause a computing device to perform the method. The techniques described herein can be implemented in a variety of programming languages.
[0074] Example 12 - Example cloud computing environment
[0075] Fig.11An example cloud computing environment 1100 is depicted in which the described techniques (including, for example, the systems disclosed above and other systems herein) can be implemented. Cloud computing environment 1100 includes cloud computing services 1110. Cloud computing services 1110 may include various types of cloud computing resources, such as computer servers, data repositories, network resources, etc. Cloud computing services 1110 may be centrally located (e.g., provided by a data center of an enterprise or organization) or distributed (e.g., provided by multiple computing resources located in different locations, such as different data centers and / or located in different cities or countries).
[0076] Cloud computing services 1110 are utilized by various types of computing devices (e.g., client computing devices), such as computing devices 1120, 1122, and 1123. For example, computing devices (e.g., 1120, 1122, and 1124) can be computers (e.g., desktop or laptop computers), mobile devices (e.g., tablet computers or smartphones), or other types of computing devices. For example, computing devices (e.g., 1120, 1122, and 1124) can utilize cloud computing services 1110 to perform computing operations (e.g., data processing, data storage, etc.).
[0077] In practice, cloud-based, on-premises-based, or hybrid scenarios can be supported.
[0078] Example 13 - Example Implementation
[0079] Although the operations of some disclosed methods are described in a particular, sequential order for ease of presentation, this description includes rearrangement unless a particular order is required by the specific language preceding this document. For example, operations described sequentially may be rearranged or performed simultaneously in some cases.
[0080] Example 14 - Example Implementation
[0081] Any of the following embodiments may be implemented.
[0082] Clause 1. A computer-implemented method comprising: authenticating, by a scheduler, login credentials of a user, wherein the user sends an original job request including login credentials to a database service; verifying, by the scheduler, that the user has authority over the original job request; creating, by the scheduler, a modified job request from the original job request based on a predefined role corresponding to the user's authority; sending the modified job request from the scheduler to a database service platform; and allocating, by the database service platform, an instance of the database service to the user in response to the modified job request.
[0083] Clause 2. The method of clause 1, wherein verifying that the user has permissions for the original job request comprises determining that actual permissions assigned to the user include requested permissions for the job request.
[0084] Clause 3. The method according to any one of clauses 1-2 further comprises mapping a user to a predefined role, wherein the predefined role comprises a combination of permissions for accessing the database service platform.
[0085] Clause 4. The method according to clause 3 further comprises associating a predefined public user with a predefined role, wherein the public user has an encrypted login credential that has been pre-authenticated to access the database service platform.
[0086] Clause 5. The method of clause 4, wherein creating the modified job request comprises replacing the user's login credentials in the job request with the public user's encrypted login credentials.
[0087] Clause 6. The method of any one of clauses 1-5, wherein authenticating the user's login credentials comprises authenticating the user by the scheduler and authenticating the scheduler by the database service platform.
[0088] Clause 7. The method of clause 6, wherein authenticating the user by the scheduler comprises decrypting a cookie stored on the scheduler using a private key of the user.
[0089] Clause 8. The method of clause 7, wherein authenticating the user by the scheduler further comprises periodically changing the user's login credentials and updating a cookie stored on the scheduler.
[0090] Clause 9. A method according to Clause 8, wherein updating a cookie comprises: submitting a job identifier from a user to a scheduler; returning a public key from the scheduler to the user; verifying the public key by the user; sending the user's login credentials to the scheduler; selecting an asymmetric encryption algorithm by the scheduler; generating encrypted login credentials by the user using the asymmetric encryption algorithm selected by the scheduler; sending the encrypted login credentials from the user to the scheduler; and storing the encrypted credentials in a cookie by the scheduler.
[0091] Clause 10. The method according to any one of clauses 1-9 further comprises logging the following: job requests, user authentication results, predefined roles corresponding to user permissions, and the status of instances of allocated database services.
[0092] Item 11. A system comprising: a memory; one or more hardware processors coupled to the memory; and one or more computer-readable storage media storing instructions that, when loaded into the memory, cause the one or more hardware processors to perform operations, including: authenticating a user's login credentials by a scheduler, wherein the user sends an original job request including login credentials to a database service; verifying by the scheduler that the user has authority over the original job request; creating by the scheduler a modified job request from the original job request based on a predefined role corresponding to the user's authority; sending the modified job request from the scheduler to a database service platform; and allocating by the database service platform an instance of the database service to the user in response to the modified job request.
[0093] Clause 12. The system of clause 11, wherein verifying that the user has permissions for the original job request comprises determining that actual permissions assigned to the user include requested permissions for the job request.
[0094] Clause 13. The system of any one of clauses 11-12, wherein the operation further comprises mapping the user to a predefined role, wherein the predefined role comprises a combination of permissions for accessing the database service platform.
[0095] Clause 14. The system of any one of clauses 11-13, wherein the operation further comprises associating a predefined public user with a predefined role, wherein the public user has encrypted login credentials that have been pre-authenticated to access the database service platform.
[0096] Clause 15. The system of clause 14, wherein creating the modified job request comprises replacing the user's login credentials with the public user's encrypted login credentials in the job request.
[0097] Clause 16. The system of any one of clauses 11-15, wherein authenticating the user's login credentials comprises authenticating the user by the scheduler and authenticating the scheduler by the database service platform.
[0098] Clause 17. The system of clause 16, wherein authenticating the user by the scheduler comprises decrypting a cookie stored on the scheduler using a private key of the user.
[0099] Clause 18. The system of clause 17, wherein authenticating the user by the scheduler further comprises periodically changing the user's login credentials and updating a cookie stored on the scheduler.
[0100] Clause 19. A system according to Clause 18, wherein updating a cookie comprises: submitting a job identifier from a user to a scheduler; returning a public key from the scheduler to the user; verifying the public key by the user; sending the user's login credentials to the scheduler; selecting an asymmetric encryption algorithm by the scheduler; generating encrypted login credentials by the user using the asymmetric encryption algorithm selected by the scheduler; sending the encrypted login credentials from the user to the scheduler; and storing the encrypted credentials in a cookie by the scheduler.
[0101] Clause 20. One or more computer-readable media having computer-executable instructions encoded thereon that cause one or more processors to execute a method comprising: authenticating, by a scheduler, login credentials of a user, wherein the user sends an original job request including login credentials for a database service; verifying, by the scheduler, that the user has authority over the original job request; mapping the user to a predefined role, wherein the predefined role includes a combination of permissions for accessing a database service platform; associating a predefined public user with the predefined role, wherein the public user has an encrypted login credential that has been pre-authenticated to access the database service platform; creating, by the scheduler, a modified job request by replacing the user's login credentials with the public user's encrypted login credentials in the job request; sending the modified job request from the scheduler to the database service platform; and allocating, by the database service platform, an instance of the database service to the user in response to the modified job request.
[0102] Example 15 - Example Alternative
[0103] The technology from any example can be combined with the technology described in any one or more other examples. In view of the many possible embodiments to which the principles of the disclosed technology can be applied, it should be recognized that the illustrated embodiments are examples of the disclosed technology and should not be regarded as limiting the scope of the disclosed technology. On the contrary, the scope of the disclosed technology includes what is covered by the scope and spirit of the appended claims.
Claims
1. A computer-implemented method, include: The scheduler authenticates the user's login credentials, wherein the login credentials are included in the user's original service request to the database service; The scheduler determines that the user has authority to the original service request; creating, by the scheduler, a modified service request from the original service request based on predefined roles corresponding to the user's permissions; and The modified service request is forwarded by the scheduler to the DBaaS platform, wherein an instance of the database service can be assigned to the user in response to the modified service request. The login credentials of the authenticated user include the user authenticated by the scheduler and the scheduler authenticated by the DBaaS platform. Authentication of the user by the scheduler includes decrypting a cookie stored on the scheduler using the user's private key. Wherein, authenticating the user by the scheduler also includes changing the user's login credentials and refreshing a cookie stored on the scheduler, and Among them, refreshing cookies include: Send the user the public key from the scheduler; The user verifies the public key. Send the user's login credentials to the scheduler; The asymmetric encryption algorithm is determined by the scheduler; generating, by the user, encrypted login credentials using an asymmetric encryption algorithm determined by the scheduler; sending the encrypted login credentials from the user to the scheduler; and The encrypted credentials are stored in a cookie by the dispatcher.
2. The method according to claim 1, in, Determining that the user has permissions for the original service request includes determining that the user's predefined permissions include the requested permissions for the service request.
3. The method according to claim 1 further comprising mapping users to predefined roles, in, The predefined roles include combinations of permissions for accessing the DBaaS platform.
4. The method according to claim 3 further comprises mapping predefined public users to predefined roles, in, Public users have encrypted login credentials that have been pre-authenticated to access the DBaaS platform.
5. The method according to claim 4, in, Creating the modified service request includes replacing the user's login credentials with the public user's encrypted login credentials in the service request.
6. The method according to claim 1, further comprising logging the following: service requests, results of user authentication, and predefined roles corresponding to user permissions.
7. A system, include: Memory; one or more hardware processors coupled to the memory; as well as One or more computer-readable storage media storing instructions that, when loaded into memory, cause the one or more hardware processors to perform operations comprising: The scheduler authenticates the user's login credentials, wherein the login credentials are included in the user's original service request to the database service; The scheduler determines that the user has authority to the original service request; creating, by the scheduler, a modified service request from the original service request based on predefined roles corresponding to the user's permissions; and The scheduler forwards the modification service request to the DBaaS platform; and assigning an instance of a database service to a user in response to a modified service request, The login credentials of the authenticated user include the user authenticated by the scheduler and the scheduler authenticated by the DBaaS platform. Authentication of the user by the scheduler includes decrypting a cookie stored on the scheduler using the user's private key. Wherein, authenticating the user by the scheduler also includes changing the user's login credentials and refreshing a cookie stored on the scheduler, and Among them, refreshing cookies include: Send the user the public key from the scheduler; The user verifies the public key. Send the user's login credentials to the scheduler; The asymmetric encryption algorithm is determined by the scheduler; generating, by the user, encrypted login credentials using an asymmetric encryption algorithm determined by the scheduler; sending the encrypted login credentials from the user to the scheduler; and The encrypted credentials are stored in a cookie by the dispatcher.
8. The system according to claim 7, in, Determining that the user has permissions for the original service request includes determining that the user's predefined permissions include the requested permissions for the service request.
9. The system according to claim 7, in, The operations also include mapping the user to a predefined role, wherein the predefined role includes a combination of permissions for accessing the DBaaS platform.
10. The system according to claim 7, in, The operations also include mapping a predefined public user to a predefined role, wherein the public user has encrypted login credentials that have been pre-authenticated to access the DBaaS platform.
11. The system according to claim 10, in, Creating the modified service request includes replacing the user's login credentials with the public user's encrypted login credentials in the service request.
12. The system of claim 7, further comprising logging the following: service requests, results of user authentication, and predefined roles corresponding to user permissions.
13. One or more computer-readable media containing program instructions for causing a computer to execute a method, the method include: The scheduler authenticates the user's login credentials, wherein the login credentials are included in the user's original service request to the database service; The scheduler determines that the user has authority to the original service request; Mapping the user to a predefined role, wherein the predefined role includes a combination of permissions for accessing the DBaaS platform; Mapping a predefined public user to a predefined role, wherein the public user has encrypted login credentials that have been pre-authenticated to access the DBaaS platform; creating, by the dispatcher, a modified service request by replacing the user's login credentials with the public user's encrypted login credentials in the service request; The scheduler forwards the modified service request to the DBaaS platform; and assigning an instance of a database service to a user in response to a modified service request, The login credentials of the authenticated user include the user authenticated by the scheduler and the scheduler authenticated by the DBaaS platform. Authentication of the user by the scheduler includes decrypting a cookie stored on the scheduler using the user's private key. Wherein, authenticating the user by the scheduler also includes changing the user's login credentials and refreshing a cookie stored on the scheduler, and Among them, refreshing cookies include: Send the user the public key from the scheduler; The user verifies the public key. Send the user's login credentials to the scheduler; The asymmetric encryption algorithm is determined by the scheduler; generating, by the user, encrypted login credentials using an asymmetric encryption algorithm determined by the scheduler; sending the encrypted login credentials from the user to the scheduler; and The encrypted credentials are stored in a cookie by the dispatcher.
