A data connection method for a trusted data space

By generating one-time connection tokens and short-lifetime listening instances, combined with reverse proxy and tiered fallback mechanisms, the problems of fixed port exposure, multi-protocol adaptation, and contract constraint sinking of data access connectors are solved, thus achieving secure and reliable data access and access control.

CN123184899APending Publication Date: 2026-11-27广州睿帆科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611324191.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-28
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing data access connectors suffer from issues such as the risk of fixed port exposure, insufficient multi-protocol access capabilities, poor architectural scalability, difficulty in implementing contractual constraints at the protocol level for access control, and the ease with which access identities can be forged.

Method used

By generating a one-time connection token, using a proxy link descriptor signed with the provider's private key, a short-lifetime listening instance is started, and the token is revoked through atomic operations to establish a data transmission channel. Combined with a reverse proxy model and a tiered fallback mechanism, unified access control constrained by the contract is achieved.

Benefits of technology

It effectively prevents the access point from being reused across sessions or consumers, improves the security and anti-replay capability of data access, supports multi-protocol access, ensures that contract constraints are pushed down to the specific protocol level, and does not require modification of consumer applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123184899A_ABST
    Figure CN123184899A_ABST
Patent Text Reader

Abstract

The application relates to the technical field of trusted data space, and particularly discloses a data connection method for a trusted data space, which can compress a port external exposure window to a token effective time window and a first legal connection establishment time, and prevent an access entrance from being multiplexed across sessions or across consumers. The method comprises the following steps: a provider data access connector generates a one-time connection token by identity mutual recognition and contract verification, and signs a proxy link descriptor; a short life cycle monitoring instance is started on a temporary port, and a descriptor field is bound with a local monitoring instance state; a consumer connects the temporary port within an effective time window and carries the token; the provider verifies the signature, compares the descriptor with the binding relationship item by item, and then performs an atomic compare-and-swap operation to one-time migrate a connection identifier to an occupied state to complete verification, establish a data transmission channel, and immediately close the external monitoring of the temporary port.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of trusted data space technology, and in particular to a data connection method for trusted data spaces. Background Technology

[0002] Trusted Data Space is a data infrastructure architecture that enables secure data sharing and circulation among distributed data holders. The data access connector is the core component in Trusted Data Space that enables data access and forwarding. Deployed on both the data provider and data consumer sides, it is responsible for establishing a controlled data access channel between them and undertakes functions such as identity verification, connection negotiation, protocol adaptation, data forwarding, access control, and transmission security.

[0003] In terms of the implementation principle of data access, constrained by the TCP service model of the Transmission Control Protocol, the server must continuously bind to and listen to a fixed port in order to be addressed and accessed by the client. The reachability of the port and the service function are inseparable in principle. Correspondingly, the reachability of the port also constitutes the attack surface. The longer the port is open, the longer the service can be scanned, probed or replayed. The two cannot be separated from each other through configuration.

[0004] To alleviate the problem of long-term exposure of fixed ports, existing technologies include dynamic allowance schemes based on single-packet authorization. These schemes do not respond to the port before verification and dynamically allow access after verification, thus achieving port invisibility. However, such schemes use the Internet Protocol (IP) address of the connection source as the basis for allowance. If the consumer is located behind a Network Address Translation (NAT) device, causing the egress IP to change, the allowance rules cannot match the actual connection, leading to access failure. Furthermore, these schemes only address the access permission issue of establishing a connection; they cannot implement contract-level control over the content accessed after the connection is established, resulting in a disconnect between access permission and content control.

[0005] Existing data access connectors still have the following problems in actual deployment and cross-entity data flow scenarios: First, the connectors lack the ability to adapt to multiple protocols and business systems. Existing connectors are usually implemented using HTTP or HTTPS interfaces, and lack unified adaptation capabilities for various access methods such as Java Database Connectivity (JDBC), Open Database Connectivity (ODBC), Representational State Transfer (RESTful), Remote Procedure Call (RPC), message streams, and file reading.

[0006] Second, the architecture lacks scalability and high availability. Existing connectors are mostly deployed as single nodes or fixed nodes, making it difficult to dynamically expand processing capabilities by connection, protocol, or load. When a connector node fails, there is a lack of master node backup and hierarchical fallback mechanisms.

[0007] Third, fixed listening ports increase the risk of external exposure. Traditional connectors need to keep fixed service addresses and fixed listening ports open for a long time, which can easily expose the provider's internal network service topology and increase the risk of the connector being scanned, probed or replayed.

[0008] Fourth, the connection negotiation result lacks a strong binding with the actual access point. The access address, port, protocol, and connection instance used in the actual data transmission phase may not be bound to the current negotiation request, making it difficult to prevent the access point from being reused across sessions, consumers, or protocols. Fifth, contract constraints are difficult to implement at the protocol level for access control. Existing connectors struggle to convert constraints such as access subjects, access scope, access methods, time windows, and usage restrictions in contracts into table-level, field-level, operation-level, API path-level, or streaming topic-level controls under specific protocols. Summary of the Invention

[0009] This application provides a data connection method for trusted data spaces, which can avoid the exposure risk caused by keeping fixed service ports open for a long time, prevent access points from being reused across sessions or consumers, and support access control that pushes contract constraints down to the specific protocol level.

[0010] To achieve the above objectives, this application adopts the following technical solution: Firstly, a data connection method for trusted data spaces is provided, including: The provider data access connector receives a data transmission negotiation request sent by the consumer data access connector and generates a one-time connection token; wherein, the one-time connection token is generated by the provider's private key to digest the proxy link descriptor after identity mutual recognition and contract verification; Based on the one-time connection token, a short-lifetime listening instance is initiated on a temporary port through the provider data access connector; Based on the one-time connection token, the temporary port is connected via the consumer data access connector; The provider data access connector verifies whether the fields of the proxy link descriptor are consistent with the state of the listening instance. When they match, the one-time connection token is cancelled through atomic operations, and a data transmission channel is established.

[0011] In the above method, this application generates a one-time connection token by signing the digest of the proxy link descriptor with the provider's private key after identity mutual recognition and contract verification, ensuring that each data access negotiation corresponds to a unique signature credential. By starting a short-lifespan listening instance on a temporary port according to the negotiation result, the data access entry point is generated immediately with the negotiation and disappears immediately with the session, without having to keep a fixed service port open for a long time. By verifying the consistency between the descriptor field and the listening instance state and atomically revoking the token, the same token can only correspond to one successful access. Thus, the external exposure window of the port is compressed from long-term openness in the fixed listening mode to the time window between the token's validity and a single session, achieving controlled data access while preventing the access entry point from being reused across sessions or consumers. Moreover, because the one-time connection token is signed with the provider's private key and atomically revoked, forging the token or replaying a revoked token will fail verification, thus improving the security and anti-replay capability of the data access process.

[0012] As one embodiment of this application, the step of canceling the one-time connection token through atomic operations to establish a data transmission channel includes: Determine the connection identifier based on the proxy link descriptor; Synchronously perform atomic comparison and exchange operations to migrate the connection identifier from the pending access state to the occupied state in one go, and determine the migration state; wherein... When migration fails, the connection is rejected and a replay or conflict event is reported to the policy engine. The connection identifier remains in an occupied state and is not rolled back, so that the same connection identifier corresponds to at most one successful access within the effective time window. After successful migration, a session key for the data transmission channel is negotiated and generated during the Transport Layer Security (TLS) handshake process, and a data transmission channel based on the session key is generated. The session key is only valid within the lifecycle of this session.

[0013] In the above embodiments, this application performs a one-time state transition on the connection identifier using atomic comparison and swap operations, and maintains the occupied state without rollback when the transition fails, making the one-time semantics of the token a testable state assertion rather than a credential management convention; even if an attacker completely intercepts the token and replays it, the replay will inevitably fail. Since the session key is negotiated and generated in the TLS handshake and is only valid within the lifetime of this session, the token channel and the key channel are separated from each other, thus further improving the security of the data transmission channel.

[0014] As one embodiment of this application, the provider data access connector accesses the backend data provider in a reverse proxy manner according to the proxy configuration package, and the one-time connection token is also bound to the proxy configuration package digest of the proxy configuration package; The proxy configuration package includes at least the reverse proxy method, backend data source connection method, access control mode, timeout period, concurrency limit, and failure fallback strategy; The provider data access connector verifies that the value recorded in the proxy configuration package digest matches the value recorded in the proxy link descriptor before executing the reverse proxy according to the proxy configuration package.

[0015] In the above embodiments, since configuration tampering, replacement or missending will be intercepted in the digest verification stage, the situation where the proxy behavior deviates from the contract constraints will be discovered before entering the data transmission stage. Therefore, data unauthorized access or access control failure caused by incorrect proxy configuration is avoided.

[0016] As one embodiment of this application, the reverse proxy method includes at least one of the following: The TCP protocol-level reverse proxy mode forwards TCP byte streams between the data transmission channel and the backend data provider, and the backend data provider performs application protocol authentication and authorization. In the application-level reverse proxy mode, the application layer request is parsed, the contract digest in the proxy link descriptor is determined, and based on the contract constraints corresponding to the contract digest, the query statement, application programming interface (API) path, field set and operation type are pruned, rewritten or intercepted at the field level, operation level or API path level, and requests that conform to the contract constraints are allowed to pass. The hybrid reverse proxy model transmits the consumer's identity authentication information to the backend data provider and performs the trimming, rewriting, or interception of the request content according to the contract constraints.

[0017] In the above embodiments, this application binds a one-time connection token to the digest of the proxy configuration package, thus bringing the execution layer configuration under signature protection. By performing field-level, operation-level, or API path-level pruning, rewriting, or interception based on the contract constraints corresponding to the contract digest, the data source for access control is locked to the contract digest carried within the token. Since authorization credentials and content control policies are issued together with the token, unified access control and content control are achieved. This application embodiment, based on the contract constraints corresponding to the contract digest, performs field-level, operation-level, or API path-level pruning, rewriting, or interception on query statements, application programming interface (API) paths, field sets, and operation types, thus locking the data source for access control to the contract digest carried within the token. Credentials and control policies are issued together with the token. Since authorization credentials and content control policies are generated and verified together during the negotiation phase and the access phase, unified access control and content control are achieved, avoiding situations where access behavior deviates from contract constraints after access is granted.

[0018] As one embodiment of this application, the short-lifecycle listening instance operates according to a state machine; wherein, the state machine's settings include an initial state, a listening state, a connected state, a proxy state, a failed state, and a closed state: Upon receiving the start command, it transitions from the initial state to the listening state. After the atomic comparison and swap operations are successful, the state transitions from the listening state to the connected state. When the effective time window expires and no valid connection is received, the system will directly switch from the listening state to the closed state and report a timeout event. Once the data transmission channel is successfully established, it enters the proxy state; When the data transmission channel fails to be established or the backend becomes unreachable, it enters a failure state, reports the failure event, cleans up resources, and then enters a closed state.

[0019] In the above embodiments, this application links the state transition conditions of the monitoring instance with the atomic write-off operation, the effective time window, and the establishment result of the data transmission channel, thereby interlocking the life cycle of the monitoring instance with the token semantics. The instance will not survive independently without the token state, thus avoiding the situation where the external exposure time of the port exceeds the token validity period.

[0020] As one embodiment of this application, the identity mutual recognition includes: The consumer identity digest is determined based on the proxy link descriptor; wherein the consumer identity digest is calculated and determined by the public key fingerprint of the consumer's digital certificate and the node identifier of the consumer's data access connector.

[0021] In the above embodiments, the problems of easy imitation of access identity and inability to reliably carry identity information within the token are solved. At the same time, since the consumer's identity digest is fixed with the token signature, the item-by-item comparison at the temporary port does not need to repeatedly perform heavyweight operations such as certificate chain verification. Therefore, while improving the reliability of identity mutual recognition, the computational overhead of access verification is reduced.

[0022] As one embodiment of this application, the method further includes a tiered rollback mechanism, the tiered rollback mechanism comprising: If the short-lifecycle monitoring instance fails to start or the load exceeds a preset threshold, another available node will be selected to start the monitoring instance. In the absence of available nodes and if contractual constraints allow, the data access will be directly handled by the master node of the provider's data access connector. If the data transmission channel fails to be established, renegotiation will be triggered and a new target node will be selected. In the event of an abnormal negotiation channel, the system switches to a backup node to continue connection negotiation. Each failure status generated during a rollback is synchronized to the backup master node via an encrypted remote procedure call (RPC) channel. The backup master node then excludes recorded failure paths in subsequent node selections.

[0023] In the above embodiments, this application enables the fallback mechanism to have path memory capabilities by synchronizing the failure status generated by each fallback to the standby master node, and having the standby master node exclude the recorded failure paths in subsequent node selection. Therefore, the fallback convergence speed is accelerated and the availability of data connections is improved.

[0024] As one embodiment of this application, when the provider data access connector generates the one-time connection token, it calculates the proxy link descriptor based on at least the following inputs: The data access request submitted by the consumer data access connector, the data contract, the status of the provider connector node, and the description of the backend data source capabilities are described. The target access address, the temporary port, and the effective time window are generated immediately after the data transmission negotiation request is accepted.

[0025] The above embodiments can solve the problems of token credentials being disconnected from the actual operating status and poor reachability of issuance results. Therefore, they improve the rationality of connection scheduling and the probability of actual access after token issuance.

[0026] As one embodiment of this application, after the data transmission channel session ends, the provider data access connector unloads the proxy configuration package for this access, destroys the session key, and releases the temporary port and backend data source connection resources; If the one-time connection token is not used to establish a connection within the valid time window, the provider data access connector closes the listening instance, reclaims the temporary port, marks the one-time connection token as expired, and prohibits any subsequent connection requests using the same token.

[0027] In the above embodiments, this application makes resource cleanup deterministic by setting two lifecycle exits for the token: use-up verification and timeout expiration. Therefore, it avoids unused listening instances and temporary ports from remaining on the provider's side for a long time.

[0028] As one embodiment of this application, the consumer-side data access connector provides a SOCKS proxy interface or an HTTPS proxy interface to the consumer-side application, enabling the consumer-side application to send data access requests to the backend data provider via the data transmission channel using at least one of the following protocols: Java Database Connectivity (JDBC), Open Database Connectivity (ODBC), Representational State Transfer (RESTful), Remote Procedure Call (RPC), or streaming protocols; wherein... The data transmission channel is transparent to the consumer application. The consumer application does not need to be aware of the existence of the temporary port.

[0029] The above embodiments can solve the problem that consumer applications need to be aware of dynamic ports and modify their own access logic. Therefore, the consumer side can cover multi-protocol access scenarios without any modification, and the convergence mechanism of dynamic ports can be promoted and implemented without affecting existing services.

[0030] The beneficial effects of this invention are as follows: This application generates a one-time connection token by signing the digest of the proxy link descriptor with the provider's private key after identity mutual recognition and contract verification. Short-lifetime listening instances are initiated on demand on temporary ports, and the connection identifier is rewritten in a non-rollbackable, one-time manner using atomic comparison and exchange operations. This reduces the provider's normally open external service ports to zero, and compresses the port's external exposure time from continuous 24 / 7 operation in a fixed listening mode to the interval between the token's effective time window and the establishment of the first legitimate connection. The same token corresponds to at most one successful access within the effective time window, and the success rate of replay access is zero. This avoids the exposure risk caused by long-term open fixed service ports and prevents the access entry point from being reused across sessions or consumers. Simultaneously, the consumer identity digest, calculated jointly by the consumer's digital certificate public key fingerprint and node identifier, replaces the connection source IP for access authentication, ensuring that the consumer... Even when the outbound IP changes behind a NAT device, verification can still be completed, overcoming the defect that single-packet authorization-type dynamic passage schemes fail in NAT environments. Based on the contract digest carried in the token, it performs field-level, operation-level, or API path-level pruning, rewriting, or interception of query statements, API paths, field sets, and operation types, achieving the unification of access control and content management, and enabling contract constraints to penetrate to the specific protocol level. Furthermore, consumer applications can transparently access the network through standard SOCKS or HTTPS proxy interfaces without being aware of the existence of temporary ports. Combined with the synchronization of failure states and the exclusion of failure paths in the tiered fallback mechanism, as well as the deterministic resource cleanup of configuration unloading, key destruction, and port reclamation after the session ends, it achieves zero modification on the consumer side, minimizes the attack surface on the provider side, and ensures negotiation efficiency and high availability while ensuring access security and effective execution of contract constraints.

[0031] Other features and advantages of the invention will be set forth in the following description, and will be apparent in part from the description, or may be learned by practicing the invention. The objects and other advantages of the invention may be realized and obtained by means of the structures particularly pointed out in the written description and the accompanying drawings.

[0032] The technical solution of the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. Attached Figure Description

[0033] The accompanying drawings are provided to further illustrate the invention and form part of the specification. They are used in conjunction with embodiments of the invention to explain the invention and do not constitute a limitation thereof. In the drawings: Figure 1 This application provides a flowchart of a data connection method for a trusted data space. Figure 2 This is a schematic diagram of the system architecture of the data connector system provided in the embodiments of this application; Figure 3 This is a schematic diagram illustrating the state transitions of a short-lifetime monitoring instance provided in an embodiment of this application. Figure 4 This is a schematic diagram of the data transmission negotiation and token verification process provided in an embodiment of this application; Figure 5 This is a schematic diagram of a general connection establishment process provided in the embodiments of this application; Figure 6 This is a schematic diagram of the JDBC connection establishment timing provided in the embodiments of this application. Detailed Implementation

[0034] The preferred embodiments of the present invention will be described below with reference to the accompanying drawings. It should be understood that the preferred embodiments described herein are for illustration and explanation only and are not intended to limit the present invention.

[0035] The technical solutions of this application will now be described with reference to the accompanying drawings. In the description of this application, unless otherwise stated, "multiple" refers to two or more. The words "first," "second," etc., are used only to distinguish identical or similar items with substantially the same or similar functions and effects. Words such as "exemplarily" or "for example" are used to indicate that something is being used as an example, illustration, or explanation.

[0036] First, we will introduce the relevant terminology used in this application.

[0037] Trusted Data Space: This is a distributed data sharing and circulation infrastructure architecture that enables trusted data exchange among multiple data holders through unified data connection protocols, contract management, access control, and security mechanisms.

[0038] Data access connectors: These are data infrastructure components deployed on the sides of various participants in the trusted data space, and are divided into consumer data access connectors and provider data access connectors.

[0039] Contract: refers to the data usage rules agreed upon between data providers and data consumers in a trusted data space, including allowed data access protocol types, data formats, concurrent connection limits, and table-level and field-level access control rules.

[0040] Strategy Engine: This is a decision-making module deployed within the provider's data access connector. It determines the connection scheduling strategy by considering the current load, node availability status, and contractual constraints.

[0041] Proxy Configuration: This refers to the standardized proxy configuration description generated by the provider's data access connector. It includes at least the reverse proxy method, backend data source connection method, access control mode, timeout period, concurrency limit, and failure fallback strategy.

[0042] like Figure 2 As shown, Figure 2 This is a schematic diagram of the architecture of the data access connector implementation system provided in the embodiments of this application.

[0043] This application discloses a data system consisting of a data consumer side and a data provider side. The data consumer side is equipped with a consumer data access connector, providing a SOCKS proxy interface or an HTTPS proxy interface to the consumer application. The consumer application sends JDBC, ODBC, RESTful, RPC, or streaming access requests to the consumer data access connector via the proxy.

[0044] The data provider deploys a provider data access connector, which employs a distributed structure consisting of a primary node, a backup primary node, and auxiliary nodes. The primary node handles identity verification, contract parsing, connection negotiation, policy decision-making, one-time connection token issuance, proxy configuration generation, and node scheduling. The backup primary node synchronizes metadata and node status with the primary node via encrypted RPC and takes over connection negotiation and node scheduling when the primary node is unavailable. Auxiliary nodes are driven by the primary node's control commands, starting short-lifecycle listening instances as needed, and connecting to the backend data provider via reverse proxy after token verification.

[0045] The provider's data access connector internally includes a policy engine, a negotiation module, a token generation module, a proxy adaptation module, and a failure-level fallback module. The policy engine determines the target node, reverse proxy method, and failure fallback path based on the connection request, contract constraints, proxy type, node load, and auxiliary node availability. The negotiation and token generation modules parse the negotiation request, generate the negotiation response, and issue a one-time connection token. The proxy adaptation module packages the corresponding SOCKS over TLS listener, reverse proxy, and backend data source connector according to the proxy configuration. The failure-level fallback module handles listener startup failures, temporary port timeouts, token verification failures, channel establishment failures, or backend data source unreachability exceptions, and triggers corresponding fallback operations. SOCKS is a proxy protocol that forwards network sessions between clients and servers through a proxy server. Example 1:

[0046] like Figure 1 As shown, Figure 1 This is a flowchart illustrating the data connection method provided in an embodiment of this application. The method of this application includes the following steps: Step: S101, the provider data access connector receives the data transmission negotiation request sent by the consumer data access connector and generates a one-time connection token; wherein, the one-time connection token is generated by the provider's private key to digest the proxy link descriptor after identity mutual recognition and contract verification; In one specific embodiment, the consumer data access connector receives a data access request sent by the consumer application via a SOCKS proxy or HTTPS proxy, and sends a data transmission negotiation request to the provider data access connector. The data transmission negotiation request includes at least the consumer identity information, the target data resource identifier, the contract identifier or contract summary, the proxy type, the backend protocol type, the data access method, and the expected concurrency parameters.

[0047] In one embodiment of this application, a data access request is used to determine access elements such as proxy type, backend protocol type, and target access address; a data contract is used to determine the contract summary, access control rules, and effective time window; the provider connector node status is used to determine the target node for this connection scheduling and trigger rescheduling when the node load exceeds a preset threshold; and the backend data source capability description is used to determine the authentication methods and protocol types supported by the backend. The aforementioned target access address, temporary port, and effective time window are generated immediately after the data transmission negotiation request is accepted, without being pre-generated or pre-disclosed, ensuring that the temporary port does not exist and cannot be calculated before negotiation acceptance. Thus, the token content comprehensively reflects the entire context of this access, resolving the problem of token credentials being disconnected from the actual operating state, and improving the rationality of connection scheduling and the probability of actual access after token issuance.

[0048] In one specific embodiment, after receiving a data transmission negotiation request, the provider data access connector performs identity verification, contract verification, and policy decision-making. After the identity verification and contract verification are successful, a proxy link descriptor is generated, and the digest of the proxy link descriptor is signed using the provider's private key to generate a one-time connection token.

[0049] The process of generating a proxy link descriptor includes: verifying whether the consumer's identity, target data resources, and contract match; calculating the contract digest based on the contract and the consumer's identity digest based on the consumer's identity; determining the authentication methods and protocol types supported by the backend based on the backend data source capability description; calling the reverse proxy mode selection algorithm to determine the reverse proxy method; selecting the target node based on node load, protocol capabilities, and failure status; generating a connection identifier, temporary port, random number, and valid time window for this connection; and finally generating a proxy configuration package and writing the proxy configuration package digest into the descriptor.

[0050] In one optional implementation, the one-time connection token consists of a proxy link descriptor and a signature. The proxy link descriptor includes at least nine fields: connection identifier, consumer identity digest, contract digest, proxy type, backend protocol type, target access address, temporary port, effective time window, and random number. The token is closed, with no additional fields that can be substituted or interpreted. The connection identifier binds this access to the monitoring instance and serves as the object of the verification operation. The consumer identity digest is used to complete the access party authentication at the temporary port, ensuring that the authentication basis does not depend on the consumer's network location. The contract digest carries the constraints of the data contract with the token, serving as the basis for executing access control during the reverse proxy phase. The proxy type and backend protocol type constrain the working mode of the monitoring instance and the backend access protocol, preventing mismatch between the negotiated result and the actual access protocol. The target access address and temporary port limit the unique entry point for this access. The effective time window limits the upper limit of the port's external exposure. The random number is generated using a cryptographically secure random number of no less than 128 bits to prevent attackers from forging or pre-calculating the descriptor according to predictable patterns. Specifically, if a field is written, it is protected by the signature; if any field is tampered with, subsequent signature verification will fail. In this application, neither the one-time connection token nor the data transmission negotiation request carries private key or session key material. The token channel and the key channel are separate from each other, so even if the credentials are intercepted, no key can be stolen.

[0051] In one optional implementation, the random number is a cryptographically secure random number of at least 128 bits, and the effective time window is a preset time interval of no more than 60 seconds from the start of the monitoring instance; the target access address, temporary port, and effective time window are generated immediately after the data transmission negotiation request is accepted, and are not generated or disclosed in advance. The port does not exist before the negotiation is accepted and cannot be calculated periodically.

[0052] Step: S102, based on the one-time connection token, start a short-lifetime listening instance on the temporary port through the provider data access connector; In one specific embodiment, if the policy engine decides that the current access should be directly served by the master node, the master node starts a listening instance on a temporary port. If the decision is made to schedule the access to an auxiliary node, the master node issues a one-time listening start command to the auxiliary node. The command includes at least the connection identifier, proxy type, backend protocol type, temporary port, effective time window, contract summary, consumer identity summary, and proxy configuration package. The binding relationship is maintained locally on the listening instance in the form of a binding table. The binding table records at least five fields—connection identifier, consumer identity summary, contract summary, proxy type, and backend protocol type—corresponding to the current state of the listening instance, serving as the comparison benchmark for subsequent item-by-item comparisons.

[0053] In one optional implementation, when the monitoring instance starts, it establishes a binding relationship between at least the connection identifier, consumer identity digest, contract digest, proxy type, and backend protocol type in the proxy link descriptor and the state of the local monitoring instance. The binding relationship is maintained locally on the monitoring instance in the form of a binding table. Verification involves comparing the submitted proxy link descriptor with the binding relationship item by item. Thus, the verification object is refined from the generalized instance state to the binding table of credential fields and instance state. Tampering or replacement of any field in the descriptor will cause the comparison to fail. Since the content of the proxy link descriptor is protected by the provider's private key signature, if any field in the descriptor submitted by the consumer is tampered with or replaced after negotiation, it will cause both signature verification failure and item-by-item comparison failure. The comparison benchmark is the binding table on the local monitoring instance, not the temporary data during the negotiation phase. Therefore, even if an attacker fully understands the negotiation content, they cannot construct a forged descriptor that can pass the verification.

[0054] Step: S103, Connect to the temporary port via the consumer data access connector according to the one-time connection token; In one alternative implementation, the temporary port's external listening is immediately disabled after the first legitimate connection is established. Therefore, the port's external exposure window is the interval from the start of the listening instance to the establishment of the first legitimate connection, and does not exceed the effective time window. Specifically, the temporary port's external exposure window is compressed to the interval from the start of the listening instance to the establishment of the first legitimate connection, and does not exceed the effective time window; compared to the fixed listening mode where the port is continuously accessible 24 / 7, the attack surface on the provider side converges significantly with each session.

[0055] Step: S104, verify whether the fields of the proxy link descriptor are consistent with the state of the listening instance through the provider data access connector; In one specific embodiment, the provider data access connector verifies whether the fields of the proxy link descriptor are consistent with the state of the listening instance, including verifying the validity of the signature, verifying whether the current time is within a valid time window, and comparing the connection identifier, consumer identity digest, contract digest, proxy type, and backend protocol type in the descriptor with the state of the listening instance item by item.

[0056] Step: S105, when consistent, cancel the one-time connection token through atomic operation to establish a data transmission channel.

[0057] In one alternative implementation, the session key for the data transmission channel is not transmitted via a one-time connection token or data transmission negotiation request, but is negotiated and generated only during the TLS handshake and bound to the session lifecycle. Even if the credentials are intercepted, the key cannot be stolen. Example 2:

[0058] In one optional embodiment of this application: The step of cancelling the one-time connection token through atomic operations and establishing a data transmission channel includes: Determine the connection identifier based on the proxy link descriptor; Synchronously perform atomic comparison and exchange operations to migrate the connection identifier from the pending access state to the occupied state in one go, and determine the migration state; wherein... When migration fails, the connection is rejected and a replay or conflict event is reported to the policy engine. The connection identifier remains in an occupied state and is not rolled back, so that the same connection identifier corresponds to at most one successful access within the effective time window. After successful migration, a session key for the data transmission channel is negotiated and generated during the Transport Layer Security (TLS) handshake process, and a data transmission channel based on the session key is generated. The session key is only valid within the lifecycle of this session.

[0059] Specifically, this application determines the connection identifier based on the proxy link descriptor; synchronously performs atomic comparison and exchange operations to migrate the connection identifier from the pending access state to the occupied state in one go, and determines the migration state. If the migration fails, the connection is rejected and a replay or conflict event is reported to the policy engine. The connection identifier remains in the occupied state without rollback, ensuring that the same connection identifier corresponds to at most one successful access within the effective time window. In this case, even if an attacker completely intercepts the token and replays it, the replay will inevitably fail. After a successful migration, a session key for the data transmission channel is negotiated and generated during the TLS or Chinese national cryptographic TLS handshake process. The Elliptic Curve Diffie-Hellman Key Exchange (ECDHE) algorithm can be used. The session key is only valid within the lifetime of the current session and is destroyed after the session ends. The same connection identifier corresponds to at most one successful access within the effective time window; even if an attacker completely intercepts the one-time connection token and replays it, the replay will inevitably fail. Example 3:

[0060] In one optional embodiment of this application: the provider data access connector accesses the backend data provider in a reverse proxy manner according to the proxy configuration package, and the one-time connection token is also bound to the proxy configuration package digest of the proxy configuration package; The proxy configuration package includes at least the reverse proxy method, backend data source connection method, access control mode, timeout period, concurrency limit, and failure fallback strategy; The provider data access connector verifies that the value recorded in the proxy configuration package digest matches the value recorded in the proxy link descriptor before executing the reverse proxy according to the proxy configuration package.

[0061] Specifically, after the provider's data access connector verifies that the proxy configuration package digest matches the value recorded in the proxy link descriptor, it executes the reverse proxy according to the proxy configuration package. The proxy configuration package includes at least the reverse proxy method, backend data source connection method, access control mode, timeout, concurrency limit, and failure fallback strategy. The execution layer configuration is subject to signature protection; any attempt to tamper with the configuration after negotiation will result in digest verification failure.

[0062] In a typical implementation process, strategy decisions (made by the master node based on contracts and load) and proxy execution (implemented by the target node) are distributed across different nodes. After the proxy configuration package is generated by the master node, it needs to be sent to the target node for execution. There is a problem that the configuration may be tampered with or replaced during transmission or residence, causing the proxy behavior actually executed by the target node to deviate from the contract constraints determined in the negotiation phase.

[0063] This application, based on the above method, writes the digest of the proxy configuration package into a proxy link descriptor signed by the provider's private key, thus binding the execution configuration and authorization credentials into a single unit. Before executing the reverse proxy, the target node verifies that the digest of the proxy configuration package matches the value recorded in the descriptor; if they do not match, it refuses to execute the configuration package. Therefore, the execution layer configuration is included in the signature protection scope, resolving the problem that the proxy configuration can be tampered with or replaced independently. This ensures the consistency between the actual proxy behavior executed by the target node and the negotiated result. Example 4:

[0064] In one alternative embodiment of this application: such as Figure 4 As shown, Figure 4 This is a schematic diagram of the data transmission negotiation and token verification process provided in an embodiment of this application.

[0065] The reverse proxy mode selection algorithm determines the reverse proxy method based on three factors: contract constraints, backend data source capabilities, and security policies. When the data contract does not require field-level control over accessed content and the backend data source has complete application protocol authentication and authorization capabilities, the TCP protocol-level reverse proxy mode is selected, with the backend data provider performing access control. When the data contract contains field-level, operation-level, or API path-level access control rules, the application-level reverse proxy mode is selected, with the connector parsing application-layer requests and performing trimming, rewriting, or interception. When the data contract requires preserving the backend's native identity system while enforcing contract constraints, a hybrid reverse proxy mode is selected. If the backend data source capability description indicates that the backend does not support the parsing of the required protocol (e.g., the backend is a file system), the TCP protocol-level reverse proxy mode is selected as a fallback, and this fallback decision is recorded in the proxy configuration package.

[0066] When the reverse proxy method is executed: The TCP protocol-level reverse proxy mode forwards TCP byte streams between the data transmission channel and the backend data provider, and the backend data provider performs application protocol authentication and authorization. Specifically, the TCP protocol-level reverse proxy mode does not parse upper-layer application packets; instead, the backend data provider performs application protocol authentication and authorization. This is suitable for scenarios where the provider wants to leverage the native capabilities of the backend database, file system, or business API.

[0067] In the application-level reverse proxy mode, the application layer request is parsed, the contract digest in the proxy link descriptor is determined, and based on the contract constraints corresponding to the contract digest, the query statement, application programming interface (API) path, field set and operation type are pruned, rewritten or intercepted at the field level, operation level or API path level, and requests that conform to the contract constraints are allowed to pass. Specifically, in the application-level reverse proxy pattern, during execution, if the contract only allows access to fields f1 and f2 in table A, the set of fields in the query statement will be pruned to f1 and f2; if the contract prohibits update operations, update, delete, and insert statements will be rejected.

[0068] The hybrid reverse proxy model transmits the consumer's identity authentication information to the backend data provider and performs the trimming, rewriting, or interception of the request content according to the contract constraints.

[0069] Specifically, the hybrid reverse proxy model is suitable for scenarios that require both the preservation of the backend's native identity system and the execution of data space contract constraints by the connector. Example 5:

[0070] In one alternative embodiment of this application: such as Figure 3 As shown, Figure 3 This diagram illustrates the state transitions of a short-lifetime monitoring instance provided in this application embodiment. The short-lifetime monitoring instance operates according to a state machine; wherein the state machine's settings include an initial state, a monitoring state, a connected state, a proxy state, a failed state, and a closed state. Upon receiving the start command, it transitions from the initial state to the listening state. After the atomic comparison and swap operations are successful, the state transitions from the listening state to the connected state. When the effective time window expires and no valid connection is received, the system will directly switch from the listening state to the closed state and report a timeout event. Once the data transmission channel is successfully established, it enters the proxy state; When the data transmission channel fails to be established or the backend becomes unreachable, it enters a failure state, reports the failure event, cleans up resources, and then enters a closed state.

[0071] Specifically, the listening instance operates according to a state machine: Initial state INIT; upon receiving the start command, it enters the listening state LISTENING; in the listening state, if the atomic comparison and exchange operations are successful and the first valid connection is established, it enters the connected state CONNECTED; if no valid connection is received by the end of the valid time window, it directly enters the closed state CLOSED and reports a timeout event; in the connected state, if the channel and backend proxy are successfully established, it enters the proxy state PROXYING; if the channel establishment fails or the backend is unreachable, it enters the failed state FAILED, reports a failure event, cleans up resources, and then enters the closed state CLOSED; in the proxy state, if the session is closed or times out, it enters the closing state CLOSING, then unloads the configuration and releases resources, and enters the closed state CLOSED. Example 6:

[0072] In one optional embodiment of this application: the identity recognition includes: The consumer identity digest is determined based on the proxy link descriptor; wherein the consumer identity digest is calculated and determined by the public key fingerprint of the consumer's digital certificate and the node identifier of the consumer's data access connector.

[0073] Specifically, data access in a trusted data space occurs between multiple untrusted entities. If access authentication relies solely on usernames, passwords, or the source IP address, there are issues with the ability to steal and forge identity credentials, and the inability to reliably transmit identity information along with the token between the negotiation and access phases. To address this issue, this application uses the public key fingerprint of the consumer's digital certificate and the node identifier of the consumer's data access connector to jointly calculate the consumer's identity digest. The public key fingerprint is verified by the certificate chain and bound to the physical certificate, making it impossible to forge. The node identifier is bound to the node registration information in the trusted data space and does not change with network location. This digest is then written into a proxy link descriptor signed by the provider's private key, enabling identity information to be carried and transmitted cryptographically along with the token.

[0074] In one specific embodiment, the consumer identity digest is a digest value calculated using the SHA-256 algorithm after concatenating the public key fingerprint of the consumer's digital certificate and the node identifier of the consumer's data access connector in a predetermined order. This digest uniquely identifies the consumer connector identity that has been mutually recognized through certificate exchange. The contract digest is a digest value calculated using the SHA-256 algorithm based on the specified text content of the data contract. This digest uniquely identifies the data contract and its constraints upon which this access is based.

[0075] Identity mutual recognition includes: establishing a trust relationship between the consumer data access connector and the provider data access connector through certificate mutual recognition; determining the consumer identity digest based on the proxy link descriptor, which is calculated jointly by the public key fingerprint of the consumer's digital certificate and the node identifier of the consumer data access connector.

[0076] In one alternative implementation, the item-by-item comparison of the descriptor field does not rely on the connection source IP address for access party authentication: when the consumer is behind a NAT device causing the egress IP to differ from the negotiated IP, or when multiple consumers share the egress IP, access verification is still completed based on the consumer's identity digest. This overcomes the shortcomings of single-packet authorization schemes that rely on source IP for access control, where access rules cannot be matched and access fails in a NAT environment. Example 7:

[0077] In one optional embodiment of this application: the method further includes a tiered rollback mechanism, the tiered rollback mechanism comprising: If the short-lifecycle monitoring instance fails to start or the load exceeds a preset threshold, another available node will be selected to start the monitoring instance. In the absence of available nodes and if contractual constraints allow, the data access will be directly handled by the master node of the provider's data access connector. If the data transmission channel fails to be established, renegotiation will be triggered and a new target node will be selected. In the event of an abnormal negotiation channel, the system switches to a backup node to continue connection negotiation. Each failure status generated during a rollback is synchronized to the backup master node via an encrypted remote procedure call (RPC) channel. The backup master node then excludes recorded failure paths in subsequent node selections.

[0078] Specifically, the tiered rollback mechanism is triggered in stages according to the location of the anomaly during implementation: The first... Level 1 addresses monitoring access anomalies, indicating that the monitoring instance failed to start or the load exceeded the threshold, and a new node is selected at the monitoring access layer. The second level addresses the issue of unavailable entry points, indicating that no available nodes exist. When the contract allows, the master node will directly take over the service. The third level addresses channel establishment anomalies, indicating that the data transmission channel establishment failed and triggers renegotiation at the channel layer. The fourth level addresses negotiation channel anomalies, indicating a failure in the negotiation channel and triggering a switchover to a backup node at the negotiation layer. Each level sequentially checks and executes its corresponding action; if the trigger condition for a level is not met, the process proceeds to the next level.

[0079] Specifically, the failure status generated during each rollback is synchronized to the backup master node via an encrypted RPC channel. The backup master node excludes the recorded failed paths in subsequent node selections to prevent the repeated selection of the same unavailable path.

[0080] The specific implementation process of the tiered rollback mechanism is as follows: If a short-lifecycle listener instance fails to start or the load exceeds a preset threshold, another available node will be selected to start the listener instance. If no available node is available and the contractual constraints allow, the data access will be directly handled by the master node of the provider's data access connector. In the event that the data transmission channel fails to be established, renegotiation is triggered and a new target node is selected. In the event of an abnormal negotiation channel, switch to a backup node to continue the connection negotiation.

[0081] Each failure status generated during a rollback is synchronized to the standby master node via an encrypted RPC channel. The standby master node excludes the recorded failed paths in subsequent node selections, which can prevent the repeated selection of the same unavailable path and speed up rollback convergence.

[0082] The master node and the backup master node continuously synchronize metadata bidirectionally through an encrypted RPC channel, including regional node information, industry node information, contract information, node status, load status and failure status. Synchronization conflicts are handled using a primary key comparison and timestamp adjudication mechanism. Example 8:

[0083] In one alternative embodiment of this application: when the provider data access connector generates the one-time connection token, it calculates the proxy link descriptor based on at least the following inputs: The data access request submitted by the consumer data access connector, the data contract, the status of the provider connector node, and the description of the backend data source capabilities are described. The target access address, the temporary port, and the effective time window are generated immediately after the data transmission negotiation request is accepted.

[0084] Specifically, if a one-time connection token is generated solely based on the access request submitted by the consumer, the token content cannot reflect the current operating status of the provider and the actual capabilities of the backend data source. This can lead to issues such as scheduling the connection to a node with excessive load or incompatible protocol capabilities, resulting in connection establishment failure or degraded service quality. To address this issue, this application addresses this problem by having the provider's data access connector integrate four types of inputs during the negotiation phase: the consumer request, the data contract, the provider's connector node status, and the backend data source capability description. This unified calculation of the proxy link descriptor ensures that the token content accurately reflects the entire context of the access. The target access address, temporary port, and effective time window are generated immediately after the request is accepted, binding the port generation timing to the negotiation result.

[0085] When the provider data access connector generates a one-time connection token, it calculates the proxy link descriptor based on at least the following inputs: the data access request submitted by the consumer data access connector, the data contract, the provider connector node status, and the backend data source capability description. The target access address, temporary port, and effective time window are generated immediately after the data transmission negotiation request is accepted. In conjunction with optional embodiment A4, these three are not pre-generated or pre-disclosed, making it impossible for the port to be estimated or pre-set before negotiation. Example 9:

[0086] In one optional embodiment of this application: after the data transmission channel session ends, the provider data access connector unloads the proxy configuration package for this access, destroys the session key, and releases the temporary port and backend data source connection resources; If the one-time connection token is not used to establish a connection within the valid time window, the provider data access connector closes the listening instance, reclaims the temporary port, marks the one-time connection token as expired, and prohibits any subsequent connection requests using the same token.

[0087] After the data transmission channel session ends, the provider's data access connector unloads the proxy configuration package for this access, destroys the session key, and releases the ephemeral port and backend data source connection resources. If the one-time connection token is not used to establish a connection within the valid time window, the provider's data access connector closes the listening instance, reclaims the ephemeral port, and marks the one-time connection token as expired, prohibiting any subsequent connection requests using the same token. The token lifecycle has two exit points: use-up and timeout, and resource cleanup is deterministic. Example 10:

[0088] In one optional embodiment of this application: the consumer-side data access connector provides a SOCKS proxy interface or an HTTPS proxy interface to the consumer-side application, enabling the consumer-side application to send data access requests to the backend data provider via the data transmission channel using at least one of the following protocols: Java Database Connectivity (JDBC), Open Database Connectivity (ODBC), Representational State Transfer (RESTful), Remote Procedure Call (RPC), or streaming protocols; wherein... The data transmission channel is transparent to the consumer application. The consumer application does not need to be aware of the existence of the temporary port.

[0089] Specifically, the ephemeral port used by short-lifecycle listening instances changes dynamically with each negotiation. If the consumer application needs to be aware of this port or adapt to a dedicated dynamic access protocol, the consumer-side business system needs to be modified one by one. This results in high deployment costs for the dynamic port mechanism and makes it difficult to promote in existing multi-protocol services. To address this issue, this application provides a standard SOCKS proxy interface or HTTPS proxy interface to the consumer application through the consumer data access connector. Requests for local protocols such as JDBC, ODBC, RESTful, RPC, or streaming are then transparently transmitted to the data transmission channel via the proxy. The selection of the ephemeral port, connection, and session lifecycle are all handled internally by the connector at the proxy layer, completely transparent to the consumer application.

[0090] like Figure 5 As shown, Figure 5This is a schematic diagram of the general connection establishment process provided in the embodiments of this application. The consumer application initiates access; the consumer connector receives the proxy request and initiates data transmission negotiation with the provider data access connector; after completing identity verification, contract verification, and policy decision-making, the provider data access connector determines the target node, generates and signs the proxy link descriptor, and distributes the proxy configuration package; the target node starts listening; the consumer connector connects to a temporary port and submits a token; the target node performs token verification and atomic cancellation; after successful cancellation, the temporary listening entry is closed, and the proxy is reverse-proxied to the backend data provider according to the proxy configuration package; business requests and responses are forwarded through an encrypted channel; resources are released after the connection ends.

[0091] like Figure 6 As shown, Figure 6This is a schematic diagram illustrating the JDBC connection establishment timing provided in the embodiments of this application. Taking the data consumer accessing a MySQL database via a SQL client using the JDBC protocol as an example: S601, the SQL client configures the consumer's data access connector as a SOCKS proxy, and the JDBC connection request enters the consumer's data access connector. S602, the consumer connector connects to the provider's data access connector according to the contract agreement, completing certificate-based mutual recognition verification. S603, the provider's data access connector decides the target node and reverse proxy method for this connection. S603.1, if scheduled to an auxiliary node, the master node issues a control command to the target auxiliary node, starting a one-time SOCKS over TLS listening service on a specified temporary port. The command carries the connection identifier, temporary port, proxy type, backend protocol type, contract digest, consumer identity digest, effective time window, and proxy configuration package. S603.2, the master node returns a data transmission negotiation response, carrying a one-time connection token. S604: Within the valid time window, the consumer connector connects to the auxiliary node's temporary port and submits a one-time connection token. The auxiliary node verifies the token signature, compares the token fields with the local listening instance status, and performs an atomic comparison and exchange operation to rescind the token. After successful rescinding, a TLS handshake is performed to negotiate the session key. S605: Based on the proxy configuration package, the auxiliary node connects to the backend MySQL database in a reverse proxy manner: In TCP protocol-level mode, the upstream byte stream is directly forwarded; in application-level mode, a controlled backend service account is used to connect, parsing JDBC connection messages and SQL requests, and performing access control based on the contract digest, data table, fields, and operation type bound to the token, allowing only SQL requests that satisfy the contract constraints; in hybrid mode, login authentication information is passed through to the MySQL database, and the SQL statements are parsed, rewritten, or trimmed. S606 to S608: The MySQL database's response messages are returned to the SQL client sequentially via the auxiliary node, the SOCKS over TLS channel, and the consumer connector, establishing a JDBC connection. S609: After a single connection ends, the auxiliary node unloads the proxy configuration package, destroys the session key, and releases the backend connection resources; if the token is not used within the valid time window, it closes the temporary port and reports the timeout status.

[0092] It should be understood that the above embodiments are described using JDBC protocol to access MySQL database as an example, but the method of this application is also applicable to ODBC protocol, RESTful protocol, RPC protocol, streaming data access and batch data access scenarios. The backend data provider is not limited to MySQL database, but can also be message queue, file system, distributed file system HDFS or other business API services.

[0093] The following outlines the verifiable technical effects of this solution. In terms of deployment, the number of normally open external service ports on the provider side is reduced from at least one in a fixed listening mode to zero. The external exposure time of these ports is compressed to the interval between the effective time window (e.g., 60 seconds) and the establishment of the first legitimate connection. Regarding replay protection, since connection identifiers are not rolled back after atomic migration, the same token corresponds to at most one successful access within the effective time window, resulting in a zero success rate for replay access. In terms of NAT adaptability, since access authentication is based on the consumer's identity digest rather than the connection source IP, changes in the consumer's exit IP do not affect the access verification pass rate. Regarding content control, contract constraints are issued along with the token via the contract digest, enabling field-level pruning and interception of SQL statements, API paths, field sets, and operation types, achieving unified access control and content control. These effects are mutually supportive: exposure convergence relies on the immediacy of token issuance; replay protection is based on the non-rollback nature of atomic revocation; and content control is executed only upon successful revocation. These features work synergistically rather than being simply superimposed.

[0094] Obviously, those skilled in the art can make various modifications and variations to this invention without departing from its spirit and scope. Therefore, if these modifications and variations fall within the scope of the claims of this invention and their equivalents, this invention also intends to include these modifications and variations.

Claims

1. A data connection method for a trusted data space, characterized in that, include: The provider data access connector receives a data transmission negotiation request sent by the consumer data access connector and generates a one-time connection token; wherein, the one-time connection token is generated by the provider's private key to digest the proxy link descriptor after identity mutual recognition and contract verification; Based on the one-time connection token, a short-lifetime listening instance is initiated on a temporary port through the provider data access connector; Based on the one-time connection token, the temporary port is connected via the consumer data access connector; The provider data access connector verifies whether the fields of the proxy link descriptor are consistent with the state of the listening instance. When they match, the one-time connection token is cancelled through atomic operations, and a data transmission channel is established.

2. The data connection method for a trusted data space according to claim 1, characterized in that, The step of cancelling the one-time connection token through atomic operations and establishing a data transmission channel includes: Determine the connection identifier based on the proxy link descriptor; Synchronously perform atomic comparison and exchange operations to migrate the connection identifier from the pending access state to the occupied state in one go, and determine the migration state; wherein... When migration fails, the connection is rejected and a replay or conflict event is reported to the policy engine. The connection identifier remains in an occupied state and is not rolled back, so that the same connection identifier corresponds to at most one successful access within the effective time window. After successful migration, a session key for the data transmission channel is negotiated and generated during the Transport Layer Security (TLS) handshake process, and a data transmission channel based on the session key is generated. The session key is only valid within the lifecycle of this session.

3. The data connection method for a trusted data space according to claim 2, characterized in that, The provider data access connector accesses the backend data provider in a reverse proxy manner according to the proxy configuration package, and the one-time connection token is also bound to the proxy configuration package digest of the proxy configuration package; The proxy configuration package includes at least the reverse proxy method, backend data source connection method, access control mode, timeout period, concurrency limit, and failure fallback strategy; The provider data access connector verifies that the value recorded in the proxy configuration package digest matches the value recorded in the proxy link descriptor before executing the reverse proxy according to the proxy configuration package.

4. The data connection method for a trusted data space according to claim 3, characterized in that, The reverse proxy method includes at least one of the following: The TCP protocol-level reverse proxy mode forwards TCP byte streams between the data transmission channel and the backend data provider, and the backend data provider performs application protocol authentication and authorization. In the application-level reverse proxy mode, the application layer request is parsed, the contract digest in the proxy link descriptor is determined, and based on the contract constraints corresponding to the contract digest, the query statement, application programming interface (API) path, field set and operation type are pruned, rewritten or intercepted at the field level, operation level or API path level, and requests that conform to the contract constraints are allowed to pass. The hybrid reverse proxy model transmits the consumer's identity authentication information to the backend data provider and performs the trimming, rewriting, or interception of the request content according to the contract constraints.

5. A data connection method for a trusted data space according to claim 2, characterized in that, The short-lifecycle listening instance operates according to a state machine; wherein, the state machine's settings include an initial state, a listening state, a connected state, a proxy state, a failed state, and a closed state: Upon receiving the start command, it transitions from the initial state to the listening state. After the atomic comparison and swap operations are successful, the state transitions from the listening state to the connected state. When the effective time window expires and no valid connection is received, the system will directly switch from the listening state to the closed state and report a timeout event. Once the data transmission channel is successfully established, it enters the proxy state; When the data transmission channel fails to be established or the backend becomes unreachable, it enters a failure state, reports the failure event, cleans up resources, and then enters a closed state.

6. The data connection method for a trusted data space according to claim 1, characterized in that, The mutual recognition of identities includes: The consumer identity digest is determined based on the proxy link descriptor; wherein the consumer identity digest is calculated and determined by the public key fingerprint of the consumer's digital certificate and the node identifier of the consumer's data access connector.

7. A data connection method for a trusted data space according to claim 4, characterized in that, The method further includes a tiered rollback mechanism, which includes: If the short-lifecycle monitoring instance fails to start or the load exceeds a preset threshold, another available node will be selected to start the monitoring instance. In the absence of available nodes and if contractual constraints allow, the data access will be directly handled by the master node of the provider's data access connector. If the data transmission channel fails to be established, renegotiation will be triggered and a new target node will be selected. In the event of an abnormal negotiation channel, the system switches to a backup node to continue connection negotiation. Each failure status generated during a rollback is synchronized to the backup master node via an encrypted remote procedure call (RPC) channel. The backup master node then excludes recorded failure paths in subsequent node selections.

8. A data connection method for a trusted data space according to claim 1, characterized in that, When the provider data access connector generates the one-time connection token, it calculates the proxy link descriptor based on at least the following inputs: The data access request submitted by the consumer data access connector, the data contract, the status of the provider connector node, and the description of the backend data source capabilities are described. The target access address, the temporary port, and the effective time window are generated immediately after the data transmission negotiation request is accepted.

9. A data connection method for a trusted data space according to claim 1, characterized in that, After the session of the data transmission channel ends, the provider data access connector unloads the proxy configuration package for this access, destroys the session key, and releases the temporary port and backend data source connection resources; If the one-time connection token is not used to establish a connection within the valid time window, the provider data access connector closes the listening instance, reclaims the temporary port, marks the one-time connection token as expired, and prohibits any subsequent connection requests using the same token.

10. A data connection method for a trusted data space according to claim 1, characterized in that, The consumer-side data access connector provides the consumer application with a SOCKS proxy interface or an HTTPS proxy interface, enabling the consumer application to send data access requests to the backend data provider via the data transmission channel using at least one of the following protocols: Java Database Connectivity (JDBC), Open Database Connectivity (ODBC), Representational State Transfer (RESTful), Remote Procedure Call (RPC), or streaming protocols. The data transmission channel is transparent to the consumer application. The consumer application does not need to be aware of the existence of the temporary port.