File management method, platform, electronic device and storage medium

By building a file management platform on MinIO and combining with the administrator approval mechanism, the problems of high cost and insufficient security when managing files by third-party cloud services are solved, and a safer and more economical file management solution is achieved.

CN119743473APending Publication Date: 2025-04-01WELLTRANS O&E CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411728742.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-28
Publication Date
2025-04-01

AI Technical Summary

Technical Problem

In the prior art, files are managed through third-party cloud services, resulting in high capital costs, inconvenient file maintenance, and insufficient file storage.

Method used

Provide a file management method, built on MinIO, and obtains administrator approval results by generating target information, including user permission information, bucket display type information and management operation information, and performs bucket management operations based on administrator permissions to ensure the security of file storage.

Benefits of technology

By building a file management platform by itself, we will reduce dependence on third-party cloud services, reduce file management costs, and improve the security of file storage and management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119743473A_ABST
    Figure CN119743473A_ABST
Patent Text Reader

Abstract

The present invention relates to a file management method, platform, electronic device and storage medium, belonging to the field of file management technology, wherein the method is applied to a file management platform built on MinIO, and the method comprises: when a user performs a management operation of a storage bucket on MinIO through the file management platform, generating target information; the target information comprises the user's authority information, the display type information of the storage bucket on the file management platform, and the management operation information; wherein the display type information comprises public or private; obtaining the administrator's approval result for the target information; when the approval result is approval, performing a management operation of the storage bucket on MinIO based on the administrator's authority. The file management platform of the present invention is simple to construct, and it is more convenient to manage and maintain files through the file management platform, and to ensure the security of file storage.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of file management, and in particular to a file management method, platform, electronic device and storage medium. Background Art

[0002] Many companies currently purchase third-party cloud services (such as Alibaba Cloud OSS) for file management and perform file storage and other management on third-party cloud services. However, third-party cloud storage services are paid platforms with high capital costs, file access, file storage, and management and maintenance relying on third-party platforms, and key files may be placed on external network servers, resulting in insufficient file storage security. Summary of the invention

[0003] In view of this, it is necessary to provide a file management method, platform, electronic device and storage medium to solve the problems of high financial cost, inconvenient file maintenance and insufficient file storage caused by managing files through third-party cloud services in the prior art.

[0004] In order to solve the above problems, in a first aspect, the present invention provides a file management method, which is applied to a file management platform built on MinIO, and the method comprises: When a user performs a management operation on the MinIO bucket through the file management platform, target information is generated; the target information includes at least one of the user's permission information, the display type information of the bucket on the file management platform, and the management operation information; wherein the display type information includes public or private; Obtaining the administrator's approval result on the target information; When the approval result is approved, the MinIO is managed based on the administrator's authority.

[0005] Optionally, the method further includes: setting all storage buckets in the MinIO as private buckets based on the administrator's authority.

[0006] Optionally, the management operation includes: at least one of an access operation on a first file in a first storage bucket in the MinIO, a deletion operation on the first file, a download operation on the first file, a setting operation of access permissions for the first file, an upload operation of uploading a second file to the first storage bucket, a deletion operation of deleting the first storage bucket from the MinIO, and a creation operation of creating a second storage bucket in the MinIO.

[0007] Optionally, the user's authority includes a first authority and a second authority; the first authority is lower than the second authority; when the user's authority information is the first authority, the management operation is a creation operation of creating the second storage bucket in the MinIO, and the user sets the display type of the second storage bucket on the file management platform to private, the approval result is approval passed; when the user's authority information is the first authority, the management operation is a creation operation of creating the second storage bucket in the MinIO, and the user sets the display type of the second storage bucket on the file management platform to public, the approval result is approval failed; when the user's authority information is the second authority, the management operation is a creation operation of creating the second storage bucket in the MinIO, and the user sets the display type of the second storage bucket on the file management platform to private or public, the approval result is approval passed.

[0008] Optionally, the permission information includes a permission token; when the user performs a management operation on the MinIO bucket through the file management platform, the target information is generated, including: When the display type of the first storage bucket on the file management platform is public and the management operation is an access operation to the first file in the first storage bucket, generating target information; the target information includes display type information and management operation information of the first storage bucket on the file management platform; When the display type of the first storage bucket on the file management platform is public, and the management operation is a deletion operation on the first storage bucket, a deletion operation on the first file, a download operation on the first file, or an upload operation on uploading the second file to the storage bucket, or when the display type of the storage bucket on the file management platform is private, a permission token is generated according to the user's username and platform login password, and target information is generated according to the permission token; the target information includes the permission token, display type information of the storage bucket on the file management platform, and management operation information.

[0009] Optionally, the method further includes: When the user skips the file management platform to access the file in the MinIO, the access is prohibited.

[0010] Optionally, the file management platform displays a first directory of files in the MinIO and a second directory of storage buckets in the MinIO, and the method further includes: After the management operation of the storage bucket is completed, the first directory and / or the second directory displayed by the file management platform are updated.

[0011] In a second aspect, the present invention further provides a file management platform, which is built on MinIO and is used to implement the steps in any one of the file management methods described above.

[0012] In a third aspect, the present invention also provides an electronic device comprising a memory and a processor, wherein the memory is used to store programs; and the processor is coupled to the memory and is used to execute the programs stored in the memory to implement the steps in any one of the file management methods described above.

[0013] In a fourth aspect, the present invention further provides a computer-readable storage medium for storing a computer-readable program, wherein the program or instructions, when executed by a processor, can implement the steps in any one of the above-mentioned file management methods.

[0014] The beneficial effects of the present invention are: The method of the present invention is applied to a file management platform, and the file management platform is built on MinIO. The process of building a file management platform based on MinIO is simple and easy to operate, and users can build it by themselves according to their needs, so there is no need to rely on third-party cloud services to manage files, which can save file management costs. In addition, the self-built file management platform can more conveniently manage and maintain files in the file management platform, ensuring the security of file storage.

[0015] Furthermore, files are stored in MinIO's storage buckets. When users manage MinIO's storage buckets through the file management platform, regardless of whether the storage bucket's display type information on the file management platform is public or private, it must be approved by the administrator before the underlying MinIO can be managed based on the administrator's permissions, thereby improving the security of files in MinIO. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 A flowchart of an embodiment of the file management method provided by the present invention; Figure 2 A schematic diagram of a second directory provided by the present invention; Figure 3 A schematic diagram of a first directory provided by the present invention; Figure 4 A schematic diagram of creating a storage bucket provided by the present invention; Figure 5 A schematic diagram of generating a permission token provided by the present invention; Figure 6 A schematic diagram of target information generation provided by the present invention; Figure 7A schematic diagram showing file access path information in a storage bucket provided by the present invention. DETAILED DESCRIPTION

[0017] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0018] In the description of the embodiments of the present invention, unless otherwise specified, "multiple" means two or more than two. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" may represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship.

[0019] The terms "first", "second", etc., involved in the embodiments of the present invention are used to distinguish similar objects, but are not used to describe a specific order or sequence, nor are they used to indicate or imply their relative importance or implicitly indicate the number of technical features indicated. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more.

[0020] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0021] Glossary: MinIO: An object storage service based on the Apache License v2.0 open source agreement. It is suitable for storing large-capacity unstructured data, such as pictures, videos, log files, backup data, and container / virtual machine images, etc. An object file can be of any size, ranging from a few KB to a maximum of 5T. In addition, MinIO is a very lightweight service that can be easily combined with other applications, including NodeJS, Redis or MySQL.

[0022] Bucket: In MinIO, a bucket is a container for storing objects (files). Buckets are similar to directories or folders in a file system, but they have specific properties and functions in object storage systems.

[0023] Reference Figure 1 , shows a flow chart of an embodiment of a file management method provided by the present invention, the method is applied to a file management platform built on MinIO, and the method comprises: S101, when a user performs a management operation on a storage bucket on MinIO through a file management platform, target information is generated; the target information includes at least one of the user's permission information, the display type information of the storage bucket on the file management platform, and the management operation information; wherein the display type information includes public or private.

[0024] The embodiment of the present invention can build a file management platform based on MinIO, and manage files in various fields such as highway multimedia files based on the file management platform.

[0025] The management operation includes at least one of an access operation to a first file in a first storage bucket in MinIO, a delete operation to the first file, a download operation to the first file, a setting operation of the access permission to the first file, an upload operation to upload a second file to the first storage bucket, a delete operation to delete the first storage bucket from MinIO, and a create operation to create a second storage bucket in MinIO.

[0026] The file management platform can display the types of buckets created in MinIO. The displayed types of buckets include public and private. When the file management platform displays a bucket type as public, it means that the bucket can be managed by any user logged in to the file management platform. When the file management platform displays a bucket type as private, it means that the bucket can only be managed by a specific user logged in to the file management platform.

[0027] When the bucket is a bucket that has been created in MinIO, the bucket's display type information includes: the bucket type displayed by the file management platform; when the bucket is a bucket to be created in MinIO, the bucket's display type information includes: the bucket type that will be displayed by the file management platform after the creation is completed.

[0028] The user's permission information may include the user name, the user's platform login password, the user's permission token, etc.

[0029] S102, obtaining the administrator's approval result on the target information.

[0030] Regardless of the type of storage bucket that the user wants to manage, the file management platform will generate target information and send the target information to the administrator.

[0031] After receiving the target information, the administrator can determine whether the user can perform the management operations recorded in the target information on the bucket based on the target information. If it is determined that the user can perform the management operations recorded in the target information, the administrator can send the approval result to the file management platform. The approval results include approval or failure.

[0032] S103, when the approval result is approved, MinIO performs storage bucket management operations based on the administrator's authority.

[0033] If the approval result is approved, the file management platform will use the administrator's permissions to manage the MinIO bucket. If the approval result is not approved, the file management platform will not manage the MinIO bucket.

[0034] The method of the present invention is applied to a file management platform, and the file management platform is built on MinIO. The process of building a file management platform based on MinIO is simple and easy to operate, and users can build it by themselves according to their needs, so there is no need to rely on third-party cloud services to manage files, which can save file management costs. In addition, the self-built file management platform can more conveniently manage and maintain files in the file management platform, ensuring the security of file storage.

[0035] Furthermore, files are stored in MinIO's storage buckets. When users manage MinIO's storage buckets through the file management platform, regardless of whether the storage bucket's display type information on the file management platform is public or private, it must be approved by the administrator before the underlying MinIO can be managed based on the administrator's permissions, thereby improving the security of files in MinIO.

[0036] In one embodiment, the file management platform displays a first directory of files in MinIO and a second directory of storage buckets in MinIO; the file management method further includes: after completing the management operation of the storage bucket, updating the first directory and / or the second directory displayed by the file management platform, so as to keep the files, storage buckets, first directory, and second directory displayed by the file management platform consistent with the files, storage buckets, directories of files, and directories of storage buckets in MinIO.

[0037] Reference Figure 2 , shows a schematic diagram of a second directory provided by the present invention. The file management platform can display the second directory of the storage bucket created in MinIO. Figure 2In the file management platform, the created buckets in MinIO include: "privatebucket", "osstest", "hlxevent", etc. At the same time, the file management platform can also display the storage path, display type, number of files in the bucket, bucket creator, bucket creation time and other information of these created buckets.

[0038] Reference Figure 3 , showing a first directory schematic diagram provided by the present invention. When the "osstest" icon is clicked, the file management platform will display the files in the "osstest" storage bucket. The files in the "osstest" storage bucket include Legend 01, K2678400, etc. At the same time, the file management platform can also display information such as the file size, file type, and storage path of these files.

[0039] Reference Figure 4 , showing a schematic diagram of creating a storage bucket provided by the present invention. Figure 2 In the file management platform, there is also a "Create Bucket" icon. When the user clicks the icon, they can enter Figure 4 The page displayed where the user can choose to create a bucket with a display type of public or a bucket with a display type of private.

[0040] In one embodiment, the method further includes: setting all storage buckets in MinIO as private buckets based on the administrator's permissions. That is, the file management platform will display the storage buckets in MinIO and the external display type of the storage buckets. The external display type may include private or public, but in fact, all storage buckets in MinIO will be set as private buckets. The type of storage bucket displayed on the file management platform is to inform the user of the operation permissions on the storage bucket, and the storage buckets in MinIO are all set as private buckets to ensure that the setting permissions of the storage buckets in MinIO belong only to the administrator. Regardless of the user's permissions, only with the approval of the administrator, based on the administrator's permissions, can the storage buckets in MinIO be managed and operated, thereby ensuring the security of the storage buckets in MinIO.

[0041] In one embodiment, the user's permissions include a first permission and a second permission; the first permission is lower than the second permission; when the user's permission information is the first permission, the management operation is a creation operation of creating a second storage bucket in MinIO, and the user sets the display type of the second storage bucket on the file management platform to private, the approval result is approval passed; when the user's permission information is the first permission, the management operation is a creation operation of creating a second storage bucket in MinIO, and the user sets the display type of the second storage bucket on the file management platform to public, the approval result is approval failed; when the user's permission information is the second permission, the management operation is a creation operation of creating a second storage bucket in MinIO, and the user sets the display type of the second storage bucket on the file management platform to private or public, the approval result is approval passed.

[0042] Specifically, users with ordinary permissions (first permissions) can only create buckets with a display type of private on the file management platform, while high-level (second permissions) users, such as administrators, can create buckets with a display type of public or private on the file management platform.

[0043] In addition, only the file creator and the administrator have the right to delete the file, and no one else has the right to delete the file created by others. Ordinary users can only see the contents of the buckets they created and the public buckets on the page of the file management platform. Ordinary users can upload files in the buckets they created. If ordinary users want to open the files in the buckets they created to the public, they can submit an application to the administrator for approval, or upload the file to the public bucket and wait for the administrator's approval before opening it to the public.

[0044] In one embodiment, the permission information includes a permission token; S101 may specifically include: when the display type of the first storage bucket on the file management platform is public, and the management operation is an access operation to the first file in the first storage bucket, generating target information; the target information includes the display type information of the storage bucket on the file management platform and the management operation information; when the display type of the first storage bucket on the file management platform is public, and the management operation is a deletion operation, a download operation, or an upload operation of uploading the second file to the first storage bucket, or when the display type of the first storage bucket on the file management platform is private, generating a permission token according to the user's user name and platform login password, and generating target information; the target information includes the permission token, the display type information of the storage bucket on the file management platform, and the management operation information.

[0045] Specifically, when the user only accesses the first file in the first storage bucket whose preview display type is public, the file management platform does not need to generate a permission token, and the target information does not need to include the permission token. However, when the user wants to perform other operations, such as downloading the first file in the first storage bucket whose display type is public or accessing the first file in the first storage bucket whose preview display type is private, a permission token needs to be generated, and the target information also needs to include the permission token.

[0046] Reference Figure 5 , shows a schematic diagram of generating an authorization token provided by the present invention. The file management platform can generate an authorization token "authToken" according to the user's username and platform login password.

[0047] Reference Figure 6 , shows a schematic diagram of generating target information provided by the present invention. The target information may include: an authority token "authToken", a name of a storage bucket, a storage path of the first file in the storage bucket, and the like.

[0048] In one embodiment, the file management method further includes: when a user skips the file management platform to access a file in MinIO, access is prohibited. That is, when a user accesses a file in MinIO without going through the file management platform, the approval process can be saved and access can be directly prohibited.

[0049] Reference Figure 7 , shows a schematic diagram of displaying file access path information in a storage bucket provided by the present invention. The file management platform can display the access path of the file, and the access path may include: the access path of the file MinIO, the access path of the file Http, etc. The user can access the file through the file access path provided by the file management platform, that is, the file must be accessed through the file management platform, and the file cannot be directly obtained by skipping the file management platform.

[0050] In one embodiment, the present invention further provides a file management platform, which is built on MinIO and is used to implement the steps in any one of the file management methods described above.

[0051] It should be noted that the implementation principle or implementation process of the above-mentioned file management platform can refer to the implementation example of the above-mentioned file management method, and will not be described in detail here.

[0052] In one embodiment, the present invention further provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the steps of any one of the above-mentioned file management methods are implemented.

[0053] In one embodiment, the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by the processor, the steps of any one of the above-mentioned file management methods are implemented.

[0054] Those skilled in the art will appreciate that all or part of the processes of the above-mentioned embodiments can be implemented by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium, wherein the computer-readable storage medium is a disk, an optical disk, a read-only storage memory, or a random access memory, etc.

[0055] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by any technician familiar with the technical field within the technical scope disclosed by the present invention should be covered within the protection scope of the present invention.

Claims

1. A file management method, characterized in that: Applicable to file management platforms built on MinIO, including: When a user performs a management operation on the MinIO bucket through the file management platform, target information is generated; the target information includes at least one of the user's permission information, the display type information of the bucket on the file management platform, and the management operation information; wherein the display type information includes public or private; Obtaining the administrator's approval result on the target information; When the approval result is approved, the MinIO is managed based on the administrator's authority.

2. The file management method according to claim 1, characterized in that: The method further comprises: Based on the administrator's authority, all storage buckets in the MinIO are set as private buckets.

3. The file management method according to claim 1, characterized in that: The management operation includes at least one of an access operation to a first file in a first storage bucket in the MinIO, a delete operation to the first file, a download operation to the first file, a setting operation of a review permission for the first file, an upload operation to upload a second file to the first storage bucket, a delete operation to delete the first storage bucket from the MinIO, and a create operation to create a second storage bucket in the MinIO.

4. The file management method according to claim 3, characterized in that: The user's permissions include a first permission and a second permission; the first permission is lower than the second permission; when the user's permission information is the first permission, the management operation is a creation operation of creating the second storage bucket in the MinIO, and the user sets the display type of the second storage bucket on the file management platform to private, the approval result is approval passed; when the user's permission information is the first permission, the management operation is a creation operation of creating the second storage bucket in the MinIO, and the user sets the display type of the second storage bucket on the file management platform to public, the approval result is approval failed; when the user's permission information is the second permission, the management operation is a creation operation of creating the second storage bucket in the MinIO, and the user sets the display type of the second storage bucket on the file management platform to private or public, the approval result is approval passed.

5. The file management method according to claim 3, characterized in that: The permission information includes a permission token; when the user performs a management operation on the MinIO bucket through the file management platform, the target information is generated, including: When the display type of the first storage bucket on the file management platform is public and the management operation is an access operation to the first file in the first storage bucket, generating target information; the target information includes display type information and management operation information of the first storage bucket on the file management platform; When the display type of the first storage bucket on the file management platform is public, and the management operation is a deletion operation on the first storage bucket, a deletion operation on the first file, a download operation on the first file, or an upload operation on uploading the second file to the storage bucket, or when the display type of the storage bucket on the file management platform is private, a permission token is generated according to the user's username and platform login password, and target information is generated according to the permission token; the target information includes the permission token, display type information of the storage bucket on the file management platform, and management operation information.

6. The file management method according to claim 1, characterized in that: The method further comprises: When the user skips the file management platform to access the file in the MinIO, the access is prohibited.

7. The file management method according to claim 2, characterized in that: The file management platform displays a first directory of files in the MinIO and a second directory of storage buckets in the MinIO, and the method further includes: After the management operation of the storage bucket is completed, the first directory and / or the second directory displayed by the file management platform are updated.

8. A file management platform, characterized in that: The file management platform is built on MinIO, and the file management platform is used to implement the steps in the file management method described in any one of claims 1 to 7 above.

9. An electronic device, characterized in that: comprising a memory and a processor, wherein: The memory is used to store programs; The processor is coupled to the memory and is used to execute the program stored in the memory to implement the steps of the file management method described in any one of claims 1 to 7 above.

10. A computer-readable storage medium, characterized in that: Used to store computer-readable programs, wherein the programs or instructions, when executed by a processor, can implement the steps of the file management method described in any one of claims 1 to 7.