Cloud disk file storage and distribution traceability management method and device and storage medium
By setting secondary distribution strategies and generating traceability identifiers in the metadata of cloud drive files, the uncontrollable problem of sharing cloud drive files again after they have been transferred to external links is solved, and traceability management and resource conservation of files are realized.
Patent Information
- Application Number
- CN202611105983.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-24
- Publication Date
- 2026-11-27
AI Technical Summary
After cloud drive files are shared via external links, they can be transferred to personal spaces and external links can be created again, leading to uncontrollable file dissemination, which poses a significant risk, especially under dense file security mechanisms.
Set a secondary distribution strategy in the metadata of the cloud disk file, generate a traceability identifier, and generate a virtual file when the file is transferred. Use the traceability identifier and the secondary distribution strategy to perform permission checks and control the re-linking and forwarding of the file.
It implements restrictions and management on the re-linking and forwarding of files, reduces system resource consumption, avoids the uncontrollable risk of file dissemination, and reduces confidentiality risks.
Smart Images

Figure CN123178351A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of information technology, and in particular relates to a method, device and storage medium for tracing and managing the redistribution of files after they have been transferred from cloud storage. Background Technology
[0002] With the maturity of cloud storage technology, it has been widely used in various fields. More and more enterprises are deploying their internal files and data on cloud drives. For security reasons, cloud drives implement access control, assigning different permissions to users to control their access to file directories and file data. However, permission settings can sometimes cause problems. For example, if a user lacks permissions to a certain file directory, that user also lacks permissions to all files within that directory. But if work requires sharing a specific file within that directory with that user, it's impractical to change the permissions of the entire file directory for that single file. To address this, cloud drives offer an external link sharing feature. This allows users to create an external link to the file they want to share and share it with the user, enabling them to directly access the file through the link.
[0003] Once a file is shared via an external link on a cloud drive, any user with permission to save the file to their personal space can create another external link and share the file again. This leads to uncontrollable file dissemination, posing a significant risk, especially to robust security mechanisms for densely packed files. Summary of the Invention
[0004] The purpose of this invention is to propose a method, device, and storage medium for tracing and managing the redistribution of files transferred from cloud storage, which can restrict and manage the re-forwarding of files transferred via external links on cloud storage.
[0005] To achieve the above objectives, the technical solution of the present invention is implemented as follows: A method for tracing and managing the redistribution of files after they have been transferred from cloud storage, including: S1. Set a secondary distribution strategy in the metadata of the cloud disk files; S2. When creating an external link for a cloud disk file, generate a traceability identifier and store the cloud disk file ID, the created external link, and the corresponding traceability identifier in the file traceability database. S3. When a recipient of an external link clicks on the external link and saves the cloud disk file to their personal space, the saved file generated in the personal space is a virtual file corresponding to the cloud disk file. S4. When the transferred file is used to create an external link, permission checks are first performed based on the traceability identifier and secondary distribution strategy. If creation is allowed, a secondary traceability identifier associated with the traceability identifier is generated at the same time as the external link is created. The ID of the cloud disk file, the created external link and the secondary traceability identifier are stored in the file traceability database, and then the process jumps to step S3.
[0006] Furthermore, the secondary distribution strategy described in step S1 includes a secondary distribution identifier and the number of secondary distributions allowed.
[0007] Furthermore, in step S3, the virtual file contains the traceability identifier of the external link and the file metadata pointer information of the cloud disk file.
[0008] Furthermore, the permission check method described in step S4 includes: S401. Based on the file metadata pointer information, find the metadata of the cloud disk file corresponding to the transferred file, and extract the allowed secondary distribution identifier and the number of allowed secondary distributions from the metadata. S402. Determine whether secondary distribution is allowed based on the allowed secondary distribution flag. If not allowed, restrict the current secondary distribution. If allowed, proceed to step S403. S403. Based on the traceability identifier in the virtual file and the ID of the cloud disk file in the metadata, search the file traceability library for the number of secondary traceability identifiers associated with the traceability identifier, and determine whether it exceeds the allowed number of secondary distributions. If it does not exceed the limit, creation is allowed.
[0009] In another aspect, the present invention also proposes a traceability management device for cloud disk file transfer and redistribution, comprising: Strategy module: Sets secondary distribution strategies in the metadata of cloud disk files; Identification module: When creating an external link for a cloud drive file, a traceability identifier is generated. The ID of the cloud drive file, the created external link, and the corresponding traceability identifier are stored in the file traceability database. Transfer module: When a recipient clicks on an external link and transfers the cloud drive file to their personal space, the transferred file generated in the personal space is a virtual file corresponding to the cloud drive file; Permission check module: When the transferred file is used to create an external link, permission checks are first performed based on the traceability identifier and secondary distribution strategy. If creation is allowed, a secondary traceability identifier associated with the traceability identifier is generated at the same time as the external link is created. The ID of the cloud disk file, the created external link and the secondary traceability identifier are stored in the file traceability database, and then the process jumps to the transfer module.
[0010] Furthermore, the secondary distribution strategy in the strategy module includes a secondary distribution flag and the number of times secondary distribution is allowed.
[0011] Furthermore, in the transfer module, the virtual file contains the traceability identifier of the external link and the file metadata pointer information of the cloud disk file.
[0012] Furthermore, the permission check module includes: Metadata unit: Based on the file metadata pointer information, find the metadata of the cloud disk file corresponding to the transferred file, and extract the allowed secondary distribution identifier and the number of allowed secondary distributions from the metadata; First judgment unit: Determine whether secondary distribution is allowed based on the allowed secondary distribution flag. If not allowed, restrict the current secondary distribution. If allowed, proceed to the second judgment unit. The second judgment unit: Based on the traceability identifier in the virtual file and the ID of the cloud disk file in the metadata, it searches the file traceability library for the number of secondary traceability identifiers associated with the traceability identifier, and determines whether it exceeds the allowed number of secondary distributions. If it does not exceed the limit, creation is allowed.
[0013] The present invention also provides a computer-readable storage medium storing a computer program for executing the above-described cloud disk file transfer and redistribution traceability management method.
[0014] The present invention also provides a computer program product, including a computer program that, when executed by a processor, implements the above-described cloud disk file transfer and redistribution traceability management method.
[0015] Compared with the prior art, the present invention has the following beneficial effects: 1. This invention adds a source identification mark to the created external links. When a cloud drive file is copied to another user's personal space via an external link, the file will be automatically marked with this source identification mark. No matter what operation is performed on this file (moving, copying, editing, renaming), it will only increase the version of the original file, and the source identification mark of the file will remain unchanged. Source identification mark can be used to manage the distribution of cloud drive files. 2. This invention sets the file saved after clicking the external link to a virtual file containing the original file information and the traceability identifier, which reduces system resource consumption, avoids the uncontrollable risks of saving real files, and realizes the automatic association between the file and the traceability identifier. 3. The secondary distribution strategy set up in this invention can control whether secondary forwarding is allowed and the number of secondary forwardings, thereby reducing the uncontrollable risk of file spread. Attached Figure Description
[0016] Figure 1 This is a schematic diagram of the method flow provided in Embodiment 1 of the present invention. Detailed Implementation
[0017] It should be noted that, unless otherwise specified, the embodiments and features described in the present invention can be combined with each other.
[0018] The design concept of this invention is to add a source identifier when creating an external link, which can be used for permission verification when using a cloud storage service to customize file sharing policies. This prevents files transferred via cloud storage external links from being forwarded uncontrollably through those links again.
[0019] The present invention will now be described in detail with reference to the accompanying drawings and embodiments.
[0020] Example 1: The cloud disk file transfer and redistribution traceability management method proposed in Embodiment 1 is as follows: Figure 1 As shown, it includes: S1. Set a secondary distribution strategy in the metadata of the cloud disk files; The purpose of setting a secondary distribution strategy is to control secondary distribution behavior. Secondary distribution refers to the situation where, after a cloud drive file is shared via an external link, the recipient continues to distribute or share the cloud drive file to external parties again via an external link.
[0021] In this embodiment, the secondary distribution strategy is set in the metadata of the cloud disk file in the form of data. The metadata is "data about data", and the metadata of the cloud disk file is data used to describe the file ID, content, structure, permissions, size, time and other information of the cloud disk file.
[0022] The cloud storage system allows you to configure the contents of file metadata, and thus you can set secondary distribution policies within the metadata. The metadata is represented in numerical form as to whether secondary distribution is allowed and the number of times it is allowed. This includes a secondary distribution allow flag (e.g., 0 means secondary distribution is prohibited, 1 means secondary distribution is allowed) and a numerical value as the number of times secondary distribution is allowed.
[0023] S2. When creating an external link for a cloud disk file, generate a traceability identifier and store the cloud disk file ID, the created external link, and the corresponding traceability identifier in the file traceability database. This step includes two parts.
[0024] Firstly, this is controlled by the cloud storage system: when a user with cloud storage file permissions wants to share files via external links, a corresponding traceability identifier is generated for each external link created; for example... Figure 1 As shown, when creating external link-1, a traceability identifier key1 is generated; when creating external link-2, a traceability identifier key2 is generated; when creating external link-3, a traceability identifier key3 is generated. Then, a file traceability database is created in the cloud storage system. All created external links and their corresponding traceability identifiers are stored in this database. To facilitate traceability retrieval and analysis, file IDs are used for differentiation. That is, the file traceability database must include at least three types of data: file ID, created external links, and traceability identifiers. Each file ID can correspond to multiple created external links, and each created external link corresponds to a unique traceability identifier. For example... Figure 1 As shown, the file metadata is associated with the traceability database through the file ID of the metadata. For a certain file ID, the created external links-1, external links-2, external links-3 and their corresponding traceability identifiers key1, key2, and key3 are all stored in the file traceability database.
[0025] Once a file ID is associated with an external link and a source identifier, any operation performed on the file (moving, copying, editing, renaming) will only increase the version of the original file, and the source identifier of the file will remain unchanged. Source management can be achieved by distributing cloud disk files through the source identifier.
[0026] S3. When a recipient of an external link clicks on the external link and saves the cloud disk file to their personal space, the saved file generated in the personal space is a virtual file corresponding to the cloud disk file. Once the external link is created, it will be sent to the users who want to share it. These users, as recipients of the external link, can click on the external link to access the corresponding cloud drive file.
[0027] If the recipient of the external link wants to transfer the cloud drive file to their personal space on the cloud drive, since the personal space is also managed by the cloud drive system, the cloud drive system can control the transfer operation so that what is transferred is not a cloud drive file with actual content, but a virtual file. The virtual file can be a virtual file image of the cloud drive file, for example, through a file placeholder containing certain information. The virtual file contains certain information, including the traceability identifier of the external link and the file metadata pointer information of the cloud drive file. As shown in Figure 1, when the external link recipient transfers a file through the created external link-1, a virtual file with a traceability identifier key1 is created. At the same time, the cloud disk system obtains a file metadata pointer from the metadata of the cloud disk file (the metadata is stored in the inode table, and the file metadata pointer points to the actual location where the metadata is stored in the inode table); the file metadata pointer is also incorporated into the virtual file.
[0028] S4. When the transferred file is used to create an external link, permission checks are first performed based on the traceability identifier and secondary distribution strategy. If creation is allowed, a secondary traceability identifier associated with the traceability identifier is generated at the same time as the external link is created. The ID of the cloud disk file, the created external link and the secondary traceability identifier are stored in the file traceability database, and then the process jumps to step S3.
[0029] If a recipient of an external link wants to share a file that has been saved to their personal space again via an external link, the cloud storage system will first perform a permission check. The cloud storage system can determine whether a permission check is required by whether the file has a source identification tag. Files with source identification tags (virtual files) are definitely files that have been redistributed, and the redistribution strategy needs to be applied accordingly.
[0030] The specific judgment process is as follows: S401. Based on the file metadata pointer information, find the metadata of the cloud disk file corresponding to the transferred file, and extract the allowed secondary distribution identifier and the number of allowed secondary distributions from the metadata. S402. Determine whether secondary distribution is allowed based on the allowed secondary distribution flag. If not allowed, restrict the current secondary distribution. If allowed, proceed to step S403. S403. Based on the traceability identifier in the virtual file and the ID of the cloud disk file in the metadata, search the file traceability database for the number of secondary traceability identifiers associated with the traceability identifier, and determine whether the current distribution exceeds the allowed number of secondary distributions. If it does not exceed the limit, creation is allowed.
[0031] If creation is allowed, a secondary traceability identifier associated with the traceability identifier is generated while creating the external link. The ID of the cloud disk file, the created external link, and the secondary traceability identifier are stored in the file traceability database, and then the process jumps to step S3.
[0032] like Figure 1 As shown, when creating an external link for a virtual file with a traceability identifier key1 and a file metadata pointer, a permission check is performed due to the traceability identifier. If the secondary distribution strategy does not allow secondary distribution or the number of secondary distributions has been reached, the secondary distribution is restricted. If the secondary distribution strategy allows secondary distribution and the number of secondary distributions has not been reached, secondary distribution is allowed, thus creating an external link -4 and generating a traceability identifier key4. key4 is associated with key1, for example, key4 contains key1, or external link -4 is associated with external link -1 when storing in the file traceability database, etc. If the created external link -4 is used for file transfer, step S3 is still executed.
[0033] In this embodiment, the file to be transferred is a virtual file containing the original file information and the traceability identifier. This reduces system resource consumption, avoids the uncontrollable risks of transferring real files, and also realizes the automatic association between the file and the traceability identifier. The secondary distribution strategy can control whether secondary forwarding is allowed and the number of secondary forwardings, reducing the uncontrollable risks of file spread.
[0034] Example 2: Embodiment 2 of the present invention provides a traceability management device for cloud disk file transfer and redistribution, comprising: Strategy module: Sets a secondary distribution strategy in the metadata of cloud disk files; the secondary distribution strategy includes a secondary distribution flag and the number of times secondary distribution is allowed.
[0035] Identification module: When creating an external link for a cloud drive file, a traceability identifier is generated. The ID of the cloud drive file, the created external link, and the corresponding traceability identifier are stored in the file traceability database. Transfer module: When a recipient clicks on an external link and transfers the cloud drive file to their personal space, the transferred file generated in the personal space is a virtual file corresponding to the cloud drive file; the virtual file contains the source identifier of the external link and the file metadata pointer information of the cloud drive file.
[0036] Permission check module: When the transferred file is used to create an external link, permission checks are first performed based on the traceability identifier and secondary distribution strategy. If creation is allowed, a secondary traceability identifier associated with the traceability identifier is generated at the same time as the external link is created. The ID of the cloud disk file, the created external link and the secondary traceability identifier are stored in the file traceability database, and then the process jumps to the transfer module.
[0037] The permission check module includes: Metadata unit: Based on the file metadata pointer information, find the metadata of the cloud disk file corresponding to the transferred file, and extract the allowed secondary distribution identifier and the number of allowed secondary distributions from the metadata; First judgment unit: Determine whether secondary distribution is allowed based on the allowed secondary distribution flag. If not allowed, restrict the current secondary distribution. If allowed, proceed to the second judgment unit. The second judgment unit: Based on the traceability identifier in the virtual file and the ID of the cloud disk file in the metadata, it searches the file traceability library for the number of secondary traceability identifiers associated with the traceability identifier, and determines whether it exceeds the allowed number of secondary distributions. If it does not exceed the limit, creation is allowed.
[0038] The cloud disk file transfer and redistribution traceability management device provided in Embodiment 2 of the present invention can execute the cloud disk file transfer and redistribution traceability management method provided in Embodiment 1 of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0039] Example 3: Embodiment 3 of the present invention also provides a storage medium containing computer-executable instructions, which, when executed by a computer processor, are used to perform the cloud disk file transfer and redistribution traceability management method as described in Embodiment 1 above.
[0040] The computer storage medium of this invention can be any combination of one or more computer-readable media. A computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. A computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
[0041] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, capable of sending, propagating, or transmitting programs for use by or in connection with an instruction execution system, apparatus, or device.
[0042] Program code contained on a computer-readable medium may be transmitted using any suitable medium, including, but not limited to, wireless, wire, optical fiber, RF, etc., or any suitable combination thereof.
[0043] Computer program code for performing the operations of this invention can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, as well as conventional procedural programming languages such as "C" or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0044] The above embodiments are merely preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
Claims
1. A method for traceability management of files transferred and redistributed from cloud storage, characterized in that, include: S1. Set a secondary distribution strategy in the metadata of the cloud disk files; S2. When creating an external link for a cloud disk file, generate a traceability identifier and store the cloud disk file ID, the created external link, and the corresponding traceability identifier in the file traceability database. S3. When a recipient of an external link clicks on the external link and saves the cloud disk file to their personal space, the saved file generated in the personal space is a virtual file corresponding to the cloud disk file. S4. When the transferred file is used to create an external link, permission checks are first performed based on the traceability identifier and secondary distribution strategy. If creation is allowed, a secondary traceability identifier associated with the traceability identifier is generated at the same time as the external link is created. The ID of the cloud disk file, the created external link and the secondary traceability identifier are stored in the file traceability database, and then the process jumps to step S3.
2. The cloud disk file transfer and redistribution traceability management method according to claim 1, characterized in that, The secondary distribution strategy in step S1 includes a secondary distribution identifier and the number of secondary distributions allowed.
3. The cloud disk file transfer and redistribution traceability management method according to claim 2, characterized in that, In step S3, the virtual file contains the traceability identifier of the external link and the file metadata pointer information of the cloud disk file.
4. The cloud disk file transfer and redistribution traceability management method according to claim 3, characterized in that, The permission check method described in step S4 includes: S401. Based on the file metadata pointer information, find the metadata of the cloud disk file corresponding to the transferred file, and extract the allowed secondary distribution identifier and the number of allowed secondary distributions from the metadata. S402. Determine whether secondary distribution is allowed based on the allowed secondary distribution flag. If not allowed, restrict the current secondary distribution. If allowed, proceed to step S403. S403. Based on the traceability identifier in the virtual file and the ID of the cloud disk file in the metadata, search the file traceability library for the number of secondary traceability identifiers associated with the traceability identifier, and determine whether it exceeds the allowed number of secondary distributions. If it does not exceed the limit, creation is allowed.
5. A cloud disk file transfer and redistribution traceability management device, characterized in that, include: Strategy module: Sets secondary distribution strategies in the metadata of cloud disk files; Identification module: When creating an external link for a cloud drive file, a traceability identifier is generated. The ID of the cloud drive file, the created external link, and the corresponding traceability identifier are stored in the file traceability database. Transfer module: When a recipient clicks on an external link and transfers the cloud drive file to their personal space, the transferred file generated in the personal space is a virtual file corresponding to the cloud drive file; Permission check module: When the transferred file is used to create an external link, permission checks are first performed based on the traceability identifier and secondary distribution strategy. If creation is allowed, a secondary traceability identifier associated with the traceability identifier is generated at the same time as the external link is created. The ID of the cloud disk file, the created external link and the secondary traceability identifier are stored in the file traceability database, and then the process jumps to the transfer module.
6. The cloud disk file transfer and redistribution traceability management device according to claim 5, characterized in that, The secondary distribution strategy described in the strategy module includes a secondary distribution flag and the number of times secondary distribution is allowed.
7. The cloud disk file transfer and redistribution traceability management device according to claim 6, characterized in that, In the transfer module, the virtual file contains the source identifier of the external link and the file metadata pointer information of the cloud disk file.
8. The cloud disk file transfer and redistribution traceability management device according to claim 7, characterized in that, The permission check module includes: Metadata unit: Based on the file metadata pointer information, find the metadata of the cloud disk file corresponding to the transferred file, and extract the allowed secondary distribution identifier and the number of allowed secondary distributions from the metadata; First judgment unit: Determine whether secondary distribution is allowed based on the allowed secondary distribution flag. If not allowed, restrict the current secondary distribution. If allowed, proceed to the second judgment unit. The second judgment unit: Based on the traceability identifier in the virtual file and the ID of the cloud disk file in the metadata, it searches the file traceability library for the number of secondary traceability identifiers associated with the traceability identifier, and determines whether it exceeds the allowed number of secondary distributions. If it does not exceed the limit, creation is allowed.
9. A computer-readable storage medium storing a computer program, characterized in that, The computer program is used to execute the cloud disk file transfer and redistribution traceability management method as described in any one of claims 1-4.
10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the cloud disk file transfer and redistribution traceability management method as described in any one of claims 1-4.
