Configuration management method and device, equipment, storage medium and computer program product

By establishing the relationship between delivery project data and users in the configuration management platform and generating Nacos configuration files, the problem of insufficient permission control and dimension management in the existing technology is solved, multi-layer dimension management and fine-grained permission control are realized, and the Refinement and security of configuration management.

CN119026096APending Publication Date: 2024-11-26CHINA MOBILE (SUZHOU) SOFTWARE TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410995150.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-24
Publication Date
2024-11-26

AI Technical Summary

Technical Problem

The existing configuration management platform has shortcomings in permission control and dimension management. The permission management is not granular, and it is difficult to meet complex dimensional relationships and hierarchical structures. It is unable to effectively support the management of multiple dimensions such as delivery models, products, and components.

Method used

By establishing the relationship between delivery project data, basic data and users, generating configuration files based on dynamic naming and configuration service Nacos, creating access and operation permissions for different users, supporting multi-layer dimension management and refining the granularity of permissions.

Benefits of technology

Multi-layer dimensional management and fine-grained permission control of configuration files are realized, and the problems of poor configuration dimension management and insufficient permission granularity in the existing technology are solved, and the refinement and security of configuration management are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119026096A_ABST
    Figure CN119026096A_ABST
Patent Text Reader

Abstract

The invention provides a configuration management method and device, equipment, a storage medium and a computer program product.The configuration management method comprises the steps that a first incidence relation among delivery project data, basic data and configuration content corresponding to a first user is established, recording a first corresponding relationship between the first association relationship and the user information of the first user; generating a configuration file based on Nacos according to the delivery project data, the basic data, the configuration content corresponding to the first user and the first association relationship; and according to a creation instruction corresponding to the first user and the first corresponding relationship, creating access permissions and operation permissions of other users except the first user to the configuration file. According to the scheme, configuration of multi-layer dimension management can be supported, and the access authority and the operation authority for the configuration file are configured for different users based on the granularity of the configuration file; the problems of poor configuration dimension management and poor configuration permission granularity of a configuration management scheme in the prior art are well solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a configuration management method, device, equipment, storage medium and computer program product. Background Art

[0002] With the development, a platform that can be used for configuration management has appeared in the existing technology, but the configuration management solution supported by the platform has the following defects:

[0003] 1. Lack of permission control: The permission control is weak and there is no fine-grained permission management capability, making it difficult to accurately implement access control for users of different roles and manage configuration operation permissions.

[0004] 2. Dimension management limitations: The dimension management function is relatively simple and cannot meet the complex dimension relationships and hierarchical structures. It cannot directly support the management of multiple dimensions such as delivery models, products, and components.

[0005] From the above, the existing configuration management solutions have problems such as poor configuration dimension management and poor granularity of configuration permissions. Summary of the invention

[0006] The purpose of the present invention is to provide a configuration management method, apparatus, device, storage medium and computer program product to solve the problems of poor configuration dimension management and poor configuration authority granularity in the configuration management scheme in the prior art.

[0007] In order to solve the above technical problems, an embodiment of the present invention provides a configuration management method, including:

[0008] Establishing a first association relationship between the delivery project data, basic data, and configuration content corresponding to the first user, and recording a first correspondence relationship between the first association relationship and the user information of the first user; the basic data includes: at least one of a configuration file name, a configuration file version, a configuration file type, a product identifier, a product version, a component identifier, and a component version;

[0009] Generate a configuration file based on the dynamic naming and configuration service Nacos according to the delivery project data, the basic data, the configuration content corresponding to the first user, and the first association relationship;

[0010] According to the creation instruction corresponding to the first user and the first corresponding relationship, access permissions and operation permissions for the configuration file are created for other users except the first user.

[0011] Optionally, generating a configuration file based on a dynamic naming and configuration service Nacos according to the delivered project data, the basic data, the configuration content corresponding to the first user, and the first association relationship includes:

[0012] Obtaining a combination parameter according to the delivered project data, the basic data, the configuration content corresponding to the first user, and the first association relationship;

[0013] Using Nacos, a configuration file is generated according to the combined parameters; the configuration file includes: at least one of namespace data, configuration grouping data, and a configuration set identifier.

[0014] Optionally, the using Nacos to generate a configuration file according to the combined parameters includes:

[0015] The Nacos open source interface is called to transmit the combination parameters to Nacos; and a configuration file is generated according to the combination parameters using Nacos.

[0016] Optionally, after creating access rights and operation rights for the configuration file for other users except the first user according to the creation instruction corresponding to the first user and the first corresponding relationship, the method further includes:

[0017] receiving a first request from the other user for the configuration file;

[0018] Determine whether to allow the processing function corresponding to the first request to be executed according to the access rights and operation rights corresponding to the other users, and obtain a determination result; the processing function includes: an access function and / or an operation function;

[0019] According to the determination result, a request response is made for the first request.

[0020] Optionally, before establishing the first association relationship among the delivery project data, the basic data, and the configuration content corresponding to the first user, the method further includes:

[0021] The basic data is obtained by delivering a configuration management database CMDB model.

[0022] The embodiment of the present invention further provides a configuration management device, including:

[0023] A first processing module is used to establish a first association relationship between the delivered project data, the basic data, and the configuration content corresponding to the first user, and record a first correspondence relationship between the first association relationship and the user information of the first user; the basic data includes: at least one of a configuration file name, a configuration file version, a configuration file type, a product identifier, a product version, a component identifier, and a component version;

[0024] A first generating module, configured to generate a configuration file based on a dynamic naming and configuration service Nacos according to the delivered project data, the basic data, the configuration content corresponding to the first user, and the first association relationship;

[0025] The first establishing module is used to create access rights and operation rights for the configuration file for other users except the first user according to the creation instruction corresponding to the first user and the first corresponding relationship.

[0026] Optionally, generating a configuration file based on a dynamic naming and configuration service Nacos according to the delivered project data, the basic data, the configuration content corresponding to the first user, and the first association relationship includes:

[0027] Obtaining a combination parameter according to the delivered project data, the basic data, the configuration content corresponding to the first user, and the first association relationship;

[0028] Using Nacos, a configuration file is generated according to the combined parameters; the configuration file includes: at least one of namespace data, configuration grouping data, and a configuration set identifier.

[0029] Optionally, the using Nacos to generate a configuration file according to the combined parameters includes:

[0030] The Nacos open source interface is called to transmit the combination parameters to Nacos; and a configuration file is generated according to the combination parameters using Nacos.

[0031] Optionally, also include:

[0032] A first receiving module, configured to receive a first request from another user for the configuration file after creating access rights and operation rights for the configuration file for another user except the first user according to the creation instruction corresponding to the first user and the first corresponding relationship;

[0033] A first determination module is used to determine whether to allow the execution of the processing function corresponding to the first request according to the access rights and operation rights corresponding to the other users, and obtain a determination result; the processing function includes: an access function and / or an operation function;

[0034] The second processing module is used to make a request response to the first request according to the determination result.

[0035] Optionally, also include:

[0036] The first acquisition module is used to acquire the basic data through the delivery configuration management database CMDB model before establishing a first association relationship among the delivery project data, the basic data and the configuration content corresponding to the first user.

[0037] An embodiment of the present invention further provides a configuration management device, including: a processor;

[0038] The processor is configured to establish a first association relationship between the delivery project data, the basic data, and the configuration content corresponding to the first user, and record a first correspondence relationship between the first association relationship and the user information of the first user; the basic data includes: at least one of a configuration file name, a configuration file version, a configuration file type, a product identifier, a product version, a component identifier, and a component version;

[0039] Generate a configuration file based on the dynamic naming and configuration service Nacos according to the delivery project data, the basic data, the configuration content corresponding to the first user, and the first association relationship;

[0040] According to the creation instruction corresponding to the first user and the first corresponding relationship, access permissions and operation permissions for the configuration file are created for other users except the first user.

[0041] Optionally, generating a configuration file based on a dynamic naming and configuration service Nacos according to the delivered project data, the basic data, the configuration content corresponding to the first user, and the first association relationship includes:

[0042] Obtaining a combination parameter according to the delivered project data, the basic data, the configuration content corresponding to the first user, and the first association relationship;

[0043] Using Nacos, a configuration file is generated according to the combined parameters; the configuration file includes: at least one of namespace data, configuration grouping data, and a configuration set identifier.

[0044] Optionally, the using Nacos to generate a configuration file according to the combined parameters includes:

[0045] The Nacos open source interface is called to transmit the combination parameters to Nacos; and a configuration file is generated according to the combination parameters using Nacos.

[0046] Optionally, the processor is further configured to:

[0047] After creating access rights and operation rights for the configuration file for other users except the first user according to the creation instruction corresponding to the first user and the first corresponding relationship, receiving a first request for the configuration file from the other user through a transceiver;

[0048] Determine whether to allow the processing function corresponding to the first request to be executed according to the access rights and operation rights corresponding to the other users, and obtain a determination result; the processing function includes: an access function and / or an operation function;

[0049] According to the determination result, a request response is made for the first request.

[0050] Optionally, the processor is further configured to:

[0051] Before establishing a first association relationship among the delivery project data, the basic data, and the configuration content corresponding to the first user, the basic data is acquired through a delivery configuration management database CMDB model.

[0052] An embodiment of the present invention further provides a configuration management device, comprising a memory, a processor, and a program stored in the memory and executable on the processor; the processor implements the above configuration management method when executing the program.

[0053] The embodiment of the present invention further provides a readable storage medium on which a program is stored. When the program is executed by a processor, the steps in the above configuration management method are implemented.

[0054] An embodiment of the present invention further provides a computer program product, including computer instructions, which implement the steps of the above configuration management method when executed by a processor.

[0055] The beneficial effects of the above technical solution of the present invention are as follows:

[0056] In the above scheme, the configuration management method establishes a first association relationship between the delivery project data, basic data and the configuration content corresponding to the first user, and records the first correspondence relationship between the first association relationship and the user information of the first user; the basic data includes: at least one of the configuration file name, configuration file version, configuration file type, product identification, product version, component identification and component version; according to the delivery project data, basic data, the configuration content corresponding to the first user and the first association relationship, a configuration file based on the dynamic naming and configuration service Nacos is generated; according to the creation instruction corresponding to the first user and the first correspondence relationship, access rights and operation rights for the configuration file for other users other than the first user are created; it can support the implementation of multi-dimensional configuration management, and configure access rights and operation rights for configuration files for different users based on the configuration file granularity, and refine the configuration permission granularity; it is a good solution to the problems of poor configuration dimension management and poor configuration permission granularity in the configuration management scheme in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] Figure 1 A schematic diagram of a configuration management method flow chart of an embodiment of the present invention;

[0058] Figure 2 A schematic diagram of the configuration management platform architecture of an embodiment of the present invention;

[0059] Figure 3 This is a schematic diagram of information binding according to an embodiment of the present invention;

[0060] Figure 4 It is a schematic diagram of the configuration center, delivery CMDB (configuration management database) model and project management association of an embodiment of the present invention;

[0061] Figure 5 A schematic diagram of the platform operation flow of an embodiment of the present invention;

[0062] Figure 6 A schematic diagram of the structure of a configuration management device according to an embodiment of the present invention;

[0063] Figure 7 It is a schematic diagram of the structure of a configuration management device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0064] In order to make the technical problems, technical solutions and advantages to be solved by the present invention more clear, a detailed description will be given below with reference to the accompanying drawings and specific embodiments.

[0065] The following first introduces the relevant contents of this plan.

[0066] Nacos is a popular configuration center platform, a platform that makes it easier to build dynamic service discovery, configuration management, and service management for cloud-native applications. The following are some of the features of the Nacos configuration center:

[0067] (1) Support multiple languages ​​(including Java, Python, Go, Node.js, etc.).

[0068] (2) Provides a visual management interface.

[0069] (3) It has high availability and scalability, and supports cluster deployment and automatic fault-tolerant recovery.

[0070] (4) Support configuration permission management and access control.

[0071] However, Nacos currently has weak dimensional management and only supports three levels of classification (corresponding to scenarios, organizations, and configurations) of namespace, group, and data-id (configuration set ID). Configuration management for delivery scenarios cannot support classification management above three levels.

[0072] In terms of permissions, Nacos permissions include role names, resources, and actions. Role names define different roles, such as administrators, developers, and testers, and each role represents a user group with certain permissions. Resources are objects with restricted access, which are generally namespaces and cannot be refined to the level of specific configuration files. That is, the configurations under the namespace can be accessed by relevant roles, but cannot be re-authorized based on the configuration files. Actions represent operations performed on resources, such as reading, writing, and deleting.

[0073] In addition, the delivery permission model is an access control model that performs access control based on directly granting user permissions. Each user is assigned specific permissions (such as read, write, delete, etc.) and can directly access authorized resources.

[0074] The delivery CMDB (configuration management database) model can be understood as a configuration management database, which is an information asset framework used to organize and manage delivery projects. It records various configuration items in the organization, including hardware, software, network equipment, servers, virtual machines, applications, services, etc. The data involved includes products, product versions, components and component versions.

[0075] The project management model is a management framework for recording and managing delivered projects, covering all kinds of relevant data of delivered projects, such as project number, project name, project amount, project time, personnel situation and schedule.

[0076] Based on the above, the present invention provides a configuration management method to solve the problems of poor configuration dimension management and poor configuration authority granularity in the configuration management solution in the existing technology. Figure 1 As shown, including:

[0077] Step 11: Establish a first association relationship between the delivery project data, basic data and the configuration content corresponding to the first user, and record a first correspondence between the first association relationship and the user information of the first user; the basic data includes: configuration file name, configuration file version, configuration file type, product identification, product version, component identification and at least one of the component version.

[0078] In this way, the association relationship between data and the corresponding relationship between data and users can be accurately constructed, the management dimension can be expanded, and refined configuration management can be supported. The basic data can be the delivery configuration management database CMDB data, but it is not limited thereto.

[0079] Step 12: Generate a configuration file based on the dynamic naming and configuration service Nacos according to the delivery project data, the basic data, the configuration content corresponding to the first user and the first association relationship.

[0080] This allows accurate generation of configuration files corresponding to more management dimensions than existing solutions.

[0081] Step 13: according to the creation instruction corresponding to the first user and the first corresponding relationship, create access rights and operation rights for the configuration file for other users except the first user.

[0082] Wherein, step 13 can realize configuration of operation permissions for different users based on the configuration file granularity; wherein the operation permissions may include viewing, creating, editing and deleting permissions, etc., and the user who creates the configuration file (i.e., the first user) may have all the operation permissions of the configuration file, but is not limited to this;

[0083] And / or, after step 13, the present solution may further include: recording the identity information of the creator (ie, the first user), such as the user name user_name, etc., which is not limited here.

[0084] The configuration management method provided in an embodiment of the present invention establishes a first association relationship between delivery project data, basic data and configuration content corresponding to a first user, and records a first correspondence relationship between the first association relationship and the user information of the first user; the basic data includes: at least one of a configuration file name, a configuration file version, a configuration file type, a product identifier, a product version, a component identifier and a component version; a configuration file based on the dynamic naming and configuration service Nacos is generated according to the delivery project data, the basic data, the configuration content corresponding to the first user and the first association relationship; access rights and operation rights for the configuration file are created for other users other than the first user according to the creation indication corresponding to the first user and the first correspondence relationship; it can support the implementation of multi-dimensional configuration management, and configure access rights and operation rights for configuration files for different users based on the configuration file granularity, and refine the configuration permission granularity; it is a good solution to the problems of poor configuration dimension management and poor configuration permission granularity in the configuration management solution in the prior art.

[0085] Among them, generating a configuration file based on the dynamic naming and configuration service Nacos according to the delivered project data, the basic data, the configuration content corresponding to the first user and the first association relationship includes: obtaining a combination parameter according to the delivered project data, the basic data, the configuration content corresponding to the first user and the first association relationship; using Nacos to generate a configuration file according to the combination parameter; the configuration file includes: at least one of: namespace data, configuration grouping data and a configuration set identifier.

[0086] In this way, you can accurately obtain the configuration file based on Nacos.

[0087] In the embodiment of the present invention, the using Nacos to generate the configuration file according to the combination parameters includes: calling a Nacos open source interface to transmit the combination parameters to Nacos; and using Nacos to generate the configuration file according to the combination parameters.

[0088] In this way, Nacos can be used to accurately generate the configuration file.

[0089] Furthermore, after creating access rights and operation rights for the configuration file for users other than the first user according to the creation instruction corresponding to the first user and the first corresponding relationship, the method further includes: receiving a first request for the configuration file from the other user; determining whether to allow execution of a processing function corresponding to the first request according to the access rights and operation rights corresponding to the other user, and obtaining a determination result; the processing function includes: an access function and / or an operation function; and making a request response to the first request according to the determination result.

[0090] This allows accurate control of user permissions.

[0091] In the embodiment of the present invention, before establishing the first association relationship among the delivered project data, the basic data and the configuration content corresponding to the first user, it also includes: acquiring the basic data through a delivery configuration management database CMDB model.

[0092] In this way, the basic data can be accurately obtained.

[0093] The configuration management method provided by the embodiment of the present invention is described below by way of example.

[0094] In view of the above technical problems, an embodiment of the present invention provides a configuration management method, which can be specifically implemented as a solution design of a lightweight delivery product configuration management platform based on Nacos (dynamic naming and configuration service); wherein, based on business needs, Nacos is used as a configuration center in the configuration management platform to perform multi-dimensional configuration management and fine-grained permission control on the delivered products. Specifically, this solution includes the following contents:

[0095] 1) Data association: After the delivery project data and basic data are entered into the configuration management platform, an association relationship between the delivery project data and the basic data is established, wherein the basic data includes CMDB data of products and components, etc. (corresponding to the above-mentioned acquisition of the basic data through the delivery configuration management database CMDB model).

[0096] 2) Configuration creation: Create configuration information (corresponding to the configuration content corresponding to the first user, such as a specific version, etc.) based on configuration requirements, data sources (i.e., the above-mentioned "delivery project data and basic data") and the association relationship established in 1) above, and record the configuration information in association with the user information of the creating user, thereby determining the association between the data source, configuration information and user information (corresponding to the above-mentioned establishment of a first association relationship between the delivery project data, basic data and the configuration content corresponding to the first user, and recording the first correspondence between the first association relationship and the user information of the first user); call the configuration interface of Nacos in the configuration management platform (i.e., Nacos open source interface), process the configuration information, etc. and then send it to Nacos through the interface, so that Nacos generates a configuration file based on the configuration information; corresponding to the above-mentioned generation of a configuration file based on the dynamic naming and configuration service Nacos according to the delivery project data, basic data, the configuration content corresponding to the first user and the first association relationship.

[0097] 3) Operation permission configuration: according to business needs, the operation permissions of the corresponding configuration files are configured for non-creating users by creating users and configuring the management platform (corresponding to the above-mentioned creation instructions corresponding to the first user and the first corresponding relationship, creating access rights and operation permissions for the configuration files for users other than the first user), wherein the operation permissions may include viewing, creating, editing and deleting permissions, etc., and the user who creates the configuration file may have all the operation permissions of the configuration file.

[0098] The following is a specific example to illustrate the implementation architecture of this solution.

[0099] 1. Overview of the overall architecture;

[0100] This solution provides a solution for delivering product configuration management platform based on Nacos. The solution is designed in three layers, such as Figure 2 As shown (overall architecture), where:

[0101] The business layer, including the logic design layer, is the core of the configuration management platform and can be used to solve the problem of weak dimensional management of Nacos in delivery scenarios. Specifically, this solution is based on business needs and uses Nacos open source interfaces in the configuration management platform to implement configuration management, including the following main contents:

[0102] Business layer design: Based on the project management and delivery CMDB model as the data foundation, determine the hierarchical structure, attributes (such as name, version, etc.) and relationships (such as Figure 3 The configuration management platform uses the basic data in the project management module (corresponding to the delivery project data, such as the information of the province to which the project belongs, etc.) and the delivery CMDB module as data sources (including at least one of the configuration file name, configuration file version, configuration file type, product ID, product version, component ID and component version).

[0103] The logical design layer is the core logic and process of the configuration management platform, which can support the creation, modification, deletion, query and version control of configuration items, as well as the setting of dependencies and associations between configuration items and Nacos (such as setting Figure 3 Specifically, existing products (such as software products), product versions, components, and component versions can be obtained from the delivered CMDB model and bound to configuration file information (such as configuration file name, configuration file version, configuration file type, etc.); then, based on regular combinations, three-dimensional data of Nacos (such as namespace, group, data-id) can be generated, such as Figure 3As shown (corresponding to the above-mentioned generation of a configuration file based on the dynamic naming and configuration service Nacos according to the delivered project data, basic data, configuration content corresponding to the first user and the first association relationship). Then, the relevant content (such as the above-mentioned three-dimensional data) is recorded in the database (corresponding to Figure 2 In the data layer in the CMDB, the configuration is bound to the CMDB.

[0104] In addition, this solution also involves Nacos integration: using the open interface provided by Nacos (i.e., Nacos open source interface) to introduce it (Nacos) into the configuration center of the configuration management platform. For example, to publish a configuration file, if the configuration has been bound to the CMDB, it is necessary to call the Nacos interface for creating a namespace and a new configuration file. Among them, the above interface can be called to send relevant data to Nacos for subsequent operations; specifically, it may include the following:

[0105] (1) The configuration management platform generates a parameter (A) by combining the product and the product version, calls the Nacos open source interface, and passes the parameter (A) to Nacos. Nacos generates a namespace resource through a function for calling the configuration management platform; wherein the generated parameter (A) is based on the Nacos parameter transmission specification, combined with the product and the product version, and passed to Nacos through an interface call. Nacos generates a corresponding namespace resource (corresponding to the above-mentioned namespace data) based on the parameter, thereby completing the association between Nacos and the product and product version information; corresponding to the above-mentioned call to the Nacos open source interface, the combined parameter is transmitted to Nacos; and using Nacos, a configuration file is generated according to the combined parameter.

[0106] (2) Combine the basic data (related to configuration files, products, and components) (corresponding to the above combination rules) to generate json parameters (B), call the Nacos open source interface, issue a configuration interface request (to Nacos) to generate a Nacos configuration file, and Nacos saves its data in the database.

[0107] The parts (1) and (2) may correspond to the above-mentioned obtaining the combined parameters according to the delivered project data, the basic data, the configuration content corresponding to the first user and the first association relationship; using Nacos, generating a configuration file according to the combined parameters; the configuration file includes: at least one of namespace data, configuration grouping data and a configuration set identifier.

[0108] (3) After the release request is completed (specifically, the completion can be confirmed by Nacos returning OK), the configuration management platform confirms that the Nacos underlying layer has saved the data, and the database of the configuration management platform records the release status and (related configuration) information; specifically, it may include: Nacos underlying layer returns execution status information after the data is saved, and the configuration management platform records the execution status information and some related configuration information, but is not limited to this.

[0109] 2. Delivery permission model (corresponding to Figure 2 );

[0110] Currently, Nacos performs resource access control based on namespaces, which has a large granularity and cannot perform access control based on the configuration itself. For example, when a user has the permission of a namespace (Group C), the user has the permission to operate all configuration items (D, E, F) under the namespace (Group C), but the actual configuration items (E, F) may not belong to the user's permission scope. In this regard, this solution, compared with Nacos permission management, provides fine-grained permission control to be more suitable for delivery scenario management.

[0111] Among them, the permission control of the configuration management platform can be based on the delivery access control model (i.e., the delivery permission model) and refine the resource model to achieve: based on the user itself, the operation permissions of resources are differentiated according to specific users. Specifically, it may include the following:

[0112] After the user (G) successfully creates the configuration file (H) on the configuration management platform, the configuration management platform passes the configuration file number (only-id) and user name (user_name) to the permission center (i.e., the module used for permission control), which is the recording permission carrier; the user (G) has the permission to edit and delete the configuration file (H), and other users only have the permission to view it; that is, the creator (G) of the default configuration on the configuration management platform is the owner of the configuration file (H). When the configuration file requires other users to have the permission to operate and edit, the configuration creator (G) can achieve this through authorization. The specific process can be as follows:

[0113] The configuration owner (G) initiates authorization on the configuration management platform, specifying a specific user (I) with the operation and editing authority of the configuration file (H); the configuration management platform can send the user's (I) user_name and configuration file number (such as the ID of the configuration file H) to the authority center for record;

[0114] The permission center can record and save the configuration data associated with the user; when verifying the permission, the platform verifies whether the permission center contains the information of the user (I) to confirm whether the user has the operation and editing permission; it can correspond to the above-mentioned receiving the first request of the other user for the configuration file; according to the access permission and operation permission corresponding to the other user, determining whether the processing function corresponding to the first request is allowed to be executed, and obtaining a determination result; the processing function includes: access function and / or operation function; according to the determination result, making a request response to the first request.

[0115] 3. Deliver CMDB model and project management model;

[0116] The configuration management platform in this solution is based on the delivery CMDB model and project management model, and data is bound based on the imported basic data. Starting from the delivery project, the relevant information of products and components is entered into the CMDB, and the CMDB is associated with the project; the configuration data of the configuration center is associated with the CMDB and project management, thus forming a triangular relationship, such as Figure 4 shown.

[0117] 4. Configuration management platform process;

[0118] The operation process of the configuration management platform can be implemented based on the user dimensions of the user, implementation manager (corresponding to the first user mentioned above) and delivery manager, such as Figure 5 As shown, it mainly includes four steps: data entry, data association, configuration creation and configuration operation;

[0119] Here are detailed instructions for each step:

[0120] (1) Data entry:

[0121] ① The delivery manager can enter the delivery project data through the project management module of the configuration management platform. This data may include project information, etc. Among them, you can choose to enter it manually on the platform or import it by importing external data files.

[0122] ② The implementation manager enters the CMDB-related data of products and components into the platform as basic data for use in subsequent modules.

[0123] (2) Data association:

[0124] After the data entry is completed, the implementation manager can associate the data on the configuration management platform (which can be implemented at the business level). This means that different data elements can be linked together to establish relationships between data. For example, products, versions, and components can be associated with corresponding project parameters; if the configuration information has been created, the automatic association between the configuration file and the CMDB can be completed (corresponding to the above-mentioned establishment of the first association relationship between the delivery project data, basic data, and the configuration content corresponding to the first user). When the external module calls the configuration management platform to obtain a specific configuration file, it can obtain the specific and unique configuration file content through the CMDB parameters or project information.

[0125] (3) Configuration creation:

[0126] ① Determine the configuration information and perform association processing on the configuration information. Specifically including:

[0127] The implementation manager creates configuration information, which can be selected and added through the drop-down box. The data source is CMDB real-time product information, etc. The configuration information may include configuration file name, configuration file version, associated products, product versions and components, etc., that is, the configuration file information is associated with CMDB. After the configuration information is created, the authority center can record the user_name of the creator (i.e., the implementation manager).

[0128] ② Based on the associated configuration information and Nacos interaction, create a configuration file (corresponding to the above-mentioned generation of a configuration file based on the dynamic naming and configuration service Nacos according to the delivered project data, basic data, the configuration content corresponding to the first user and the first association relationship); specifically, it may include:

[0129] After the association is determined, the implementation manager creates the required configuration file content. This step is the interaction process with Nacos. The configuration information is passed to the Nacos related interface (i.e. Nacos open source interface) in the form of parameters, (calling Nacos) automatically generates Nacos's three-dimensional data (including namespace, group, data-id; corresponding to the above namespace data, configuration group data and configuration set identifier), that is, the logical design layer solution in the architecture layer (i.e. business layer). Specifically, it can be understood as: creating configurations through the combination of Nacos' related open source interfaces, and the configuration formats can support text, json, xml, yaml, html and properties, etc.

[0130] (4) Configuration operation (i.e. permission setting):

[0131] After the configuration is created, the user, implementation manager, and delivery manager have default configuration operations (i.e., default permissions) on the configuration platform. Operation items may include viewing, creating, editing, and deleting configuration items. As the creator, the implementation manager has the permissions to view, create, edit, and delete; the user and delivery manager only have the permission to view. However, according to business needs, the implementation manager can grant specific users the permission to edit, so that the relevant users can temporarily exercise management permissions and edit and update configuration content.

[0132] 5. Configure the visual management page of the management platform (such as Figure 2 The display layer in the code; the Ajax interaction and RESTful request related content involved can adopt the current solution);

[0133] The Nacos native page provides basic configuration query functions, but the query function of Nacos only queries all configurations under the current namespace, and cannot prepare queries for configurations under the global namespace. For example, the user wants to query the configuration file (H), but does not know which namespace H is under. The user can only keep switching namespaces to query by group and data-id. In this regard, compared with the native page of Nacos, the configuration management platform in this solution provides multi-level queries (supported by setting multiple dimensions) on the visual management page, such as supporting: configuration file name, configuration file version, file type, product, component and its version level query; in addition, it can also support single or multiple selection filtering, which is more suitable for massive configuration queries. For example, if a user wants to query all configurations under a certain version of product M, it can be achieved by filtering products and product versions.

[0134] Hereby explain, Figure 2 The data layer in the above example can be understood as a database. For details, please refer to the existing solutions, which will not be described in detail here. BC-MYSQL represents a database in the BC paradigm (also known as the Bayesian statistical paradigm).

[0135] From the above, the solutions for product configuration management and project service management through the Nacos platform in the prior art have at least the following two problems: First, the dimension of managing delivered products on the Nacos platform is relatively simple, and it is difficult to support refined configuration management for delivered products; Second, the Nacos platform cannot achieve fine-grained management of access control permissions and product configuration operation permissions for users of different roles. In this regard, the embodiments of the present invention provide the above solutions, which can support the implementation of:

[0136] 1. Powerful dimensional (multi-dimensional) management: Compared with the simple dimensional management function in the prior art, this solution is based on the delivery CMDB model and the introduction of Nacos, a configuration management platform, to bind products (identifiers, such as names, etc.), product versions, components (identifiers, such as names, etc.) and component versions with configuration file information, so that the configuration management platform can support multi-dimensional management requirements such as delivery projects, products, product versions, components, component versions, configurations (identifiers, such as names (such as configuration file names), etc.) and configuration versions (such as configuration file versions), thus realizing multi-dimensional management of delivery product configurations. Specifically: The delivery CMDB model records and manages the dependencies and associations between delivery projects and delivery products. Based on this model, this solution designs and implements a more powerful dimension management system that can support the management of multiple dimensions such as delivery projects, products, product versions, components, component versions, configurations and configuration versions, while meeting the associations and hierarchical structures between dimensions, and is flexible and extensible.

[0137] 2. Fine-grained permission control: This solution manages the access control permissions and operation permissions at the configuration file level for different users and roles, and improves the security and reliability of the configuration system by fine-grained permission control at the configuration file level. It can also be understood that this solution strengthens permission control: based on delivery scenario access control, a fine-grained permission management mechanism is designed and implemented, allowing for fine-grained management of access control and configuration operation permissions for different users and roles, improving the security and reliability of the system.

[0138] In addition, this solution also has the following commercial value:

[0139] 1. Improve product competitiveness: By introducing powerful dimension management, version control, and custom attribute support, this solution can improve the manageability and flexibility of the product, meet the various needs of various scenarios, and thus enhance the competitiveness of the product.

[0140] 2. Improve work efficiency: This solution is designed with a friendly user interface and convenient operation process. Based on the existing product model, it reduces the time and energy consumption of users in dimension management and configuration operations. This will greatly improve the work efficiency of the team and improve the overall deployment efficiency.

[0141] 3. Support complex business needs: Compared with the limitations of existing technologies, the dimension management method of this solution has higher scalability and flexibility, and can cope with different scenarios and complex business relationships. This is of great significance for enterprises that need to manage multiple products, components and configurations.

[0142] 4. Enhanced data security: This solution introduces fine-grained permission control functions, which can achieve precise management of access control and configuration operation permissions for users of different roles. This helps protect sensitive information and data and enhances system security and compliance.

[0143] In addition, the configuration management platform in this solution can be classified as a delivery service platform and applied to mobile cloud delivery projects, mainly involving delivery product configuration management, delivery product configuration authority control, etc. This solution can improve the product automation delivery capability and be used in product project delivery scenarios to apply to the unified management of configuration files in the automation deployment of each scenario. At the same time, it can provide configuration management capabilities based on the business needs of each module in the delivery service platform for configuration files.

[0144] The embodiment of the present invention also provides a configuration management device, such as Figure 6 As shown, including:

[0145] A first processing module 61 is used to establish a first association relationship between the delivered project data, the basic data and the configuration content corresponding to the first user, and record a first correspondence relationship between the first association relationship and the user information of the first user; the basic data includes: at least one of a configuration file name, a configuration file version, a configuration file type, a product identifier, a product version, a component identifier and a component version;

[0146] A first generating module 62 is used to generate a configuration file based on the dynamic naming and configuration service Nacos according to the delivery project data, the basic data, the configuration content corresponding to the first user and the first association relationship;

[0147] The first establishing module 63 is used to create access rights and operation rights for the configuration file for other users except the first user according to the creation instruction corresponding to the first user and the first corresponding relationship.

[0148] The configuration management device provided in an embodiment of the present invention establishes a first association relationship between delivery project data, basic data and configuration content corresponding to a first user, and records a first correspondence relationship between the first association relationship and the user information of the first user; the basic data includes: at least one of a configuration file name, a configuration file version, a configuration file type, a product identifier, a product version, a component identifier and a component version; a configuration file based on the dynamic naming and configuration service Nacos is generated according to the delivery project data, the basic data, the configuration content corresponding to the first user and the first association relationship; access rights and operation rights for the configuration file are created for other users other than the first user according to the creation indication corresponding to the first user and the first correspondence; it can support the implementation of multi-dimensional configuration management, and configure access rights and operation rights for configuration files for different users based on the configuration file granularity, and refine the configuration permission granularity; it is a good solution to the problems of poor configuration dimension management and poor configuration permission granularity in the configuration management solution in the prior art.

[0149] Among them, generating a configuration file based on the dynamic naming and configuration service Nacos according to the delivered project data, the basic data, the configuration content corresponding to the first user and the first association relationship includes: obtaining a combination parameter according to the delivered project data, the basic data, the configuration content corresponding to the first user and the first association relationship; using Nacos to generate a configuration file according to the combination parameter; the configuration file includes: at least one of: namespace data, configuration grouping data and a configuration set identifier.

[0150] In the embodiment of the present invention, the using Nacos to generate the configuration file according to the combination parameters includes: calling a Nacos open source interface to transmit the combination parameters to Nacos; and using Nacos to generate the configuration file according to the combination parameters.

[0151] Furthermore, the configuration management device also includes: a first receiving module, used to receive a first request from other users for the configuration file after creating access rights and operation rights for the configuration file for other users except the first user according to the creation indication corresponding to the first user and the first corresponding relationship; a first determining module, used to determine whether to allow the execution of the processing function corresponding to the first request according to the access rights and operation rights corresponding to the other users, and obtain a determination result; the processing function includes: access function and / or operation function; a second processing module, used to make a request response to the first request according to the determination result.

[0152] In an embodiment of the present invention, the configuration management device further includes: a first acquisition module, which is used to acquire the basic data through a delivery configuration management database CMDB model before establishing a first association relationship between the delivery project data, the basic data and the configuration content corresponding to the first user.

[0153] Among them, the implementation embodiments of the above-mentioned configuration management method are all applicable to the embodiments of the configuration management device and can achieve the same technical effects.

[0154] The embodiment of the present invention also provides a configuration management device, such as Figure 7 As shown, it includes: a processor 71;

[0155] The processor 71 is used to establish a first association relationship between the delivery project data, the basic data and the configuration content corresponding to the first user, and record a first correspondence relationship between the first association relationship and the user information of the first user; the basic data includes: at least one of a configuration file name, a configuration file version, a configuration file type, a product identifier, a product version, a component identifier and a component version;

[0156] Generate a configuration file based on the dynamic naming and configuration service Nacos according to the delivery project data, the basic data, the configuration content corresponding to the first user, and the first association relationship;

[0157] According to the creation instruction corresponding to the first user and the first corresponding relationship, access permissions and operation permissions for the configuration file are created for other users except the first user.

[0158] In the embodiment of the present invention, the configuration management device may further include: a transceiver 72 capable of communicating with the processor 71, but the present invention is not limited thereto.

[0159] The configuration management device provided in an embodiment of the present invention establishes a first association relationship between delivery project data, basic data and configuration content corresponding to a first user, and records a first correspondence relationship between the first association relationship and the user information of the first user; the basic data includes: at least one of a configuration file name, a configuration file version, a configuration file type, a product identifier, a product version, a component identifier and a component version; a configuration file based on the dynamic naming and configuration service Nacos is generated according to the delivery project data, basic data, the configuration content corresponding to the first user and the first association relationship; access rights and operation rights for the configuration file are created for other users other than the first user according to the creation indication corresponding to the first user and the first correspondence; it can support the implementation of multi-dimensional configuration management, and configure access rights and operation rights for configuration files for different users based on the configuration file granularity, and refine the configuration permission granularity; it is a good solution to the problems of poor configuration dimension management and poor configuration permission granularity in the configuration management solution in the prior art.

[0160] Among them, generating a configuration file based on the dynamic naming and configuration service Nacos according to the delivered project data, the basic data, the configuration content corresponding to the first user and the first association relationship includes: obtaining a combination parameter according to the delivered project data, the basic data, the configuration content corresponding to the first user and the first association relationship; using Nacos to generate a configuration file according to the combination parameter; the configuration file includes: at least one of: namespace data, configuration grouping data and a configuration set identifier.

[0161] In the embodiment of the present invention, the using Nacos to generate the configuration file according to the combination parameters includes: calling a Nacos open source interface to transmit the combination parameters to Nacos; and using Nacos to generate the configuration file according to the combination parameters.

[0162] Further, the processor is also used to: after creating access rights and operation rights for the configuration file for other users other than the first user according to the creation indication corresponding to the first user and the first corresponding relationship, receive a first request from the other user for the configuration file through a transceiver; determine whether to allow execution of a processing function corresponding to the first request according to the access rights and operation rights corresponding to the other user, and obtain a determination result; the processing function includes: an access function and / or an operation function; and according to the determination result, make a request response to the first request.

[0163] In an embodiment of the present invention, the processor is further used to: before establishing a first association relationship among the delivery project data, the basic data and the configuration content corresponding to the first user, obtain the basic data by delivering a configuration management database CMDB model.

[0164] Among them, the implementation embodiments of the above-mentioned configuration management method are all applicable to the embodiments of the configuration management device and can achieve the same technical effects.

[0165] An embodiment of the present invention further provides a configuration management device, comprising a memory, a processor, and a program stored in the memory and executable on the processor; the processor implements the above configuration management method when executing the program.

[0166] Among them, the implementation embodiments of the above-mentioned configuration management method are all applicable to the embodiments of the configuration management device and can achieve the same technical effects.

[0167] The embodiment of the present invention further provides a readable storage medium on which a program is stored. When the program is executed by a processor, the steps in the above configuration management method are implemented.

[0168] Among them, the implementation embodiments of the above-mentioned configuration management method are all applicable to the embodiments of the readable storage medium and can achieve the same technical effect.

[0169] An embodiment of the present invention also provides a computer program product, including computer instructions. When the computer instructions are executed by a processor, the various processes of the method embodiment of the above-mentioned configuration management method are implemented, and the same technical effect can be achieved. To avoid repetition, they are not repeated here.

[0170] It should be noted that many functional components described in this specification are referred to as modules in order to more particularly emphasize the independence of their implementation methods.

[0171] In the embodiment of the present invention, module can be implemented with software so that it can be executed by various types of processors. For example, an executable code module of an identification can include one or more physical or logical blocks of computer instructions, for example, it can be constructed as an object, process or function. Nevertheless, the executable code of the identified module does not need to be physically located together, but can include different instructions stored in different positions, and when these instructions are logically combined together, it constitutes a module and realizes the specified purpose of the module.

[0172] In fact, executable code module can be a single instruction or many instructions, and can even be distributed on a plurality of different code segments, distributed among different programs, and distributed across a plurality of memory devices. Similarly, operating data can be identified in the module, and can be implemented and organized in the data structure of any appropriate type according to any appropriate form. The operating data can be collected as a single data set, or can be distributed in different locations (including on different storage devices), and can only be present on a system or network as an electronic signal at least in part.

[0173] When a module can be implemented by software, considering the level of existing hardware technology, a person skilled in the art can build a corresponding hardware circuit to implement the corresponding function of the module that can be implemented by software without considering the cost. The hardware circuit includes a conventional very large scale integration (VLSI) circuit or gate array and existing semiconductors such as logic chips, transistors, or other discrete components. The module can also be implemented by a programmable hardware device, such as a field programmable gate array, a programmable array logic, a programmable logic device, etc.

[0174] The above is a preferred embodiment of the present invention. It should be pointed out that for ordinary personnel in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A configuration management method, It is characterized in that include: Establishing a first association relationship among the delivery project data, the basic data, and the configuration content corresponding to the first user, and recording a first correspondence relationship between the first association relationship and the user information of the first user; The basic data includes: at least one of a configuration file name, a configuration file version, a configuration file type, a product identifier, a product version, a component identifier, and a component version; Generate a configuration file based on the dynamic naming and configuration service Nacos according to the delivery project data, the basic data, the configuration content corresponding to the first user, and the first association relationship; According to the creation instruction corresponding to the first user and the first corresponding relationship, access permissions and operation permissions for the configuration file are created for other users except the first user.

2. The configuration management method according to claim 1, It is characterized in that The generating a configuration file based on the dynamic naming and configuration service Nacos according to the delivered project data, the basic data, the configuration content corresponding to the first user and the first association relationship includes: Obtaining a combination parameter according to the delivered project data, the basic data, the configuration content corresponding to the first user, and the first association relationship; Using Nacos, a configuration file is generated according to the combined parameters; the configuration file includes: at least one of namespace data, configuration grouping data, and a configuration set identifier.

3. The configuration management method according to claim 2, It is characterized in that The using Nacos to generate a configuration file according to the combined parameters includes: The Nacos open source interface is called to transmit the combination parameters to Nacos; and a configuration file is generated according to the combination parameters using Nacos.

4. The configuration management method according to claim 1, It is characterized in that After creating access rights and operation rights for the configuration file for other users except the first user according to the creation instruction corresponding to the first user and the first corresponding relationship, the method further includes: receiving a first request from the other user for the configuration file; Determine whether to allow the processing function corresponding to the first request to be executed according to the access rights and operation rights corresponding to the other users, and obtain a determination result; the processing function includes: an access function and / or an operation function; According to the determination result, a request response is made for the first request.

5. The configuration management method according to claim 1, It is characterized in that Before establishing a first association relationship among the delivery project data, the basic data, and the configuration content corresponding to the first user, the method further includes: The basic data is obtained by delivering a configuration management database CMDB model.

6. A configuration management device, It is characterized in that include: A first processing module, configured to establish a first association relationship between the delivery project data, the basic data, and the configuration content corresponding to the first user, and record a first correspondence relationship between the first association relationship and the user information of the first user; The basic data includes: at least one of a configuration file name, a configuration file version, a configuration file type, a product identifier, a product version, a component identifier, and a component version; A first generating module, configured to generate a configuration file based on a dynamic naming and configuration service Nacos according to the delivered project data, the basic data, the configuration content corresponding to the first user, and the first association relationship; The first establishing module is used to create access rights and operation rights for the configuration file for other users except the first user according to the creation instruction corresponding to the first user and the first corresponding relationship.

7. A configuration management device, It is characterized in that include: processor; The processor is configured to establish a first association relationship between the delivery project data, the basic data, and the configuration content corresponding to the first user, and record a first correspondence relationship between the first association relationship and the user information of the first user; The basic data includes: at least one of a configuration file name, a configuration file version, a configuration file type, a product identifier, a product version, a component identifier, and a component version; Generate a configuration file based on the dynamic naming and configuration service Nacos according to the delivery project data, the basic data, the configuration content corresponding to the first user, and the first association relationship; According to the creation instruction corresponding to the first user and the first corresponding relationship, access permissions and operation permissions for the configuration file are created for other users except the first user.

8. A configuration management device, comprising a memory, a processor, and a program stored in the memory and executable on the processor; It is characterized in that When the processor executes the program, the configuration management method according to any one of claims 1 to 5 is implemented.

9. A readable storage medium having a program stored thereon, It is characterized in that When the program is executed by a processor, the steps in the configuration management method according to any one of claims 1 to 5 are implemented.

10. A computer program product, It is characterized in that The method comprises computer instructions, which, when executed by a processor, implement the steps of the configuration management method according to any one of claims 1 to 5.