Source code management and control system

By integrating the source code control system on the server and using the authentication mechanism of biometric devices and hardware security modules, the problem of the server being unable to access the source code directly from the cloud is solved, ensuring the safe transmission and version control of the source code, and reducing the cost of accessing storage. security risks when using the equipment.

CN221650923UActive Publication Date: 2024-09-03JIANGXI TOBACCO CO NANCHANG COUNTY BRANCH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202323562707.5
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2023-12-26
Publication Date
2024-09-03
Estimated Expiration
2033-12-26

AI Technical Summary

Technical Problem

Due to enterprise management requirements, some servers cannot access source code directly from the cloud and require version control through physical connections, resulting in security risks when accessing storage devices.

Method used

A source code control system is designed, including a press prompt circuit, a key detection circuit, a biometric device, an embedded processor, a hardware security module and a communication module. After passing the biometric device authentication, the hardware security module is activated to ensure that the storage device and server secure connection and data transmission.

Benefits of technology

Through biometric device authentication and activation of the hardware security module, the secure connection between the storage device and the server is ensured, the security risks of direct physical access are eliminated, and the secure transmission and version control of source code data are realized.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN221650923U
    Figure CN221650923U
Patent Text Reader

Abstract

The embodiment of the utility model discloses a source code management and control system. The system comprises a pressing prompt circuit, a key detection circuit, a power supply, a biological recognition device, an embedded processor, a hardware security module, a storage interface and a communication module, and the embedded processor is electrically connected with the key detection circuit, the power supply, the biological recognition device, the hardware security module and the communication module through different pins. The pressing prompt circuit is electrically connected with the key detection circuit, the power supply is further electrically connected with the key detection circuit, the hardware security module is further electrically connected with the storage interface, and the communication module is connected with a server through a connection bus. According to the embodiment of the invention, the hardware security module is arranged between the storage interface and the embedded processor, so that the security of source codes accessed by the server is ensured, and potential safety hazards are eliminated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] One or more embodiments of this specification relate to component equipment technology, and more particularly, to a source code management and control system. Background Art

[0002] At present, in some source code testing phases, it is necessary to perform version control on the server in order to track the history of the same file or information under different versions during the test process, as well as the changes in information over time, etc. This requires importing new source code into the server to achieve this. However, under the management requirements of the enterprise, some servers can only interact with the server in the cloud, and the source code cannot be directly accessed in the cloud. New source code needs to be imported through physical connection. Therefore, when performing version control, the storage device storing the new source code needs to be directly physically connected to the server responsible for actually running and processing the original source code, and the source code in the storage device needs to be run to test the actual running effect of the new source code in the server. Since this testing method directly connects the storage device to the server interface, it is impossible to authenticate the user, and it is easy to access risky storage devices, which in turn brings potential risks to the source code security in the server. Utility Model Content

[0003] In order to solve the above problems, one or more embodiments of this specification describe a source code management system.

[0004] According to a first aspect, a source code management and control system is provided, the system comprising: a press prompt circuit, a key detection circuit, a power supply, a biometric identification device, an embedded processor, a hardware security module, a storage interface and a communication module, the embedded processor is electrically connected to the key detection circuit, the power supply, the biometric identification device, the hardware security module and the communication module through different pins, the press prompt circuit is electrically connected to the key detection circuit, the power supply is also electrically connected to the key detection circuit, the hardware security module is also electrically connected to the storage interface, and the communication module is connected to a server through a connection bus;

[0005] The storage interface is used to access a storage device storing source code data;

[0006] The embedded processor is used to switch the level of the first pin connected to the biometric identification device from a low level to a high level after receiving the first electrical signal transmitted by the key detection circuit;

[0007] The embedded processor is further configured to switch the level of a second pin connected to the hardware security module from a low level to a high level after receiving a second electrical signal transmitted by the biometric identification device;

[0008] The pressing prompt circuit is used to light up the light emitting diode after receiving the third electrical signal transmitted by the key detection circuit;

[0009] The communication module is used to send the source code data to the server.

[0010] Preferably, the key detection circuit includes: a voltage regulator diode, a first resistor, a second resistor, a capacitor, a push-type switch, and a transistor, the positive electrode of the voltage regulator diode is connected to the third pin of the embedded processor, the negative electrode of the voltage regulator diode is respectively connected to the first end of the push-type switch, the first end of the first resistor and the first end of the capacitor, the second end of the push-type switch is respectively connected to the collector of the transistor and the power transmission end of the power supply, the first end of the second resistor is respectively connected to the second end of the first resistor and the base of the transistor, the second end of the second resistor and the second end of the capacitor are both grounded, and the emitter of the transistor is connected to the press prompt circuit.

[0011] Preferably, the emitter of the transistor is also connected to the first end of the third resistor, a fourth resistor is also provided between the collector of the transistor and the power transmission end of the power supply, and the second end of the third resistor is grounded.

[0012] Preferably, the press prompt circuit includes a fifth resistor and a light emitting diode, the first end of the fifth resistor is connected to the key detection circuit, the second end of the fifth resistor is connected to the positive electrode of the light emitting diode, and the negative electrode of the light emitting diode is grounded.

[0013] Preferably, the biometric identification device includes at least one of a fingerprint identifier, an iris identifier and a face identifier.

[0014] Preferably, the embedded processor is an MCU processor.

[0015] Preferably, the hardware security module is an HSM module.

[0016] Preferably, the storage interface includes at least one of a LAN port, a USB port, an HDMI port, a DP port, and a TYPE-C port.

[0017] Preferably, the connection bus includes at least one of an I2C bus, an SPI bus, an RS485 bus, a CAN bus, a TTL bus, a UART bus, and an RS232 bus.

[0018] Preferably, the power source includes at least one of a lithium battery and a lead-acid battery.

[0019] The system provided in the embodiments of this specification can be added to the server. The system is provided with a storage interface that can be inserted into the storage device, and the storage interface cannot be directly connected to the system after the storage device is inserted because it is connected to the hardware security module. The user needs to insert the storage device into the storage interface, and press the push switch of the key detection circuit to change the voltage at the third pin of the embedded processor. After the biometric device is authenticated, the embedded processor will adjust the level of the second pin corresponding to the hardware security module, connect the embedded processor with the storage device, and send the source code data to the server through the communication module, thereby ensuring the security of the source code accessed by the server and eliminating security risks. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0021] Figure 1 It is a schematic diagram of the architecture of a source code management and control system in one embodiment of this specification.

[0022] Figure 2 It is a structural schematic diagram of a key detection circuit in one embodiment of this specification.

[0023] Figure 3 It is a structural diagram of a press prompt circuit in one embodiment of this specification. DETAILED DESCRIPTION

[0024] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0025] In the following introduction, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance. The following introduction provides multiple embodiments of the present application, and different embodiments can be replaced or combined, so the present application can also be considered to include all possible combinations of the same and / or different embodiments recorded. Therefore, if one embodiment includes features A, B, and C, and another embodiment includes features B and D, then the present application should also be considered to include embodiments containing one or more of all other possible combinations of A, B, C, and D, although the embodiment may not be clearly recorded in the following text.

[0026] The following description provides examples and does not limit the scope, applicability or examples set forth in the claims. Changes may be made to the functions and arrangements of the elements described without departing from the scope of the present application. Various processes or components may be appropriately omitted, substituted or added to each example. For example, the described method may be performed in an order different from the order described, and various steps may be added, omitted or combined. In addition, features described in some examples may be combined in other examples.

[0027] See also Figure 1 , Figure 1 This is a schematic diagram of the architecture of a source code control system provided in an embodiment of the present application. In an embodiment of the present application, the system includes: a press prompt circuit, a key detection circuit, a power supply, a biometric device, an embedded processor, a hardware security module, a storage interface, and a communication module. The embedded processor is electrically connected to the key detection circuit, the power supply, the biometric device, the hardware security module, and the communication module through different pins, the press prompt circuit is electrically connected to the key detection circuit, the power supply is also electrically connected to the key detection circuit, the hardware security module is also electrically connected to the storage interface, and the communication module is connected to the server through a connection bus;

[0028] The storage interface is used to access a storage device storing source code data;

[0029] The embedded processor is used to switch the level of the first pin connected to the biometric identification device from a low level to a high level after receiving the first electrical signal transmitted by the key detection circuit;

[0030] The embedded processor is further configured to switch the level of a second pin connected to the hardware security module from a low level to a high level after receiving a second electrical signal transmitted by the biometric identification device;

[0031] The pressing prompt circuit is used to light up the light-emitting diode D2 after receiving the third electrical signal transmitted by the key detection circuit;

[0032] The communication module is used to send the source code data to the server.

[0033] In the embodiment of this specification, this system can be added to the server by connecting the bus, and the physical interface for accessing the storage device on the server is closed. When a user wants to test the source code in the storage device by directly connecting to the server, the user needs to insert the storage device into the storage interface. The storage interface is only directly connected to the hardware security module, and the hardware security module can provide a secure communication channel. The embedded processor can set the level of each pin. When the level of the pin is at a low level (i.e., grounded), it can be regarded as the pin is not connected. Only when the level of the pin is at a high level (i.e., connected to the VCC voltage) can it be connected. In the embedded processor, the level of the first pin connected to the key detection circuit and the second pin connected to the biometric device can be at a low level in the initial state, that is, there is no connection. Therefore, after the storage device is inserted into the storage interface, since the hardware security module is not connected and activated, the storage device is not connected to the embedded processor at this time. At this time, the user needs to press the push switch in the key detection circuit to temporarily connect the key detection circuit. The connection of the key detection circuit will generate a first electrical signal, which will cause the current and / or voltage at the pin of the embedded processor to change. After the embedded processor detects the current and / or voltage changes caused by the first electrical signal, it will adjust the level of the first pin to a high level to activate the biometric device. The user will use the biometric device for identity authentication. After the authentication is completed, the biometric device will transmit a second electrical signal to the embedded processor. After receiving the second electrical signal, the embedded processor will adjust the level of the second pin to a high level to activate the hardware security module, so that the communication channel of the hardware security module is connected, and then the embedded processor can obtain the source code data in the storage device and transmit the source code data to the server through the communication module. In this way, only when the user passes the authentication of the biometric device can the storage device be connected to the embedded processor and the source code data can be transmitted to the server, thereby ensuring the security of the server.

[0034] Among them, the reason for setting up the key detection circuit is to reduce power consumption. Only when the user needs to physically connect the storage device directly to the server, the key detection circuit will be briefly turned on by pressing the button and the first pin and the second pin will be activated. In other cases, it is only necessary to maintain the basic energy consumption of the embedded processor.

[0035] In addition, in order to allow users to intuitively understand that they have successfully pressed the key and activated the biometric device, the system is also equipped with a press prompt circuit. Whenever the key detection circuit is briefly turned on, the key detection circuit will also send a third electrical signal to the press prompt circuit to light up the light-emitting diode D2 in the press prompt circuit through the current corresponding to the third electrical signal to provide a prompt.

[0036] It should be noted that the high and low level switching of the pins by the embedded processor, the voltage / current detection of the pins by the embedded processor, and the recognition of facial images / iris images of organisms by the biometric identification device are all well-known technologies familiar to those skilled in the art, and the focus of this application is not the algorithms / programs involved in the above technologies themselves, but the system as a whole that can realize these functions through the above connection relationships. Therefore, the specific implementation process of the above algorithms / programs will not be described in detail here.

[0037] After the new source code is imported into the server, the server can perform the version control process by executing the new source code. The basic principles of version control can be:

[0038] A database for the project is established on the server, and the first version of the selected project file is saved. Any client user who wants to obtain the right to modify a file must log out. After that, the client generally performs an entry operation every time it wants to save a version without compilation errors, and the current version is saved on the server and becomes the latest version. Any client can easily get any version of the file on the server (if it has permission). Generally, an important function is also implemented, which is version comparison. Any client can use the version control tool to compare different versions of a file. It will mark the differences between different versions of the same-named files, so that the evolution of the version content can be easily seen.

[0039] In one possible implementation, the key detection circuit includes: a voltage regulator diode D1, a first resistor R1, a second resistor R2, a capacitor C1, a push switch S1, and a transistor Q1, the positive electrode of the voltage regulator diode D1 is connected to the third pin of the embedded processor, the negative electrode of the voltage regulator diode D1 is respectively connected to the first end of the push switch S1, the first end of the first resistor R1 and the first end of the capacitor C1, the second end of the push switch S1 is respectively connected to the collector of the transistor Q1 and the power transmission end of the power supply, the first end of the second resistor R2 is respectively connected to the second end of the first resistor R1 and the base of the transistor Q1, the second end of the second resistor R2 and the second end of the capacitor C1 are both grounded, and the emitter of the transistor Q1 is connected to the press prompt circuit.

[0040] In the embodiments of this specification, Figure 2As shown, the Key end of the key detection circuit is the first end connected to the embedded processor, and the LED end is the second end connected to the press prompt circuit. Among them, the first resistor R1 and the capacitor C1 can form an RC filter, which can filter the high-frequency signal transmitted to the base of the transistor Q1 to improve the stability of the third electrical signal transmitted to the press prompt circuit, thereby ensuring the stability of the light emitting diode. When the push switch S1 is closed, under the current input of the power transmission terminal VBat of the power supply, the reverse voltage of the cathode of the Zener diode D1 increases, the Zener diode D1 is cut off, and the embedded processor detects the change of current and / or voltage through the third pin, thereby receiving the first electrical signal. At the same time, the base current of the transistor Q1 increases, causing the transistor Q1 to be turned on, and then connected to the press prompt circuit through the LED end, and sending the third electrical signal to the press prompt circuit.

[0041] In one embodiment, the emitter of the transistor Q1 is also connected to the first end of the third resistor R3, a fourth resistor R4 is further provided between the collector of the transistor Q1 and the power transmission end of the power supply, and the second end of the third resistor R3 is grounded.

[0042] In the embodiment of the present specification, the key detection circuit is further provided with a third resistor R3 and a fourth resistor R4, the third resistor R3 can reduce the magnitude of the current and / or voltage transmitted to the transistor Q1, and reduce the occurrence of the transistor Q1 being broken down. The fourth resistor R4 can prevent the emitter from being suspended.

[0043] In one embodiment, the press prompt circuit includes a fifth resistor R5 and the light-emitting diode D2, the first end of the fifth resistor R2 is connected to the key detection circuit, the second end of the fifth resistor R2 is connected to the positive electrode of the light-emitting diode D2, and the negative electrode of the light-emitting diode D2 is grounded.

[0044] In the embodiment of the present specification, the current and voltage corresponding to the third electrical signal will pass through the fifth resistor R5 to turn on the light-emitting diode D2 and light up the light-emitting diode D2 to provide feedback to the user's key operation.

[0045] In one possible implementation, the biometric identification device includes at least one of a fingerprint identifier, an iris identifier, and a face identifier.

[0046] In the embodiments of this specification, authorized persons have pre-entered their own data. Through the identification of the biometric device, it can be compared to determine whether the user is an authorized person. Only after the comparison is successful will the biometric device generate a second electrical signal.

[0047] In one possible implementation, the embedded processor is an MCU processor.

[0048] In the embodiments of this specification, the MCU processor can implement the basic functions to be implemented by this system, so it is more suitable for selection in this application.

[0049] In one possible implementation, the hardware security module is an HSM module.

[0050] In the embodiments of this specification, through the HSM module, the data in the storage device cannot directly interact with the embedded processor at the beginning, and the program in the HSM module cannot be extracted and tampered with, thereby enhancing the security of the system.

[0051] In one possible implementation, the storage interface includes at least one of a LAN port, a USB port, an HDMI port, a DP port, and a TYPE-C port.

[0052] In the embodiments of this specification, different types of storage interfaces may be selected for setting according to different actual conditions.

[0053] In one possible implementation, the connection bus includes: at least one of an I2C bus, an SPI bus, an RS485 bus, a CAN bus, a TTL bus, a UART bus, and an RS232 bus.

[0054] In the embodiments of this specification, similarly, different types of connection buses can be selected according to different actual situations.

[0055] In one possible implementation, the power source includes at least one of a lithium battery and a lead-acid battery.

[0056] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0057] The above is only an exemplary embodiment of the present disclosure, and the scope of the present disclosure cannot be limited thereto. That is, any equivalent changes and modifications made according to the teachings of the present disclosure are still within the scope of the present disclosure. After considering the specification and practicing the disclosure here, those skilled in the art will easily think of the implementation scheme of the present disclosure. This application is intended to cover any modification, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary technical means in the technical field not recorded in the present disclosure. The description and examples are regarded as exemplary only, and the scope and spirit of the present disclosure are defined by the claims.

Claims

1. A source code management and control system, characterized in that: The system comprises: a press prompt circuit, a key detection circuit, a power supply, a biometric identification device, an embedded processor, a hardware security module, a storage interface and a communication module, wherein the embedded processor is electrically connected to the key detection circuit, the power supply, the biometric identification device, the hardware security module and the communication module through different pins, the press prompt circuit is electrically connected to the key detection circuit, the power supply is also electrically connected to the key detection circuit, the hardware security module is also electrically connected to the storage interface, the communication module is connected to the server through a connection bus, the embedded processor is an MCU processor, and the hardware security module is an HSM module; The storage interface is used to access a storage device storing source code data; The embedded processor is used to switch the level of the first pin connected to the biometric identification device from a low level to a high level after receiving the first electrical signal transmitted by the key detection circuit; The embedded processor is further configured to switch the level of a second pin connected to the hardware security module from a low level to a high level after receiving a second electrical signal transmitted by the biometric identification device; The pressing prompt circuit is used to light up the light emitting diode (D2) after receiving the third electrical signal transmitted by the key detection circuit; The communication module is used to send the source code data to the server.

2. The system according to claim 1, characterized in that The key detection circuit comprises: a voltage stabilizing diode (D1), a first resistor (R1), a second resistor (R2), a capacitor (C1), a push-type switch (S1), and a transistor (Q1), wherein the positive electrode of the voltage stabilizing diode (D1) is connected to the third pin of the embedded processor, the negative electrode of the voltage stabilizing diode (D1) is respectively connected to the first end of the push-type switch (S1), the first end of the first resistor (R1), and the first end of the capacitor (C1), the second end of the push-type switch (S1) is respectively connected to the collector of the transistor (Q1) and the power transmission end of the power supply, the first end of the second resistor (R2) is respectively connected to the second end of the first resistor (R1) and the base of the transistor (Q1), the second end of the second resistor (R2) and the second end of the capacitor (C1) are both grounded, and the emitter of the transistor (Q1) is connected to the press prompt circuit.

3. The system according to claim 2, characterized in that The emitter of the transistor (Q1) is also connected to the first end of the third resistor (R3), a fourth resistor (R4) is also provided between the collector of the transistor (Q1) and the power transmission end of the power supply, and the second end of the third resistor (R3) is grounded.

4. The system according to claim 1, characterized in that The pressing prompt circuit comprises a fifth resistor (R5) and the light-emitting diode (D2), wherein a first end of the fifth resistor (R2) is connected to the key detection circuit, a second end of the fifth resistor (R2) is connected to the positive electrode of the light-emitting diode (D2), and a negative electrode of the light-emitting diode (D2) is grounded.

5. The system according to claim 1, characterized in that The biometric identification device includes at least one of a fingerprint identifier, an iris identifier and a face identifier.

6. The system according to claim 1, characterized in that The storage interface includes: at least one of a LAN port, a USB port, an HDMI port, a DP port, and a TYPE-C port.

7. The system according to claim 1, characterized in that The connection bus includes: at least one of an I2C bus, an SPI bus, an RS485 bus, a CAN bus, a TTL bus, a UART bus, and an RS232 bus.

8. The system according to claim 1, characterized in that The power source includes at least one of a lithium battery and a lead-acid battery.