CN110908666B - Source code sharing management method, device, equipment and computer storage medium - Google Patents

Source code sharing management method, device, equipment and computer storage medium Download PDF

Info

Publication number
CN110908666B
CN110908666B CN201911053728.XA CN201911053728A CN110908666B CN 110908666 B CN110908666 B CN 110908666B CN 201911053728 A CN201911053728 A CN 201911053728A CN 110908666 B CN110908666 B CN 110908666B
Authority
CN
China
Prior art keywords
source code
target
compiling
task
sharing management
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911053728.XA
Other languages
Chinese (zh)
Other versions
CN110908666A (en
Inventor
张猛
姜洪正
陈树成
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Inspur Data Technology Co Ltd
Original Assignee
Beijing Inspur Data Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Inspur Data Technology Co Ltd filed Critical Beijing Inspur Data Technology Co Ltd
Priority to CN201911053728.XA priority Critical patent/CN110908666B/en
Publication of CN110908666A publication Critical patent/CN110908666A/en
Application granted granted Critical
Publication of CN110908666B publication Critical patent/CN110908666B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects

Abstract

The invention discloses a source code sharing management method, which comprises the following steps: receiving a compiled file acquisition request sent by a target user; searching a corresponding target source code from a code library, and compiling through a compiler to obtain a target compilation file corresponding to the target source code; and distributing the target compiled file to a control directory corresponding to the target user so that the target user downloads the target compiled file under the control directory. Therefore, through the source code sharing management mode, a user can realize the sharing of the source code through a mode of acquiring the compiled file of the source code; in addition, the source code sharing management mode disclosed by the application is realized based on the authority management platform built by the virtual machine, and the software content in the virtual machine can be prevented from being copied through the hardware isolation mode, so that the safety of the source code is ensured. The invention also discloses a source code sharing management device, equipment and a computer storage medium, which can also realize the technical effect.

Description

Source code sharing management method, device, equipment and computer storage medium
Technical Field
The present invention relates to the field of data management technologies, and in particular, to a method, an apparatus, a device, and a computer storage medium for source code sharing management.
Background
Source code is the most important resource for software development and is a crystal of the developer's thought, experience, and work. For software development, the security of source code is an important issue. With the expansion of software scale, more and more developers can participate in the development of a software product, modules or functions developed by each developer can be connected in a million way, and if the developers can share source codes, the working efficiency can be improved. At present, developers can view and modify source codes, but download of the source codes is not supported.
Therefore, how to implement sharing of source code among different developers and ensure the security of the source code is a problem to be solved by those skilled in the art.
Disclosure of Invention
The invention aims to provide a source code sharing management method, a source code sharing management device, source code sharing management equipment and a computer storage medium, so that source codes are shared and the safety of the source codes is ensured.
In order to achieve the above object, the present invention provides a source code sharing management method, based on an authority management platform, the source code sharing management method including:
receiving a compiled file acquisition request sent by a target user; the authority management platform is established through a virtual machine;
searching a target source code corresponding to the compiling file acquisition request from a code library, and compiling the target source code through a compiler to obtain a target compiling file corresponding to the target source code; the code base stores approved source codes submitted by different developers;
and distributing the target compiled file to a control directory corresponding to the target user so that the target user downloads the target compiled file under the control directory.
Wherein, this scheme still includes:
detecting whether a source code copying task or a source code modifying task exists;
if the source code copy task exists, the source code copy task or the source code modification task is ended, and an alarm prompt is sent.
After receiving the compiled file acquisition request sent by the target user, the method further includes:
detecting whether a compiling interference task or a compiling file distribution interference task exists;
if yes, ending the compiling interference task or compiling the file distribution interference task, and sending an alarm prompt.
Wherein, this scheme still includes:
and deleting all files constructed by the compiling after the compiling of the target source code fails or the target compiling file is successfully distributed.
Before receiving a compiled file acquisition request sent by a target user, the method further includes:
receiving a login request carrying account information sent by the target user;
and verifying the account information, and if the verification is successful, executing the step of receiving a compiled file acquisition request sent by a target user.
After receiving the login request carrying the account information sent by the target user, the method further includes:
detecting whether the login request is a remote login request;
if yes, the flow is ended.
In order to achieve the above object, the present invention further provides a source code sharing management apparatus, based on a rights management platform, the source code sharing management apparatus including:
the acquisition request receiving module is used for receiving a compiled file acquisition request sent by a target user; the authority management platform is established through a virtual machine;
the compiling module is used for searching a target source code corresponding to the compiling file acquisition request from a code library, and compiling the target source code through a compiler to acquire a target compiling file corresponding to the target source code; the code base stores approved source codes submitted by different developers;
and the compiled file distribution module is used for distributing the target compiled file to a control directory corresponding to the target user so as to enable the target user to download the target compiled file under the control directory.
Wherein, this scheme still includes:
the system comprises a first detection module, a second detection module and a third detection module, wherein the first detection module is used for detecting whether a source code copying task and/or a source code modifying task exist or not;
the first ending module is used for ending the source code copying task and/or the source code modifying task when the source code copying task and/or the source code modifying task exist;
and the first warning module is used for sending out a warning prompt when the source code copying task and/or the source code modifying task exist.
To achieve the above object, the present invention further provides a source code sharing management apparatus, including:
a memory for storing a computer program; and the processor is used for executing the steps of the source code sharing management method realized in the computer program.
To achieve the above object, the present invention further provides a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of the above-mentioned source code sharing management method.
According to the above scheme, the source code sharing management method provided by the embodiment of the invention is based on the authority management platform, and comprises the following steps: receiving a compiled file acquisition request sent by a target user; the authority management platform is established through a virtual machine; searching a target source code corresponding to the compiling file acquisition request from the code library, and compiling the target source code through a compiler to obtain a target compiling file corresponding to the target source code; the code library stores approved source codes submitted by different developers; and distributing the target compiled file to a control directory corresponding to the target user so that the target user downloads the target compiled file under the control directory.
Therefore, through the source code sharing management mode, a user can realize the sharing of the source code through a mode of acquiring the compiled file of the source code; in addition, the source code sharing management mode disclosed by the application is realized based on the authority management platform built by the virtual machine, and the software content in the virtual machine can be prevented from being copied through the hardware isolation mode, so that the safety of the source code is ensured.
The invention also discloses a source code sharing management device, equipment and a computer storage medium, which can also realize the technical effect.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic flow chart of a source code sharing management method according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating rights management disclosed in an embodiment of the present invention;
FIG. 3 is a schematic diagram of a source code sharing process according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of a source code sharing management apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a source code sharing management device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention discloses a source code sharing management method, a source code sharing management device, source code sharing management equipment and a computer storage medium, which are used for realizing the sharing of source codes and ensuring the safety of the source codes.
Referring to fig. 1, a source code sharing management method provided in an embodiment of the present invention is based on a rights management platform, and the source code sharing management method includes:
s101, receiving a compiled file acquisition request sent by a target user; the authority management platform is established through a virtual machine;
in the present application, three types of permissions are specifically included, which are a hardware management permission, a software management permission, and a code/script management permission, and for convenience of describing each permission, the hardware management permission is referred to as permission a, the software management permission is referred to as permission B, and the code/script management permission is referred to as permission C. Here, the above three authorities will be specifically described.
A person in charge with authority A establishes a virtual machine of an authority management platform on a server to complete the initialization of the virtual machine, and the authority A also has the authority for maintaining the authority management platform; the authority management platform is provided with virtual machine management software, the virtual machine management software is a login entrance of all virtual machines, the virtual machines can only log in the virtual machine management software, and remote login is not allowed; the virtual machine management software can be logged in only after the use authority distributed by the person in charge with the authority A is obtained, for example: and the responsible person with the authority A distributes the use authority to the responsible person with the authority B, and the responsible person with the authority B can log in the virtual machine management software by utilizing the distributed use authority to enter an operation interface of the authority B user so as to realize the tasks of maintenance, code compiling and code installing and the like of the virtual machine.
After the person in charge with the authority B logs in the virtual machine management software, the created virtual machine can be accessed to the automatic construction platform, and the compiling script is installed to the platform to complete the construction of the authority management platform. The compiling script is independent of the source code and is responsible for the compiling of the source code and the distribution process of the compiling generated file, the source code does not contain an executable script file, and the steps of S101-S103 can be realized by the compiling script. Before the compiling script is installed to the authority management platform, the compiling script needs to be audited, namely: and auditing the compiling script by a responsible person with the authority C through the code modification auditing system, and installing the compiling script to the virtual machine by the responsible person with the authority B after the compiling script is approved.
The code modification auditing system may include, but is not limited to, SVN/GIT/GERRIT systems and the like. The code modification auditing system audits the compiling script, and comprises the following steps: the compiling script strictly audits operations such as copying, renaming and the like of the file, so that illegal operations such as copying of a source code and the like in the compiling script are avoided, and the modification records of the script file cannot be deleted. Referring to fig. 2, a schematic view of authority management and control provided by the present application specifically includes: the authority A responsible person creates a virtual machine, the authority B responsible person configures the virtual machine to access the construction platform, the authority C responsible person issues an audited script to the virtual machine, the authority management platform is built, and after the authority management platform is built through the process, a developer can upload source codes based on the authority management platform, so that the source codes can be shared. Specifically, before uploading the source code, the developer needs to perform account verification, and after the verification is successful, the submitted source code can be submitted to a code modification and verification system with authority C, such as SVN/GIT/GERRIT and other systems.
S102, searching a target source code corresponding to the compiled file acquisition request from a code library, and compiling the target source code through a compiler to obtain a target compiled file corresponding to the target source code; the code library stores approved source codes submitted by different developers;
in this embodiment, if a developer needs to obtain a compiled file of a source code, the developer may log in the virtual machine management software and then send a compiled file obtaining request, and a compiling task is created through a Jenkin platform of the rights management platform. It should be noted that, in the present application, a developer can only interact with the Jenkin platform when obtaining the compiled file, and cannot connect to the compiling machine, so that it can be ensured that the code is not copied. After receiving the request, the Jenkins platform automatically allocates a compiler in the background, and pulls the audited target source code corresponding to the compilation task from the code library on the compiler to execute the compilation task, so as to obtain a final target compilation file.
S103, distributing the target compiled file to a control directory corresponding to the target user so that the target user can download the target compiled file under the control directory.
In the application, after the target compiled file is obtained, the target compiled file needs to be issued to the server for storage according to a server address specified in advance in the compiled script, and a target user can download the target compiled file from the server through the control directory. It should be noted that the managed directory is a directory allocated to each development user, and the user only has a download right under the directory, and all files in the directory are audited by the system. The target compiling file is distributed to the control directory, so that the files are audited and dumped periodically and the hard disk space is recycled for convenience of data maintenance and management.
In summary, the source code sharing management method described in the present application enables a user to implement sharing of a source code by obtaining a compiled file of the source code; in addition, the source code sharing management mode disclosed by the application is realized based on the authority management platform built by the virtual machine, and the software content in the virtual machine can be prevented from being copied through the hardware isolation mode, so that the safety of the source code is ensured.
Based on the foregoing embodiment, in this embodiment, before receiving a compiled file obtaining request sent by a target user, the method further includes:
receiving a login request carrying account information sent by the target user;
and verifying the account information, and if the verification is successful, executing the step of receiving a compiled file acquisition request sent by a target user.
In the application, in order to ensure the security of the source code, a user authentication system needs to be arranged on the authority management platform, and a login request of a user is verified through the user authentication system, specifically, the user logs in a virtual machine through virtual machine management software on the authority management platform, inputs an account and a password, verifies the account and the password through the user authentication system, and only a user who successfully verifies can log in the virtual machine, so that a compiled file acquisition request is sent.
Based on the foregoing embodiment, in this embodiment, the source code sharing management further includes:
after receiving a compiled file acquisition request sent by a target user, the method further comprises the following steps: detecting whether a compiling interference task or a compiling file distribution interference task exists; if so, ending the compiling interference task or compiling the file distribution interference task and sending an alarm prompt; and/or the presence of a gas in the gas,
detecting whether a source code copying task or a source code modifying task exists; if the source code copy task exists, the source code copy task or the source code modification task is ended, and an alarm prompt is sent.
It should be noted that, in order to ensure the security of the source code on the platform and the security of the source code in the compiling process and the distribution process of the compiled file, the operations on the platform need to be continuously detected, and if there are non-compliant operations, the corresponding operations are terminated and an alarm is issued for debugging. For example, in the present application, a platform needs to detect whether a source code copying task or a source code modifying task exists, and if so, the platform rejects the execution of the task, thereby preventing the source code in a code library from being modified and copied illegally; and after receiving the compiled file acquisition request, the method and the device need to detect whether a compiling interference task or a compiled file distribution interference task exists, and if so, the execution of the corresponding task is rejected, so that the safety of the compiling process and the distribution process is ensured, and the safety of source code sharing is ensured.
It can be understood that, after receiving the login request carrying the account information sent by the target user, the method further includes: detecting whether the login request is a remote login request; if yes, the flow is ended. That is, in order to ensure the security of the source code and the security of the compiling process of the source code, the method and the system refuse the user to log in the platform in a remote mode. In addition, after the target source code is compiled unsuccessfully or the target compiled file is distributed successfully, all files constructed by compiling this time are deleted.
Referring to fig. 3, a schematic diagram of a source code sharing process provided by the present application includes:
and S1, submitting source codes to a GIT/SVN server with a code auditing mechanism of the authority management platform by developers, wherein the source codes take effect after being audited by the authority C.
S2, when a developer wants to acquire a compiled file, a compiling task is created through a Jenkin platform of the authority management platform, and the Jenkin platform automatically distributes a compiling machine in the background. In the process, developers only interact with the Jenkin platform and cannot connect with a compiling machine, so that codes are not copied.
It should be noted that the authority limit by a in the flowchart is specifically: when the corresponding steps are executed, the method is realized on an authority management platform built by the virtual machine, so that the physical isolation is ensured through the authority A, and the physical code copying cannot be realized; the restriction of the permission B in the flowchart is specifically: through software isolation on the platform, remote login rejection, remote source code copying, remote source code modification and the like can be included; the restriction of the permission C in the flowchart is specifically: the obtained source code is the source code which is audited by the code modification auditing system, and the source code is prevented from being tampered by the mode, so that the code is prevented from being copied.
And S3-S5, after the Jenkin platform creates the compiling task, pulling the checked codes from the code library on the compiler to execute the compiling task, wherein all source codes in the code library are codes checked by the authority C. And when the compiling task is executed, the remote login compiling machine is not allowed to intervene in the compiling task manually, so that the compiling task is prevented from being tampered manually.
S6, generating a binary compiled file after compiling, wherein the distribution script has the following functions: and issuing the binary compiled file to a fixed server. The distributed script is a part within the compiled script that specifies a list of files to distribute and the address of the distribution server. Moreover, when the software package distribution task of the compiled file is executed, the remote login compiler is not allowed to intervene in the software package distribution task manually, and manual tampering of the distribution task script is prevented.
And S7, distributing the compiled files to a fixed control directory, wherein the control directory is a directory distributed to each development user, the users only have downloading authority, and all files in the directory are audited by the system. The aim of distributing to the control catalog is to facilitate maintenance and management, audit and dump files regularly and recycle hard disk space.
And S8-S9, after the compiling fails and the distribution succeeds, all files in the compiling process need to be deleted, so that the garbage data are cleared, and the hard disk space is recycled.
In conclusion, the working efficiency of developers can be improved by sharing the source codes; in addition, the method and the device realize the acquisition process management and control of the source code and the compiled file through mechanisms such as hardware isolation, software isolation, code auditing and the like, and ensure the safety of the source code and the safety of the source code in the sharing process.
In the following, the management apparatus provided by the embodiment of the present invention is introduced, and the management apparatus described below and the management method described above may be referred to each other.
Referring to fig. 4, a source code sharing management apparatus provided in an embodiment of the present invention is based on a rights management platform, and includes:
an acquisition request receiving module 100, configured to receive a compiled file acquisition request sent by a target user; the authority management platform is established through a virtual machine;
a compiling module 200, configured to search a code library for a target source code corresponding to the compiled file obtaining request, and compile the target source code by using a compiler to obtain a target compiled file corresponding to the target source code; the code base stores approved source codes submitted by different developers;
a compiled file distribution module 300, configured to distribute the target compiled file to a control directory corresponding to the target user, so that the target user downloads the target compiled file under the control directory.
Wherein, this scheme still includes:
the system comprises a first detection module, a second detection module and a third detection module, wherein the first detection module is used for detecting whether a source code copying task and/or a source code modifying task exist or not;
the first ending module is used for ending the source code copying task and/or the source code modifying task when the source code copying task and/or the source code modifying task exist;
and the first warning module is used for sending out a warning prompt when the source code copying task and/or the source code modifying task exist.
After receiving the compiled file acquisition request sent by the target user, the method further includes:
the second detection module is used for detecting whether a compiling interference task or a target compiling file distribution interference task exists;
the second ending module is used for ending the compiling interference task or the compiling file distribution interference task when the compiling interference task or the target compiling file distribution interference task exists;
and the third warning module is used for sending out a warning prompt when the compiling interference task or the target compiling file distribution interference task exists.
Wherein, this scheme still includes:
and the deleting module is used for deleting all files constructed by the compiling after the compiling of the target source code fails or the target compiling file is successfully distributed.
Wherein, this scheme still includes:
a login request receiving module, configured to receive a login request carrying account information sent by the target user;
the verification module is used for verifying the account information;
the acquisition request receiving module is specifically configured to receive a compiled file acquisition request sent by a target user when verification is successful.
Wherein, this scheme still includes:
the third detection module is used for detecting whether the login request is a remote login request;
and the third ending module is used for ending the process when the login request is a remote login request.
The embodiment of the invention also discloses source code sharing management equipment, which comprises:
a memory for storing a computer program;
a processor for implementing the steps of the source code sharing management method according to any of the above method embodiments when executing the computer program.
In this embodiment, the device may be a server, a PC (Personal Computer), or a terminal device such as a smart phone, a tablet Computer, a palmtop Computer, or a portable Computer.
Fig. 5 is a schematic structural diagram of a source code sharing management device disclosed in the embodiment of the present invention; the device may include a memory 11, a processor 12, and a bus 13.
The memory 11 includes at least one type of readable storage medium, which includes a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, and the like. The memory 11 may in some embodiments be an internal storage unit of the device, for example a hard disk of the device. The memory 11 may also be an external storage device of the device in other embodiments, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), etc. provided on the device. Further, the memory 11 may also include both an internal storage unit of the device and an external storage device. The memory 11 can be used not only for storing application software installed in the device and various types of data such as program codes for performing sharing management and the like, but also for temporarily storing data that has been output or is to be output.
The processor 12 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor or other data Processing chip in some embodiments, and is used for executing program codes stored in the memory 11 or Processing data, such as program codes for performing sharing management.
The bus 13 may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 5, but this is not intended to represent only one bus or type of bus.
Further, the device may further include a network interface 14, and the network interface 14 may optionally include a wired interface and/or a wireless interface (e.g., WI-FI interface, bluetooth interface, etc.), which are generally used to establish a communication connection between the device and other electronic devices.
Optionally, the device may further comprise a user interface, which may comprise a Display (Display), an input unit such as a Keyboard (Keyboard), and optionally a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, or the like. The display, which may also be referred to as a display screen or display unit, is suitable for displaying information processed in the device and for displaying a visualized user interface.
Fig. 5 shows only the device with the components 11-14, and it will be understood by those skilled in the art that the structure shown in fig. 5 does not constitute a limitation of the device, and may comprise fewer or more components than those shown, or some components may be combined, or a different arrangement of components.
The present application also discloses a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the source code sharing management method according to any of the above method embodiments.
Wherein the storage medium may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A source code sharing management method is characterized in that based on a permission management platform, the source code sharing management method comprises the following steps:
receiving a compiled file acquisition request sent by a target user; the authority management platform is established through a virtual machine;
searching a target source code corresponding to the compiling file acquisition request from a code library, and compiling the target source code through a compiler to obtain a target compiling file corresponding to the target source code; the code base stores approved source codes submitted by different developers;
and distributing the target compiled file to a control directory corresponding to the target user so that the target user downloads the target compiled file under the control directory.
2. The source code sharing management method according to claim 1, further comprising:
detecting whether a source code copying task or a source code modifying task exists;
if the source code copy task exists, the source code copy task or the source code modification task is ended, and an alarm prompt is sent.
3. The source code sharing management method according to claim 1, wherein after receiving the compiled file obtaining request sent by the target user, the method further comprises:
detecting whether a compiling interference task or a compiling file distribution interference task exists;
if yes, ending the compiling interference task or compiling the file distribution interference task, and sending an alarm prompt.
4. The source code sharing management method according to claim 1, further comprising:
and deleting all files constructed by the compiling after the compiling of the target source code fails or the target compiling file is successfully distributed.
5. The source code sharing management method according to any one of claims 1 to 4, wherein before receiving the compiled file obtaining request sent by the target user, the method further comprises:
receiving a login request carrying account information sent by the target user;
and verifying the account information, and if the verification is successful, executing the step of receiving a compiled file acquisition request sent by a target user.
6. The source code sharing management method according to claim 5, wherein after receiving the login request carrying the account information sent by the target user, the method further comprises:
detecting whether the login request is a remote login request;
if yes, the flow is ended.
7. A source code sharing management apparatus, based on a rights management platform, the source code sharing management apparatus comprising:
the acquisition request receiving module is used for receiving a compiled file acquisition request sent by a target user; the authority management platform is established through a virtual machine;
the compiling module is used for searching a target source code corresponding to the compiling file acquisition request from a code library, and compiling the target source code through a compiler to acquire a target compiling file corresponding to the target source code; the code base stores approved source codes submitted by different developers;
and the compiled file distribution module is used for distributing the target compiled file to a control directory corresponding to the target user so as to enable the target user to download the target compiled file under the control directory.
8. The source code sharing management apparatus according to claim 7, further comprising:
the system comprises a first detection module, a second detection module and a third detection module, wherein the first detection module is used for detecting whether a source code copying task and/or a source code modifying task exist or not;
the first ending module is used for ending the source code copying task and/or the source code modifying task when the source code copying task and/or the source code modifying task exist;
and the first warning module is used for sending out a warning prompt when the source code copying task and/or the source code modifying task exist.
9. A source code sharing management apparatus, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the source code sharing management method according to any one of claims 1 to 6 when executing said computer program.
10. A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of the source code sharing management method according to any one of claims 1 to 6.
CN201911053728.XA 2019-10-31 2019-10-31 Source code sharing management method, device, equipment and computer storage medium Active CN110908666B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911053728.XA CN110908666B (en) 2019-10-31 2019-10-31 Source code sharing management method, device, equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911053728.XA CN110908666B (en) 2019-10-31 2019-10-31 Source code sharing management method, device, equipment and computer storage medium

Publications (2)

Publication Number Publication Date
CN110908666A CN110908666A (en) 2020-03-24
CN110908666B true CN110908666B (en) 2022-03-22

Family

ID=69814720

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911053728.XA Active CN110908666B (en) 2019-10-31 2019-10-31 Source code sharing management method, device, equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN110908666B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112579470B (en) * 2020-12-29 2022-08-30 中国科学院计算机网络信息中心 Compiling and linking method and system for debugging dynamic software library
CN112948827A (en) * 2021-01-11 2021-06-11 杭州复杂美科技有限公司 Source code compiling verification method, system, equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101458633A (en) * 2007-12-13 2009-06-17 华为软件技术有限公司 Method for accessing host program by script program, and system and apparatus thereof
WO2014065206A1 (en) * 2012-10-25 2014-05-01 株式会社Ubic Source code management system, method, and program
CN105122255A (en) * 2012-12-17 2015-12-02 微软技术许可有限责任公司 Management system for point of care testing
CN105511933A (en) * 2015-12-03 2016-04-20 深圳市创维软件有限公司 Compiling method of source code and related equipment
CN106648589A (en) * 2016-09-28 2017-05-10 郑州云海信息技术有限公司 svn source code online management and shared viewing system and method
CN107678748A (en) * 2017-09-21 2018-02-09 杭州迪普科技股份有限公司 A kind of source code file Compilation Method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10574632B2 (en) * 2016-06-30 2020-02-25 Hcl Technologies Limited System and method for secure sharing of a source code
US10732935B2 (en) * 2017-06-27 2020-08-04 Atlassian Pty Ltd Displaying status data in a source code development system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101458633A (en) * 2007-12-13 2009-06-17 华为软件技术有限公司 Method for accessing host program by script program, and system and apparatus thereof
WO2014065206A1 (en) * 2012-10-25 2014-05-01 株式会社Ubic Source code management system, method, and program
CN105122255A (en) * 2012-12-17 2015-12-02 微软技术许可有限责任公司 Management system for point of care testing
CN105511933A (en) * 2015-12-03 2016-04-20 深圳市创维软件有限公司 Compiling method of source code and related equipment
CN106648589A (en) * 2016-09-28 2017-05-10 郑州云海信息技术有限公司 svn source code online management and shared viewing system and method
CN107678748A (en) * 2017-09-21 2018-02-09 杭州迪普科技股份有限公司 A kind of source code file Compilation Method and device

Also Published As

Publication number Publication date
CN110908666A (en) 2020-03-24

Similar Documents

Publication Publication Date Title
CN102737200B (en) Use the software activation of digital license
US8719586B1 (en) Digital rights management for applications
CN101662557B (en) Image forming apparatus, and license determining method
CN101310472B (en) Automatic update of computer-readable components to support a trusted environment
US8655785B2 (en) Computer data product license installation / update confirmation
CN100524333C (en) Method for preventing illegal using software
CN104885092A (en) Security system and method for operating systems
CN103649983A (en) Service for adding functionality to applications
CN109783118B (en) FPGA cloud host development method and system
CN101366040A (en) Management of user access to objects
CN103544434A (en) Method and terminal used for ensuring safe operation of application program
CN102630320A (en) Information processing device and method for preventing unauthorized application cooperation
EP2966584A1 (en) Information processing system, information processing apparatus, method of administrating license, and program
CN110908666B (en) Source code sharing management method, device, equipment and computer storage medium
JP5091925B2 (en) How to install the license file
EP3583536B1 (en) Securely defining operating system composition without multiple authoring
KR102327083B1 (en) System and method for sharing software component
CN107169344A (en) Stop the method and the device using this method of unauthorized application program
US20190180005A1 (en) Managing Application Specific Feature Rights
CN103646211A (en) Method and device for loading payment webpage in browser
US11409847B2 (en) Source-based authentication for a license of a license data structure
CN101548284A (en) Conditional policies in software licenses
CN111966422A (en) Localized plug-in service method and device, electronic equipment and storage medium
US11057219B2 (en) Timestamped license data structure
CN112099802B (en) Component identification method and device of application program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant