A cloud platform management system and authentication method for multiple clusters and multiple users

Through the cloud platform management system that combines Keystone and Casbin components, RBAC and ABAC authentication in a multi-cluster and multi-user environment are realized, solving the problem that existing technology cannot support RBAC and ABAC authentication at the same time, and providing a unified authentication service. and data synchronization capabilities to meet the permission control needs of complex businesses.

CN118300900BActive Publication Date: 2024-09-10ZHEJIANG 99CLOUD INFORMATION SERVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410720712.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-05
Publication Date
2024-09-10
Estimated Expiration
2044-06-05

AI Technical Summary

Technical Problem

The existing IaaS cloud platform cannot support both role-based access control RBAC and attribute-based access control ABAC authentication in a multi-tenant environment, and cannot provide unified authentication services for multiple heterogeneous cloud platforms, making it difficult to meet the needs of complex businesses. Access control requirements.

Method used

Design a multi-cluster multi-user cloud platform management system that combines Keystone components and Casbin components to provide role-based access control RBAC and attribute-based access control ABAC authentication capabilities, and achieve information data synchronization through IAM services to ensure cloud Unified authentication and authentication between platforms.

Benefits of technology

It realizes the permission control requirements for different businesses and services, meets the authentication requirements in simple and complex scenarios, provides unified authentication and authentication services for multiple clusters, and ensures data consistency between cloud platforms and normal authentication services. run.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118300900B
    Figure CN118300900B
Patent Text Reader

Abstract

The embodiments of this specification disclose a cloud platform management system and authentication method for multiple clusters and multiple users. The system of the embodiments of this specification includes at least one cloud platform, and each cloud platform can deploy different types of clusters; each cloud platform is configured with an IAM service, and the IAM service has an API interface for user access; the IAM service includes a Keystone component for supporting RBAC authentication and a Casbin component for supporting ABAC authentication; the Casbin component is integrated into the Keystone component, so that each cloud platform first performs RBAC authentication on the received API access request. If the authentication is successful, the authentication ends and returns the access result to the user; if the authentication fails, ABAC authentication is performed. The method of the embodiments of this specification is executed by any cloud platform in the system, and RBAC authentication and ABAC authentication are performed in sequence.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] One or more embodiments of the present specification relate to the field of data processing technology, and in particular, to a cloud platform management system and an authentication method for multiple clusters and multiple users. Background Art

[0002] There are various types of existing IaaS (Infrastructure as a Service) cloud platforms, including OpenStack cloud platform, Kubernetes (K8S), etc. Different types of cloud platforms have different authentication systems. For example, the OpenStack cloud platform only supports multi-tenant role-based access control RBAC authentication for a single OpenStack cluster; for another example, Kubernetes supports multi-tenant role-based access control RBAC authentication or attribute-based access control ABAC authentication, and the two authentications cannot be used at the same time. In actual applications, there are often multiple authentication requirements. Therefore, a technical solution that meets multiple authentication requirements is required. Summary of the invention

[0003] One or more embodiments of this specification describe a cloud platform management system and authentication method for multiple clusters and multiple users, which can meet the permission control requirements of different businesses and services, and can use role-based access control (RBAC) authentication for simple businesses or services, and can combine role-based access control (RBAC) and attribute-based access control (ABAC) authentication for complex businesses or services.

[0004] In the first aspect, the embodiments of the present specification provide a cloud platform management system for multiple clusters and multiple users, including at least one cloud platform, each cloud platform can deploy different types of clusters; each cloud platform is configured with an IAM service, and the IAM service has an API interface for user access; the IAM service includes a Keystone component for supporting role-based access control RBAC authentication and a Casbin component for supporting attribute-based access control ABAC authentication; the Casbin component is integrated into the Keystone component, so that each cloud platform first performs role-based access control RBAC authentication on the received API access request. If the role-based access control RBAC authentication is successful, the authentication ends and returns the access result to the user; if the role-based access control RBAC authentication fails, attribute-based access control ABAC authentication is performed.

[0005] In some implementations, the IAM service of each cloud platform is also configured with a synchronization service; when there are two or more cloud platforms, the IAM service of a certain cloud platform acts as the master service, which synchronizes information data to the IAM services of other cloud platforms that act as slave services.

[0006] In some implementations, when the IAM service of a certain cloud platform serves as a master service, the master service synchronizes information data to the IAM services of other cloud platforms serving as slave services, including:

[0007] When the IAM service of a cloud platform receives an API access request, the IAM service of the cloud platform acts as the master service and synchronously distributes the changes brought about by the API access request to the information data to the IAM services of other cloud platforms that act as slave services.

[0008] In some implementations, when the IAM service of a certain cloud platform serves as a master service, the master service synchronizes information data to the IAM services of other cloud platforms serving as slave services, further comprising:

[0009] When the master service distributes the API access request to the slave service and the slave service does not receive the API access request, the slave service periodically obtains the information data of the master service to synchronize the information data.

[0010] In some implementations, the cloud platform may deploy any type of cluster among an OpenStack cluster, a Kubernetes cluster, a cluster integrating OpenStack and Kubernetes, and an OpenStack cluster deployed with Kubernetes.

[0011] In some embodiments, the IAM service has an API interface for user access that is a RESTful API interface.

[0012] In a second aspect, an embodiment of this specification provides an authentication method, which is executed on any cloud platform in the system described in the first aspect; the method includes:

[0013] Receive API access requests sent by users;

[0014] The Keystone component integrated with the Casbin component is used to perform role-based access control RBAC authentication on API access requests; when the role-based access control RBAC authentication is successful, the access result is returned to the user; when the role-based access control RBAC authentication fails, the Keystone component integrated with the Casbin component is used to perform attribute-based access control ABAC authentication on API access requests; when the attribute-based access control ABAC authentication is successful, the access result is returned to the user, otherwise the authentication failure is returned to the user.

[0015] In some implementations, the use of the Keystone component integrated with the Casbin component to perform role-based access control (RBAC) authentication on the API access request includes:

[0016] Parse the API access request to obtain the user's token data and operation information; wherein the operation information includes the operation type and request information;

[0017] Based on the operation type of the operation information, an RBAC authentication rule corresponding to the operation type is obtained from the RBAC authentication rule table; wherein the RBAC authentication rule table stores a plurality of RBAC authentication rules, each RBAC authentication rule including an operation role and an operation type;

[0018] Parse the user's token data to obtain user information, role information, and project information;

[0019] The user's role information is matched with the operation role in the obtained RBAC authentication rules. If they match, the role-based access control RBAC authentication succeeds, otherwise, the authentication fails.

[0020] In some implementations, the use of the Keystone component integrated with the Casbin component to perform attribute-based access control ABAC authentication on the API access request includes:

[0021] Based on the operation type of the operation information, an ABAC authentication rule corresponding to the operation type is obtained from an ABAC authentication rule table; wherein the ABAC authentication rule table stores a plurality of ABAC authentication rules, each ABAC authentication rule includes an operation type and an operation object; the request information and the operation object both include a service name, an access area ID, and access resource information;

[0022] The request information of the operation information is matched with the operation object in the obtained ABAC authentication rule. If they match, the attribute-based access control ABAC authentication is successful and the access result is returned to the user. Otherwise, the authentication failure is returned to the user.

[0023] In some embodiments, the method further includes: before receiving an API request for authentication, each cloud platform configures an RBAC authentication rule table and an ABAC authentication rule table; the RBAC authentication rule table is configured in a file form, and the ABAC authentication rule table is configured in a database form.

[0024] The beneficial effects brought by the technical solutions provided by some embodiments of this specification include at least:

[0025] In one or more embodiments of the present specification, the system of the embodiments of the present specification includes at least one cloud platform that can deploy different types of clusters. By deploying an IAM service that integrates the Keystone component of the Casbin component on the cloud platform, role-based access control RBAC authentication and attribute-based access control ABAC authentication can be simultaneously implemented, which can not only meet the role-based access control RBAC authentication in simple business or service scenarios, but also meet the role-based access control RBAC authentication and attribute-based access control ABAC authentication in complex business or service scenarios; further, the IAM service is also configured with synchronization capabilities, enabling it to provide unified authentication and authorization services for multiple clusters in the cloud platform. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] In order to more clearly illustrate the technical solutions in the embodiments of this specification, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0027] Figure 1 An example system block diagram of a multi-cluster and multi-user cloud platform management system provided in an embodiment of this specification;

[0028] Figure 2 A flowchart of an authentication method provided in an embodiment of this specification. DETAILED DESCRIPTION

[0029] The technical solutions in the embodiments of this specification will be described clearly and completely below in conjunction with the drawings in the embodiments of this specification.

[0030] The terms "first", "second", "third", etc. in the description and claims of this specification and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.

[0031] The existing OpenStack cloud platform (a mainstream open source virtualization scheduling cloud platform) only supports multi-user role-based access control (RBAC) authentication for a single OpenStack cluster. The Kubernetes cloud platform (a mainstream open source container cloud scheduling platform) supports multi-user role-based access control (RBAC) or attribute-based access control (ABAC) authentication, but cannot support both at the same time, nor can it share the same authentication service for multiple heterogeneous cloud platforms. In actual production environments, we often need to unify the authentication management of multiple self-built IaaS (Infrastructure as a Service) clouds, container clouds, and other public / private cloud platforms. In the management and operation process, we need to use both role-based access control (RBAC) authentication and role-based access control (ABAC) authentication.

[0032] Role-based access control (RBAC) authentication is a commonly used permission control method that focuses on the roles of users in an organization or system and the permissions these roles have. This method is suitable for scenarios where the organizational structure is clear and the roles and responsibilities are relatively fixed. For example, in an enterprise's internal system, employees are assigned different roles based on their positions or departments. Each role has specific permissions and can access or operate specific resources.

[0033] Permission-based access control ABAC authentication is a more flexible and fine-grained permission control method. It determines the access control policy based on the attributes of users, resources, and environment. This method is suitable for scenarios that need to handle a large number of users and resources, and the permission requirements are complex and changeable. For example, in a cloud computing environment, users and resources may have multiple attributes, such as geographic location, time, device type, etc. Permission-based access control ABAC authentication can dynamically formulate and execute access control policies based on these attributes.

[0034] Therefore, different businesses and services need to choose appropriate authentication methods according to their characteristics and needs. For example, some simple businesses or services may only need to use role-based access control (RBAC) authentication, while some complex businesses or services may need to use a combination of role-based access control (RBAC) authentication and attribute-based access control (ABAC) authentication to meet their more complex and sophisticated permission control needs.

[0035] To this end, the embodiments of this specification propose a cloud platform management system for multiple clusters and multiple users, in which each cloud platform has both role-based access control RBAC authentication and attribute-based access control ABAC authentication capabilities to support the authentication requirements of complex cloud platforms.

[0036] The system of the embodiments of this specification includes at least one cloud platform, and each cloud platform can deploy different types of clusters, such as an OpenStack cluster, a Kubernetes cluster, a cluster integrating OpenStack and Kubernetes, an OpenStack cluster deployed with Kubernetes, etc.

[0037] When there is a cloud platform, the cloud platform may deploy one or two or more identical clusters, or may deploy one or two or more clusters of different types.

[0038] When there are two or more cloud platforms, each cloud platform may deploy one or two or more identical clusters, or may deploy one or two or more clusters of different types.

[0039] by Figure 1 For example, Figure 1 There are four cloud platforms in the region, located in region-1, region-2, region-3, and region-4. The cloud platform in region-1 and the cloud platform in region-2 each have one cluster deployed, namely, OpenStack-1 cluster and OpenStack-2 cluster. The cloud platform in region-3 and the cloud platform in region-4 each have two clusters deployed, namely, KubeClipper cluster and Kubernetes-3 cluster, and KubeClipper cluster and Kubernetes-4 cluster. Among them, the KubeClipper cluster is a cluster of the open source Kubernetes cloud platform for AI applications.

[0040] Each cloud platform is configured with IAM (Identity and Access Management) services.

[0041] The IAM service includes a Keystone component and a Casbin component. The Keystone component is used to provide unified authentication, which can provide a complete role-based access control RBAC authentication service. The Casbin component is an authorization library that supports access control models such as attribute-based access control ABAC, and the Casbin component can support attribute-based access control ABAC authentication services.

[0042] The Casbin component is integrated into the Keystone component. Specifically, the Python development kit of Casbin is introduced to integrate the two. The integrated IAM service can simultaneously support role-based access control RBAC authentication and attribute-based access control ABAC authentication. In other words, the IAM service of the Keystone component natively supports role-based access control RBAC authentication. On the basis of respecting role-based access control RBAC authentication, the attribute-based access control ABAC authentication of the Casbin component is added.

[0043] by Figure 1 For example, each region has its own Keystone (IAM) component to provide role-based access control (RBAC) and attribute-based access control (ABAC) authentication for services within its cluster.

[0044] The IAM service has an API interface for user access. The API interface is an application programming interface, which is a set of rules and protocols that define how different software components communicate and interact with each other. The API interface can be a RESTful API interface, which uses standard HTTP request methods (such as GET, POST, PUT, DELETE) to access and operate resources, and usually uses JSON or XML format to transmit data.

[0045] The IAM service of each cloud platform is also configured with a synchronization service; when there are two or more cloud platforms, the IAM service of a certain cloud platform acts as the master service, and the master service synchronizes information data to the IAM services of other cloud platforms that act as slave services.

[0046] by Figure 1 For example, Figure 1 There are four cloud platforms. The IAM service of the cloud platform in region-1 is the IAM master service, and the IAM services of the cloud platforms in regions-2, region-3, and region-4 are IAM slave services. The IAM master service in region-1 uses the IAM synchronization service to synchronize information data to the IAM slave services in regions-2, region-3, and region-4.

[0047] Specifically, when the IAM service of a certain cloud platform serves as the master service, the master service synchronizes information data to the IAM services of other cloud platforms serving as slave services, including:

[0048] When the IAM service of a cloud platform receives an API access request, the IAM service of the cloud platform acts as the master service and synchronously distributes the changes brought about by the API access request to the information data to the IAM services of other cloud platforms that act as slave services.

[0049] When the master service receives an API access request for create, update, or delete operations, the synchronization service will distribute the request to the slave service at the same time to perform the corresponding operation. This can maintain data consistency between the master and slave services.

[0050] In addition, when the IAM service of a certain cloud platform is used as the master service, the master service synchronizes information data to the IAM services of other cloud platforms that are used as slave services, and further includes:

[0051] When the master service distributes the API access request to the slave service and the slave service does not receive the API access request, the slave service periodically obtains the information data of the master service to synchronize the information data.

[0052] Assuming that during this process, the slave service unexpectedly fails to receive the API access request (for example, the network is interrupted, the service is abnormal and the service is unavailable), the slave service will regularly obtain information data from the master service for synchronization. For example, differential synchronization is used. The slave service regularly obtains information data from the master service, and compares it with the current information data of the slave service, obtains information data that the slave service does not currently have, and then updates the corresponding data. In addition, even if the cloud platform corresponding to the slave service is disconnected from the master service network, the slave service can ensure that the authentication service is normal under the synchronization service.

[0053] The system of the embodiment of the present specification also includes a service gateway, which is used to obtain the user's operation requirements, convert the user's operation requirements into API access requests through the API interface and send them to a certain cloud platform.

[0054] The cloud platform first performs role-based access control (RBAC) authentication on the received API access request. If the role-based access control (RBAC) authentication succeeds, the authentication ends and the access result is returned to the user. If the role-based access control (RBAC) authentication fails, attribute-based access control (ABAC) authentication is performed.

[0055] like Figure 2 The embodiment of this specification also provides an authentication method, which is executed by any cloud platform in the above system. The method includes:

[0056] Step 102, receiving an API access request sent by a user;

[0057] Step 104, use the Keystone component integrated with the Casbin component to perform role-based access control RBAC authentication on the API access request; when the role-based access control RBAC authentication is successful, return the access result to the user; when the role-based access control RBAC authentication fails, use the Keystone component integrated with the Casbin component to perform attribute-based access control ABAC authentication on the API access request, when the attribute-based access control ABAC authentication is successful, return the access result to the user, otherwise return the authentication failure to the user.

[0058] The method of the embodiment of this specification can use the Keystone component integrated with the Casbin component to perform only role-based access control RBAC authentication on API access requests, or, after the role-based access control RBAC authentication fails, use attribute-based access control ABAC authentication. This can meet different authentication requirements.

[0059] Next, each step will be described in detail.

[0060] In step 102, the API access request includes the user's token data and operation information.

[0061] Before being put into use, each cloud platform will have several default roles, such as admin, system_admin, system_reader, project_admin, project_member, project_reader, etc. You can also customize new roles. The platform administrator can bind roles to different users of the cloud platform (including the user himself and tenants), so that different users have different roles.

[0062] After the user logs in, the token data of the corresponding user (i.e. token data) will be returned, and the token data includes user information, role information, project information, etc.

[0063] The operation information includes the operation type and request information. The operation type may include operations such as deletion, query, creation, and update of different service contents. For example, the operation type may be identified by "identity:delete_user" to perform a deletion operation on an authentication service. The request information includes the service name, access area ID, and access resource information. The request information may specify which service is accessed on which resource on which cloud platform.

[0064] In step 104, role-based access control RBAC authentication and attribute-based access control ABAC authentication are performed in sequence. When the role-based access control RBAC authentication is successful, there is no need to perform attribute-based access control ABAC authentication. When the role-based access control RBAC authentication fails, it is necessary to perform attribute-based access control ABAC authentication again.

[0065] The Keystone component integrated with the Casbin component is used to perform role-based access control (RBAC) authentication on the API access request, including:

[0066] Step A11, parsing the API access request to obtain the user's token data and operation information;

[0067] Step A13, based on the operation type of the operation information, obtaining the RBAC authentication rule corresponding to the operation type from the RBAC authentication rule table;

[0068] The RBAC authentication rule table stores multiple RBAC authentication rules, each of which contains an operation role and an operation type. For example, the rule "identity:delete_user": "role:admin". "identity:delete_user" is the operation type, and "role:admin" is the operation role.

[0069] Step A15, parsing the user's token data to obtain user information, role information, and project information;

[0070] Step A17, matching the user's role information with the operation role in the obtained RBAC authentication rule, if they match, the role-based access control RBAC authentication succeeds, otherwise, the authentication fails.

[0071] Taking the delete operation of the authentication service as an example, the operation type "identity:delete_user" is first used to match a RBAC authentication rule in the RBAC authentication rule table. After that, the role is compared to determine whether it is admin to determine whether the subsequent logic of this API is allowed to execute.

[0072] During the matching process, when a rule in the RBAC authentication rule table can be matched, there is no need to match other rules in the RBAC authentication rule table. For example, the operation type "identity:delete_user" is first used to match multiple RBAC authentication rules in the RBAC authentication rule table, and each RBAC authentication rule corresponds to a different role. When the operation type and operation role of an RBAC authentication rule are successfully matched, there is no need to match other rules one by one.

[0073] The method of using the Keystone component integrated with the Casbin component to perform attribute-based access control ABAC authentication on the API access request includes:

[0074] Step B11, based on the operation type of the operation information, obtaining an ABAC authentication rule corresponding to the operation type from the ABAC authentication rule table;

[0075] The ABAC authentication rule table stores multiple ABAC authentication rules, and each ABAC authentication rule includes an operation type and an operation object.

[0076] Each ABAC authentication rule also includes a rule name, a rule description, and a rule effect (allow or deny execution). The operation type is identified by "service_type", for example, if "service_type" is "identity", the operation type is an authentication service.

[0077] The request information and the operation object both include a service name, an access area ID, and access resource information.

[0078] Step B13, matching the request information of the operation information with the operation object in the obtained ABAC authentication rule, if they match, the attribute-based access control ABAC authentication is successful and the access result is returned to the user, otherwise the authentication failure is returned to the user.

[0079] Before the method is put into use, the platform administrator or user administrator can bind corresponding ABAC authentication rules to different users of the cloud platform for different resource types or specific resources. After the user logs in, the corresponding token data will be returned, including user, project, role and other information.

[0080] When performing step B13, if the request information and the service name, access area ID, and access resource information in the operation object all match, it is considered that the authentication is successful, otherwise, the authentication fails.

[0081] Specifically, the matching judgment is performed layer by layer. For example, {service_type}:{service_name}:{region_id}:{resource_type} are matched layer by layer, that is, the operation type, service name, access region ID, and access resource information are matched layer by layer. If all of them are matched successfully, then this resource type has access rights in this region; otherwise, this resource type has no access rights in this region.

[0082] If the resource information to be accessed is not the resource type {resource_type}, but the resource ID {resource_id}, the match will be successful only when the resource_id is exactly the same. This resource ID has access rights in this area, and other resource IDs cannot access it even if they belong to the same resource type. Otherwise, this resource ID does not have access rights in this area.

[0083] During the matching process, when a rule in the ABAC authentication rule table can be matched, there is no need to match other rules in the ABAC authentication rule table.

[0084] Each API access request will go through role-based access control (RBAC) authentication and attribute-based access control (ABAC) authentication in turn. If role-based access control (RBAC) authentication succeeds, attribute-based access control (ABAC) authentication is not required.

[0085] The above authentication process uses whitelist rules and follows the short-circuit principle. For example, when the role matched is the administrator, no attribute-based access control ABAC authentication is required, and all resources in the area can be accessed.

[0086] The method of the embodiment of this specification also includes: before receiving an API request for authentication, each cloud platform configures an RBAC authentication rule table and an ABAC authentication rule table; the RBAC authentication rule table is configured in the form of a file, and the ABAC authentication rule table is configured in the form of a database.

[0087] The RBAC authentication rule table is configured by pre-defining a policy.yaml static file. Usually, this file is defined by each service that constitutes the cloud platform.

[0088] The ABAC authentication rule table is formed by inserting system rule information into the abac_policies table of the keystone database during the deployment phase of the cloud platform. The platform administrator or user administrator can bind corresponding ABAC authentication rules to different users of the cloud platform, for different resource classes or specific resources.

[0089] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of this specification is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted through the computer-readable storage medium. The computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (Digital Subscriber Line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a digital versatile disc (DVD)), or a semiconductor medium (eg, a solid state drive (SSD)).

[0090] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other media that can store program codes. In the absence of conflict, the technical features in this embodiment and the implementation scheme can be combined arbitrarily.

[0091] The embodiments described above are merely preferred embodiments of this specification and are not intended to limit the scope of this specification. Without departing from the design spirit of this specification, various modifications and improvements made to the technical solutions of this specification by ordinary technicians in this field should fall within the scope of protection determined by the claims of this specification.

Claims

1. A cloud platform management system for multiple clusters and multiple users, comprising at least one cloud platform, It is characterized in that Each cloud platform can deploy different types of clusters; each cloud platform is configured with an IAM service, which has an API interface for user access; the IAM service includes a Keystone component for supporting role-based access control RBAC authentication and a Casbin component for supporting attribute-based access control ABAC authentication; the Casbin component is integrated into the Keystone component, so that each cloud platform first performs role-based access control RBAC authentication on the received API access request. If the role-based access control RBAC authentication is successful, the authentication ends and returns the access result to the user; if the role-based access control RBAC authentication fails, attribute-based access control ABAC authentication is performed; the IAM service of each cloud platform is also configured with a synchronization service; when there are two or more cloud platforms, the IAM service of a certain cloud platform serves as the master service, and the master service synchronizes information data to the IAM services of other cloud platforms that serve as slave services.

2. The system according to claim 1, It is characterized in that When the IAM service of a certain cloud platform is used as the master service, the master service synchronizes information data to the IAM services of other cloud platforms that are used as slave services, including: When the IAM service of a cloud platform receives an API access request, the IAM service of the cloud platform acts as the master service and synchronously distributes the changes brought about by the API access request to the information data to the IAM services of other cloud platforms that act as slave services.

3. The system according to claim 2, It is characterized in that When the IAM service of a certain cloud platform is used as the master service, the master service synchronizes information data to the IAM services of other cloud platforms that are used as slave services, further comprising: When the master service distributes the API access request to the slave service and the slave service does not receive the API access request, the slave service periodically obtains the information data of the master service to synchronize the information data.

4. The system according to claim 1, It is characterized in that The cloud platform can deploy any type of cluster among an OpenStack cluster, a Kubernetes cluster, a cluster integrating OpenStack and Kubernetes, and an OpenStack cluster deployed with Kubernetes.

5. The system according to claim 1, It is characterized in that The IAM service has an API interface for user access, which is a RESTful API interface.

6. An authentication method, It is characterized in that The method is executed on any one of the cloud platforms in the multi-cluster multi-user cloud platform management system according to any one of claims 1 to 5; the method comprises: Receive API access requests sent by users; The Keystone component integrated with the Casbin component is used to perform role-based access control RBAC authentication on API access requests; when the role-based access control RBAC authentication is successful, the access result is returned to the user; when the role-based access control RBAC authentication fails, the Keystone component integrated with the Casbin component is used to perform attribute-based access control ABAC authentication on API access requests; when the attribute-based access control ABAC authentication is successful, the access result is returned to the user, otherwise the authentication failure is returned to the user.

7. The method according to claim 6, It is characterized in that The Keystone component integrated with the Casbin component is used to perform role-based access control (RBAC) authentication on the API access request, including: Parse the API access request to obtain the user's token data and operation information; wherein the operation information includes the operation type and request information; Based on the operation type of the operation information, an RBAC authentication rule corresponding to the operation type is obtained from the RBAC authentication rule table; wherein the RBAC authentication rule table stores a plurality of RBAC authentication rules, each RBAC authentication rule including an operation role and an operation type; Parse the user's token data to obtain user information, role information, and project information; The user's role information is matched with the operation role in the obtained RBAC authentication rules. If they match, the role-based access control RBAC authentication succeeds, otherwise, the authentication fails.

8. The method according to claim 7, It is characterized in that The method of using the Keystone component integrated with the Casbin component to perform attribute-based access control ABAC authentication on the API access request includes: Based on the operation type of the operation information, an ABAC authentication rule corresponding to the operation type is obtained from an ABAC authentication rule table; wherein the ABAC authentication rule table stores a plurality of ABAC authentication rules, each ABAC authentication rule includes an operation type and an operation object; the request information and the operation object both include a service name, an access area ID, and access resource information; The request information of the operation information is matched with the operation object in the obtained ABAC authentication rule. If they match, the attribute-based access control ABAC authentication is successful and the access result is returned to the user. Otherwise, the authentication failure is returned to the user.

9. The method according to claim 6, It is characterized in that Also includes: Before receiving API requests for authentication, each cloud platform configures the RBAC authentication rule table and the ABAC authentication rule table; The RBAC authentication rule table is configured in the form of a file, and the ABAC authentication rule table is configured in the form of a database.