Data management method, system, storage medium and program product

By using the synchronized object list and restricted query tools in the data management system, the security issues of large models accessing the enterprise's internal business database were resolved, achieving secure control and improved reliability of data access.

CN123138340APending Publication Date: 2026-11-20REALMAN INTELLIGENT TECH (BEIJING) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611416279.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-11
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

In existing technologies, when large models are directly connected to an enterprise's internal business database or accessed through an MCP server, there are issues such as exposed database credentials, expanded network boundaries, and insufficient data access security.

Method used

A data management system is adopted, including a business database, a synchronization database, a synchronization runner, a model interface server, and a model interface client. By using a synchronization object list and restricted query tools, the synchronization and query scope of data objects is limited to ensure that large models only access approved data copies, and the model interface server performs verification and correction processing.

Benefits of technology

It effectively reduces the exposure surface of business databases caused by large model analysis needs, improves the security and reliability of data access, and prevents dangerous or overly broad query requests by synchronizing the database and restricting query tools, thus achieving secure control over data surface access and queries.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123138340A_ABST
    Figure CN123138340A_ABST
Patent Text Reader

Abstract

The present disclosure provides a data management method, system, storage medium and program product. The data management system comprises a business database, a synchronization database, a synchronization runner, a model interface server and a model interface client. The data management method comprises: by the synchronization runner, according to a pre-configured synchronization object list, synchronizing data objects in the business database that are consistent with the synchronization object list to the synchronization database; by the model interface client, forwarding a data query request issued by a large model to the model interface server; by the model interface server, using a pre-defined limited query tool to perform a pre-defined verification and correction processing on the received data query request, and using the processed data query request to access the synchronization database, and returning a query result obtained by the access to the model interface client; and by the model interface client, returning the query result to the large model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure generally relates to the field of data access technology, and more specifically, to a data management method, system, storage medium, and program product. Background Technology

[0002] As enterprise big data models are increasingly used in data analytics, project management, time management, risk identification, and operational decision support, these models need to access structured data in the enterprise's internal business databases. Common practices include: allowing the big data model or its analytics services to connect directly to the business database; providing a read-only copy or synchronized library for the big data model; and indirectly accessing the database through intermediary services such as APIs, gateways, and MCP (Model Context Protocol) servers.

[0003] While directly connecting to the business database offers simplicity and flexible querying, it can lead to issues such as the large model analysis link holding the database account, potentially causing problems like expanding the main database network boundary and exposing credentials.

[0004] Building a separate read-only copy or synchronous database can isolate production read pressure, but if the large model still directly holds the synchronous database connection information, the schema, tables and fields in the synchronous database may still be overexposed.

[0005] Existing MCP database access solutions typically emphasize that the model discovers database capabilities, queries schemas, executes SQL, or invokes database tools through the MCP server. However, in enterprise intranet production environments, simply adding a layer of MCP middleware is insufficient to guarantee that the production master database is not exposed, and its data access security still needs further improvement. Summary of the Invention

[0006] This disclosure provides a data management method, system, storage medium, and program product for solving at least one of the above-mentioned problems.

[0007] According to a first aspect of the present disclosure, a data management method is provided, executed by a data management system, the data management system including a business database, a synchronization database, a synchronization runner, a model interface server, and a model interface client, wherein the data management method includes: the synchronization runner synchronizing data objects in the business database that match the synchronization object list to the synchronization database according to a pre-configured synchronization object list, wherein the synchronization object list is used to record data objects in the business database that are allowed to be synchronized to the synchronization database; the model interface client forwarding a data query request issued by a large model to the model interface server; the model interface server using a predefined restricted query tool to perform predefined verification and correction processing on the received data query request, and using the processed data query request to access the synchronization database, returning the obtained query result to the model interface client; and the model interface client returning the query result to the large model.

[0008] Optionally, the synchronization object list includes at least one synchronization object information, and each synchronization object information includes an identity identifier and an enable flag for a data object. The enable flag is used to indicate whether the data object is allowed to be synchronized. The step of synchronizing the data objects in the business database that match the synchronization object list to the synchronization database includes: synchronizing the data objects in the business database whose enable flag is set to "yes" in the synchronization object list to the synchronization database.

[0009] Optionally, the predefined verification process performed by the restricted query tool includes at least one of the following: verifying whether the data query request is a read-only request, verifying whether the data query request is a single-statement request, verifying whether the data query request has a pattern prefix, and verifying whether the pattern corresponding to the data query request is a pattern that is allowed to be queried.

[0010] Optionally, the predefined correction process performed by the restricted query tool includes at least one of the following: limiting the number of data rows queried by the data query request to within the upper limit of the number of rows, and setting a timeout for the data query request.

[0011] Optionally, the step of using a predefined restricted query tool to perform predefined verification and correction processing on the received data query request, and then using the processed data query request to access the synchronous database, includes: using an object discovery tool to determine data objects that meet preset conditions from the synchronous database, wherein the preset conditions are used to indicate that the corresponding data objects are currently actually queryable; using the restricted query tool to perform predefined verification and correction processing on the received data query request, and then using the processed data query request to access the currently queryable data objects.

[0012] Optionally, the data management method further includes: after each synchronization of data objects in the business database that match the synchronization object list to the synchronization database, the synchronization runner records the status information of each data object in the synchronization object list and records the audit information of this synchronization.

[0013] Optionally, the status information of each data object includes whether the synchronization was successful; the preset conditions include at least one of the following: the corresponding data object currently actually exists in the synchronization database, the mode of the corresponding data object is a queryable mode, the corresponding data object was successfully synchronized in the most recent synchronization, and the number of all data objects that meet the preset conditions is less than or equal to the upper limit.

[0014] Optionally, the business database is configured not to open its database listening port to the network segment where the large model or the analysis software carrying the large model is located, and the synchronization database is deployed on the intranet where the analysis software is located.

[0015] Optionally, the model interface client is configured not to hold database connection credentials for the business database and / or the synchronization database, but only to configure at least one of the following: the address of the model interface server, the interface path, the access credentials, the certificate authority certificate, the request timeout time, and the certificate hostname verification value.

[0016] According to a second aspect of the present disclosure, a data management system is provided, comprising: a business database for storing business data; a synchronization database for storing data copies of the business data; a synchronization runner for synchronizing data objects in the business database that match the synchronization object list to the synchronization database according to a pre-configured synchronization object list, wherein the synchronization object list records data objects in the business database that are allowed to be synchronized to the synchronization database; a model interface client for forwarding data query requests issued by a large model to a model interface server and returning the query results returned by the model interface server to the large model; and the model interface server for using a predefined restricted query tool to perform predefined verification and correction processing on the received data query requests, accessing the synchronization database using the processed data query requests, and returning the obtained query results to the model interface client.

[0017] Optionally, the synchronization object list includes at least one synchronization object information. Each synchronization object information includes an identity identifier and an enable flag for a data object. The enable flag is used to indicate whether synchronization of the data object is allowed. The synchronization runner is also used to synchronize data objects with the enable flag set to "yes" in the synchronization object list from the business database to the synchronization database.

[0018] Optionally, the predefined verification process performed by the restricted query tool includes at least one of the following: verifying whether the data query request is a read-only request, verifying whether the data query request is a single-statement request, verifying whether the data query request has a pattern prefix, and verifying whether the pattern corresponding to the data query request is a pattern that is allowed to be queried.

[0019] Optionally, the predefined correction process performed by the restricted query tool includes at least one of the following: limiting the number of data rows queried by the data query request to within the upper limit of the number of rows, and setting a timeout for the data query request.

[0020] Optionally, the model interface server is further configured to: use an object discovery tool to determine data objects that meet preset conditions from the synchronized database, wherein the preset conditions are used to indicate that the corresponding data objects are currently actually in a queryable state; use the restricted query tool to perform predefined verification and correction processing on the received data query requests, and use the processed data query requests to access the currently actually queryable data objects.

[0021] Optionally, the synchronization runner is further configured to record the status information of each data object in the synchronization object list and the audit information of this synchronization after each data object that matches the synchronization object list in the business database is synchronized to the synchronization database.

[0022] Optionally, the status information of each data object includes whether the synchronization was successful; the preset conditions include at least one of the following: the corresponding data object currently actually exists in the synchronization database, the mode of the corresponding data object is a queryable mode, the corresponding data object was successfully synchronized in the most recent synchronization, and the number of all data objects that meet the preset conditions is less than or equal to the upper limit.

[0023] Optionally, the business database is configured not to open its database listening port to the network segment where the large model or the analysis software carrying the large model is located, and the synchronization database is deployed on the intranet where the analysis software is located.

[0024] Optionally, the model interface client is configured not to hold database connection credentials for the business database and / or the synchronization database, but only to configure at least one of the following: the address of the model interface server, the interface path, the access credentials, the certificate authority certificate, the request timeout time, and the certificate hostname verification value.

[0025] According to a third aspect of the present disclosure, a computer-readable storage medium is provided, wherein instructions in the computer-readable storage medium, when executed by at least one processor, cause at least one processor to perform a data management method according to an exemplary embodiment of the present disclosure.

[0026] According to a fourth aspect of the present disclosure, a computer program product is provided, including computer instructions that, when executed by at least one processor, cause at least one processor to perform a data management method according to an exemplary embodiment of the present disclosure.

[0027] The technical solutions provided by the embodiments of this disclosure offer at least the following beneficial effects: Based on the data management method, system, storage medium, and program product of this disclosure, the business database is kept bound only to the local machine address or the production business container network. The database listening port is not open to large models or analysis software carrying large models. A synchronized database is used to store copies of the business data that the large model can query. This makes the synchronized database the only database data surface accessible to the large model, reducing the risk of the business database's exposure expanding due to the analysis needs of the large model. Furthermore, on the one hand, by restricting the scope of business objects entering the analysis data surface through the synchronized object list, data surface access is achieved, avoiding the default synchronization of the entire business database. On the other hand, the restricted query tools provided by the model interface server reduce the risk of the model generating dangerous, long, or overly broad queries. Thus, without opening the business database port to the analysis software, the large model can access approved business data, effectively improving data access security.

[0028] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description

[0029] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure, and are not intended to unduly limit this disclosure.

[0030] Figure 1 This is a schematic diagram of the architecture of a data management system according to an exemplary embodiment of the present disclosure.

[0031] Figure 2 This is a schematic diagram of a data synchronization process according to an exemplary embodiment of the present disclosure.

[0032] Figure 3 This is a schematic diagram of a data query process according to an exemplary embodiment of the present disclosure.

[0033] Figure 4 This is a flowchart of a data management method according to an exemplary embodiment of the present disclosure. Detailed Implementation

[0034] To enable those skilled in the art to better understand the technical solutions of this disclosure, the technical solutions in the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings.

[0035] It should be noted that the terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this disclosure are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this disclosure described herein can be implemented in orders other than those illustrated or described herein. The embodiments described in the following examples do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.

[0036] It should be noted that the phrase "at least one of several items" in this disclosure refers to three parallel cases: "any one of the several items", "a combination of any number of the several items", and "all of the several items". For example, "including at least one of A and B" includes the following three parallel cases: (1) including A; (2) including B; (3) including A and B. Another example is "performing at least one of step one and step two", which means the following three parallel cases: (1) performing step one; (2) performing step two; (3) performing both step one and step two.

[0037] When accessing structured data in an enterprise's internal business database, the following three common practices are used in large-scale enterprise privatization models.

[0038] The first approach is to have the large model or its analytics service directly connect to the business database. While this method is simple and offers flexible queries, it causes the large model analytics chain to hold the database account, potentially leading to issues such as expanding the main database network boundary and exposing credentials. Even if the database account is restricted to read-only, queries generated by the large model may still access too many objects or consume more database resources than expected.

[0039] The second approach is to provide a read-only copy or a synchronized library for large models. This method can isolate production read pressure, but if the large model still directly holds the synchronized library connection information, the schema, tables, and fields in the synchronized library may still be overexposed. When adding tool-level auditing, rate limiting, result pruning, and field control later, an additional intermediate layer will be needed.

[0040] The third method involves indirectly accessing the database through intermediary services such as APIs, gateways, and MCP servers. Taking the use of an MCP server as an example, this method typically emphasizes the model's ability to discover the database, query the schema, execute SQL, or invoke database tools through the MCP server. However, in an enterprise intranet production environment, simply adding a layer of MCP intermediary service is still insufficient to guarantee that the production master database is not exposed, and it is also difficult to distinguish between "data objects that are planned to be synchronized" and "data objects that are currently actually synchronized and allowed to be queried." Therefore, the security of data access still needs further improvement.

[0041] The data management method, system, storage medium, and program product according to exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings.

[0042] The data management method according to an exemplary embodiment of this disclosure is executed by a data management system. Figure 1 This is a schematic diagram of the architecture of a data management system according to exemplary embodiments of this disclosure. (Refer to...) Figure 1 The data management system includes a business database, a synchronization database, a synchronization runner, a model interface server, and a model interface client.

[0043] The business database is used to store business data, such as, but not limited to, production data from internal business systems. The business database maintains local access or production network access. Optionally, the business database is configured not to open its database listening port to the network segment where the large model or the analytics software running the large model resides, preventing the large model or analytics software from directly accessing the business database. As an example, the analytics software running the large model can also be called AI analytics software; this large model may be, for example, but not limited to, a private large model belonging to the enterprise.

[0044] A synchronous database is used to store copies of business data. Optionally, the synchronous database is deployed on the intranet where the aforementioned analysis software resides, meaning it's on a different network than the business database, achieving reliable data isolation. The synchronous database stores copies of business data that can be queried by the large model, serving as the sole database surface for accessing business data within the large model.

[0045] The synchronization runner is used to synchronize data objects in the business database that match the synchronization object list to the synchronization database, based on a pre-configured list of synchronization objects (e.g., a manifest). The synchronization object list records the data objects in the business database that are allowed to be synchronized to the synchronization database. The synchronization runner can be deployed on the host where the business database resides, a local controlled maintenance node, or the synchronization database host. As an example, the synchronization runner exports data using a read-only account at the source end; after reading the synchronization object list, the synchronization runner can perform incremental synchronization and / or full refresh on the enabled synchronization objects.

[0046] Before synchronizing the database, a model interface server is set up. This server exposes predefined model interface tools to large models or model interface clients, allowing large models to access business data through these tools. The model interface server connects to the synchronous database, but not to the business database. The model interface tools provided by the server include a restricted query tool. This tool, for example, can receive SQL (Structured Query Language) strings and access the synchronous database; it can also be called a controlled SQL query tool, named sirus.ai.sync.sql.query. This restricted query tool can be programmed and configured as needed. The model interface server uses the restricted query tool to perform predefined validation and correction processing on received data query requests, then uses the processed data query requests to access the synchronous database, returning the query results to the model interface client.

[0047] The model interface server can provide service interfaces to the outside world through a unified entry point on the enterprise intranet, such as, but not limited to, the MCP interface. In one implementation, the model interface server only supports HTTP POST and JSON-RPC 2.0, with the request path being / mcp, and methods including initialize, ping, tools / list, and tools / call.

[0048] The model interface client is used by large models to call the model interface server. The model interface client forwards data query requests from large models to the model interface server and returns the query results returned by the model interface server to the large models.

[0049] Optionally, the model interface client is configured not to hold access credentials for the business database and / or the synchronization database. It only needs to configure at least one of the following: the address of the model interface server, the interface path, the access credential (API key), the CA (Certificate Authority) certificate, the request timeout time, and the certificate hostname verification value. Large models only gain access to the model interface tool and do not hold database accounts. This prevents large models or model interface clients from holding business database credentials or direct connection credentials to the synchronization database, reducing the risk of credential leakage and unauthorized direct connections. Taking the MCP service as an example, the MCP client only needs at least one of the following configurations: MCP_BASE_URL: The base address of the MCP server; MCP_ENDPOINT: MCP request path; MCP_API_KEY: MCP access credential; MCP_CA_CERT: Internal CA certificate path; MCP_TIMEOUT_SECONDS: Client request timeout period; MCP_TLS_SERVER_NAME: Certificate hostname verification value.

[0050] As an example, the model interface client does not configure a password for the synchronization database (e.g., it can be written as AI_SYNC_DB_PASSWORD), and / or, does not configure the address, port, username, or password of the business database. Database connection information is only used by the model interface server and the synchronization runner in a server-controlled environment.

[0051] The model interface server can also perform API key authentication on requests other than health checks. As an example, the model interface client can use Authorization: Bearer<API_KEY> Or x-api-key:<API_KEY> Access credentials are transmitted to achieve client authentication. In a production environment, the model interface client needs to trust the internal CA and verify the server certificate.

[0052] As an example, when a request includes a browser Origin header, the model interface server can perform same-origin checks and reject requests from non-same-origin sources. Service-to-service clients typically do not actively send Origin headers.

[0053] According to the exemplary embodiments of the data management system disclosed herein, the business database is kept bound only to the local machine address or the production business container network. The database listening port is not open to large models or analysis software that carries large models. A synchronized database is used to store a copy of the business data that the large model can query. This makes the synchronized database the only database data surface that the large model can access, reducing the risk of the business database's exposure surface expanding due to the analysis needs of the large model. On this basis, on the one hand, the scope of business objects entering the AI ​​analysis data surface is restricted by the synchronized object list, realizing data surface access control and avoiding the default synchronization of the entire database of the business database. On the other hand, the restricted query tools provided by the model interface server reduce the risk of the model generating dangerous queries, long queries, or overly broad queries. Thus, without opening the business database port to the analysis software, the large model can access approved business data, effectively improving the security of data access.

[0054] The data management system according to exemplary embodiments of this disclosure will now be further described.

[0055] Regarding the synchronization runner and its operation, optionally, the synchronization object list includes at least one synchronization object entry. Each synchronization object entry includes an identity identifier and an enable flag for a data object. The enable flag indicates whether synchronization of the data object is permitted. The synchronization runner is also used to synchronize data objects with an enable flag of "Yes" in the synchronization object list from the business database to the synchronization database. The synchronization object list defines which business objects are allowed to enter the synchronization database. By configuring the identity identifier and enable flag of the corresponding data object in each synchronization object entry, only the enable flag needs to be modified during the maintenance of the synchronization object list, without directly adding or deleting the entire synchronization object entry, thus simplifying operations.

[0056] It should be understood that each synchronization object information entry may also include other information, meaning that when modifying the synchronization object list, there is no need to add or delete this large amount of information. As an example, each synchronization object information entry may also include, but is not limited to, the source schema (the source represents the data source for synchronization, i.e., the business database; the schema is the logical container used to organize and manage objects in the database), the source table (a table is the most important and core type of data object under a schema), the target schema, the target table, the incremental synchronization cursor column (a field used to record the time or location of data changes during data synchronization), and the batch synchronization size (representing the number of data rows written to the synchronization database in a single batch when synchronizing a data object). As an example, the synchronization database may include the business target schema. Synchronization object information may include, for example, the following: name: The name of the data object, serving as the identifier for the data object; enabled: The data object is enabled by the flag; true indicates yes, false indicates no. source_schema and source_table: source schema and source table, indicating the location of source objects; target_schema and target_table: target schema and target table, representing the location of the target object; cursor_column: Incremental synchronous cursor column; batch_size: Batch synchronization size.

[0057] The synchronizer only reads objects where `enabled=true`. Objects not appearing in the synchronized object list, or objects appearing in the synchronized object list but with `enabled=false`, are not entered into the synchronized database. This mechanism ensures that data undergoes object-level admission before entering the AI ​​analytics data surface.

[0058] In one implementation, the list of synchronized objects is in YAML format:

[0059] As an example, the synchronizing runner can perform regular incremental synchronization according to a preset schedule and perform a full refresh during off-peak hours. Regular incremental synchronization can be performed, for example, every two hours, while a full refresh at night can be performed once a day. The above frequencies are just examples; actual configurations can be made based on business freshness requirements.

[0060] Optionally, the synchronization runner is also used to record the status information of each data object in the synchronization object list after synchronizing data objects that match the synchronization object list from the business database to the synchronization database, and to record the audit information of this synchronization. By recording the status of the synchronization process and auditing (this can also be done for the query process), and further implementing rate limiting and failure alarms, an operable data access closed loop is formed, enabling the AI ​​data access link to have verifiable, auditable, and alarm capabilities. As an example, the synchronization status information and audit information can be written into a status table (e.g., ai.sync_state) and an audit table (e.g., ai.sync_audit) for synchronization governance in the synchronization database. As an example, the status table is used to store the most recent status of each synchronization object, such as object name, most recent success time, most recent status, total number of rows, most recent error summary, etc.; the audit table is used to store synchronization execution audit records, such as execution batch, object name, synchronization mode, start time, end time, number of rows affected, status, error message, etc.

[0061] Figure 2 This is a schematic diagram of a data synchronization process according to an exemplary embodiment of this disclosure. (Refer to...) Figure 2 The synchronization runner performs the following steps for each synchronization object: reads the list of synchronization objects, filters data objects marked as enabled (referred to as enabled objects); checks the source primary key, incremental synchronization cursor column, and target schema for enabled objects, and reads newly added or updated data based on the incremental synchronization cursor column; writes the data to the target schema or target table of the synchronization database according to the batch synchronization size; records the start time, end time, synchronization object, synchronization status (or synchronization result, i.e., whether the synchronization was successful), number of synchronized rows, and error information for this synchronization; updates the status table ai.sync_state and appends it to the audit table ai.sync_audit. When synchronization fails, a failure alarm can also be triggered based on the alarm recipient and alarm cooldown time.

[0062] Optionally, the predefined validation processes performed by the restricted query tool include at least one of the following: validating whether the data query request is a read-only request, validating whether the data query request is a single-statement request, validating whether the data query request has a pattern prefix, and validating whether the pattern corresponding to the data query request is a allowed query pattern. These validation processes can be respectively referred to as read-only validation, single-statement validation, pattern prefix validation, and pattern whitelist validation. Taking SQL as an example, read-only validation only allows SELECT or equivalent read-only queries, disallowing INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, and other write or structure-changing statements, thus restricting query permissions and protecting the original data. Single-statement validation can reject multi-statement requests. Pattern prefix validation requires the queried object to have a pattern prefix. Pattern whitelist validation only allows access to patterns in the whitelist. The pattern whitelist controls the queryable scope of the restricted query tool, constraining the data surface accessible by the tool, and implementing tool-level access control. Combined with the list of synchronization objects that implements data-level access control, it can clearly distinguish between "data objects planned to be synchronized" and "data objects that are currently actually synchronized and allowed to be queried."

[0063] Optionally, the predefined correction processing performed by the restricted query tool includes at least one of the following: limiting the number of rows queried by the data query request to within the row limit, and setting a timeout for the data query request. These correction processes can be referred to as row limit correction and timeout correction, respectively. Row limit correction appends a default row limit when the data query request (e.g., an SQL string) does not explicitly set a row limit (which can be denoted as `limit`), and rejects or rewrites it to the maximum value when the explicit row limit exceeds the maximum value. Timeout correction sets a timeout for a single data query request (which can be denoted as `statementtimeout`). Furthermore, the correction processing may also include result pruning correction, which refers to normalizing the returned fields, row counts, and error messages according to the output format of the model interface tool. When validation fails, the model interface server returns a structured error and does not access the synchronous database.

[0064] The above verification and correction mechanisms can prevent dangerous or overly broad data query requests generated by large models from being directly executed in the database.

[0065] Optionally, the model interface server also includes an object discovery tool. The model interface server is further used to: use the object discovery tool to determine data objects from the synchronized database that meet preset conditions, where the preset conditions indicate that the corresponding data objects are currently actually queryable; and use a restricted query tool to perform predefined validation and correction processing on received data query requests, and then use the processed data query requests to access the currently queryable data objects. By providing a runtime object discovery tool through the model interface server, the currently queryable data objects can be returned based on the actual runtime state, preventing clients from mistaking a static list of synchronized objects for real-time queryable runtime contracts, reducing the risk of querying non-existent, inactive, or unauthorized data objects, and improving the reliability of data queries. As an example, to achieve access to currently queryable data objects, the data query request can be rewritten to construct a query statement only for currently queryable data objects, and then processed using the restricted query tool to perform the data query.

[0066] Optionally, the status information for each data object includes whether synchronization was successful. Preset conditions include at least one of the following: the corresponding data object currently exists in the synchronization database; the corresponding data object's schema is a queried schema; the corresponding data object was successfully synchronized in the most recent synchronization; and the number of all data objects currently meeting the preset conditions is less than or equal to the maximum number. The object discovery tool does not directly copy the synchronized object list as its return result, but generates it by combining at least one of the following information: the schema, table, or view currently existing in the synchronization database; the whitelist of allowed access schemas configured on the model interface server; whether the object in the synchronization status table was recently successfully synchronized; and the maximum number of objects allowed to be returned configured by the caller or tool. By using clear judgment conditions based on the objects currently existing in the synchronization database, the whitelist of allowed access schemas, and the synchronization status, the tool can reliably return the currently queried schemas and objects.

[0067] As an example, the model interface server exposes an object discovery tool, which can be named sirus.ai.sync.objects.list. The object discovery tool returns the currently available queryable schemas and objects.

[0068] Figure 3 This is a schematic diagram of a data query process according to an exemplary embodiment of this disclosure. (Refer to...) Figure 3In response to a data query request issued by a large model, the model interface client can forward the request. At this time, the model interface server can first authenticate the model interface client (the client presents access credentials through the request header). After successful authentication, the model interface client can first call tools / list to obtain the model interface toolset, then call the object discovery tool to obtain the currently accessible objects, and then construct a read-only query only for the returned pattern and objects. Then, it calls the restricted query tool to verify and correct the constructed read-only query, and uses the processed data query request to access the synchronous database through the model interface server.

[0069] Figure 4 This is a flowchart of a data management method according to an exemplary embodiment of the present disclosure. The method is executed by the aforementioned data management system and therefore possesses all the beneficial technical effects of that data management system, which will not be elaborated upon here.

[0070] Reference Figure 4 In step S401, the synchronization runner synchronizes the data objects in the business database that match the synchronization object list to the synchronization database according to the pre-configured synchronization object list.

[0071] The synchronization object list is used to record data objects in the business database that are allowed to be synchronized to the synchronization database.

[0072] In step S402, the model interface client forwards the data query request issued by the large model to the model interface server.

[0073] In step S403, the model interface server uses a predefined restricted query tool to perform predefined verification and correction processing on the received data query request, and uses the processed data query request to access the synchronous database, returning the query results obtained from the access to the model interface client.

[0074] In step S404, the model interface client returns the query results to the large model.

[0075] Optionally, the synchronization object list includes at least one synchronization object information. Each synchronization object information includes an identity identifier and an enable flag for a data object. The enable flag is used to indicate whether the data object is allowed to be synchronized. The step S401 of synchronizing the data objects in the business database that match the synchronization object list to the synchronization database includes: synchronizing the data objects in the synchronization object list that have the enable flag set to "yes" from the business database to the synchronization database.

[0076] Optionally, the data management method according to an exemplary embodiment of the present disclosure further includes: after synchronizing data objects in the business database that match the synchronization object list to the synchronization database each time, the synchronization runner records the status information of each data object in the synchronization object list and records the audit information of this synchronization.

[0077] Optionally, the predefined validation processes performed by the restricted query tool include at least one of the following: validating whether the data query request is a read-only request, validating whether the data query request is a single-statement request, validating whether the data query request has a pattern prefix, and validating whether the pattern corresponding to the data query request is a pattern that is allowed to be queried.

[0078] Optionally, the predefined correction processes performed by the restricted query tool include at least one of the following: limiting the number of data rows queried by the data query request to a maximum number of rows, or setting a timeout for the data query request.

[0079] Optionally, step S403, which involves using a predefined restricted query tool to perform predefined verification and correction processing on the received data query request and then using the processed data query request to access the synchronized database, includes: using an object discovery tool to determine data objects that meet preset conditions from the synchronized database, wherein the preset conditions are used to indicate that the corresponding data objects are currently actually queryable; and using the restricted query tool to perform predefined verification and correction processing on the received data query request and then using the processed data query request to access the currently queryable data objects.

[0080] Optionally, the status information of each data object includes whether the synchronization was successful; the preset conditions include at least one of the following: the corresponding data object currently actually exists in the synchronization database, the mode of the corresponding data object is a mode that can be queried, the corresponding data object was successfully synchronized in the most recent synchronization, and the number of all data objects that meet the preset conditions is less than or equal to the upper limit.

[0081] Optionally, the business database is configured not to open its database listening port to the network segment where the large model or the analysis software carrying the large model is located, and the synchronous database is deployed on the intranet where the analysis software is located.

[0082] Optionally, the model interface client is configured not to hold database connection credentials for the business database and / or the synchronization database, but only to configure at least one of the following: the address of the model interface server, the interface path, the access credentials, the certificate authority certificate, the request timeout time, and the certificate hostname verification value.

[0083] In general, the exemplary embodiments of this disclosure provide a method, system, and storage medium for isolated synchronization and MCP-controlled querying of intranet business databases for private large-scale models. This method keeps the business database from opening its database listening port to the AI ​​analytics software network segment. A synchronization database is deployed within the intranet where the AI ​​analytics software resides. A synchronization object list limits the business objects allowed to access the AI ​​analytics data surface. The synchronization runner only synchronizes enabled objects and records the synchronization status and synchronization audit information. A model interface server is set up before the synchronization database. The model interface server exposes an object discovery tool and a restricted query tool to the private large-scale model. The object discovery tool returns the currently queryable schema and objects based on the runtime state of the synchronization database. The restricted query tool performs read-only, single-statement, schema whitelist, row limit, and execution timeout controls before executing SQL. The model interface client does not hold database credentials for the business database or the synchronization database. This reduces the exposure surface of the production database and the risk of unauthorized queries in the large-scale model, and improves the auditability and governance of the enterprise intranet AI data access link.

[0084] According to exemplary embodiments of the present disclosure, a computer-readable storage medium storing instructions may also be provided, wherein the instructions, when executed by at least one processor, cause at least one processor to perform the data management method as described in the exemplary embodiments above. Examples of computer-readable storage media herein include: read-only memory (ROM), random access programmable read-only memory (PROM), electrically erasable programmable read-only memory (EEPROM), random access memory (RAM), dynamic random access memory (DRAM), static random access memory (SRAM), flash memory, non-volatile memory, CD-ROM, CD-R, CD+R, CD-RW, CD+RW, DVD-ROM, DVD-R, DVD+R, DVD-RW, DVD+RW, DVD-RAM, BD-ROM, BD-R, BD-R LTH, BD-RE, Blu-ray or optical disc storage, hard disk drive (HDD), solid-state drive (SSD), card storage (such as multimedia cards, secure digital (SD) cards, or ultra-fast digital (XD) cards), magnetic tape, floppy disk, magneto-optical data storage device, optical data storage device, hard disk, solid-state drive, and any other device configured to store a computer program and any associated data, data files, and data structures in a non-transitory manner and to provide the computer program and any associated data, data files, and data structures to a processor or computer so that the processor or computer can execute the computer program. The computer program in the aforementioned computer-readable storage medium can run in an environment deployed in computer devices such as clients, hosts, agent devices, servers, etc. Furthermore, in one example, the computer program and any associated data, data files, and data structures are distributed across a networked computer system, such that the computer program and any associated data, data files, and data structures are stored, accessed, and executed in a distributed manner through one or more processors or computers.

[0085] According to exemplary embodiments of the present disclosure, a computer program product may also be provided, including computer instructions that, when executed by at least one processor, perform the data management method as described in the exemplary embodiments above.

[0086] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the appended claims.

[0087] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.

Claims

1. A data management method characterized by, This is executed by a data management system, which includes a business database, a synchronization database, a synchronization runner, a model interface server, and a model interface client. The data management method includes: The synchronization runner synchronizes data objects in the business database that match the synchronization object list to the synchronization database according to a pre-configured synchronization object list. The synchronization object list is used to record data objects in the business database that are allowed to be synchronized to the synchronization database. The model interface client forwards the data query request issued by the large model to the model interface server; The model interface server uses a predefined restricted query tool to perform predefined verification and correction processing on the received data query request, and uses the processed data query request to access the synchronous database, and returns the query result obtained from the access to the model interface client. The query results are returned to the large model by the model interface client.

2. The data management method of claim 1, wherein, The synchronization object list includes at least one synchronization object information entry. Each synchronization object information entry includes an identity identifier and an enable flag for a data object. The enable flag indicates whether synchronization of the data object is permitted. The step of synchronizing data objects in the business database that match the synchronization object list to the synchronization database includes: Data objects marked as enabled in the synchronization object list are synchronized from the business database to the synchronization database.

3. The data management method as described in claim 1, characterized in that, The predefined verification process performed by the restricted query tool includes at least one of the following: verifying whether the data query request is a read-only request, verifying whether the data query request is a single-statement request, verifying whether the data query request has a pattern prefix, and verifying whether the pattern corresponding to the data query request is a pattern that is allowed to be queried. and / or The predefined correction process performed by the restricted query tool includes at least one of the following: limiting the number of data rows queried by the data query request to within the upper limit of the number of rows, and setting a timeout for the data query request.

4. The data management method of any one of claims 1 to 3, wherein, The step of using a predefined restricted query tool to perform predefined verification and correction processing on the received data query request, and then using the processed data query request to access the synchronous database, includes: Using an object discovery tool, data objects that meet preset conditions are identified from the synchronized database, wherein the preset conditions indicate that the corresponding data objects are currently actually in a queryable state; Using the restricted query tool, the received data query request is subjected to predefined verification and correction processing, and the processed data query request is used to access the currently queryable data object.

5. The data management method of claim 4, wherein, Also includes: The synchronization runner records the status information of each data object in the synchronization object list and the audit information of this synchronization after synchronizing the data objects that match the synchronization object list in the business database to the synchronization database each time.

6. The data management method as described in claim 5, characterized in that, The status information for each data object includes whether synchronization was successful; The preset conditions include at least one of the following: the corresponding data object currently actually exists in the synchronization database; the mode of the corresponding data object is a queryable mode; the corresponding data object was successfully synchronized in the most recent synchronization; and the number of all data objects that meet the preset conditions is less than or equal to the upper limit.

7. The data management method according to any one of claims 1 to 3, characterized in that, The business database is configured not to open its database listening port to the network segment where the large model or the analysis software running the large model is located; and / or the synchronization database is deployed on the intranet where the analysis software is located; and / or The model interface client is configured not to hold database connection credentials for the business database and / or the synchronization database, but only to configure at least one of the following: the address of the model interface server, the interface path, the access credentials, the certificate authority certificate, the request timeout time, and the certificate hostname verification value.

8. A data management system, characterized by The data management system includes: The business database is used to store business data; A synchronized database is used to store data copies of the business data; A synchronization runner is used to synchronize data objects in the business database that match the synchronization object list to the synchronization database according to a pre-configured synchronization object list, wherein the synchronization object list is used to record data objects in the business database that are allowed to be synchronized to the synchronization database; The model interface client is used to forward data query requests from the large model to the model interface server, and return the query results returned by the model interface server to the large model; and The model interface server is used to perform predefined verification and correction processing on the received data query requests using predefined restricted query tools, and then use the processed data query requests to access the synchronous database and return the query results obtained from the access to the model interface client.

9. A computer-readable storage medium, characterized in that, When the instructions in the computer-readable storage medium are executed by at least one processor, they cause the at least one processor to perform the data management method as described in any one of claims 1 to 7.

10. A computer program product comprising computer instructions, characterized in that, When the computer instructions are executed by at least one processor, they cause the at least one processor to perform the data management method as described in any one of claims 1 to 7.