System and method for determining data connections between software applications
By encoding application connectivity in source code and using metadata to automatically create information flow mappings, we solve the problem of visibility and traceability of data connections between software applications, enabling reliable data transfer between applications and reducing manual work. Handling errors and connection issues.
Patent Information
- Application Number
- CN201980062399.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2018-08-01
- Filing Date
- 2019-07-31
- Publication Date
- 2024-08-23
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing data connection methods between software applications lack visibility and traceability, making connection issues difficult to verify and resolve, which can lead to data corruption or errors, affecting the normal operations of the organization.
Automatically create information flow mappings using metadata by encoding connectivity between your app and other apps or data sources in source code, allowing automatic generation of connectivity maps, and automatically configure the firewall to accommodate your app's connections and Data flow to ensure connection reliability and accuracy.
It enables defining application connectivity when building software applications, ensuring the reliability and accuracy of data transmission, reducing manual processing errors, improving the traceability and verification of connection issues, and reducing the need for actual operational features.
Smart Images

Figure CN112823501B_ABST
Abstract
Description
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This international application claims priority to U.S. Application No. 16 / 051,660, filed on August 1, 2018, the disclosure of which is expressly incorporated herein by reference in its entirety. Technical Field
[0003] The present invention generally relates to a system and method for determining data connections between software applications at the time they are built rather than after they are fully deployed. Background Art
[0004] Software applications rarely operate in isolation. In fact, software applications, especially those that process data from different resources, can send and receive data to and from dozens of different locations distributed across a range of connected resources. If the application code operates as expected, this interaction usually does not cause problems. However, if the application fails to operate as expected, or if other applications that the application interacts with fail, the result can be corrupted data or erroneous results. The loss impact of corrupted data or erroneous results on the organization can be severe. Current methods of tracking interactions between applications include adding expected data connections to program requirements documents and test plans. These amount to intentions, not results, because coding errors or unintended program operations can cause connections to break or perform in unintended ways. As a result, existing methods of documenting connections between applications can result in a lack of visibility into actual connections, an inability to track connectivity issues, and an inability to verify interconnections in applications that have been introduced into production. What is needed is a system and method that defines application connectivity in a self-regulating manner. Summary of the invention
[0005] In an exemplary embodiment, the connectivity between an application and other applications or data sources is encoded in source code (source code, object code, scripts, interpreted code, etc.) so that these relationships are defined and can be used to automatically generate connectivity maps. This allows information flows to be reliably mapped without having to manually create maps that may not accurately reflect the actual operating characteristics of the application when used in production.
[0006] In some exemplary embodiments, as is often the case, connectivity requirements are defined in programming documents. However, these definitions are also encoded into the source code by the programmer. These encoded definitions are used to allow automatic creation of information flow maps. In an exemplary embodiment, the encoding is located in metadata (e.g., environment tags) associated with the application. In some exemplary embodiments, the automatic creation of flow maps produces data that can be easily compared with actual application connections in order to detect differences that may indicate errors in the operation of the application or its environment. Connectivity requirements are used to indicate what types of resources the application may use and what data is expected to be published during normal operation.
[0007] The above and other aspects and advantages of the general inventive concept will become more apparent from the following description and accompanying drawings, illustrating by way of example the principles of the general inventive concept. BRIEF DESCRIPTION OF THE DRAWINGS
[0008] These and other features of the general inventive concept will be better understood with regard to the following description and accompanying drawings, in which:
[0009] Figure 1 is a diagram of a connectivity map showing interconnections between various applications;
[0010] Figure 2 is a system diagram illustrating various systems and data flows in an exemplary embodiment;
[0011] Figure 3 Flowchart showing steps for creating firewall rules from metadata in an exemplary embodiment;
[0012] FIG. 4A to FIG. 4C Listed computer code according to an exemplary embodiment shows metadata for controlling an interconnect;
[0013] Figure 5 is a diagram of two applications and their interconnection according to an exemplary embodiment;
[0014] Figure 6 Listed computer code according to an exemplary embodiment shows metadata for controlling an interconnect;
[0015] Figure 7 Listed computer code according to an exemplary embodiment shows metadata for controlling an interconnect;
[0016] Figure 8 Listed computer code according to an exemplary embodiment showing metadata for controlling an interconnect; and
[0017] Fig. 9 Yes Execution Figure 2Illustration of an exemplary system illustrating the functionality shown. DETAILED DESCRIPTION
[0018] exist Figure 1 100 is shown in the figure. As shown, an application 102 can be connected to multiple other applications or data sources 104. The connectivity map is used to illustrate this connection in a graphical manner that is easy for humans to understand. Optionally, the connectivity map 100 can be composed of electronic data, which can be used by system monitoring and supply systems to better understand the characteristics of applications running on specific data systems. In the connectivity map 100, the connection 106 between the application 102 and other applications or data sources 104 is shown by arrows. The known method of creating such a map includes manually checking the documented connection between the application and its data source or recipient. As will be understood by those of ordinary skill in the art, such manual processing may not accurately reflect the actual connection of the implemented code. Therefore, when deploying a new application or resource each time, if it is necessary to accurately understand these connections of the application, a new map must be created.
[0019] In an exemplary embodiment, connectivity is defined by the application developer. Figure 2 As shown in flowchart 200, application owner 202 enters application data into application service registry 204. This information includes service definition 206, connectivity definition 208, common shared service definition 210, and data publish / subscribe definition 212. This information is used to create application requirements 216, which are Figure 2214. In combination with other information, these definitions are used to create an application data manual 218, which is used to generate further requirements and design information for the requirements 216 and design 220 parts of the software development timeline 214. The source data repository 222 collects data about the service definition 206, the connectivity definition 208, and the common shared service definition 210, and provides the data to the firewall rule pattern manager 224 and the application deployment manager 230. The firewall rule pattern manager 224 uses various definition files to establish firewall implementation settings 228 for deployment at one or more firewalls using the firewall management platform 226. In an exemplary embodiment, a representative state transfer application program interface (REST API) is used, and then a set of firewall rules are applied. In certain exemplary embodiments, these rules consist of a 5-tuple (source IP address, destination IP address, source port, destination port, and protocol). These rules can be embedded in the HTTP POST method (create a new firewall rule), the HTTP PUT method (modify a firewall rule), or the HTTP DELETE method (delete a firewall rule) to update the database in the firewall management platform 226. Subsequently, the firewall management platform 226 pushes the updated rules to the target firewall device. This arrangement enables the firewall rule mode manager 224 to automatically configure the firewall implementation settings 228 to adapt to the connections and data flows required by the application. Figure 3The steps involved in a method 300 for automatically deriving firewall rules from metadata are shown. In step 302, communication endpoints are identified. In an exemplary embodiment, the communication endpoints can be applications, virtual or physical server IP addresses, containers in the cloud, or even microservices with identities. In step 304, a source record database is queried to extract a list of metadata associated with each communication endpoint. The metadata extracted in this step contains two sets of information, a list of information that allows connectivity policy decision making (e.g., environmental variables, such as "production" or "non-production"; geographic location information, such as country codes - "US", "Geneva", "Russia", etc.; confidentiality labels, such as "highly confidential", "confidential", etc.; regulatory and compliance labels, such as SOX, etc.) and a list of network identifiers (e.g., IP addresses, subnet addresses, etc.). In step 306, a pairwise comparison is performed on the metadata lists related to policy decision making between the two endpoints. The comparison is processed by the policy engine to derive a permission or rejection result. For example, application 1 and application 2 contain the following metadata lists: application 1: {"production", "US"}, application 2: {"non-production", "US"}. In this example, the global policy does not allow communication between non-production assets and production assets. Therefore, the policy engine will determine that the global policy will deny communication between the two applications. In another example, Application 1 contains the following metadata list: {"Production", "USA"}, while Application 2 contains the following metadata list: {"Production", "Geneva"}. In this example, while both applications are valid production applications, Geneva has strict data residency rules such that the policy does not allow data to flow across national borders, so communication will be denied. In a third example, Application 1: {"Non-Production", "Russia", "Public"} and Application 2: {"Non-Production", "Russia", "Public"} have the same set of metadata, so communication is "Allowed".
[0020] Once the policy engine generates either an "allow" or "deny" for any given communication pair, the network information (e.g., IP address) associated with each communication endpoint is used to construct a 5-tuple firewall rule in step 308. In an exemplary embodiment, these firewall rules are sent to the firewall management platform via an API call for downstream processing.
[0021] In addition to the firewall rule mode manager 224, in an exemplary embodiment, an application deployment manager (ADM) 230 receives connectivity and service definition data from a source data repository 222. This data is used to generate application policy data, which is used to introduce the application into a production environment. As shown in the software development timeline 214, the ADM 230 also receives data from various stages of software deployment (e.g., from pre-production 232, user acceptance testing, and production deployment). This data is provided to the connectivity certification function 234 of the ADM 230. This function is used to perform risk assessment and acceptance testing 236, and to provide the data to the ADM application profile policy enforcement portion 238 of the ADM policy engine 240. This process allows the ADM 230 to evaluate the connectivity present in the software as it progresses along the software development timeline 214. Therefore, in addition to defining connectivity, the information from the application owner 202 stored in the source data repository 222 can also be used to automatically verify the connectivity characteristics of the software during development, and can also be used to establish firewall rules and deployment policies.
[0022] like Figure 2 As described above, the application owner 202 enters the application data into the application service registry. This information is also incorporated into the source code of the application as metadata, some examples of which are shown in FIG. 4A to FIG. 4C As shown in the figure, a portion of code 402A, 402B and 402C defines the allowed connections of the complete code. For example, in Figure 4A In the example, code portion 402 is used to allow communication only with applications in the production area of the operating environment. Figure 4B In the example, code section 402A is used to prevent production code from communicating with desktop applications in a lab environment. In addition, the example includes a port restriction definition at 402B. Figure 4C , code portion 402C allows the data source defined in 404 to communicate with the production application located in Luxembourg. As can be seen from these examples, the code defining connectivity can be very specific in terms of its restrictions. This allows the application developer to have a great deal of control over the operation of a piece of application code.
[0023] The connectivity of the application is thus defined in the source code. In some exemplary embodiments, the only connections that can occur are those defined and allowed by the code. For example, in exemplary embodiments, only data sources and data consumers that meet a certain set of predetermined conditions are allowed to connect to the application. FIG. 4A to FIG. 4C, which restricts connectivity to certain applications, certain software operating areas, system types, and geographic areas. Thus, one of ordinary skill in the art will appreciate that various combinations of these restrictions can result in very specific limitations on the connectivity of a piece of software application code. Furthermore, because these limitations are encoded into the application, changes to the application's connectivity require modifying the code and publishing it as a new version or revision of the application. Thus, a version control system can easily track these changes, thereby providing a method for tracking connectivity changes.
[0024] The idea of controlled connectivity is Figure 5 500, where a first application 502 communicates with a second application 504. As shown, the first application 502 has a data component 506, a logic component 508, and a presentation component 510. The second application 504 also has a data component 512, a logic component 514, and a presentation component 516. For the term "presentation" used, these components should be considered to be data interfaces for the outputs of the logic components 508 and 514. As shown by interconnection 518, the two applications are associated with each other through an application program interface (API) proxy 520. As shown at 522, in this exemplary embodiment, there is a connection between the business logic of the first application 502 and the presentation component 516 of the second application 504. In the exemplary embodiment, this connection is encoded in the metadata of at least the first application 502. For example, the encoding can regulate the type of data retrieved by the logic component 508, and can limit the data to data provided by the presentation component 516 of the second application 504. In addition to this external connection 522, there are internal connections in the first application 502 (it should be noted that internal connections are usually present in most applications). As shown, there is a connection 524 between the logic component 508 and the data component 506. In an exemplary embodiment, this connection 524 can be regulated by definitions found in metadata associated with the first application 502. Thus, only certain data types may be allowed to flow into the logic component 508, and perhaps more importantly, only certain data may be allowed to flow from the logic component 508 into the data component 506. This restriction can be used to prevent unintended data from entering the data component 506 in an attempt to avoid corruption of data stored in the data component 506. In a similar manner, in certain exemplary embodiments, the connection between the logic component 508 and the presentation component 510 can be controlled by restrictions stored in the metadata.
[0025] Figure 66 shows metadata 600 for an exemplary web interface component. As shown, metadata 600 includes definitions of web interface component name 602, component interface name 604, and conditions 606 required to allow applications to communicate. Thus, as shown, an application associated with the metadata can only communicate with the application in a specific environment 608, a specific layer 610, a specific communication port 612, and a specific location 614 (in the exemplary embodiment shown, the location "Luxembourg" is not included).
[0026] Figure 7 Another exemplary embodiment is shown, in which metadata 700 is provided to define the interface characteristics of an application program. As shown, an interface 702 is defined to include a first set of conditions 704, which is used to define the allowed state of data flow in and out of the application. In the exemplary embodiment shown, two interfaces are defined. The first interface is defined as a public interface 706, but a second set of conditions 708 is associated with a private interface 710. In this way, an application owner (e.g., application owner 202) can establish various interfaces with different conditions, thereby adjusting the information provided to (or accessed by) various applications according to the characteristics and needs of the various applications.
[0027] Figure 8 Another exemplary embodiment of metadata 800 associated with a database of information is shown. As shown, the metadata 800 defines restrictions on access and use of the database based on: a list 802 of specific applications, the operating environment 804 of the applications, the layer 806 that the applications are accessing, the functions 808 of the applications, and the ports 810 that the applications are attempting to use to hand over data.
[0028] Figure 2 Data flows are shown from the application owner 202 through various functions to configuration and control information for firewall enforcement settings 228, and also manages an application interface manager 242 that manages interface connections between the application and various external systems and data sources 244. In some exemplary embodiments, these functions may be performed by a computerized device such as a computer server. In some exemplary embodiments, the computer server is comprised of a processor, memory, and software instructions that configure the processor to perform the specific desired functions. Figure 2 An exemplary embodiment of the main functions shown is Fig. 9900 as a connection diagram of computer servers. As shown, an application service registry (e.g., application service registry 204) is formed by computer server 902. The application service registry communicates with a source data repository (e.g., source data repository 222) also formed by computer server 904. The application service registry communicates with a firewall rule mode manager (e.g., firewall rule mode manager 224), the functions of which are performed by computer server 906. Server 906 communicates with one or more firewalls 908, which themselves can be formed by one or more servers. The source data repository transmits connection and data flow information to an ADM (e.g., ADM 230) formed by computer server 910. The computer server 910 then provides application interface data to an application interface manager (e.g., application interface manager 242), which can be formed by one or more servers 912. In the exemplary embodiment shown, each function is performed in a separate computer server, however, it should be understood that these servers can be combined into a smaller number of computers, or certain functions can be divided between more than one such server. These functions can be combined or distributed across an organization where appropriate. As previously described, each server executes software instructions that cause the server's processor to execute a program for executing Figure 2 The steps required for each function to operate.
[0029] Although the present invention and its related inventive concept have been illustrated by the description of its various embodiments, and although these embodiments have been described in considerable detail, it is not the intention of the applicant to limit or restrict the scope of the appended claims to these details in any way. Additional advantages and modifications will be easily presented to those skilled in the art. In addition, in some instances, the elements described in one embodiment can be easily adapted to other embodiments. Therefore, the present invention in its broader aspects is not limited to the specific details, representative devices and illustrative examples shown and described. Therefore, these details can be deviated from without departing from the spirit or scope of the general inventive concept.
Claims
1. A method for controlling a data connection of an application, the method comprising: Establishing a service definition corresponding to an application development stage for the application; Establish definitions of allowed connections; Storing the service definition and the allowed connection definition in an application service registry; embedding the definition of the allowed connections as metadata in source code for the application; Automatically derive firewall rules from the metadata, including: identifying a plurality of communication endpoints, the plurality of communication endpoints comprising the application; extracting metadata corresponding to each of the plurality of communication endpoints; and performing a pairwise comparison of the extracted metadata corresponding to two of the plurality of communication endpoints to derive a result of permission or denial; automatically deriving a list of allowed application data from the metadata; and An application interface manager is configured using the allowed application data list.
2. The method according to claim 1, wherein: The definition of allowed connections is also embedded in the corresponding application as metadata.
3. The method according to claim 2, further comprising: Create data publication and data source definitions, Therein, a data manual is created, the data manual including definitions of key data elements and data provenance rules derived from definitions of data publication and data sources.
4. The method according to claim 1, wherein: The step of establishing a definition of allowed connections includes identifying application types with which the application program is allowed to communicate.
5. The method according to claim 1, wherein: The step of establishing a definition of allowed connections comprises identifying an application environment with which the application program is allowed to communicate.
6. The method according to claim 1, wherein: The step of establishing a definition of allowed connections includes identifying a port through which the application is allowed to communicate.
7. The method according to claim 1, wherein: The step of establishing a definition of allowed connections comprises defining a geographical location with which the application is allowed to communicate.
8. The method according to claim 1, wherein: The step of establishing a definition of allowed connections includes defining at least one data type of environmental variables, geo-location information, confidentiality labels, and regulatory and compliance labels that can be transmitted from the application.
9. The method according to claim 1, further comprising the steps of: comparing an attempt to access a connection by an application running in the test environment to the definition of allowed connections; and Each access attempt to a connection that is not included in the definition of allowed connections is logged.
10. A system for automatically adjusting a data connection of an application, the system comprising: Application service registry; a source data repository in communication with the application service registry; The application service registry includes software instructions that, when executed by a first processor, cause the first processor to perform the following: Extracting metadata information related to allowed application data connections; The source data repository includes software instructions that, when executed by a second processor, cause the second processor to: establishing a software application requirement definition corresponding to an application development phase for the application program, the software application requirement definition including allowed connections to other applications and data sources; Storing the definition of the allowed connection in a metadata document; embedding the definition of the allowed connections as metadata in source code for the application; Firewall rules are automatically created from the metadata, including: identifying a plurality of communication endpoints, the plurality of communication endpoints comprising the application, extracting metadata corresponding to each of the plurality of communication endpoints, and performing a pairwise comparison of the extracted metadata corresponding to two of the plurality of communication endpoints to derive a result of permission or denial; automatically building an allowed application data list from the metadata; and An application interface manager is configured using the allowed application data list.
11. The system of claim 10, further comprising software instructions for causing the second processor to create definitions of data publications and data sources.
12. The system of claim 10, further comprising software instructions that cause the second processor to create a data book including definitions of key data elements and data provenance rules derived from the definitions of the data publications and data sources.
13. The system according to claim 10, wherein: The step of establishing the software application requirements definition further includes identifying allowed connections to other applications and data sources.
14. The system according to claim 10, wherein: The step of establishing a software application requirement definition further includes identifying an application environment with which the application program is permitted to communicate.
15. The system according to claim 10, wherein: The step of establishing a software application requirement definition further includes defining a port through which the application is allowed to communicate.
16. The system of claim 10, wherein: The step of establishing a software application requirement definition further includes defining a geographic location from which the application is allowed to communicate.
17. The system according to claim 10, wherein: The step of establishing a software application requirement definition further includes defining at least one data type of environmental variables, geographic location information, confidentiality labels, and regulatory and compliance labels that can be communicated from the application.
18. The system of claim 10, further comprising an application interface manager, the application interface manager comprising software instructions that, when executed by the application interface manager, cause the application interface manager to: comparing an attempt to access a connection by an application running in the test environment to the definition of allowed connections; and Each access attempt to a connection that is not included in the definition of allowed connections is logged.
