Data query methods, apparatuses, and systems for multi-party secure database
Abstract
This specification provides example data query methods, apparatuses, and systems for a multi-party secure database. In an example computer-implemented method, a central node receives a data query request from a data requester, where the data query request relates to one or more pieces of target data stored at one or more data providers. The central node determines whether the data query request satisfies respective security requirements of the one or more pieces of target data. In response to determining that the data query request satisfies respective security requirements of the one or more pieces of target data, the central node processes the one or more pieces of target data to obtain result data; and sends the result data to the data requester. The central node can restrict query of the target data by the data requester based on the security requirement of the target data stored at the data provider.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 13 · Forward citations: 0.
Claims (21 — 3 Independent, 18 Dependent)
- Claim 1Independent Claim
A computer-implemented method for data query of a multi-party secure database, comprising: receiving, by a central node, a data query request from a data requester, wherein the data query request specifies one or more first logical operations to be performed on one or more pieces of target data stored at one or more data providers, wherein the central node and the one or more data providers have respective computing and storage capabilities, and each of the one or more data providers comprises its respective database system that provides a respective data storage capability; determining, by the central node, whether the data query request satisfies respective security requirements that are defined by the one or more data providers, wherein at least one of the respective security requirements defined by one of the one or more data providers is different from another of the respective security requirements defined by another of the one or more data providers, and wherein for each data provider of the one or more data providers, a respective security requirement that is defined by the data provider comprises a respective first list of operations allowed to perform, and the determining comprises: determining that the one or more first logical operations specified by the data query request belong to the respective first list of operations allowed to perform; and based on determining that the one or more first logical operations specified by the data query request belong to the respective first list of operations allowed to perform, determining that the data query request satisfies the respective security requirement that is defined by the data provider; in response to determining that the data query request satisfies the respective security requirements that are defined by the one or more data providers, accessing, by the central node, the one or more pieces of target data stored at the one or more data providers, and processing, by the central node, the one or more pieces of target data stored at the one or more data providers to generate result data; and sending, by the central node, the result data to the data requester.
- Claim 2Depends on #1
The computer-implemented method according to claim 1, wherein the one or more pieces of target data comprise a plurality of pieces of target data, and the one or more data providers comprise a plurality of data providers.
- Claim 3Depends on #1
The computer-implemented method according to claim 1, wherein the determining comprises: determining, based on the data query request, a logical plan to be used to process the one or more pieces of target data to obtain the result data; and determining, based on the logical plan, whether the data query request satisfies the respective security requirements that are defined by the one or more data providers.
- Claim 4Depends on #3
The computer-implemented method according to claim 3, wherein the one or more pieces of target data comprise data of a first field, and the logical plan comprises performing a first logical operation on the first field; and the determining comprises: determining whether the first logical operation satisfies a target security requirement for the first field.
- Claim 5Depends on #4
The computer-implemented method according to claim 4, wherein the target security requirement is a current level among one or more security levels; each of the one or more security levels is used to indicate one or both of one or more first operations allowed to perform at the security level, or one or more second operations prohibited to perform at the security level; and the determining whether the first logical operation satisfies a target security requirement for the first field comprises: if the first logical operation belongs to the one or more first operations at the current level, determining that the first logical operation satisfies the target security requirement; or if the first logical operation belongs to the one or more second operations at the current level, determining that the first logical operation does not satisfy the target security requirement.
- Claim 6Depends on #5
The computer-implemented method according to claim 5, wherein the one or more security levels comprise at least one of: a first security level, wherein one or more first operations indicated by the first security level comprise at least one of: using a corresponding current field as a join key, using a corresponding current field as a key of a grouping condition or a sorting condition, or using a corresponding current field as a key of a filtering condition; or wherein one or more second operations indicated by the first security level comprise querying a corresponding current field in plaintext; a second security level, wherein one or more first operations indicated by the second security level comprise: performing a UNION operation on a corresponding current field to obtain an operation result, mapping the operation result in N-to-1 mapping to obtain a mapping result, and querying the mapping result in plaintext; a third security level, wherein one or more first operations indicated by the third security level comprise: mapping a corresponding current field in N-to-1 mapping to obtain a mapping result, and querying the mapping result in plaintext; or a fourth security level, wherein one or more first operations indicated by the fourth security level comprise querying a corresponding current field in plaintext.
- Claim 7Depends on #6
The computer-implemented method according to claim 6, wherein the N-to-1 mapping comprises a comparison operation, an IN operation, or an aggregation operation.
- Claim 8Depends on #4
The computer-implemented method according to claim 4, wherein the first field originates from a first data table, the first data table further comprises a second field, and the second field and the first field have different target security requirements.
- Claim 9Depends on #1
The computer-implemented method according to claim 1, wherein the respective security requirement defined by the data provider further comprises a respective second list of operations prohibited to perform; and the determining further comprises, for the data provider: determining that one or more second logical operations specified by the data query request do not belong to the respective second list of operations prohibited to perform; and based on determining that the one or more second logical operations do not belong to the respective second list of operations prohibited to perform, determining that the data query request satisfies the respective security requirement.
- Claim 10Independent Claim
An apparatus, comprising: one or more computers; and one or more computer memory devices interoperably coupled with the one or more computers and having, non-transitory, machine-readable media storing one or more instructions that, when executed by the one or more computers, perform one or more operations comprising: receiving, by a central node, a data query request from a data requester, wherein the data query request specifies one or more first logical operations to be performed on one or more pieces of target data stored at one or more data providers, wherein the central node and the one or more data providers have respective computing and storage capabilities, and each of the one or more data providers comprises its respective database system that provides a respective data storage capability; determining, by the central node, whether the data query request satisfies respective security requirements that are defined by the one or more data providers, wherein at least one of the respective security requirements defined by one of the one or more data providers is different from another of the respective security requirements defined by another of the one or more data providers, and wherein for each data provider of the one or more data providers, a respective security requirement that is defined by the data provider comprises a respective first list of operations allowed to perform, and the determining comprises: determining that the one or more first logical operations specified by the data query request belong to the respective first list of operations allowed to perform; and based on determining that the one or more first logical operations specified by the data query request belong to the respective first list of operations allowed to perform, determining that the data query request satisfies the respective security requirement that is defined by the data provider; in response to determining that the data query request satisfies the respective security requirements that are defined by the one or more data providers, accessing, by the central node, the one or more pieces of target data stored at the one or more data providers, and processing, by the central node, the one or more pieces of target data stored at the one or more data providers to generate result data; and sending, by the central node, the result data to the data requester.
- Claim 11Depends on #10
The apparatus according to claim 10, wherein the one or more pieces of target data comprise a plurality of pieces of target data, and the one or more data providers comprise a plurality of data providers.
- Claim 12Depends on #10
The apparatus according to claim 10, wherein the determining comprises: determining, based on the data query request, a logical plan to be used to process the one or more pieces of target data to obtain the result data; and determining, based on the logical plan, whether the data query request satisfies the respective security requirements that are defined by the one or more data providers.
- Claim 13Depends on #12
The apparatus according to claim 12, wherein the one or more pieces of target data comprise data of a first field, and the logical plan comprises performing a first logical operation on the first field; and the determining comprises: determining whether the first logical operation satisfies a target security requirement for the first field.
- Claim 14Depends on #13
The apparatus according to claim 13, wherein the first field originates from a first data table, the first data table further comprises a second field, and the second field and the first field have different target security requirements.
- Claim 15Depends on #13
The apparatus according to claim 13, wherein the target security requirement is a current level among one or more security levels; each of the one or more security levels is used to indicate one or both of one or more first operations allowed to perform at the security level, or one or more second operations prohibited to perform at the security level; and the determining whether the first logical operation satisfies a target security requirement for the first field comprises: if the first logical operation belongs to the one or more first operations at the current level, determining that the first logical operation satisfies the target security requirement; or if the first logical operation belongs to the one or more second operations at the current level, determining that the first logical operation does not satisfy the target security requirement.
- Claim 16Depends on #15
The apparatus according to claim 15, wherein the one or more security levels comprise at least one of: a first security level, wherein one or more first operations indicated by the first security level comprise at least one of: using a corresponding current field as a join key, using a corresponding current field as a key of a grouping condition or a sorting condition, or using a corresponding current field as a key of a filtering condition; or wherein one or more second operations indicated by the first security level comprise querying a corresponding current field in plaintext; a second security level, wherein one or more first operations indicated by the second security level comprise: performing a UNION operation on a corresponding current field to obtain an operation result, mapping the operation result in N-to-1 mapping to obtain a mapping result, and querying the mapping result in plaintext; a third security level, wherein one or more first operations indicated by the third security level comprise: mapping a corresponding current field in N-to-1 mapping to obtain a mapping result, and querying the mapping result in plaintext; or a fourth security level, wherein one or more first operations indicated by the fourth security level comprise querying a corresponding current field in plaintext.
- Claim 17Depends on #10
The apparatus according to claim 10, wherein the respective security requirement defined by the data provider further comprises a respective second list of operations prohibited to perform; and the determining further comprises, for the data provider: determining that one or more second logical operations specified by the data query request does not belong to the respective second list of operations prohibited to perform; and based on determining that the one or more second logical operations does not belong to the respective second list of operations prohibited to perform, determining that the data query request satisfies the respective security requirement.
- Claim 18Independent Claim
A computer-implemented method for data query of a multi-party secure database, comprising: receiving, by a central node, a data query request from a data requester, wherein the data query request specifies one or more first logical operations to be performed on one or more pieces of target data stored at one or more data providers, wherein the central node and the one or more data providers have respective computing and storage capabilities, and each of the one or more data providers comprises its respective database system that provides a respective data storage capability; determining, by the central node, whether the data query request satisfies respective security requirements that are defined by the one or more data providers, wherein at least one of the respective security requirements defined by one of the one or more data providers is different from another of the respective security requirements defined by another of the one or more data providers, and wherein for each data provider of the one or more data providers, a respective security requirement that is defined by the data provider comprises a respective first list of operations prohibited to perform, and the determining comprises: determining that the one or more first logical operations specified by the data query request do not belong to the respective first list of operations prohibited to perform; and based on determining that the one or more first logical operations specified by the data query request do not belong to the respective first list of operations prohibited to perform, determining that the data query request satisfies the respective security requirement that is defined by the data provider; in response to determining that the data query request satisfies the respective security requirements that are defined by the one or more data providers, accessing, by the central node, the one or more pieces of target data stored at the one or more data providers, and process the one or more pieces of target data stored at the one or more data providers to generate result data; and sending, by the central node, the result data to the data requester.
- Claim 19Depends on #18
The computer-implemented method according to claim 18, wherein the one or more pieces of target data comprise a plurality of pieces of target data, and the one or more data providers comprise a plurality of data providers.
- Claim 20Depends on #18
The computer-implemented method according to claim 18, wherein the determining comprises: determining, based on the data query request, a logical plan to be used to process the one or more pieces of target data to obtain the result data; and determining, based on the logical plan, whether the data query request satisfies the respective security requirements that are defined by the one or more data providers.
- Claim 21Depends on #20
The computer-implemented method according to claim 20, wherein the one or more pieces of target data comprise data of a first field, and the logical plan comprises performing a first logical operation on the first field; and the determining comprises: determining whether the first logical operation satisfies a target security requirement for the first field.
Technical Overview & Description
CROSS-REFERENCE TO RELATED APPLICATIONS This application is a continuation of PCT Application No. PCT/CN2022/086614, filed on Apr. 13, 2022, which claims priority to Chinese Patent Application No. 202110443580.1, filed on Apr. 23, 2021, and each application is hereby incorporated by reference in its entirety. TECHNICAL FIELD One or more embodiments of this specification relate to the computer field, and in particular, to data query methods, apparatuses, and systems for a multi-party secure database. BACKGROUND Databases are repositories that organize, store, and manage data based on specific data structures. Data providers that the databases belong to can receive, by using corresponding database engines, a data query request from a data requester, perform corresponding processing on data in the databases based on the data query request to obtain result data, and return the result data to the data requester. However, with the advent of the intelligent sharing era, a mode where the data providers provide data services independently of each other has become increasingly difficult to consider requirements of a plurality of aspects such as a sharing scenario and data security. A new technical solution is desired to provide a secure data solution to the sharing scenario. SUMMARY One or more embodiments of this specification provide data query methods, apparatuses, and systems for secure multi-party data, to provide a secure data solution to a sharing scenario, thereby facilitating security protection for some or all private data among target data. According to a first aspect, a data query method for a multi-party secure database is provided, applied to a central node, and including: receiving a data query request from a data requester, where the data query request relates to one or more pieces of target data stored at one or more data providers; determining whether the data query request satisfies respective security requirements of the one or more pieces of target data;
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (13)
| Patent | Title | Year | Citations |
|---|
Non-Patent Literature (2)
- International Preliminary Report on Patentability in Appln. No. PCT/CN2022/086614, mailed on Nov. 2, 2023, 11 pages (with English translation).
- International Search Report and Written Opinion in Appln. No. PCT/CN2022/086614, mailed on Jun. 29, 2022, 15 pages (with English translation).