Data access method, device, equipment and medium executed by client program

By obtaining and verifying the characteristic information of the data access subject through the client program, and using the permission module of the data management platform and file system to dynamically generate and verify identity credentials, the problem of identity credential leakage in the distributed file storage system is solved, and the security and management efficiency of data access are improved.

CN119783159BActive Publication Date: 2025-10-03BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411897651.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-20
Publication Date
2025-10-03
Estimated Expiration
2044-12-20

AI Technical Summary

Technical Problem

In the prior art, data access control solutions for distributed file storage systems are difficult to effectively prevent identity credential leakage, resulting in insufficient data security.

Method used

The characteristic information of the data access subject is obtained through the client program, the data management platform is used to perform identity authentication and generate identity credentials, and the file system's permission verification module is combined to perform dynamic permission verification to ensure the security of data access.

Benefits of technology

It effectively reduces the risk of identity credential leakage and improves the security of data access and the efficiency of permission management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119783159B_ABST
    Figure CN119783159B_ABST
Patent Text Reader

Abstract

The present disclosure provides a data access method, apparatus, device, and medium executed by a client program, relating to the fields of computer technology, particularly remote access, data security, and other technical fields. The implementation scheme comprises: obtaining first characteristic information; sending the first characteristic information to a data management platform; in response to receiving a first identity credential sent by the data management platform and in response to receiving a data access request from a data access subject, generating a second identity credential based on the first identity credential and the data access request; sending the second identity credential to a permission verification module of a file system; and in response to receiving a verification result from the permission verification module indicating that the access permission has been verified, authorizing the data access subject to perform data access corresponding to the data access request.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, in particular to technical fields such as big data, remote access, and data security, and specifically to a data access method, device, electronic device, computer-readable storage medium, and computer program product executed by a client program. Background Art

[0002] Distributed file storage systems have become essential components of enterprise big data production environments. As a fundamental national strategic resource, big data security is a growing concern. Enterprise production applications must ensure data security and prevent data leaks. Establishing a data security system is a fundamental requirement for enterprise data production, and access control solutions for big data file storage systems are a key component of this data security system.

[0003] The approaches described in this section are not necessarily approaches that have been previously conceived or employed. Unless otherwise indicated, it should not be assumed that any approach described in this section is prior art simply by virtue of its inclusion in this section. Similarly, unless otherwise indicated, the issues raised in this section should not be considered as having been recognized in any prior art. Summary of the Invention

[0004] The present disclosure provides a data access method, apparatus, electronic device, computer-readable storage medium, and computer program product executed by a client program.

[0005] According to one aspect of the present disclosure, a data access method executed by a client program is provided, including: obtaining first characteristic information, the first characteristic information including the subject characteristics of the current data access subject; sending the first characteristic information to a data management platform, the data management platform being used to perform identity authentication based on the first characteristic information and generate a first identity credential after the identity authentication is passed, the first identity credential including the first characteristic information and a credential validity period; in response to receiving the first identity credential sent by the data management platform, and in response to receiving a data access request from the data access subject, generating a second identity credential based on the first identity credential and the data access request, the second identity credential including the first characteristic information, the credential validity period, the target resource to be accessed, and the data access operation type; sending the second identity credential to a permission verification module of the file system, the permission verification module being used to perform access permission verification based on the second identity credential; and in response to receiving a verification result of the access permission verification passed from the permission verification module, authorizing the data access subject to execute the data access corresponding to the data access request.

[0006] According to another aspect of the present disclosure, a data access device executed by a client program is provided, comprising: a first acquisition unit, configured to acquire first characteristic information, the first characteristic information including the subject characteristics of the current data access subject; a first sending unit, configured to send the first characteristic information to a data management platform, the data management platform being used to perform identity authentication based on the first characteristic information and generate a first identity credential after the identity authentication is passed, the first identity credential including the first characteristic information and a credential validity period; a first generation unit, configured to generate a second identity credential based on the first identity credential and the data access request in response to receiving the first identity credential sent by the data management platform and in response to receiving a data access request from the data access subject, the second identity credential including the first characteristic information, a credential validity period, a target resource to be accessed, and a data access operation type; a second sending unit, configured to send the second identity credential to a permission verification module of the file system, the permission verification module being used to perform access permission verification based on the second identity credential; and an authorization unit, configured to authorize the data access subject to perform data access corresponding to the data access request in response to receiving a verification result of the access permission verification passed from the permission verification module.

[0007] According to another aspect of the present disclosure, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the data access method executed by the client program of the present disclosure.

[0008] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable a computer to execute the data access method executed by a client program of the present disclosure.

[0009] According to another aspect of the present disclosure, a computer program product is provided, including a computer program, wherein when the computer program is executed by a processor, the computer program implements the data access method performed by the client program of the present disclosure.

[0010] According to one or more embodiments of the present disclosure, the risk of identity credential leakage can be effectively reduced and the security of data access can be improved.

[0011] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present disclosure, nor are they intended to limit the scope of the present disclosure. Other features of the present disclosure will become readily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] The accompanying drawings illustrate exemplary embodiments and constitute a part of the specification. Together with the description of the specification, they serve to explain exemplary implementation of the embodiments. The illustrated embodiments are for illustrative purposes only and do not limit the scope of the claims. Throughout the drawings, the same reference numerals designate similar, but not necessarily identical, elements.

[0013] Figure 1 A schematic diagram illustrating an exemplary system in which the various methods described herein may be implemented according to an embodiment of the present disclosure;

[0014] Figure 2 A flowchart of a data access method executed by a client program according to an embodiment of the present disclosure is shown;

[0015] Figure 3 A schematic diagram illustrating a data access system according to an exemplary embodiment of the present disclosure is shown;

[0016] Figure 4 A flowchart of obtaining a first identity credential according to an exemplary embodiment of the present disclosure is shown;

[0017] Figure 5 A flowchart showing data access in a data warehouse application scenario in related technologies is shown;

[0018] Figure 6 A flowchart of data access in a data warehouse application scenario according to an embodiment of the present disclosure is shown;

[0019] Figure 7 shows a structural block diagram of a data access device 700 executed by a client program according to an embodiment of the present disclosure;

[0020] Figure 8 A structural block diagram of an exemplary electronic device that can be used to implement the embodiments of the present disclosure is shown. DETAILED DESCRIPTION

[0021] The following description of exemplary embodiments of the present disclosure is made in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be appreciated by those skilled in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.

[0022] In this disclosure, unless otherwise specified, the use of terms such as "first" and "second" to describe various elements is not intended to limit the positional relationship, temporal relationship, or importance relationship of these elements. Such terms are only used to distinguish one element from another. In some examples, the first element and the second element may refer to the same instance of the element, while in some cases, based on the context of the description, they may also refer to different instances.

[0023] The terms used in the descriptions of the various examples described in this disclosure are for the purpose of describing specific examples only and are not intended to be limiting. Unless the context clearly indicates otherwise, if the number of elements is not specifically limited, the element may be one or more. In addition, the term "and / or" used in this disclosure encompasses any one and all possible combinations of the listed items.

[0024] The embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings.

[0025] Figure 1 FIG2 is a schematic diagram of an exemplary system 100 in which the various methods and apparatuses described herein may be implemented according to an embodiment of the present disclosure. Figure 1 , the system 100 includes one or more client devices 101, 102, 103, 104, 105, and 106, a server 120, and one or more communication networks 110 coupling the one or more client devices to the server 120. The client devices 101, 102, 103, 104, 105, and 106 can be configured to execute one or more applications.

[0026] In an embodiment of the present disclosure, the server 120 may run one or more services or software applications that enable execution of the data access method of the present disclosure.

[0027] In some embodiments, server 120 may also provide other services or software applications, which may include non-virtualized environments and virtualized environments. In some embodiments, these services may be provided as web-based services or cloud services, such as provided to users of client devices 101, 102, 103, 104, 105, and / or 106 under a software as a service (SaaS) model.

[0028] exist Figure 1In the configuration shown, the server 120 may include one or more components that implement the functions performed by the server 120. These components may include software components, hardware components, or a combination thereof that can be executed by one or more processors. Users operating client devices 101, 102, 103, 104, 105, and / or 106 may, in turn, utilize one or more client applications to interact with the server 120 to utilize the services provided by these components. It should be understood that a variety of different system configurations are possible, which may differ from the system 100. Therefore, Figure 1 is one example of a system for implementing the various methods described herein and is not intended to be limiting.

[0029] A user may initiate data access using client devices 101, 102, 103, 104, 105, and / or 106. The client device may provide an interface that enables a user of the client device to interact with the client device. The client device may also output information to the user via the interface. Figure 1 Only six client devices are depicted, but one skilled in the art will appreciate that the present disclosure can support any number of client devices.

[0030] Client devices 101, 102, 103, 104, 105, and / or 106 may include various types of computer devices, such as portable handheld devices, general-purpose computers (such as personal computers and laptops), workstation computers, wearable devices, smart screen devices, self-service terminal devices, service robots, gaming systems, thin clients, various messaging devices, sensors or other sensing devices, etc. These computer devices may run various types and versions of software applications and operating systems, such as Microsoft Windows, Apple iOS, UNIX-like operating systems, Linux, or Linux-like operating systems (such as Google Chrome OS); or include various mobile operating systems, such as Microsoft Windows Mobile OS, iOS, Windows Phone, and Android. Portable handheld devices may include cellular phones, smartphones, tablet computers, personal digital assistants (PDAs), etc. Wearable devices may include head-mounted displays (such as smart glasses) and other devices. Gaming systems may include various handheld gaming devices, internet-enabled gaming devices, etc. Client devices are capable of executing a variety of different applications, such as various internet-related applications, communication applications (such as email applications), and short message service (SMS) applications, and may use various communication protocols.

[0031] The network 110 may be any type of network known to those skilled in the art that can support data communications using any of a variety of available protocols, including but not limited to TCP / IP, SNA, IPX, etc. By way of example only, the one or more networks 110 may be a local area network (LAN), an Ethernet-based network, a token ring, a wide area network (WAN), the Internet, a virtual network, a virtual private network (VPN), an intranet, an extranet, a blockchain network, a public switched telephone network (PSTN), an infrared network, a wireless network (e.g., Bluetooth, WIFI), and / or any combination of these and / or other networks.

[0032] Server 120 may include one or more general-purpose computers, specialized server computers (e.g., PC (personal computer) servers, UNIX servers, mid-range servers), blade servers, mainframe computers, server clusters, or any other suitable arrangement and / or combination. Server 120 may include one or more virtual machines running virtual operating systems, or other computing architectures involving virtualization (e.g., one or more flexible pools of logical storage devices that may be virtualized to maintain a server's virtual storage device). In various embodiments, server 120 may run one or more services or software applications that provide the functionality described below.

[0033] The computing units in the server 120 may run one or more operating systems including any of the operating systems described above as well as any commercially available server operating systems. The server 120 may also run any of a variety of additional server applications and / or middle-tier applications, including HTTP servers, FTP servers, CGI servers, JAVA servers, database servers, and the like.

[0034] In some implementations, server 120 may include one or more applications to analyze and consolidate data feeds and / or event updates received from users of client devices 101, 102, 103, 104, 105, and / or 106. Server 120 may also include one or more applications to display the data feeds and / or real-time events via one or more display devices of client devices 101, 102, 103, 104, 105, and / or 106.

[0035] In some embodiments, server 120 may be a distributed system server or a server integrated with blockchain. Server 120 may also be a cloud server, or an intelligent cloud computing server or intelligent cloud host equipped with artificial intelligence technology. A cloud server is a host product within the cloud computing service system that addresses the management difficulties and poor scalability of traditional physical hosts and virtual private servers (VPS) services.

[0036] The system 100 may also include one or more databases 130. In some embodiments, these databases may be used to store data and other information. For example, one or more of the databases 130 may be used to store information such as audio files and video files. The databases 130 may reside in a variety of locations. For example, the database used by the server 120 may be local to the server 120, or may be remote from the server 120 and communicate with the server 120 via a network-based or dedicated connection. The databases 130 may be of different types. In some embodiments, the databases used by the server 120 may be, for example, relational databases. One or more of these databases may store, update, and retrieve data to and from the databases in response to commands.

[0037] In some embodiments, one or more of the databases 130 may also be used by applications to store application data. The databases used by the applications may be different types of databases, such as a key-value store, an object store, or a conventional store backed by a file system.

[0038] Figure 1 The system 100 may be configured and operated in various ways to enable the application of various methods and apparatuses described in accordance with the present disclosure.

[0039] According to the embodiments of the present disclosure, Figure 2 As shown, a data access method executed by a client program is provided, including: step S201, obtaining first characteristic information, the first characteristic information including the subject characteristics of the current data access subject; step S202, sending the first characteristic information to the data management platform, the data management platform is used to perform identity authentication based on the first characteristic information and generate a first identity credential after the identity authentication is passed, the first identity credential including the first characteristic information and the credential validity period; step S203, in response to receiving the first identity credential sent by the data management platform, and in response to receiving the data access request of the data access subject, generating a second identity credential based on the first identity credential and the data access request, the second identity credential including the first characteristic information, the credential validity period, the target resource to be accessed, and the data access operation type; step S204, sending the second identity credential to the permission verification module of the file system, the permission verification module is used to perform access permission verification based on the second identity credential; and step S205, in response to receiving the verification result of the access permission verification passed from the permission verification module, authorizing the data access subject to execute the data access corresponding to the data access request.

[0040] Therefore, by sending the first characteristic information to the data management platform, and obtaining the first identity credential dynamically generated by the data management platform after the identity authentication is passed, and when receiving a data access request, dynamically generating a second identity credential based on the data access request, access permission verification is performed. Since the identity credential is dynamically generated based on the first characteristic information and the data access request, the risk of identity credential leakage can be effectively reduced and the security of data access can be improved.

[0041] In some embodiments, the client program may be an access management application deployed on a terminal device or a cluster, such as a Spark client program, a Hadoop client program, etc. A data access subject may access data on a file system through the client program.

[0042] In some embodiments, obtaining the first characteristic information may be in response to the startup of the above-mentioned client program, or in response to a data access request initiated by a data access subject, and the current first characteristic information is collected.

[0043] In some embodiments, the first characteristic information may include subject characteristics of the data access subject, such as a user account and password.

[0044] After obtaining the first characteristic information, the first characteristic information can be sent to the data management platform. The data management platform can store a preset permission policy, that is, the access control permission policy of the data access subject to the resources in the file system. The permission policy can be described based on the Access Control List policy (ACL) permission policy model. In some embodiments, the permission policy can also be described by permission policy models such as Role-Based Access Control (RBAC) and Attribute-Based Access Control (ABAC), which are not limited here.

[0045] In some embodiments, after receiving the first characteristic information sent by the client program, the data management platform can authenticate the identity of the data access subject by matching it with the permission policy preset in the data management platform; in response to the identity authentication being passed, the data management platform can generate a first identity credential based on the first characteristic information and send it to the client program, wherein the first identity credential includes the first characteristic information and the validity period of the credential.

[0046] In response to the client program receiving a data access request, it can first determine the target resource in the file system that the data access subject wants to access (such as data in a storage area in the file system or a file stored in the file system) and the data access operation type (for example, it may include data reading, data writing, data modification or data deletion operations) based on the information in the data access request, and generate a second identity credential based on the above information and the first identity credential and send it to the permission verification module of the file system.

[0047] In some embodiments, the file system of the present disclosure may be a distributed file system or a file storage system deployed on a server, which is not limited here.

[0048] In some embodiments, a preset permission policy is stored in the permission verification module of the file system, and the permission verification module can be used to be responsible for identity authentication and permission verification of file system access.

[0049] In some embodiments, the preset permission policy stored in the permission verification module can be obtained by synchronizing the preset permission policy in the data management system. In some embodiments, the permission verification module can synchronize the preset permission policy once every preset time interval to update and maintain the preset permission policy in real time.

[0050] In some embodiments, the permission verification module may also be used to record data access records.

[0051] In some embodiments, the preset permission policy may record the correspondence between the subject characteristics of the data access subject, the target resource, and the data access operation type. In some embodiments, the preset permission policy may also record the validity period of the permission, and in response to the expiration of the validity period, the permission policy is automatically deleted.

[0052] In some embodiments, after receiving the second identity credential, the permission verification module can first check the validity period of the second identity credential, and only when the second identity credential is still valid, match the preset permission policy based on the various information in the second identity credential to determine whether the current data access subject has the permission to perform the target data access operation on the target resource.

[0053] In some embodiments, in response to determining that the current data access subject has the authority to perform the target data access operation on the target resource, the authority verification module can send the corresponding verification result to the client program; in response to receiving the above verification result, the client software can authorize the data access subject to perform the target data access operation on the target resource on the file system through the client software.

[0054] Therefore, by sending the first characteristic information to the data management platform, and obtaining the first identity credential dynamically generated by the data management platform after the identity authentication is passed, and when receiving a data access request, dynamically generating a second identity credential based on the data access request, access permission verification is performed. Since the identity credential is dynamically generated based on the first characteristic information and the data access request, the risk of identity credential leakage can be effectively reduced and the security of data access can be improved.

[0055] In some embodiments, obtaining the first characteristic information may include: in response to the data access subject being a user, obtaining the user account information of the user as the subject characteristic; and in response to the data access subject being a first application, obtaining at least one of the following characteristic information of the first application: program startup command, program execution directory, program execution file, as the subject characteristic.

[0056] In some embodiments, data access subjects can be divided into entity accounts and service accounts. The entity account corresponds to a specific natural person (i.e., a user); the service account corresponds to a specific business application process (i.e., the first application), and the service account has a corresponding person in charge.

[0057] The method of collecting feature information is different for different types of subjects.

[0058] For subjects such as users, their subject characteristics are generally the natural person account that logs in to the current client program. We can rely on the operation and maintenance mechanism of the enterprise IT assets, such as the tool class provided in the operation and maintenance system that can obtain the identity credentials of the current login user, to obtain the user's user account information as the subject characteristic.

[0059] For the first application, one or more of the following can be collected as its main features: the program startup command, the program execution directory, and the program execution file. After the above information is collected, a hash calculation can be performed to obtain a corresponding feature value (e.g., an MD5 value) as the main feature of the first application.

[0060] Therefore, by obtaining different subject characteristics for identity authentication for different data access subjects, the authentication strategies for different subjects can be further refined, thereby improving the security of data access.

[0061] In some embodiments, the first feature information may also include a running environment feature of the client program.

[0062] In some embodiments, the preset permission policy may also include the operating environment characteristics of the client program to restrict a data access subject to perform a preset data access operation on a resource only through a client program on a certain terminal device or cluster.

[0063] Therefore, by further verifying the environment in which the data access subject performs data access, the security of data access can be further improved.

[0064] In some embodiments, obtaining the first characteristic information may also include: in response to the client program being deployed on the terminal device, obtaining the environmental information of the terminal device as the operating environment characteristic; and in response to the client program being deployed on the cluster, obtaining the environmental information of the cluster as the operating environment characteristic.

[0065] In some embodiments, the client program can be deployed on a terminal device or on a cluster, where the cluster can be a cloud-native cluster, such as a Kubernetes cluster.

[0066] In some embodiments, the terminal device's environmental information may include environmental information such as the terminal device's IP address and host name. In some embodiments, the cluster's environmental information (taking a Kubernetes cluster as an example) may include environmental information such as the cluster ID, namespace, and service name. It is understood that the type and amount of the above environmental information can be determined based on actual needs and is not limited here.

[0067] Therefore, by obtaining different operating environment characteristics for identity authentication in different client program operating environments, the authentication strategy under different operating environments can be further refined, thereby improving the security of data access.

[0068] In some embodiments, the client program may include a first tool, the first feature information can be collected and obtained through the first tool and sent to the data management platform through the first tool, the code of the first tool includes at least one verification point, and the method may also include: determining whether the current code of each verification point in at least one verification point is the same as the initial code; and in response to determining that the current code of each verification point in at least one verification point is the same as the initial code, obtaining the first feature information based on the first tool.

[0069] Figure 3 A schematic diagram of a data access system according to an exemplary embodiment of the present disclosure is shown.

[0070] In some exemplary embodiments, see Figure 3The data access method executed by the client program may include: step S301, the client program obtains first feature information through a first tool, sends it to the data management platform for identity authentication, and after the authentication is passed, sends the first identity credential to the client program; step S302, the data management platform performs identity authentication based on the first feature information, including subject verification and environment verification; step S303, in response to receiving a data access request, the client program generates a second identity credential based on the first identity credential and relevant information in the data access request, and sends it to the permission verification module of the file system; step S304, the permission verification module performs access permission verification based on the cached permission policy; step S305, in response to the verification being passed, authorizing the data access subject to perform the data access operation corresponding to the data access request on the file system.

[0071] In some exemplary embodiments, for verification of subject characteristics, the data management platform may call an identity authentication system constructed by a business party and complete the verification of subject characteristics based on the identity authentication system.

[0072] In some exemplary embodiments, the verification of the operating environment characteristics of the terminal device can be carried out by comparing the environmental information of the terminal device (such as IP address, host name, etc.) with the characteristic values ​​pre-stored in the data management platform; the verification of the operating environment characteristics of the Kubernetes cluster can be carried out by calling a third-party environment verification interface to first verify whether the collected operating environment characteristics are valid characteristics issued by the Kubernetes cluster, and then compare them with the characteristic values ​​pre-stored in the data management platform for verification.

[0073] In some exemplary embodiments, see Figure 3 ,The authority verification module obtains the authority policy stored on the ,data management platform at a preset time interval to achieve timely ,update of the authority policy.

[0074] In some embodiments, the first tool may be a software development kit (SDK) in a client program, configured to provide the first feature information of the mobile phone and perform data transmission with the data management platform.

[0075] In some embodiments, one or more verification points can be set in the code of the first tool, and before collecting the first feature information, the current code of each verification point can be compared with the initial code to see if it is consistent. If they are consistent, it is determined that the code of the first tool has not been tampered with and is safe and reliable. Subsequently, the first feature information is collected. At this time, the collected first feature information is also reliable.

[0076] Therefore, by verifying the code of the first tool before applying the first tool to collect the first feature information, the first tool can be prevented from being tampered with. The first feature information is collected based on the verified first tool, which can further improve the credibility of the first feature information and thereby improve the security of data access.

[0077] In some embodiments, the code of the first tool may be obtained by obfuscating the original code of the first tool.

[0078] Therefore, by obfuscating the original code of the first tool based on preset obfuscation rules, the risk of the first tool being tampered with is further reduced, the credibility of the first tool information is further improved, and the security of data access is improved.

[0079] In some embodiments, based on the code obfuscation of the code of the first tool, at least one verification point can be further set, thereby further reducing the risk of the first tool being tampered with and improving the credibility of the first tool information.

[0080] In some embodiments, sending the first characteristic information to the data management platform may include: encrypting the first characteristic information using a shared key between the first tool and the data management platform to obtain a first ciphertext; and sending the first ciphertext to the data management platform; and wherein the data management platform can also be used to decrypt the first ciphertext based on the shared key to obtain the first characteristic information.

[0081] Therefore, by encrypting and transmitting the first characteristic information, the risk of the first characteristic information being stolen or tampered with during transmission can be further reduced, thereby improving the security of data access.

[0082] In some embodiments, the first identity credential may be encrypted by the data management platform based on a shared key and sent to the first tool, and the method may further include: in response to receiving the encrypted first identity credential sent by the data management platform, decrypting it based on the shared key to obtain the first identity credential.

[0083] Therefore, by encrypting and transmitting the first identity credential, the risk of the first identity credential being stolen or tampered with during transmission can be further reduced, thereby improving the security of data access.

[0084] In some embodiments, the shared key may be obtained through negotiation between the first tool and the data management platform based on the Diffie-Hellman protocol. In some embodiments, the shared key may also be generated based on the RSA public key encryption algorithm, the elliptic curve Diffie-Hellman protocol, etc., without limitation herein.

[0085] In some embodiments, the shared key can be obtained by exchanging the respective public keys of the first tool and the data management platform, and calculated based on the received public key of the other party and the private key of the first tool and the data management platform, and the public key can be encrypted based on the key provided by the third-party trusted platform during the exchange process.

[0086] In some exemplary embodiments, obtaining the shared key may include: the first tool generating a set of asymmetric keys (private key a, public key A), and the data management platform generating a set of asymmetric keys (private key b, public key B). Based on the third-party trusted platform, a set of asymmetric keys is generated for the first tool and the data management platform respectively (private key c, public key C corresponding to the first tool, and private key d, public key D corresponding to the data management platform).

[0087] The first tool encrypts the public key A based on the private key C and sends the ciphertext to the data management platform; the data management platform decrypts the ciphertext based on the public key C stored in the third-party trusted platform to obtain the public key A. Subsequently, the public key A and the private key b are calculated based on the Diffie-Hellman protocol to obtain the shared key.

[0088] Similarly, the data management platform encrypts the public key B based on the private key d and sends the ciphertext to the first tool; the first tool decrypts the ciphertext based on the public key D stored in the third-party trusted platform to obtain the public key B, and then calculates the public key B and the private key a based on the Diffie-Hellman protocol to obtain the shared key.

[0089] Therefore, in the process of obtaining the shared key, by encrypting the public key exchanged between the first tool and the data management platform, the risk of the public key being stolen or tampered with during transmission can be further reduced, the security of the shared key can be improved, and the security of data access can be improved.

[0090] In some embodiments, the private key a held by the first tool can be written into the original code of the first tool, and then the entire original code can be obfuscated, thereby further reducing the risk of leakage of the private key a.

[0091] Figure 4 A flowchart of obtaining a first identity credential according to an exemplary embodiment of the present disclosure is shown.

[0092] In some embodiments, see Figure 4, obtaining the first identity credential may include: step S401, the first tool and the data management platform negotiate to obtain a shared key, wherein the shared key can be obtained based on any of the methods described above; step S402, in response to the code of the first tool passing the anti-tampering verification, collecting the current subject characteristics and environmental characteristics through the first tool, and encrypting them based on the shared key to obtain a first ciphertext; step S403, sending the first ciphertext to the data management platform to obtain the first identity credential; step S404, the data management platform decrypts the first ciphertext through the shared key, obtains the subject characteristics and environmental characteristics, and verifies them; step S405, in response to the verification being passed, generating the first identity credential based on the subject characteristics and environmental characteristics, and feeding it back to the first tool.

[0093] Therefore, by improving the security of each step in obtaining the first identity credential, the accuracy of identity authentication and the credibility and security of the first identity credential can be improved, thereby improving the security of data access.

[0094] In some embodiments, a target data warehouse may be deployed in the file system, and in response to the target resource to be accessed in the data access request being the target data warehouse, the method may further include: in response to receiving the data access request of the data access subject, sending first characteristic information to the target data warehouse to perform identity authentication based on the permission data table in the target data warehouse; and in response to receiving a notification of identity authentication passing from the target data warehouse, sending the first characteristic information to the data management platform to obtain a first identity credential, wherein the first identity credential also includes the association relationship between the first resource and the underlying resources of the file system.

[0095] Figure 5 A flowchart of data access in a data warehouse application scenario in related technologies is shown. Figure 6 A flowchart of data access in a data warehouse application scenario according to an embodiment of the present disclosure is shown.

[0096] In data warehouse applications, since data warehouses (such as HBase and Hive databases) are deployed on top of a distributed file system, when a user requests data access to the data warehouse (for example, accessing a table within the data warehouse), the client program must first send the first characteristic information to the data warehouse and perform identity authentication based on the data warehouse's pre-stored permission data table. After the first characteristic information passes the data warehouse's identity authentication, permissions for operating the underlying file system must be configured for the data access subject.

[0097] In related technologies, such as Figure 5As shown, the user account can be replaced with an account with greater permissions to enable the user to operate the underlying file storage system when accessing the data warehouse. This solution will give the data access subject too much permissions, which is not conducive to data security. Another solution is to further verify the permissions of the underlying file system to determine whether the data access subject has the permission to operate the underlying file storage system. This solution requires maintaining two layers of permission policies for the data warehouse and the underlying file system. This means that when the permissions of one layer expire, the corresponding permission policy in the other layer must be deleted at the same time, which greatly reduces maintenance and management efficiency.

[0098] According to an exemplary embodiment of the present disclosure, Figure 6 As shown, after passing the identity authentication of the data warehouse, a temporary first identity credential can be obtained at the data management platform. At the same time, the association relationship between the first resource to be accessed and the underlying resources of the file system is declared in the first identity credential, so that after passing the identity authentication of the data warehouse, the permission to access the underlying file system resources corresponding to the first resource can be directly obtained, ensuring accurate authorization of the data access subject while reducing the difficulty of permission management and improving the efficiency of permission management.

[0099] In some embodiments, as Figure 7 As shown, a data access device 700 executed by a client program is provided. The device 700 includes: a first acquisition unit 710, configured to acquire first feature information, the first feature information including the subject feature of the current data access subject; a first sending unit 720, configured to send the first feature information to a data management platform, the data management platform being configured to perform identity authentication based on the first feature information and generate a first identity credential after the identity authentication is passed, the first identity credential including the first feature information and a credential validity period; a first generation unit 730, configured to generate a second identity credential based on the first identity credential and the data access request in response to receiving the first identity credential sent by the data management platform and in response to receiving a data access request from the data access subject, the second identity credential including the first feature information, the credential validity period, the target resource to be accessed, and the data access operation type; a second sending unit 740, configured to send the second identity credential to a permission verification module of the file system, the permission verification module being configured to perform access permission verification based on the second identity credential; and an authorization unit 750, configured to authorize the data access subject to perform data access corresponding to the data access request in response to receiving a verification result from the permission verification module indicating that the access permission verification is passed.

[0100] The operations and effects achieved by units 710 to 750 in the data access device 700 executed by the client program are similar to steps S201 to S205 in the data access method executed by the client program of the present disclosure, and are not described in detail here.

[0101] In some embodiments, the client program may include a first tool, the first feature information can be collected and obtained through the first tool and sent to the data management platform through the first tool, the code of the first tool includes at least one verification point, and the device may also include: a first determination unit, configured to determine whether the current code of each verification point in at least one verification point is the same as the initial code; and a third acquisition unit, configured to acquire the first feature information based on the first tool in response to determining that the current code of each verification point in at least one verification point is the same as the initial code.

[0102] In some embodiments, the code of the first tool may be obtained by obfuscating the original code of the first tool.

[0103] In some embodiments, the first sending unit may include: a first encryption subunit, configured to encrypt the first characteristic information using a shared key between the first tool and the data management platform to obtain a first ciphertext; and a first sending subunit, configured to send the first ciphertext to the data management platform; and wherein the data management platform can also be used to decrypt the first ciphertext based on the shared key to obtain the first characteristic information.

[0104] In some embodiments, the first identity credential may be encrypted by the data management platform based on a shared key and sent to the first tool, and the device may further include: a decryption unit, configured to decrypt based on the shared key in response to receiving the encrypted first identity credential sent by the data management platform to obtain the first identity credential.

[0105] In some embodiments, the shared key can be obtained by exchanging the respective public keys of the first tool and the data management platform, and calculated based on the received public key of the other party and the private key of the first tool and the data management platform, and the public key is encrypted based on the key provided by the third-party trusted platform during the exchange process.

[0106] In some embodiments, a target data warehouse is deployed in the file system, and in response to the target resource to be accessed in the data access request being the target data warehouse, the device may further include: a third sending unit, configured to send first characteristic information to the target data warehouse in response to receiving the data access request of the data access subject, so as to perform identity authentication based on the permission data table in the target data warehouse; and a fourth sending unit, configured to send the first characteristic information to the data management platform in response to receiving a notification of identity authentication passing feedback from the target data warehouse, so as to obtain a first identity credential, wherein the first identity credential also includes an association relationship between the first resource and the underlying resources of the file system.

[0107] In the technical solutions disclosed herein, the collection, storage, use, processing, transmission, provision and disclosure of user personal information involved comply with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0108] According to an embodiment of the present disclosure, an electronic device, a readable storage medium, and a computer program product are also provided.

[0109] refer to Figure 8 , a block diagram of an electronic device 800 that can serve as a server or client of the present disclosure will now be described, which is an example of a hardware device that can be applied to various aspects of the present disclosure. The electronic device is intended to represent various forms of digital electronic computer devices, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0110] like Figure 8 As shown, the electronic device 800 includes a computing unit 801, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 802 or a computer program loaded from a storage unit 808 into a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the electronic device 800 can also be stored. The computing unit 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.

[0111] Multiple components within electronic device 800 are connected to I / O interface 805, including an input unit 806, an output unit 807, a storage unit 808, and a communication unit 809. Input unit 806 can be any type of device capable of inputting information into electronic device 800. Input unit 806 can receive input numeric or character information and generate key signal input related to user settings and / or function control of the electronic device. It may include, but is not limited to, a mouse, keyboard, touch screen, trackpad, trackball, joystick, microphone, and / or remote control. Output unit 807 can be any type of device capable of presenting information, and may include, but is not limited to, a display, a speaker, a video / audio output terminal, a vibrator, and / or a printer. Storage unit 808 may include, but is not limited to, a magnetic disk or an optical disk. Communication unit 809 allows electronic device 800 to exchange information / data with other devices via computer networks such as the Internet and / or various telecommunication networks. It may include, but is not limited to, a modem, a network card, an infrared communication device, a wireless communication transceiver and / or chipset, such as a Bluetooth device, an 802.11 device, a WiFi device, a WiMax device, a cellular communication device, and / or the like.

[0112] The computing unit 801 can be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 801 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units that run machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 801 performs the various methods and processes described above, such as the data access method performed by the client program of the present disclosure. For example, in some embodiments, the data access method performed by the client program of the present disclosure can be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 808. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 800 via the ROM 802 and / or the communication unit 809. When the computer program is loaded into the RAM 803 and executed by the computing unit 801, one or more steps of the data access method performed by the client program of the present disclosure can be performed. Alternatively, in other embodiments, the computing unit 801 may be configured in any other appropriate manner (eg, by means of firmware) to execute the data access method executed by the client program of the present disclosure.

[0113] Various embodiments of the systems and techniques described above can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), system-on-chip systems (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include being implemented in one or more computer programs that are executable and / or interpreted on a programmable system that includes at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0114] The program code for implementing the method of the present disclosure can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device so that when the program code is executed by the processor or controller, the functions / operations specified in the flow chart and / or block diagram are implemented. The program code can be executed entirely on the machine, partially on the machine, as a stand-alone software package, partially on the machine and partially on a remote machine, or entirely on a remote machine or server.

[0115] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in conjunction with an instruction execution system, device or equipment. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0116] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0117] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network (LAN), a wide area network (WAN), and the Internet.

[0118] A computer system may include a client and a server. The client and server are generally remote from each other and typically interact through a communication network. The client-server relationship arises through computer programs running on the respective computers and having a client-server relationship with each other. The server may be a cloud server, a server in a distributed system, or a server integrated with a blockchain.

[0119] It should be understood that the various forms of the processes shown above can be used to reorder, add, or delete steps. For example, the steps described in this disclosure can be performed in parallel, sequentially, or in a different order, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved. This is not limited herein.

[0120] Although the embodiments or examples of the present disclosure have been described with reference to the accompanying drawings, it should be understood that the above-mentioned methods, systems and devices are merely exemplary embodiments or examples, and the scope of the present invention is not limited by these embodiments or examples, but is only limited by the claims after authorization and their equivalents. Various elements in the embodiments or examples may be omitted or replaced by their equivalents. In addition, the steps may be performed in an order different from that described in this disclosure. Further, the various elements in the embodiments or examples may be combined in various ways. It is important that as technology evolves, many of the elements described herein may be replaced by equivalent elements that appear after this disclosure.

Claims

1. A data access method executed by a client program, the client program comprising a first tool, wherein the code of the first tool comprises at least one verification point, the method comprising: determining whether a current code of each verification point of the first tool is the same as an initial code; In response to determining that the current code of each verification point is the same as the initial code, obtaining first feature information including subject features of the current data access subject based on the first tool; In response to receiving a data access request from the data access subject for accessing a first resource in a target data warehouse deployed in a file system, sending the first characteristic information to the target data warehouse to perform identity authentication based on a permission data table in the target data warehouse; In response to receiving a notification from the target data warehouse indicating that identity authentication has been passed, sending the first feature information to a data management platform through the first tool, the data management platform being configured to perform identity authentication based on the first feature information and, after identity authentication has been passed, generate a first identity credential that includes the first feature information, a validity period of the credential, and an association between the first resource and an underlying resource of the file system; In response to receiving the first identity credential sent by the data management platform, generating a second identity credential including the first feature information, the credential validity period, the first resource, and the data access operation type based on the first identity credential and the data access request; Sending the second identity credential to a permission verification module of the file system, where the permission verification module is configured to perform access permission verification based on the second identity credential; as well as In response to receiving a verification result indicating that the access authority verification has passed from the authority verification module, the data access subject is authorized to perform data access corresponding to the data access request.

2. The method according to claim 1, wherein The code of the first tool is obtained by obfuscating the original code of the first tool.

3. The method according to claim 1 or 2, wherein The sending the first feature information to the data management platform includes: encrypting the first feature information using a shared key between the first tool and the data management platform to obtain a first ciphertext; and The first ciphertext is sent to the data management platform; and wherein, The data management platform is further configured to decrypt the first ciphertext based on the shared key to obtain the first feature information.

4. The method according to claim 3, wherein: The first identity credential is encrypted by the data management platform based on the shared key and sent to the first tool, and the method further includes: In response to receiving the encrypted first identity credential sent by the data management platform, decrypting the first identity credential based on the shared key to obtain the first identity credential.

5. The method according to claim 4, wherein The shared key is obtained by exchanging the respective public keys of the first tool and the data management platform, and is calculated based on the received public key of the other party and the private key of the party, and wherein the public key is encrypted based on the key provided by the third-party trusted platform during the exchange process.

6. The method according to claim 1 or 2, wherein Acquiring the first characteristic information includes: In response to the data access subject being a user, obtaining user account information of the user as the subject feature; and In response to the data access subject being a first application, at least one of the following characteristic information of the first application is obtained: a program startup command, a program execution directory, and a program execution file, as the subject characteristic.

7. The method according to claim 1 or 2, wherein: The first characteristic information also includes the operating environment characteristics of the client program.

8. The method according to claim 7, wherein Acquiring the first feature information further includes: In response to the client program being deployed on a terminal device, obtaining environment information of the terminal device as the operating environment feature; and In response to the client program being deployed on a cluster, environmental information of the cluster is obtained as the operating environment feature.

9. A data access device executed by a client program, the client program comprising a first tool, wherein the code of the first tool includes at least one verification point, the device comprising: a first determining unit configured to determine whether a current code of each verification point of the first tool is the same as an initial code; a first acquiring unit configured to acquire, in response to determining that the current code of each verification point is the same as the initial code, first feature information including subject features of the current data access subject based on the first tool; a third sending unit configured to, in response to receiving a data access request from the data access subject for accessing a first resource in a target data warehouse deployed in the file system, send the first feature information to the target data warehouse to perform identity authentication based on a permission data table in the target data warehouse; a first sending unit configured to, in response to receiving a notification from the target data warehouse indicating that identity authentication has been passed, send the first feature information to a data management platform via the first tool, wherein the data management platform is configured to perform identity authentication based on the first feature information and generate a first identity credential including the first feature information, a validity period of the credential, and an association between the first resource and an underlying resource of the file system after the identity authentication has been passed; a first generating unit configured to, in response to receiving the first identity credential sent by the data management platform, generate, based on the first identity credential and the data access request, a second identity credential including the first feature information, the credential validity period, the first resource, and a data access operation type; a second sending unit configured to send the second identity credential to a permission verification module of a file system, wherein the permission verification module is configured to perform access permission verification based on the second identity credential; as well as The authorization unit is configured to, in response to receiving a verification result indicating that the access authority verification has passed from the authority verification module, authorize the data access subject to perform data access corresponding to the data access request.

10. The device according to claim 9, wherein The code of the first tool is obtained by obfuscating the original code of the first tool.

11. The device according to claim 9 or 10, wherein The first sending unit includes: a first encryption subunit, configured to encrypt the first feature information using a shared key between the first tool and the data management platform to obtain a first ciphertext; and The first sending subunit is configured to send the first ciphertext to the data management platform; and wherein, The data management platform is further configured to decrypt the first ciphertext based on the shared key to obtain the first feature information.

12. The device according to claim 11, wherein The first identity credential is encrypted by the data management platform based on the shared key and sent to the first tool, and the apparatus further includes: The decryption unit is configured to, in response to receiving the encrypted first identity credential sent by the data management platform, decrypt the encrypted first identity credential based on the shared key to obtain the first identity credential.

13. The device according to claim 12, wherein The shared key is obtained by exchanging the respective public keys of the first tool and the data management platform, and is calculated based on the received public key of the other party and the private key of the party, and wherein the public key is encrypted based on the key provided by the third-party trusted platform during the exchange process.

14. An electronic device comprising: at least one processor; as well as a memory communicatively coupled to the at least one processor; in The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 8.

15. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to enable a computer to execute the method according to any one of claims 1-8.

16. A computer program product comprising a computer program, wherein When the computer program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.

Citation Information

Patent Citations

  • Access control method and device, equipment and storage medium

    CN112559994A

  • Access control method and electronic equipment

    CN115277207A