Object storage access control method and device, storage medium and electronic device

By obtaining the intranet identification information and access control rules of the cloud host, fine-grained access control is performed on the object storage resources, which solves the security problem when the cloud host accesses the object storage and improves the flexibility and security of access control.

CN114374524BActive Publication Date: 2024-09-13BEIJING KINGSOFT CLOUD NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011099149.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-10-14
Publication Date
2024-09-13
Estimated Expiration
2040-10-14

AI Technical Summary

Technical Problem

The way cloud hosts access object storage through domain names results in excessive permission control granularity and poor object storage security.

Method used

By receiving the access request of the target cloud host, obtaining its intranet identification information, and performing access control based on the intranet identification information and access control rules, it achieves fine-grained access control of object storage resources.

Benefits of technology

It improves the flexibility of access control and the security of object storage, and solves the security problem caused by excessive permission control granularity when cloud hosts access object storage through domain names.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114374524B
    Figure CN114374524B
Patent Text Reader

Abstract

The present application provides an object storage access control method and device, storage medium and electronic device, wherein the method comprises: receiving a target access request from a target cloud host, wherein the target access request is used to request access to a target application resource of a target application in a target object storage; obtaining target intranet identification information corresponding to the target cloud host, wherein the target intranet identification information is identification information of the target cloud host in the virtual private cloud to which it belongs; and performing access control on the target application resource according to the target intranet identification information. Through the present application, the problem of poor object storage security caused by excessive permission control granularity in the method of cloud hosts accessing object storage through domain names in the related art is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of the Internet, and in particular to an object storage access control method and device, a storage medium, and an electronic device. Background Art

[0002] Traditional applications generally run on local servers. With the emergence of cloud computing services, it is possible to build and run applications directly in the cloud. Applications built and run in the cloud can be called cloud-native applications, where the cloud refers to cloud computing services. For cloud-native applications, when the application is first designed, it is necessary to consider that the application will run in a cloud environment in the future. Cloud computing service models can include but are not limited to: IaaS, PaaS, and SaaS. Cloud applications can make full use of the advantages of cloud resources, such as the elasticity and distributed architecture of various cloud services (cloud hosts and cloud storage).

[0003] Cloud hosts, elastic IPs, and object storage in cloud storage are the basis for computing, networking, and storage resources in network applications in a VPC environment. In a VPC environment, users can independently plan their networks, perform security control, and provide external services by mounting public network EIPs (elastic IPs).

[0004] Object storage is often used as a storage container for backup files such as various databases and hard disk snapshots of cloud native applications due to its high availability and low cost. It can directly store unstructured data and realize cross-host file sharing. However, cloud databases and other applications are PaaS applications, and object storage and cloud hosts are both IaaS applications. In terms of implementation, cloud vendors usually need to make reasonable network planning to ensure that the two can communicate with each other through the intranet.

[0005] In related technologies, cloud hosts in a VPC can access object storage through domain names, and permission control is based on the granularity of the entire VPC, which poses certain security risks. Summary of the invention

[0006] The present application provides an object storage access control method and device, a storage medium and an electronic device, so as to at least solve the problem of poor object storage security caused by excessive permission control granularity in the way that a cloud host accesses object storage through a domain name in the related art.

[0007] According to one aspect of an embodiment of the present application, there is provided an access control method for object storage, comprising: receiving a target access request from a target cloud host, wherein the target access request is used to request access to a target application resource of a target application in a target object storage; obtaining target intranet identification information corresponding to the target cloud host, wherein the target intranet identification information is identification information of the target cloud host in a virtual private cloud to which it belongs; and performing access control on the target application resource based on the target intranet identification information.

[0008] Optionally, after receiving the target access request from the target cloud host, the method further includes: determining a target API of the target application corresponding to the target access request; and determining a target operation requested by the target access request based on the target API, wherein the target operation is a resource operation performed on the target application resources.

[0009] Optionally, performing access control on the target application resources based on the target intranet identification information includes: obtaining access control rules corresponding to the target object storage, wherein the access control rules are used to indicate the access rights of the intranet identification information of different cloud hosts to the application resources of the target application in the target object storage; and when the target access control rules corresponding to the target object storage are obtained, performing access control on the target application resources based on the target intranet identification information and the target access control rules.

[0010] Optionally, performing access control on the target application resource according to the target intranet identification information and the target access control rule includes: when the target access control rule includes a first access control rule, determining a first access control result of the target application resource according to the first access control rule and a target subnet ID, wherein the first access control rule is used to indicate the access rights of subnet IDs of different cloud hosts to the target application resource or target storage space, the target subnet ID is the subnet ID of the target cloud host in the virtual private cloud, and the target intranet identification information includes the target subnet ID; when the target access control rule includes a second access control rule, determining a second access control result of the target application resource according to the second access control rule and a target intranet Internet Protocol IP address, wherein the second access control rule is used to indicate the access rights of intranet IP addresses of different cloud hosts to the target application resource or target storage space, the target intranet IP address is the intranet IP address of the target cloud host in the virtual private cloud, and the target intranet identification information includes the target intranet IP address; wherein the target storage space is the storage space where the target application resource is located in the target object storage.

[0011] Optionally, performing access control on the target application resources based on the target intranet identification information and the target access control rules also includes: when the first access control result and the second access control result are inconsistent, sending a first access rejection message to the target cloud host, wherein the first access rejection message is used to indicate that access to the target application resources is rejected.

[0012] Optionally, after obtaining the access control rules corresponding to the target object storage, the method further includes: if the access control rules corresponding to the target object storage are not obtained, determining an access control list corresponding to the target object storage, wherein the access control list is used to filter access requests to the target object storage; if it is determined according to the access control list that the target access request is passed, determining to allow the target cloud host to access the target application resources; if it is determined according to the access control list that the target access request is not passed, determining to deny the target cloud host access to the target application resources.

[0013] Optionally, after receiving the target access request of the target cloud host, the method further includes: obtaining a target object identifier of a target object corresponding to the target cloud host; and when it is determined according to the target object identifier that the target object is not authorized to access the target application resource, sending a second access rejection message to the target cloud host, wherein the second access rejection message is used to indicate a rejection of access to the target application resource.

[0014] According to another aspect of an embodiment of the present application, an access control device for object storage is also provided, including: a receiving unit, used to receive a target access request from a target cloud host, wherein the target access request is used to request access to a target application resource of a target application in a target object storage; a first acquisition unit, used to acquire target intranet identification information corresponding to the target cloud host, wherein the target intranet identification information is identification information of the target cloud host in the virtual private cloud to which it belongs; and a control unit, used to perform access control on the target application resource according to the target intranet identification information.

[0015] Optionally, the device also includes: a first determination unit, used to determine the target API of the target application corresponding to the target access request after receiving the target access request of the target cloud host; a second determination unit, used to determine the target operation requested by the target access request based on the target API, and the target operation is a resource operation performed on the target application resources.

[0016] Optionally, the control unit includes: a first acquisition module, used to acquire access control rules corresponding to the target object storage, wherein the access control rules are used to indicate the access rights of intranet identification information of different cloud hosts to application resources of the target application in the target object storage; and a control module, used to perform access control on the target application resources according to the target intranet identification information and the target access control rules when the target access control rules corresponding to the target object storage are acquired.

[0017] Optionally, the control module includes: a first determination submodule, used to determine a first access control result of the target application resource according to the first access control rule and a target subnet ID when the target access control rule includes a first access control rule, wherein the first access control rule is used to indicate the access rights of subnet IDs of different cloud hosts to the target application resource or target storage space, the target subnet ID is the subnet ID of the target cloud host in the virtual private cloud, and the target intranet identification information includes the target subnet ID; a second determination submodule, used to determine a second access control result of the target application resource according to the second access control rule and a target intranet Internet Protocol IP address when the target access control rule includes a second access control rule, wherein the second access control rule is used to indicate the access rights of intranet IP addresses of different cloud hosts to the target application resource or target storage space, the target intranet IP address is the intranet IP address of the target cloud host in the virtual private cloud, and the target intranet identification information includes the target intranet IP address; wherein the target storage space is the storage space where the target application resource is located in the target object storage.

[0018] Optionally, the control module also includes: a sending submodule, used to send a first access rejection message to the target cloud host when the first access control result and the second access control result are inconsistent, wherein the first access rejection message is used to indicate the rejection of access to the target application resource.

[0019] Optionally, the device also includes: a third determination unit, used to determine an access control list corresponding to the target object storage after obtaining the access control rules corresponding to the target object storage, if the access control rules corresponding to the target object storage are not obtained, wherein the access control list is used to filter access requests to the target object storage; a fourth determination unit, used to determine whether the target cloud host is allowed to access the target application resources if it is determined according to the access control list that the target access request is passed; and determine whether the target cloud host is denied access to the target application resources if it is determined according to the access control list that the target access request is not passed.

[0020] Optionally, the device also includes: a second acquisition unit, which acquires a target object identifier of a target object corresponding to the target cloud host after receiving the target access request of the target cloud host; and a sending unit, which is used to send a second access rejection message to the target cloud host when it is determined according to the target object identifier that the target object is not authorized to access the target application resource, wherein the second access rejection message is used to indicate a rejection of access to the target application resource.

[0021] According to another aspect of the embodiments of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when run.

[0022] According to another aspect of the embodiments of the present application, an electronic device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0023] In an embodiment of the present application, a method of performing access control based on the intranet identification information of the cloud host in the virtual private cloud is adopted to receive a target access request from the target cloud host, wherein the target access request is used to request access to the target application resources of the target application in the target object storage; obtain the target intranet identification information corresponding to the target cloud host, wherein the target intranet identification information is the identification information of the target cloud host in the virtual private cloud to which it belongs; and perform access control on the target application resources based on the target intranet identification information. Since access control is performed on the resources in the object storage based on the intranet identification information of the host in the virtual private cloud, compared with the access control at the granularity of the entire VPC, the purpose of performing access control on the resources in the object storage at a finer granularity can be achieved, thereby achieving the technical effect of increasing the flexibility of access control and enhancing the security of object storage, thereby solving the problem of poor object storage security caused by excessive granularity of permission control in the method of cloud hosts accessing object storage through domain names in related technologies. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0025] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0026] Figure 1 is a schematic diagram of a hardware environment of an object storage access control method according to an embodiment of the present application;

[0027] Figure 2 It is a flowchart of an optional object storage access control method according to an embodiment of the present application;

[0028] Figure 3 It is a flowchart of another optional object storage access control method according to an embodiment of the present application;

[0029] Figure 4 is a structural block diagram of an optional object storage access control device according to an embodiment of the present application;

[0030] Figure 5 It is a structural block diagram of an optional electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0031] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0032] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0033] First, some nouns or terms that appear in the description of the embodiments of the present application are subject to the following interpretation:

[0034] (1) ACL: Access Control List;

[0035] (2) API: Application Programming Interface;

[0036] (3) http: Hyper Text Transfer Protocol;

[0037] (4) IAAS: Infrastructure-as-a-Service;

[0038] (5) IP: Internet Protocol;

[0039] (6) PaaS: Platform-as-a-Service;

[0040] (7) SaaS: Software-as-a-Service;

[0041] (8) VPC (Virtual Private Cloud)

[0042] Virtual private networks can help build a completely logically isolated network space in the cloud. Through SDN (Software Defined Network), users can flexibly customize networks, IP addresses, routes, security policies, etc. in a customized virtual network. Users can deploy various cloud services in the customized virtual network, including but not limited to: cloud servers, physical machines, load balancing, cloud databases, etc. Users can flexibly access the Internet through elastic IP and NAT, or build a hybrid solution that combines VPC and existing data centers through dedicated lines / VPN and other connection methods to achieve smooth migration to the cloud.

[0043] (9) Basic network

[0044] The basic network is a public network resource pool for all users on the cloud. The intranet IP addresses of cloud servers in this resource pool are uniformly allocated by the cloud.

[0045] (10) Subnet

[0046] A subnet is an address space divided from a virtual private network. Users can associate various cloud services in the subnet. Cloud subnets can be divided into: ordinary subnets, where users can associate cloud servers; terminal subnets, where users can associate RDS, KCS, KMR and other services; and physical machine subnets, where users can associate cloud physical hosts.

[0047] (11) Network segment

[0048] A network segment is an independent network space address block specified by the user. It is used to divide the network as a whole by combining IP and mask. Taking 10.1.0.0 / 16 as an example, the left side of the slash is the IP of the network block, and the right side of the slash is the mask of the network block. By setting the size of the mask, the size of the network block can be adjusted. The number of IPs included in the network block = 2^(32-mask), so the 10.1.0.0 / 16 network block can contain at most: 65536 IP addresses.

[0049] (12) Intranet IP

[0050] Intranet IP cannot access the Internet, but can be used for communication between instances within the VPC.

[0051] (13) Public IP

[0052] The public IP address can access the Internet and can be a globally unique IP address.

[0053] According to one aspect of an embodiment of the present application, a method for controlling access to object storage is provided. Optionally, in this embodiment, the method for controlling access to object storage can be applied to: Figure 1In the hardware environment composed of the terminal 101 and the server 103 (cloud server) shown in FIG. Figure 1 As shown, the server 103 is connected to the terminal 101 through a network, and can be used to provide services (such as game services, application services, etc.) to the terminal or the client installed on the terminal. A database can be set on the server or independently of the server to provide data storage services for the server 103. The above network includes but is not limited to: a wide area network, a metropolitan area network or a local area network, and the terminal 101 is not limited to a PC, a mobile phone, a tablet computer, etc. The object storage access control method of the embodiment of the present application can be executed by the server 103, or it can be executed by the server 103 and the terminal 101. Among them, the terminal 101 executes the object storage access control method of the embodiment of the present application, and it can also be executed by the client installed thereon.

[0054] Take cloud execution as an example. Figure 2 is a flow chart of an optional object storage access control method according to an embodiment of the present application, such as Figure 2 As shown, the process of the method may include the following steps:

[0055] Step S202, receiving a target access request from a target cloud host, wherein the target access request is used to request access to a target application resource of a target application program in a target object storage;

[0056] Step S204, obtaining target intranet identification information corresponding to the target cloud host, wherein the target intranet identification information is identification information of the target cloud host in the virtual private cloud to which it belongs;

[0057] Step S206: performing access control on target application resources according to the target intranet identification information.

[0058] Through the above steps S202 to S206, a target access request of the target cloud host is received, wherein the target access request is used to request access to the target application resources of the target application in the target object storage; the target intranet identification information corresponding to the target cloud host is obtained, wherein the target intranet identification information is the identification information of the target cloud host in the virtual private cloud to which it belongs; access control is performed on the target application resources according to the target intranet identification information, thereby solving the problem of poor object storage security caused by excessive granularity of authority control in the method in related technologies in which the cloud host accesses the object storage through the domain name, thereby improving the flexibility of access control and the security of object storage.

[0059] In the technical solution provided in step S202, a target access request of a target cloud host is received, wherein the target access request is used to request access to a target application resource of a target application program in a target object storage.

[0060] The object storage access control method in this embodiment can be applied to the access control scenario of data resources of cloud native applications in object storage. In this scenario, the cloud host and object storage of the cloud native application can be located in the same VPC or in different VPCs.

[0061] In related technologies, cloud hosts in VPC can access object storage through domain names, and the permission control granularity is based on the granularity of the entire VPC. For example, subnet A in a user's VPC can access storage space A of its object storage, and subnet B in the VPC can still access storage space A.

[0062] The above permission control method has a coarse control granularity and poses certain security risks. It cannot control cloud hosts within the same VPC and cannot meet the control needs in scenarios with high permission control requirements and strict audit requirements for businesses.

[0063] Optionally, in this embodiment, different objects (for example, developers, maintainers, or users of the target application) can log in to the target application using the client interface on their terminal devices. For example, the target object can log in to the target application using an account and password, a mobile phone number and a dynamic password, or third-party authorized login through the client interface on its terminal device. The target application can be a cloud-native application, and the client of the target application can run in the cloud, for example, the target client can run on the target cloud host.

[0064] The target object can trigger the target client running on the target cloud host to send a target access request to the target object storage through the client interface on its terminal device to request access to the target application resources of the target application in the target object storage. For example, request access to the image resources, audio resources, video resources or other types of resources of the target application in the target object storage. The target object storage can receive the target access request sent by the target cloud host. The above target access request can be an http request initiated by the client.

[0065] It should be noted that the target access request may also be sent by the target cloud host triggered by the user in other ways, which is not limited in this embodiment.

[0066] In the technical solution provided in step S204, target intranet identification information corresponding to the target cloud host is obtained, wherein the target intranet identification information is identification information of the target cloud host in the virtual private cloud to which it belongs.

[0067] After receiving the target access request, the target object storage can perform permission authentication on the target cloud host to determine whether the target cloud host has permission to access the target application resources.

[0068] In order to achieve more fine-grained control within the same VPC, for example, host-level control, the object storage bucket restricts different hosts in the same subnet. The target object storage can obtain the identification information of the target cloud host in the VPC to which it belongs, that is, the target intranet identification information.

[0069] The target intranet identification information can identify the target cloud host in the VPC to which it belongs. It can be a unique identifier of the target cloud host (for example, an intranet IP), or an identifier of the cloud host cluster or cloud host group where the target cloud host is located (for example, a subnet ID), or identification information of other cloud hosts in the VPC, which is not limited in this embodiment.

[0070] The http request initiated to the object storage can be received at the front-end gateway or proxy server of the service. The front-end gateway or proxy server can pass the information required for auxiliary permission judgment to the access control implementation module (which can be located in the target object storage) to realize the authentication of permissions.

[0071] The information for assisting in the authority determination may include but is not limited to at least one of the following: source IP, subnet ID, request API, requester identity (e.g., client login account), where the source IP may be a public network IP and / or an intranet IP. The target intranet identification information may include but is not limited to at least one of the following: subnet ID, intranet IP.

[0072] In the technical solution provided in step S206, access control is performed on the target application resources according to the target intranet identification information.

[0073] After obtaining the target intranet identification information, the target object storage can perform access control on the target application resources according to the target intranet identification information, identify the target cloud host's access rights (operation rights) to the target application resources, and determine whether the target cloud host has the right to access the target application resources. The access rights to the target application resources may include but are not limited to: download rights and upload rights.

[0074] Access control of target application resources based on target intranet identification information can be: determining whether the target intranet identification information belongs to the intranet identification information that allows access to the target application resources. If so, determining that the target cloud host has the authority to access the target application resources; otherwise, determining that the target cloud host does not have the authority to access the target application resources.

[0075] If the target cloud host has access to the target application resource, the access operation requested by the target access request may be performed on the target application resource, for example, downloading the target application resource, uploading to the target application resource, etc. This is not limited in this embodiment.

[0076] As an optional embodiment, after receiving the target access request of the target cloud host, the method further includes:

[0077] S11, obtaining a target object identifier of a target object corresponding to a target cloud host;

[0078] S12, when it is determined according to the target object identifier that the target object is not authorized to access the target application resource, a second access rejection message is sent to the target cloud host, wherein the second access rejection message is used to indicate that access to the target application resource is rejected.

[0079] In addition to performing access control on target application resources based on target intranet identification information, access control on target application resources can also be performed in other ways, such as performing access control on target application resources based on public network IP, or performing access control on target application resources based on target object identification, where the target object identification is the object identification of the target object corresponding to the target cloud host.

[0080] Optionally, in this embodiment, the target object storage may obtain a target object identifier of a target object corresponding to the target cloud host, where the target object identifier is used to represent the identity of the requester, for example, a login account.

[0081] According to the target object identifier, it can be determined whether the target object has the permission to access the target object storage or the target application resource. If the target object has the permission to access the target object storage or the target application resource (i.e., is authorized to access the target application resource), it can be determined that the target object is allowed to access the target application resource, perform the operation of accessing the target application resource, or perform other access control operations.

[0082] If the target object does not have permission to access the target object storage or the target application resources (is not authorized to access the target application resources), the target object storage may send a second access rejection message to the target cloud host to indicate that access to the target application resources is rejected.

[0083] When the target cloud host receives the second access rejection message, it can display access rejection indication information on the client interface of the target client, and the client interface can be synchronously displayed on the terminal device of the target object to facilitate the target object to know the second access rejection message.

[0084] Through this embodiment, access control is performed on application resources in the object storage based on the target object identifier, which can filter some illegal requests, improve the efficiency of request response, and enhance the security of the object storage.

[0085] As an optional embodiment, after receiving the target access request of the target cloud host, the method further includes:

[0086] S21, determining a target API of a target application corresponding to a target access request;

[0087] S22, determining a target operation requested by the target access request according to the target API, where the target operation is a resource operation performed on the target application resource.

[0088] For application resources in object storage, different access operations (e.g., download, upload, etc.) may correspond to different APIs. The front-end gateway or proxy server may convert the API of the access request into the corresponding operation.

[0089] After receiving a target access request (for example, an http request), the front-end gateway or proxy server can first determine the target API of the target application corresponding to the target access request, and determine the target operation requested by the target access request based on the target API, that is, the resource operation performed on the target application resources.

[0090] Different access control permissions can be configured for different resource operations. For example, stricter control can be configured for downloading files, and looser control can be configured for uploading files.

[0091] Through this embodiment, by converting the API of the access request into the corresponding operation, the accuracy of access control can be improved and the security of object storage can be guaranteed.

[0092] As an optional embodiment, performing access control on target application resources according to target intranet identification information includes:

[0093] S31, obtaining access control rules corresponding to the target object storage, wherein the access control rules are used to indicate the access rights of the intranet identification information of different cloud hosts to the application resources of the target application in the target object storage;

[0094] S32: When the target access control rule corresponding to the target object storage is obtained, access control is performed on the target application resource according to the target intranet identification information and the target access control rule.

[0095] Users can configure access control rules corresponding to object storage. For example, the access control rules can be access control rules for at least one of object storage, storage buckets, and application resources. Based on the rules set by the user, it can be accurately determined whether access to application resources in the object storage is allowed.

[0096] For the target object storage, the user may configure the access control rules corresponding to the target object storage, or may not configure the access control rules corresponding to the target object storage. The access control rules corresponding to the target object storage can be used to indicate the access rights of the intranet identification information of different cloud hosts to the application resources of the target application in the target object storage. The target object storage can obtain the access control rules corresponding to the target object storage and determine whether there are access control rules for the storage bucket.

[0097] The above access control rules can be described by access control configuration information, and different access control configuration information can be used to describe different access control rules.

[0098] If the target access control rules corresponding to the target object storage are obtained, that is, if there are access control rules for the storage bucket, access control can be performed on the target application resources according to the target intranet identification information and the target access control rules.

[0099] Through this embodiment, by first determining whether there is an access control rule for the bucket to determine the permission control method, the flexibility of the permission control can be improved.

[0100] As an optional embodiment, performing access control on target application resources according to target intranet identification information and target access control rules includes:

[0101] S41, in the case where the target access control rule includes the first access control rule, determining the first access control result of the target application resource according to the first access control rule and the target subnet ID, wherein the first access control rule is used to indicate the access rights of the subnet IDs of different cloud hosts to the target application resource or the target storage space, the target subnet ID is the subnet ID of the target cloud host in the virtual private cloud, and the target intranet identification information includes the target subnet ID;

[0102] S42, in the case where the target access control rule includes a second access control rule, determining a second access control result for the target application resource according to the second access control rule and the target intranet Internet Protocol IP address, wherein the second access control rule is used to indicate the access rights of the intranet IP addresses of different cloud hosts to the target application resource or the target storage space, the target intranet IP address is the intranet IP address of the target cloud host in the virtual private cloud, and the target intranet identification information includes the target intranet IP address;

[0103] The target storage space is the storage space where the target application resources are located in the target object storage.

[0104] The target intranet identification information may include at least one of the following: the subnet ID of the target cloud host in the virtual private cloud (target subnet ID), the intranet IP address of the target cloud host in the virtual private cloud (target intranet IP address). Correspondingly, there may be multiple target access control rules, which may include but are not limited to at least one of the following: a first access control rule for indicating the access rights of different cloud host subnet IDs to target application resources or target storage spaces, a second access control rule for indicating the access rights of different cloud host intranet IP addresses to target application resources or target storage spaces, wherein the target storage space may be the storage space where the target application resources are located in the target object storage, for example, a storage bucket.

[0105] If the target access control rule includes a first access control rule, the target object storage can determine a first access control result of the target application resource based on the first access control rule and the target subnet ID. The first access control result can be: allowing access to the target application resource, or denying access to the target application resource.

[0106] If the target access control rule includes a second access control rule, the target object storage can determine the second access control result of the target application resource based on the second access control rule and the target intranet IP address. The second access control result can be: allowing access to the target application resource, or denying access to the target application resource.

[0107] Optionally, in this embodiment, in the authentication management function of the public cloud-object storage, a subnet setting function can be added, that is, in the access policy of the bucket, the subnet in the VPC to which the cloud host belongs can be restricted. The user obtains the subnet ID information from the basic information of the host configuration, and sets the bucket policy to allow or deny access requests from all hosts in the subnet.

[0108] Optionally, on the basis of subnet granularity, the source IP settings can be added. Object storage provides standard HTTP services based on the http protocol, which can obtain the source IP of the client request. Public cloud objects can be stored in the bucket authentication, which can support the release or rejection policy for the IP.

[0109] In order to achieve the above functions, the cloud computing network can pass the intranet IP and subnet information obtained by the customer on the console interface to the object storage during the forwarding request process. After the customer sets the source IP and subnet policy, the intranet IP and subnet information of the cloud host can be obtained normally, and whether access is allowed can be accurately determined based on the rules used to set it.

[0110] Optionally, in this embodiment, a flexible access rule setting can be adopted, and the rule composition can be as shown in Table 1. Table 1 shows an example of a rule element form, supports release and rejection of source IP and subnet (by configuring subnetID), and supports fine-grained resource settings. In order to meet different access control scenarios, multiple rules can be set.

[0111] Table 1

[0112]

[0113] The fields in Table 1 can form a complete rule, or, in some cases, some elements can use the default configuration. Combined with Table 1, the description of the judgment elements is as follows:

[0114] 1. Fine-grained resource scope settings

[0115] Object storage can support access control for different directories or even individual files. It can support settings for all files (resources), or some file directories, or a single file.

[0116] 2.API type setting

[0117] Object storage operations on different resource dimensions are expressed as specific application programming interfaces, that is, different APIs, also called different operations.

[0118] 3. The result (effect) of the access operation

[0119] There are two settings supported: allow and deny.

[0120] 4. Determine the authorized person

[0121] Users and accounts that are allowed or denied access to resources may have their account identities stolen, for example, the disclosure of secret keys may allow others to access resources under their own name.

[0122] 5. Conditions

[0123] The conditions specified when granting permissions. The access policy will only take effect when the access request meets the specified conditions. The access source supports different condition settings:

[0124] 1) Set the source IP, such as the source IP of the host 178.0.0.1, or the public IP 174.0.1.1. Since the public IP is unique in the entire network, there will be no conversion loss during network communication. However, for hosts within the cloud vendor, if the internal IP architecture is unreasonable, it is easy to be converted during request forwarding. Therefore, the address obtained by the object storage from the received request may be the IP of a proxy in the internal network, resulting in authentication failure. Therefore, when planning the network, cloud vendors need to carry the original internal IP information to the object storage while avoiding too long network forwarding paths, so as to make accurate judgments on access control.

[0125] 2) Set the subnet ID. The subnet ID is unique in the VPC environment. Object Storage will use the source IP and other network information to determine the unique subnet and VPC of the source request IP.

[0126] Allow multiple conditions to exist at the same time. When multiple conditions exist at the same time, the processing logic is a union, that is, both conditions must be met.

[0127] The access control rules are explained below with optional examples.

[0128] Rule Example 1: When the source IP of the access request is 198.0.0.1, account A is allowed to perform listbucket (obtaining a list of files in the bucket), getobject (downloading files), and putobject (uploading files) operations on the examplebucket bucket (example object storage space).

[0129] Rule example 2: When the source subnet ID of the access request is xxxxxx-yyyyyy, account A is allowed to perform the getobject and putobject operations on the examplebucket bucket.

[0130] Rule example 3: When the source subnet ID of the access request is xxxxxx-yyyyyy and the source IP is 198.0.0.1, account B is allowed to perform the getobject operation on the examplebucket bucket.

[0131] Rule Example 1 above can release some requests from cloud hosts with an intranet IP of 198.0.0.1; Rule Example 2 can release some requests from all cloud hosts in the subnet ID of xxxxxx-yyyyyy; Rule Example 3 can effectively restrict a cloud host in a specific subnet. Because the intranet IP may be the same in different VPC environments, adding the restriction of the subnet ID will be more rigorous and less risky.

[0132] Through this embodiment, different access control rules are configured based on different intranet identification information, which can improve the flexibility of access control and improve the security of object storage.

[0133] As an optional embodiment, according to the target intranet identification information and the target access control rule, performing access control on the target application resource further includes:

[0134] S51, when the first access control result and the second access control result are inconsistent, sending a first access rejection message to the target cloud host, wherein the first access rejection message is used to indicate that access to the target application resource is rejected.

[0135] When multiple access control rules conflict, in order to ensure the security of object storage, the effectiveness of the deny rule can be configured to be higher than the effectiveness of the allow rule.

[0136] If the first access control result and the second access control result are inconsistent, one of the access control results is access denial, and the denial is finally performed. The target storage object can send a first access denial message to the target cloud host to indicate that access to the target application resource is denied.

[0137] When the target cloud host receives the first access rejection message, the access rejection indication information may be displayed on the client interface of the target client, and the client interface may be synchronously displayed on the terminal device of the target object to facilitate the target object to learn the first access rejection message.

[0138] Through this embodiment, when multiple access control rules conflict, the effectiveness of the rejection is configured to be higher than the effectiveness of the permission, which can improve the security of object storage.

[0139] As an optional embodiment, after acquiring the access control rules corresponding to the target object storage, the method further includes:

[0140] S61, if no access control rule corresponding to the target object storage is obtained, determining an access control list corresponding to the target object storage, wherein the access control list is used to filter access requests to the target object storage;

[0141] S62, when it is determined according to the access control list that the target access request is passed, determining to allow the target cloud host to access the target application resource;

[0142] S63, when it is determined according to the access control list that the target access request is not passed, determine to deny the target cloud host access to the target application resources.

[0143] If the access control rules corresponding to the target object storage are not obtained, it can be determined that there are no access control rules for the bucket. The simple access permission control (for example, ACL) of the existing bucket and resource dimensions of the object storage can be used to determine whether to release the access. Simple ACLs are generally divided into two types: public and private. Public ACLs are allowed, while private ACLs are not allowed.

[0144] The target object storage may determine an access control list associated with the target object storage, where the access control list is used to filter access requests to the target object storage.

[0145] According to the access control list, the target object storage can determine whether the target access request is passed. If passed, the target object storage can determine to allow the target cloud host to access the target application resources; otherwise, determine to deny the target cloud host access to the target application resources.

[0146] The operations after allowing access to the target application resource and denying access to the target application resource are similar to the above and will not be described in detail here.

[0147] Through this embodiment, when no access control rule is matched or there is no access control rule, the access control list is used to perform access control, which can improve the applicability of the access control method of the object storage and improve the security of the object storage.

[0148] It should be noted that although this embodiment uses the object storage to execute the object storage access control method as an example, it is not exclusive and other devices or network nodes can also be used to execute the method, such as a front-end gateway, a proxy server, etc.

[0149] The access control method for object storage in the embodiment of the present application is explained below with reference to optional examples.

[0150] In order to solve the problem that public cloud vendors do not support fine-grained access control management of cloud hosts in VPC by object storage resources, this optional example provides an object storage access control method. This method is an access control solution for fine-grained management of hosts and resources in object storage within a VPC. It describes how to control access to cloud hosts by resources in an object storage bucket, which can achieve fine-grained management of access and ensure data protection.

[0151] like Figure 3 As shown, the object storage access control method in this example may include the following steps:

[0152] Step 1: HTTP request to object storage.

[0153] Step 2: Object Storage obtains request information.

[0154] The http request can be received by the front-end gateway or proxy server of the service, and the information required for auxiliary judgment can be passed to the access control implementation module of the object storage to realize the authentication of permissions.

[0155] Object storage can obtain request information from the front-end gateway or proxy server. The obtained request information may include but is not limited to: source IP, subnet ID, request API, request resource, and requester identity.

[0156] Object storage can convert the API corresponding to the http request into the corresponding operation, and organize the source IP information and customer account information.

[0157] Step 3: Determine whether there is a bucket access control rule. If yes, go to step 4; otherwise, go to step 7.

[0158] Step 4: Match the rules one by one.

[0159] Step 5, determine whether there is a set of matching rules or a single rule that has been filtered out. If so, execute step 6; otherwise, execute step 7.

[0160] Step 6: Determine the execution result based on the rule content.

[0161] When there are bucket access control rules, you can match them one by one. If only one rule is matched, the result of the rule is used to determine whether to allow or deny the operation. If multiple rules are matched, the rules are compared. In order to ensure data security, the effectiveness of the deny rule is higher than that of the allow rule. When the two conflict, the deny rule is ultimately executed.

[0162] Step 7: Determine whether to allow the file to be accessed based on the default ACL of the bucket and file.

[0163] If the request does not match a rule or there is no rule, the request can be released based on the simple access permission control of the current bucket and resource dimensions of the object storage. Simple ACLs are generally divided into two types: public and private. Public ACLs are allowed, while private ACLs are not allowed.

[0164] Through this example, in cloud-native applications, through fine-grained permission control (configure access control policies corresponding to different subnet granularities), the purpose of controlling a single cloud host or multiple cloud hosts in a subnet can be achieved. It can support restrictions on public IPs and intranet IPs in the source IP, support restrictions on cloud hosts in the entire subnet, and flexible configuration of different granularities to achieve flexible and rich access control policies; for default security control of files and storage buckets, based on the access control settings, a variety of more flexible access control policies are proposed, and access rules are set through refined API operations.

[0165] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0166] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0167] According to another aspect of an embodiment of the present application, there is also provided an object storage access control device for implementing the above-mentioned object storage access control method. Figure 4 is a structural block diagram of an optional object storage access control device according to an embodiment of the present application, such as Figure 4 As shown, the device may include:

[0168] (1) a receiving unit 402, configured to receive a target access request from a target cloud host, wherein the target access request is used to request access to a target application resource of a target application in a target object storage;

[0169] (2) a first acquisition unit 404, connected to the receiving unit 402, configured to acquire target intranet identification information corresponding to the target cloud host, wherein the target intranet identification information is identification information of the target cloud host in the virtual private cloud to which it belongs;

[0170] (3) A control unit 406, connected to the first acquisition unit 404, configured to perform access control on target application resources according to the target intranet identification information.

[0171] It should be noted that the receiving unit 402 in this embodiment can be used to execute the above step S202, the first obtaining unit 404 in this embodiment can be used to execute the above step S204, and the control unit 406 in this embodiment can be used to execute the above step S206.

[0172] Through the above module, a target access request from the target cloud host is received, wherein the target access request is used to request access to the target application resources of the target application in the target object storage; the target intranet identification information corresponding to the target cloud host is obtained, wherein the target intranet identification information is the identification information of the target cloud host in the virtual private cloud to which it belongs; access control is performed on the target application resources according to the target intranet identification information, thereby solving the problem of poor object storage security caused by excessive granularity of authority control in the method of cloud hosts accessing object storage through domain names in related technologies, improving the flexibility of access control and enhancing the security of object storage.

[0173] As an optional embodiment, the above device also includes:

[0174] A first determining unit is configured to determine a target API of a target application corresponding to the target access request after receiving a target access request from a target cloud host;

[0175] The second determining unit is used to determine the target operation requested by the target access request according to the target API, where the target operation is a resource operation performed on the target application resource.

[0176] As an optional embodiment, the control unit 406 includes:

[0177] A first acquisition module is used to acquire access control rules corresponding to the target object storage, wherein the access control rules are used to indicate the access rights of the intranet identification information of different cloud hosts to the application resources of the target application in the target object storage;

[0178] The control module is used to perform access control on the target application resources according to the target intranet identification information and the target access control rules when the target access control rules corresponding to the target object storage are obtained.

[0179] As an optional embodiment, the control module includes:

[0180] A first determination submodule is used to determine a first access control result of a target application resource according to the first access control rule and a target subnet ID when the target access control rule includes a first access control rule, wherein the first access control rule is used to indicate access rights of subnet IDs of different cloud hosts to the target application resource or the target storage space, the target subnet ID is the subnet ID of the target cloud host in the virtual private cloud, and the target intranet identification information includes the target subnet ID;

[0181] a second determination submodule, configured to determine a second access control result of a target application resource according to the second access control rule and a target intranet Internet Protocol IP address when the target access control rule includes a second access control rule, wherein the second access control rule is used to indicate the access rights of the intranet IP addresses of different cloud hosts to the target application resource or the target storage space, the target intranet IP address is the intranet IP address of the target cloud host in the virtual private cloud, and the target intranet identification information includes the target intranet IP address;

[0182] The target storage space is the storage space where the target application resources are located in the target object storage.

[0183] As an optional embodiment, the control module further includes:

[0184] The sending submodule is used to send a first access rejection message to the target cloud host when the first access control result and the second access control result are inconsistent, wherein the first access rejection message is used to indicate that access to the target application resource is rejected.

[0185] As an optional embodiment, the above device also includes:

[0186] a third determining unit, configured to, after obtaining the access control rule corresponding to the target object storage, determine an access control list corresponding to the target object storage if the access control rule corresponding to the target object storage is not obtained, wherein the access control list is used to filter access requests to the target object storage;

[0187] The fourth determination unit is used to determine that the target cloud host is allowed to access the target application resources if the target access request is determined to be passed according to the access control list; and to determine that the target cloud host is denied access to the target application resources if the target access request is determined to be not passed according to the access control list.

[0188] As an optional embodiment, the above device also includes:

[0189] A second acquisition unit, after receiving a target access request from a target cloud host, acquires a target object identifier of a target object corresponding to the target cloud host;

[0190] The sending unit is used to send a second access rejection message to the target cloud host when it is determined according to the target object identifier that the target object is not authorized to access the target application resource, wherein the second access rejection message is used to indicate the rejection of access to the target application resource.

[0191] It should be noted that the examples and application scenarios implemented by the above modules and corresponding steps are the same, but are not limited to the contents disclosed in the above embodiments. It should be noted that the above modules as part of the device can be run in Figure 1 In the hardware environment shown, it can be implemented by software or by hardware, wherein the hardware environment includes a network environment.

[0192] According to another aspect of an embodiment of the present application, an electronic device for implementing the above-mentioned object storage access control method is also provided. The electronic device may be a terminal device, a server, or a combination thereof.

[0193] Figure 5 is a structural block diagram of an optional electronic device according to an embodiment of the present application, such as Figure 5 As shown, the electronic device includes a memory 502 and a processor 504. The memory 502 stores a computer program, and the processor 504 is configured to execute the steps in any of the above method embodiments through the computer program.

[0194] Optionally, in this embodiment, the electronic device may be located in at least one network device among a plurality of network devices of a computer network.

[0195] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:

[0196] S1, receiving a target access request from a target cloud host, wherein the target access request is used to request access to a target application resource of a target application in a target object storage;

[0197] S2, obtaining target intranet identification information corresponding to the target cloud host, wherein the target intranet identification information is identification information of the target cloud host in the virtual private cloud to which it belongs;

[0198] S3, perform access control on target application resources based on the target intranet identification information.

[0199] Among them, the memory 502 can be used to store software programs and modules, such as program instructions / modules corresponding to the object storage access control method and device in the embodiment of the present invention. The processor 504 executes various functional applications and data processing by running the software programs and modules stored in the memory 502, that is, the access control method for the object storage is realized. The memory 502 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 502 may further include a memory remotely arranged relative to the processor 504, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0200] As an example, Figure 5As shown, the memory 502 may include but is not limited to the receiving unit 402, the first obtaining unit 404, and the control unit 406 in the object storage access control device. In addition, it may also include but is not limited to other module units in the object storage access control device, which will not be repeated in this example.

[0201] Optionally, the transmission device 506 is used to receive or send data via a network. Specific examples of the network may include wired networks and wireless networks. In one example, the transmission device 506 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices and routers via a network cable so as to communicate with the Internet or a local area network. In one example, the transmission device 506 is a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0202] In addition, the electronic device further comprises: a connection bus 508 for connecting various module components in the electronic device.

[0203] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and this embodiment will not be described in detail here.

[0204] It can be understood by those skilled in the art that Figure 5 The structure shown is for illustration only. The device for implementing the above-mentioned object storage access control method may be a terminal device, which may be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a PDA, a mobile Internet device (Mobile Internet Devices, MID), a PAD, and other terminal devices. Figure 5 It does not limit the structure of the above electronic device. For example, the terminal device may also include Figure 5 More or fewer components (such as network interfaces, display devices, etc.) shown in, or having Figure 5 Different configurations shown.

[0205] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the hardware related to the terminal device through a program, and the program can be stored in a computer-readable storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0206] According to another aspect of the embodiment of the present application, a storage medium is also provided. Optionally, in this embodiment, the storage medium can be used to execute the program code of the object storage access control method.

[0207] Optionally, in this embodiment, the storage medium may be located on at least one network device among a plurality of network devices in the network shown in the above embodiment.

[0208] Optionally, in this embodiment, the storage medium is configured to store program codes for executing the following steps:

[0209] S1, receiving a target access request from a target cloud host, wherein the target access request is used to request access to a target application resource of a target application in a target object storage;

[0210] S2, obtaining target intranet identification information corresponding to the target cloud host, wherein the target intranet identification information is identification information of the target cloud host in the virtual private cloud to which it belongs;

[0211] S3, perform access control on target application resources based on the target intranet identification information.

[0212] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, which will not be described in detail in this embodiment.

[0213] Optionally, in this embodiment, the storage medium may include, but is not limited to, various media that can store program codes, such as a USB flash drive, a ROM, a RAM, a mobile hard disk, a magnetic disk, or an optical disk.

[0214] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0215] If the integrated units in the above embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in the above computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling one or more computer devices (which may be personal computers, servers, or network devices, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application.

[0216] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0217] In the several embodiments provided in the present application, it should be understood that the disclosed client can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0218] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution provided in this embodiment.

[0219] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0220] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A method for access control of object storage, characterized in that: include: Receive a target access request from a target cloud host, wherein the target access request is used to request access to a target application resource of a target application program in a target object storage; Acquire target intranet identification information corresponding to the target cloud host, wherein the target intranet identification information is identification information of the target cloud host in the virtual private cloud to which it belongs; Performing access control on the target application resources according to the target intranet identification information; After receiving the target access request of the target cloud host, the method further includes: determining a target application program interface API of the target application corresponding to the target access request; determining a target operation requested by the target access request according to the target API, wherein the target operation is a resource operation performed on the target application resource, wherein different access operations are configured with different access control permissions; Among them, according to the target intranet identification information, performing access control on the target application resources includes: obtaining an access control rule corresponding to the target object storage, wherein the access control rule is used to indicate the access rights of the intranet identification information of different cloud hosts to the application resources of the target application in the target object storage; in the case of obtaining the target access control rule corresponding to the target object storage, performing access control on the target application resources according to the target intranet identification information and the target access control rule; Wherein, performing access control on the target application resource according to the target intranet identification information and the target access control rule includes: when the target access control rule includes a first access control rule, determining a first access control result of the target application resource according to the first access control rule and a target subnet identification ID, wherein the first access control rule is used to indicate the access rights of subnet IDs of different cloud hosts to the target application resource or target storage space, the target subnet ID is the subnet ID of the target cloud host in the virtual private cloud, and the target intranet identification information includes the target subnet ID; when the target access control rule includes a second access control rule, determining a second access control result of the target application resource according to the second access control rule and a target intranet Internet Protocol IP address, wherein the second access control rule is used to indicate the access rights of intranet IP addresses of different cloud hosts to the target application resource or target storage space, the target intranet IP address is the intranet IP address of the target cloud host in the virtual private cloud, and the target intranet identification information includes the target intranet IP address; wherein the target storage space is the storage space where the target application resource is located in the target object storage; In a case where the first access control result and the second access control result are inconsistent, a first access rejection message is sent to the target cloud host, wherein the first access rejection message is used to indicate that access to the target application resource is rejected.

2. The method according to claim 1, characterized in that After acquiring the access control rules corresponding to the target object storage, the method further includes: In the case where no access control rule corresponding to the target object storage is obtained, determining an access control list corresponding to the target object storage, wherein the access control list is used to filter access requests to the target object storage; In the case where it is determined according to the access control list that the target access request is passed, determining to allow the target cloud host to access the target application resource; When it is determined according to the access control list that the target access request is not passed, it is determined that the target cloud host is denied access to the target application resource.

3. The method according to any one of claims 1 to 2, characterized in that After receiving the target access request of the target cloud host, the method further includes: Obtain a target object identifier of a target object corresponding to the target cloud host; When it is determined according to the target object identifier that the target object is not authorized to access the target application resource, a second access rejection message is sent to the target cloud host, wherein the second access rejection message is used to indicate that access to the target application resource is rejected.

4. An access control device for object storage, characterized in that: include: A receiving unit, configured to receive a target access request of a target cloud host, wherein the target access request is used to request access to a target application resource of a target application program in a target object storage; A first acquisition unit is configured to acquire target intranet identification information corresponding to the target cloud host, wherein the target intranet identification information is identification information of the target cloud host in the virtual private cloud to which it belongs; A control unit, configured to perform access control on the target application resource according to the target intranet identification information; Wherein, after receiving the target access request of the target cloud host, it also includes: determining a target application program interface API of the target application corresponding to the target access request; determining a target operation requested by the target access request according to the target API, wherein the target operation is a resource operation performed on the target application resource; Among them, according to the target intranet identification information, performing access control on the target application resources includes: obtaining an access control rule corresponding to the target object storage, wherein the access control rule is used to indicate the access rights of the intranet identification information of different cloud hosts to the application resources of the target application in the target object storage; in the case of obtaining the target access control rule corresponding to the target object storage, performing access control on the target application resources according to the target intranet identification information and the target access control rule; Wherein, performing access control on the target application resource according to the target intranet identification information and the target access control rule includes: when the target access control rule includes a first access control rule, determining a first access control result of the target application resource according to the first access control rule and a target subnet identification ID, wherein the first access control rule is used to indicate the access rights of subnet IDs of different cloud hosts to the target application resource or target storage space, the target subnet ID is the subnet ID of the target cloud host in the virtual private cloud, and the target intranet identification information includes the target subnet ID; when the target access control rule includes a second access control rule, determining a second access control result of the target application resource according to the second access control rule and a target intranet Internet Protocol IP address, wherein the second access control rule is used to indicate the access rights of intranet IP addresses of different cloud hosts to the target application resource or target storage space, the target intranet IP address is the intranet IP address of the target cloud host in the virtual private cloud, and the target intranet identification information includes the target intranet IP address; wherein the target storage space is the storage space where the target application resource is located in the target object storage; In a case where the first access control result and the second access control result are inconsistent, a first access rejection message is sent to the target cloud host, wherein the first access rejection message is used to indicate that access to the target application resource is rejected.

5. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, wherein the computer program is configured to execute the method according to any one of claims 1 to 3 when executed.

6. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 3 through the computer program.