Block chain-based two-stage application architecture operation and maintenance method and system
Data encryption and verification are implemented on the group and enterprise sides through blockchain technology, which solves the problem of inaccurate deployment package versions on the enterprise side, reduces operation and maintenance costs, improves efficiency, and ensures the integrity and reliability of the system.
Patent Information
- Application Number
- CN202410842937.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-09-20
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the existing technology, the network between the group and the enterprise is blocked, resulting in the enterprise being unable to obtain the accuracy of the system deployment package version in a timely manner, causing the version upgrade to fail or the function to be unavailable, and operation and maintenance personnel need to have professional technical knowledge, which increases labor costs and errors. risk.
Adopting a two-level application architecture operation and maintenance method based on blockchain, data encryption, storage, verification and traceability are realized through blockchain technology on the group and enterprise sides, ensuring that deployment files are not tampered with, and providing full-link installation record management.
It reduces operation and maintenance costs, improves operation and maintenance efficiency, ensures timely updates and integrity of system functions, reduces manpower investment, and provides reliable application deployment and operation and maintenance solutions.
Smart Images

Figure CN118673519A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of application operation and maintenance technology, and more specifically to a two-level application architecture operation and maintenance method and system based on blockchain. Background Art
[0002] In recent years, with the continuous development of information technology, in order to reduce costs and improve efficiency, groups and enterprises have continuously improved their informatization, and various business systems have continued to emerge, making the enterprise's information infrastructure more and more complex and the operation and maintenance costs rising. In the existing technology, after the group releases the system version, if the enterprise side is not updated in time, it will cause the enterprise side to be unable to use the latest version of the system functions or fail to report data in time. Due to the network disconnection between the group and the enterprise side, it is difficult to obtain accurate data on whether the version of the system deployment package installed on the enterprise side is correct, whether the system is upgraded across versions, whether the system deployment package has been tampered with before the upgrade, whether the system operation status is normal, and whether the system installation results are correct. Incorrect cross-version upgrades will cause the system version deployed on the enterprise side to be incorrect, resulting in the failure of subsequent version upgrades, or the system does have some functions; tampering with the installation package will cause the system of that version to be unable to be deployed normally, the newly launched functions cannot be used, and subsequent versions cannot be upgraded normally. Since enterprise-side deployment and operation and maintenance involve many complex technical operations, higher requirements are placed on the enterprise's operation and maintenance capabilities. In addition, a dedicated person on the enterprise side is required to report the operation and maintenance data of the installation and deployment of the above-mentioned systems to the group. The operation and maintenance personnel are required to have professional technical knowledge, which undoubtedly creates new labor costs. The data provided manually may also contain errors.
[0003] Therefore, how to establish an effective operation and maintenance solution under the two-level application architecture to reduce operation and maintenance costs and improve operation and maintenance efficiency so as to better adapt to the trend of information development is an urgent problem that technical personnel in this field need to solve. Summary of the invention
[0004] In view of this, the present invention provides a two-level application architecture operation and maintenance method and system based on blockchain, and provides a two-level application architecture operation and maintenance solution, which effectively reduces operation and maintenance costs and improves operation and maintenance efficiency.
[0005] In order to achieve the above object, the present invention adopts the following technical solution:
[0006] A two-level application architecture operation and maintenance method based on blockchain, comprising the following steps:
[0007] Step 1: The two-level group platform receives the installation package file, generates group records and stores them in the group database, and uploads the group records to the group blockchain; the group blockchain returns the group transaction ID and updates the group records saved in the group database;
[0008] Step 2: The two-level group platform generates an installation request, matches the corresponding group transaction ID in the group database according to the installation request, and downloads the corresponding group record from the group blockchain according to the group transaction ID; generates an enterprise installation package based on the installation request and the group record;
[0009] Step 3: The group end receives the enterprise installation package and performs encryption, packaging and downloading processing, generates an installation data package, and transmits it to the enterprise end;
[0010] Step 4: After receiving the installation data package, the enterprise end performs decryption verification. If the verification is passed, the encrypted enterprise installation package is forwarded to the enterprise end guard module; otherwise, an error is reported, the data package cannot be transmitted, and the reason is prompted;
[0011] Step 5: The enterprise-side guardian module decompresses the enterprise installation package into a directory, generates enterprise records and stores them in the enterprise-side database, and uploads them to the enterprise-side blockchain; the enterprise-side blockchain returns the enterprise-side transaction ID and updates the enterprise records saved in the enterprise database;
[0012] Step 6: The enterprise-side guardian module verifies whether the data stored in the enterprise-side database and the enterprise-side blockchain match. If they match, the installation is performed according to the directory, the installation result is generated, and the installation result is signed to generate signature information and uploaded to the enterprise-side database and the enterprise-side blockchain; otherwise, an error is reported, the installation result is generated, and the installation result is signed to generate signature information and uploaded to the enterprise-side database and the enterprise-side blockchain;
[0013] Step 7: The enterprise end encrypts, packages and downloads the installation results, signature information and related information in the enterprise installation package uploaded by the enterprise end guardian module to generate a feedback data package, and feeds it back to the group end;
[0014] Step 8: After receiving the feedback data packet, the group end performs decryption verification. If the verification is passed, the feedback data packet is forwarded to the two-level platform of the group; otherwise, an error is reported;
[0015] Step 9: The two-level platform of the group decompresses the feedback data package, performs consistency judgment and signature verification, and generates an installation status prompt.
[0016] Preferably, the installation package file is calculated through a hash algorithm to obtain a feature code, the feature code is used to generate a feature private key, and the feature public key is generated based on the feature private key using an elliptic algorithm; the installation package file, feature code, feature private key and feature public key constitute a group record; the group record also includes a transaction ID field, and the group-end transaction ID is stored in the transaction ID field.
[0017] Preferably, the installation package file includes an application ID, a version number, and an application program, etc.; the installation request includes an application ID and a version number; in step 2, the corresponding installation package file is searched for according to the application ID and the version number, and the group-side transaction ID returned corresponding to the installation package file is matched; in step 2, an enterprise installation package is generated according to the installation request and the corresponding installation package file, the feature public key, and the group-side transaction ID.
[0018] Preferably, the installation request also includes selecting the enterprise name and enterprise code of the enterprise side to be sent; the enterprise installation package generated by the two-level platform of the group in step 2 is updated and saved in the group-side database and the group blockchain.
[0019] Preferably, the download process in step 3 can use a CD as a carrier, burn the encrypted data into the CD, and transmit the installation data package to the enterprise end that chooses to issue it.
[0020] Preferably, in step 5, the enterprise-side guardian module decompresses the installation package files in the enterprise installation package into a designated directory, and stores the characteristic public key and the group-side transaction ID into the enterprise-side database.
[0021] Preferably, in step 6, a hash algorithm is used to extract a feature code from the installation package file in the directory, a feature private key is generated from the feature code, and an elliptic algorithm is used to generate a feature public key based on the feature private key; the feature code is used as a query condition to determine whether the feature public keys in the enterprise-side database and the enterprise-side blockchain are consistent; if they are consistent, the installation is performed, a successful installation result is generated, the failed installation result is signed using the feature private key, and the signature information is updated to the database and the enterprise-side blockchain; if they are inconsistent or cannot be found, an error is reported, an installation failure result is generated, the failed installation result is signed using the feature private key, and the signature information is updated to the database and the enterprise-side blockchain. This process ensures that the installation package is not tampered with, or avoids upgrading to the wrong version.
[0022] Preferably, the enterprise side periodically encrypts the installation result, signature information, feature public key, group transaction ID and corresponding installation time according to the set time to generate a feedback data packet and uploads it to the group side database of the group side for storage.
[0023] Preferably, the consistency judgment process is as follows: the two-level platform of the group decompresses the feedback data package, and queries whether the feature public key in the enterprise installation package stored in the group-side database and the group blockchain is consistent with the feature public key in the feedback data package according to the group-side transaction ID; if they are consistent, the signature information is verified, otherwise, an error is reported, indicating that the installation result return information is abnormal and the information is unreliable;
[0024] The signature information verification process is as follows: use the characteristic public key stored in the group-side database and the elliptic algorithm to verify the signature information in the feedback data packet once. If the verification is successful, use the characteristic public key stored in the group blockchain to perform a second verification; otherwise, an error is reported, indicating that the data has been tampered with and is unreliable. At the same time, the installation result of the corresponding version of the installation package file installed by the enterprise-side guardian module in the group-side database is marked as unreliable; if the second verification is successful, the installation result and installation time are stored in the group-side database, otherwise an error is reported and the information is unreliable.
[0025] Preferably, when performing installation tracing, the corresponding installation result and installation time are queried according to the enterprise code or application ID, and the installation results are sorted in reverse order according to the installation time and the tracing results are fed back.
[0026] A two-level application architecture operation and maintenance system based on blockchain, including: a two-level group platform, a group end, a group blockchain, an enterprise end, an enterprise end guard module and an enterprise end blockchain; the group end is provided with a group end database, and the enterprise end is provided with an enterprise end database;
[0027] The two-level group platform receives the installation package file, generates group records and stores them in the group-side database, and uploads the group records to the group blockchain; the two-level group platform generates an installation request, obtains the enterprise installation package based on the group records and sends it to the group side;
[0028] The group end receives the enterprise installation package, generates an installation data package and sends it to the enterprise end;
[0029] The enterprise side uses the enterprise side guardian module to install according to the installation data package, generates the installation results, uploads them to the enterprise side database and enterprise side blockchain, and feeds back the installation results to the group side.
[0030] It can be known from the above technical solutions that compared with the prior art, the present invention discloses a two-level application architecture operation and maintenance method and system based on blockchain, which realizes the encryption scheme of data reading and storage through the two-level platform of the group, the group end, the enterprise end and the enterprise end guard module, and combines blockchain technology to ensure data security and prevent tampering, and realize data traceability. The present invention combines multiple technical solutions such as the introduction of blockchain technology, data storage solutions, data reading solutions, and data verification solutions, which not only ensures that the deployment files transmitted by the group to the enterprise end are not tampered with, ensures that the system functions are updated and complete in a timely manner, but also realizes the full-link traceability management of the enterprise-side installation records. The group end and the enterprise end of the present invention perform two-way transmission, verification and system installation of data packets through the system, without the need to invest a lot of extra manpower and time, providing enterprises with more convenient, efficient and reliable application deployment and operation and maintenance solutions, without the need to invest a lot of extra manpower and time. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0032] Figure 1 A schematic diagram of the installation process of the two-level application architecture operation and maintenance application system based on blockchain provided by the present invention;
[0033] Figure 2 A schematic diagram of the enterprise-side feedback process after the application system provided by the present invention is installed. DETAILED DESCRIPTION
[0034] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0035] The embodiment of the present invention discloses a two-level application architecture operation and maintenance system based on blockchain, including: a group two-level platform, a group end, a group blockchain, an enterprise end, an enterprise end guard module and an enterprise end blockchain; the group end is provided with a group end database, and the enterprise end is provided with an enterprise end database; the group two-level platform receives an installation package file, and generates a group record and stores it in the group end database, and uploads the group record to the group blockchain at the same time; the group two-level platform generates an installation request, and obtains the enterprise installation package according to the group record and sends it to the group end; the group end receives the enterprise installation package, generates an installation data package and sends it to the enterprise end; the enterprise end uses the enterprise end guard module to install according to the installation data package, generates an installation result, uploads it to the enterprise end database and the enterprise end blockchain, and feeds back the installation result to the group end.
[0036] On the other hand, in a specific embodiment, the method for operation and maintenance based on the above system can be divided according to the installation process starting from the group end and the feedback process starting from the enterprise end, wherein:
[0037] The group-side process is as follows Figure 1 As shown, specifically:
[0038] S1: The operations of the two-level platform of the group include:
[0039] Upload a version of the installation package file of the platform or business system (for example, the version number is V1.0.0) on the two-level platform of the group; after the installation package file is successfully uploaded to the two-level platform of the group, the feature code of the installation package is extracted by the hash algorithm, and then the feature code is used to generate a private key, and the public key is generated by the elliptic algorithm; the feature code and the corresponding private key and public key are stored together in the group-side database; after the storage is successful, the public key is stored in the group blockchain system, and the blockchain system returns the group-side transaction ID, which is updated to the transaction ID field of the corresponding record just saved;
[0040] Apply for system installation on the enterprise side, select the system version to be installed and the name of the issuing enterprise in the two-level group platform; first query the group transaction ID of the installation package of this version in the database, and then query the corresponding feature code, public key, private key and other information in the group blockchain system according to the group transaction ID, and store the basic information of the issuing enterprise in the group blockchain system, return the above information to the two-level group platform and insert it into the group database, so as to support the full-link traceability of enterprise-side installed applications;
[0041] S2: Group-side operations include:
[0042] After applying for the distribution of the enterprise installation package in the two-level group platform, the installation package file, public key, and group-side transaction ID will be transmitted to the applying enterprise side according to certain rules; the rules include encrypting the data package consisting of the installation package file, public key, and group-side transaction ID, completing packaging and downloading, and burning the file to a CD after successful download; the group-side Datalink system and the enterprise-side Datalink system have the functions of encryption, packaging, downloading, transmission and reception;
[0043] S3: Enterprise-side operations include:
[0044] After the enterprise receives the installation package CD sent by the group, it uses the data upload function of the DataLink system to upload the content of the CD, decrypts the data packet, verifies and confirms that the data packet is the data packet sent by the group to the enterprise, and then sends the decrypted data packet to the enterprise daemon for system installation or upgrade;
[0045] S4: The operations of the enterprise-side daemon include:
[0046] After receiving the installation package file, the enterprise-side daemon program decompresses the installation package file to the specified directory; after successfully storing the public key and group-side transaction ID in the file in the enterprise-side database, the public key and group-side transaction ID are stored in the enterprise-side blockchain system. The blockchain system returns the enterprise-side transaction ID and updates it to the corresponding record just saved;
[0047] In the enterprise-side daemon, select the installation package file to be installed (upgraded), upload the file and extract the feature code of the uploaded file through the hash algorithm, then generate a private key from the feature code, and use the elliptic algorithm to generate a public key; based on the feature code of the uploaded installation package as the query condition, determine whether the public key corresponding to the installation package file transmitted by the group end and stored in the enterprise-side database and the public key stored in the enterprise-side blockchain are consistent; if they are inconsistent or no data can be found, it means that the installation package file has been tampered with or is not an upgrade file of the corresponding version, and the user is prompted that the installation (upgrade) is abnormal and the installation process ends; if the public key information is consistent, continue to install (update) the system. After the installation is completed, regardless of whether the installation (update) result is successful or failed, the signature information of this installation result is generated using the feature private key and updated to the database and the enterprise-side blockchain respectively; this installation (update) process ends.
[0048] Enterprise-side processes such as Figure 2 As shown, specifically:
[0049] S1: The operations of the enterprise-side daemon include:
[0050] The enterprise-side daemon program uploads the installed and un-uploaded system installation results, signature information of the corresponding installation package, public key, group-side transaction ID and corresponding installation time to the enterprise-side DataLink system on a regular basis every day;
[0051] S2: Enterprise-side operations include:
[0052] The DataLink system at the enterprise end transmits the above files to the group end according to certain rules; the data packets are encrypted and packaged and downloaded, and the files are burned to a CD after the download is successful;
[0053] S3: Group-side operations:
[0054] After the group receives the installation result data package CD sent back by the enterprise, it uses the data upload function of the DataLink system to upload the content of the CD; after decrypting the data package, it verifies and confirms that the data package is the data package sent back by the enterprise to the group, and then decrypts the data package and sends it to the two-level platform of the group;
[0055] S4: Operation of the Group’s two-level platform:
[0056] After receiving the data package file from the enterprise, decompress the data package file and read the data content. According to the group-side transaction ID, query the group-side database and the group-side blockchain in S1, the two-level platform of the group through the system version query feature code and other information, and determine whether the returned public key is consistent with the public key stored in the database and the feature public key stored in the group blockchain; if they are inconsistent, the information is unreliable, and it is prompted that the installation result return information is abnormal; if they are consistent, continue to verify the signature information;
[0057] Use the public key in the database and the elliptic algorithm to verify the signature information. If the verification fails, it means that the data has been tampered with and is unreliable. At the same time, the installation result of the corresponding version of the enterprise installation package in the database is updated to unreliable. If successful, continue to use the public key stored in the blockchain for verification. If they are inconsistent, the information is unreliable. If successful, the plain text information of the installation result is stored in the database.
[0058] On the other hand, based on the above embodiment, the full-link traceability of the enterprise-side installation results can be performed;
[0059] By sending the enterprise code and system code to query the database, the system installation result and installation time are returned in plain text and sorted in reverse order of installation time. The enterprise installation results can be traced back to the entire link. If a certain installation version fails to install or the installation result is suspicious, the enterprise can be contacted in time to investigate and solve the problem.
[0060] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0061] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A two-level application architecture operation and maintenance method based on blockchain, characterized in that: The following steps are involved: Step 1: The two-level group platform receives the installation package file, generates group records and stores them in the group database, and uploads the group records to the group blockchain; the group blockchain returns the group transaction ID and updates the group records saved in the group database; Step 2: The two-level group platform generates an installation request, matches the corresponding group transaction ID in the group database according to the installation request, downloads the corresponding group record from the group blockchain according to the group transaction ID, and generates an enterprise installation package according to the installation request and the group record; Step 3: The group end receives the enterprise installation package and performs encryption, packaging and downloading processing, generates an installation data package, and transmits it to the enterprise end; Step 4: After receiving the installation data package, the enterprise end performs decryption verification. If the verification passes, the encrypted enterprise installation package is forwarded to the enterprise end guard module; otherwise, an error is reported; Step 5: The enterprise-side guardian module decompresses the enterprise installation package into a directory, generates enterprise records, stores them in the enterprise-side database, and uploads them to the enterprise-side blockchain; The enterprise-side blockchain returns the enterprise-side transaction ID and updates the enterprise record saved in the enterprise database; Step 6: The enterprise-side guardian module verifies whether the data stored in the enterprise-side database and the enterprise-side blockchain match. If they match, the installation is performed according to the directory, the installation result is generated, and the signature information is signed and uploaded to the enterprise-side database and the enterprise-side blockchain; Otherwise, an error is reported, the installation result is generated, and the installation result is signed to generate signature information and uploaded to the enterprise-side database and enterprise-side blockchain; Step 7: The enterprise end encrypts, packages and downloads the installation results, signature information and related information in the enterprise installation package uploaded by the enterprise end guardian module to generate a feedback data package, and feeds it back to the group end; Step 8: After receiving the feedback data packet, the group end performs decryption verification. If the verification is successful, the feedback data packet is forwarded to the group's two-level platform; otherwise, an error is reported; Step 9: The two-level platform of the group decompresses the feedback data package, performs consistency judgment and signature verification, and generates an installation status prompt.
2. According to claim 1, a two-level application architecture operation and maintenance method based on blockchain is characterized in that: The installation package file is calculated by a hash algorithm to obtain a feature code, the feature code is used to generate a feature private key, and the feature public key is generated by an elliptic algorithm based on the feature private key; The installation package file, feature code, feature private key and feature public key constitute a group record.
3. According to claim 2, a two-level application architecture operation and maintenance method based on blockchain is characterized in that: The installation package file includes the application ID, version number and application program, etc.; the installation request includes the application ID and version number; in step 2, the corresponding installation package file is searched according to the application ID and version number, and the group-side transaction ID returned corresponding to the installation package file is matched; in step 2, an enterprise installation package is generated according to the installation request and the corresponding installation package file, the feature public key and the group-side transaction ID.
4. A two-level application architecture operation and maintenance method based on blockchain according to claim 3, characterized in that: In step 5, the enterprise-side guardian module decompresses the installation package files in the enterprise installation package to the specified directory, and stores the feature public key and the group-side transaction ID in the enterprise-side database.
5. According to claim 4, a two-level application architecture operation and maintenance method based on blockchain is characterized in that: Step 6 The specific steps include: Step 61: extracting a feature code from the installation package file in the directory using a hash algorithm, generating a feature private key from the feature code, and generating a feature public key from the feature private key using an elliptic algorithm; Step 62: Using the feature code as the query condition, determine whether the feature public keys in the enterprise-side database and the enterprise-side blockchain are consistent; if they are consistent, perform the installation, generate a successful installation result, use the feature private key to sign the failed installation result, and update the signature information to the database and the enterprise-side blockchain; if they are inconsistent or cannot be found, report an error, generate an installation failure result, use the feature private key to sign the failed installation result, and update the signature information to the database and the enterprise-side blockchain.
6. A two-level application architecture operation and maintenance method based on blockchain according to claim 3, characterized in that: In step 7, the enterprise side encrypts the installation result, signature information, feature public key, group transaction ID and corresponding installation time according to the set time to generate a feedback data packet and uploads it to the group side database of the group side for storage.
7. A two-level application architecture operation and maintenance method based on blockchain according to claim 6, characterized in that: The consistency judgment process in step 9 is as follows: the two-level platform of the group decompresses the feedback data package, and queries whether the feature public key stored in the group database and the group blockchain is consistent with the feature public key in the feedback data package according to the group transaction ID; if they are consistent, the signature information is verified, otherwise, an error is reported; The signature information verification process is as follows: use the characteristic public key stored in the group-side database and the elliptic algorithm to verify the signature information in the feedback data packet once. If the verification is successful, use the characteristic public key stored in the group blockchain to perform a second verification; otherwise, an error is reported, and the installation result of the corresponding version of the installation package file installed by the enterprise-side guardian module is marked as untrustworthy in the group-side database; If the second signature verification is successful, the installation result and installation time will be stored in the group database, otherwise an error will be reported.
8. A two-level application architecture operation and maintenance method based on blockchain according to claim 6, characterized in that: The installation request also includes the selection of the enterprise name and enterprise code of the enterprise side; when tracing the installation source, the corresponding installation result and installation time are queried according to the enterprise code or application ID, and the installation results are sorted in reverse order according to the installation time and the tracing results are fed back.
9. A two-level application architecture operation and maintenance system based on blockchain, characterized in that: A two-level application architecture operation and maintenance method based on blockchain as described in any one of claims 1 to 8, comprising: a group two-level platform, a group end, a group blockchain, an enterprise end, an enterprise end guard module and an enterprise end blockchain; The group side is equipped with a group side database, and the enterprise side is equipped with an enterprise side database; The two-level group platform receives the installation package file, generates group records and stores them in the group-side database, and uploads the group records to the group blockchain; the two-level group platform generates an installation request, obtains the enterprise installation package based on the group records and sends it to the group side; The group end receives the enterprise installation package, generates an installation data package and sends it to the enterprise end; The enterprise side uses the enterprise side guardian module to install according to the installation data package, generates the installation results, uploads them to the enterprise side database and enterprise side blockchain, and feeds back the installation results to the group side.
Citation Information
Patent Citations
Data processing method and device based on block chain, equipment and storage medium
CN112702419A
Block chain-based deployment file distribution method and device, and storage medium
CN112765586A
Layered block chain network architecture and deployment method
CN117478400A
Method For Registration Of Data In A Blockchain Database And A Method For Verifying Data
US20190377811A1
