Software deployment management method and device, computer equipment and storage medium

By using hardware information to generate authorization credentials and initialize management services in the distributed deployment management of software toolkits, the problems of low efficiency and high cost in the existing technology are solved, and dynamic authorization and real-time authorization of multiple node devices are realized. , improving deployment management efficiency.

CN118862018AActive Publication Date: 2024-10-29TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 12 Cites 0 Cited by

Patent Information

Application Number
CN202310483987.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-04-28
Publication Date
2024-10-29
Estimated Expiration
2043-04-28

AI Technical Summary

Technical Problem

The existing technology is inefficient and has high delivery cost in the distributed deployment management of software tool kits. It is necessary to collect the hardware information of all devices to achieve deployment management.

Method used

By sending a management authorization request between the first device and the second device, generating authorization credentials based on hardware information, initializing the management service, and responding to the registration request of the node device for deployment management after successful initialization, dynamic authorization and real-time authorization are achieved.

Benefits of technology

It reduces the problems of low efficiency of hardware information collection and high delivery cost, improves the efficiency of deployment and management of software tool kits, and improves the efficiency of authorization of node devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118862018A_ABST
    Figure CN118862018A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a software deployment management method and device, computer equipment and a storage medium, and the method comprises the steps: sending a management authorization request to second equipment to request the second equipment to authorize first equipment to use a management service to manage the distributed deployment of a software toolkit; wherein the management authorization request is generated according to hardware information of the first equipment; authorization certificate information returned by the second equipment is received, and the authorization certificate information is generated after the second equipment verifies that the first equipment has the qualification of using the management service according to the management authorization request; a management service is initialized based on the authorization certificate information, and after the management service is initialized successfully, in response to a registration request sent by any node device which is about to use the software toolkit, the management service is called to perform deployment management of the software toolkit on the corresponding node device; the efficiency of deploying and managing the software toolkit can be improved, and the delivery cost can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a software deployment management method, apparatus, computer equipment, and storage medium. Background Art

[0002] Software authorization management refers to protective measures taken to protect the software from being used by devices that are not authorized by the software provider. Currently, software in the form of a software development kit (SDK) is usually integrated with multiple business services of a customer, and different business services can be deployed on different devices, so a software development kit needs to be deployed on multiple devices. Currently, in this scenario, the deployment management solution for the SDK often requires the software provider to collect the hardware information of all devices in advance in order to implement distributed deployment management of the SDK. It can be seen that this deployment management method is inefficient and has high delivery costs. Summary of the invention

[0003] The embodiments of the present application provide a software deployment management method, apparatus, computer equipment, and storage medium, which can improve the efficiency of deployment management for software toolkits and reduce delivery costs.

[0004] On the one hand, an embodiment of the present application provides a software deployment management method, the method being performed by a first device, the first device being a device having a built-in management service of a software toolkit and intending to use the management service to manage the distributed deployment of the software toolkit; wherein the device used by the software provider of the software toolkit is a second device; the method comprising:

[0005] Sending a management authorization request to the second device to request the second device to authorize the first device to use the management service to manage the distributed deployment of the software toolkit; wherein the management authorization request is generated according to the hardware information of the first device;

[0006] receiving authorization credential information returned by the second device, where the authorization credential information is generated after the second device verifies, according to the management authorization request, that the first device is qualified to use the management service;

[0007] The management service is initialized based on the authorization credential information, and after the management service is successfully initialized, in response to a registration request sent by any node device that intends to use the software toolkit, the management service is called to perform deployment management of the software toolkit on the corresponding node device.

[0008] On the one hand, an embodiment of the present application provides a software deployment management method, the method is performed by a second device, and the second device is a device used by a software provider of a software toolkit; the method includes:

[0009] receiving a management authorization request sent by a first device, wherein the first device is a device having a built-in management service of the software toolkit and intending to use the management service to manage the distributed deployment of the software toolkit; wherein the management authorization request is generated according to hardware information of the first device; and the management authorization request is used to request: the second device to authorize the first device to use the management service to manage the distributed deployment of the software toolkit;

[0010] Verifying the eligibility of the first device to use the management service according to the management authorization request; and generating authorization credential information after verifying that the first device is qualified to use the management service;

[0011] The authorization credential information is returned to the first device, so that the first device initializes the management service based on the authorization credential information, and after successfully initializing the management service, in response to a registration request sent by any node device that wants to use the software toolkit, calls the management service to perform deployment management of the software toolkit on the corresponding node device.

[0012] On the one hand, an embodiment of the present application provides a software deployment management device, the device running in a first device, the first device is a device having a management service of a software toolkit built in, and intends to use the management service to manage the distributed deployment of the software toolkit; wherein the device used by the software provider of the software toolkit is a second device; the device includes:

[0013] a sending unit, configured to send a management authorization request to the second device, so as to request the second device to authorize the first device to use the management service to manage the distributed deployment of the software toolkit; wherein the management authorization request is generated according to the hardware information of the first device;

[0014] a receiving unit, configured to receive authorization credential information returned by the second device, wherein the authorization credential information is generated after the second device verifies, according to the management authorization request, that the first device is qualified to use the management service;

[0015] A management unit is used to initialize the management service based on the authorization credential information, and after successfully initializing the management service, in response to a registration request sent by any node device that intends to use the software toolkit, call the management service to perform deployment management of the software toolkit on the corresponding node device.

[0016] On the one hand, an embodiment of the present application provides a software deployment management device, the device running in a second device, the second device is a device used by a software provider of a software toolkit; the device includes:

[0017] A receiving unit, configured to receive a management authorization request sent by a first device, wherein the first device is a device having a built-in management service of the software toolkit and intending to use the management service to manage the distributed deployment of the software toolkit; wherein the management authorization request is generated according to the hardware information of the first device; and the management authorization request is used to request: the second device to authorize the first device to use the management service to manage the distributed deployment of the software toolkit;

[0018] a generating unit, configured to verify the eligibility of the first device to use the management service according to the management authorization request; and to generate authorization credential information after verifying that the first device is qualified to use the management service;

[0019] A return unit is used to return the authorization credential information to the first device, so that the first device initializes the management service based on the authorization credential information, and after successfully initializing the management service, in response to a registration request sent by any node device that wants to use the software toolkit, calls the management service to perform deployment management of the software toolkit on the corresponding node device.

[0020] On the one hand, an embodiment of the present application provides a computer device, the computer device includes an input interface, an output interface, and the computer device further includes:

[0021] a processor adapted to implement one or more instructions; and,

[0022] A computer storage medium storing one or more instructions, wherein the one or more instructions are suitable for being loaded by the processor and executing the following steps on the first device side:

[0023] Sending a management authorization request to the second device to request the second device to authorize the first device to use the management service to manage the distributed deployment of the software toolkit; wherein the management authorization request is generated according to the hardware information of the first device;

[0024] receiving authorization credential information returned by the second device, where the authorization credential information is generated after the second device verifies, according to the management authorization request, that the first device is qualified to use the management service;

[0025] The management service is initialized based on the authorization credential information, and after the management service is successfully initialized, in response to a registration request sent by any node device that intends to use the software toolkit, the management service is called to perform deployment management of the software toolkit on the corresponding node device.

[0026] The one or more instructions are also suitable for being loaded by the processor and executing the following steps on the second device side:

[0027] receiving a management authorization request sent by a first device, wherein the first device is a device having a built-in management service of the software toolkit and intending to use the management service to manage the distributed deployment of the software toolkit; wherein the management authorization request is generated according to hardware information of the first device; and the management authorization request is used to request: the second device to authorize the first device to use the management service to manage the distributed deployment of the software toolkit;

[0028] Verifying the eligibility of the first device to use the management service according to the management authorization request; and generating authorization credential information after verifying that the first device is qualified to use the management service;

[0029] The authorization credential information is returned to the first device, so that the first device initializes the management service based on the authorization credential information, and after successfully initializing the management service, in response to a registration request sent by any node device that wants to use the software toolkit, calls the management service to perform deployment management of the software toolkit on the corresponding node device.

[0030] On the one hand, an embodiment of the present application provides a computer storage medium, which stores one or more instructions, and the one or more instructions are suitable for being loaded by the processor and executing the software deployment management method on the first device side or the software deployment management method on the second device side.

[0031] On the one hand, an embodiment of the present application provides a computer storage medium, which stores one or more first instructions, and the one or more instructions are suitable for being loaded by a processor and executing the software deployment management method on the first device side or the software deployment management method on the second device side.

[0032] On the one hand, an embodiment of the present application provides a computer program product, which includes one or more instructions, wherein the one or more instructions are stored in a computer storage medium, and the processor of the computer device executes the software deployment management method on the first device side or the software deployment management method on the second device side by calling the one or more instructions.

[0033] In an embodiment of the present application, a computer device can send a management authorization request to a second device to request the second device to authorize the first device to use a management service to manage the distributed deployment of a software toolkit; wherein the management authorization request is generated based on the hardware information of the first device; and can also receive authorization credential information returned by the second device, wherein the authorization credential information is generated after the second device verifies that the first device is qualified to use the management service based on the management authorization request; and can further initialize the management service based on the authorization credential information, and after successfully initializing the management service, can respond to a registration request sent by any node device that desires to use the software toolkit, and call the management service to perform deployment management of the software toolkit on the corresponding node device. Through the above method, it is only necessary to collect the hardware information of the device on which the management service runs, without collecting the hardware information of all the node devices on which the software toolkit needs to be deployed, so as to realize distributed deployment management of the software toolkit, that is to say, it is possible to realize dynamic authorization of software toolkit deployment to multiple node devices; and, after the software provider authorizes a device deployed with a management service, real-time dynamic authorization of the node device that wants to use the software toolkit can be realized through the interactive collaboration between the device authorized with the management service and the node device that wants to use the software toolkit; thereby, the problems of inefficiency and high delivery cost of collecting hardware information of all node devices can be effectively overcome, and the efficiency of deployment management of software toolkits can be effectively improved, the authorization efficiency of node devices can be improved, and the delivery cost generated by hardware information can be reduced. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0035] Figure 1a It is a schematic diagram of the architecture of a software deployment management system provided in an embodiment of the present application;

[0036] Figure 1b It is a schematic diagram of the architecture of a software deployment management system provided in an embodiment of the present application;

[0037] Figure 2 It is a flowchart of a software deployment management method provided by an embodiment of the present application;

[0038] Figure 3 It is a flowchart of a software deployment management method provided by an embodiment of the present application;

[0039] Figure 4aIt is a flowchart of generating a management authorization request provided by an embodiment of the present application;

[0040] Figure 4b This is a schematic diagram of a process for generating an authorization string provided in an embodiment of the present application;

[0041] Figure 4c This is a schematic diagram of a process for initializing and verifying a management service provided by an embodiment of the present application;

[0042] Figure 4d This is a schematic diagram of a process for authorizing a node device provided in an embodiment of the present application;

[0043] Figure 5 It is a structural diagram of a software deployment management device provided in an embodiment of the present application;

[0044] Figure 6 It is a structural diagram of a software deployment management device provided in an embodiment of the present application;

[0045] Figure 7 It is a structural diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

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

[0047] In the embodiments of the present application, the software toolkit mentioned later may be any software development kit (SDK), for example, it may be an SDK with cryptographic capabilities (such as encryption, decryption, signature verification and other capabilities), it may be an SDK with reconciliation capabilities, or it may be an SDK with message sending and receiving capabilities. Furthermore, the software toolkit can be understood as the underlying technical capabilities that the business service relies on, and a software toolkit can be integrated with one or more business services. For example, a software toolkit with cryptographic capabilities can be integrated with business services such as payment services, login services, and message services; for another example, a software toolkit with reconciliation capabilities can be integrated with business services such as payment services.

[0048] When a software toolkit needs to be integrated into multiple business services, and the multiple business services are distributed in multiple devices, the software toolkit needs to be distributed and deployed in each device where the multiple business services are located. For example, when a software toolkit with cryptographic capabilities needs to be integrated into three business services, such as payment service, login service, and message service, if each of the three business services is distributed on different devices, the software toolkit with cryptographic capabilities needs to be distributed and deployed on the three devices.

[0049] In order to better manage the distributed deployment of software toolkits, the present application embodiment proposes a software deployment management system, see Figure 1a As shown, the software deployment management system may include at least a first device (or management device) and one or more node devices (or software SDK nodes). The first device here refers to a device that has a built-in management service for a software toolkit and intends to use the management service to manage the distributed deployment of the software toolkit; wherein the management service is provided by the software provider to the target object and deployed on the first device by the target object. The target object may refer to an object that obtains the software toolkit from the software provider using electronic resources, and the object may refer to any enterprise or individual. Any node device refers to a device that has a need to use a software toolkit, which may specifically be a device that is already qualified to use the software toolkit or a device that is not qualified to use the software toolkit, and there is no limitation on this.

[0050] In a specific application scenario, the first device and each node device can be deployed in a privatized environment, that is, each node device can be a privatized distributed deployed device. Among them, the privatized environment can refer to a network environment specified by an object (such as the target object in this application), and the specified network environment can be an information room maintained independently by the object, or the host and network resources obtained by the object on the public cloud using electronic resources, or a private cloud environment. A public cloud usually refers to a usable cloud provided by a third-party provider to an object; a private cloud is a cloud infrastructure and software and hardware resources created within a firewall for objects such as departments within an organization or enterprise to share resources in a data center. Simply put, a privatized environment is an isolated and dedicated network environment that cannot normally access a public network (also known as a public network, an extranet, the Internet, etc.).

[0051] In another specific application scenario, the first device and each node device may also be deployed in a public environment, and the public environment may refer to a public network environment, that is, a network environment that is accessible to any object.

[0052] Furthermore, the software deployment management system may also include a second device, the so-called second device refers to a device used by a software provider of the software toolkit; in this case, the system architecture of the software management deployment system may be included in Figure 1b In one embodiment, the first device may request authorization from the second device to use the management service to manage the distributed deployment of the software toolkit. After the management authorization is successful, the first device may receive a registration request sent by any node device that intends to use the software toolkit, and may respond to the registration request to call the management service to manage the deployment of the software toolkit on the node device, so that the node device is eligible to use the software toolkit.

[0053] The devices involved above (such as the first device, the second device, and the node device) can be a server, which can be an independent physical server or a server cluster or distributed system composed of multiple physical servers. It can also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms, etc.

[0054] Based on the above-mentioned software deployment management system, the embodiment of the present application provides a software deployment management solution. In the specific implementation, the software deployment management solution can be executed by the first device. The general principle of the software deployment management solution is as follows: the software deployment management solution can be divided into two links; the first link is the offline authorization link of the software provider to the management service, and the second link is the real-time authorization link of the management service to the node device that wants to use the software toolkit. In the first link, the second device used by the software provider collects the hardware information corresponding to the first device that needs to deploy the management service, and issues authorization credential information based on the collected hardware information; the first device can initialize the management service based on the authorization credential information, and after successfully initializing the management service, the first device can call the management service to perform deployment management of the software toolkit on the node device. In the second link, the node device that wants to use the software toolkit can initiate a real-time registration request to the first device, so that the first device calls the management service to perform deployment management of the software toolkit on the node device.

[0055] It can be seen that in the software deployment management solution proposed in the embodiment of the present application, the software provider only needs to authorize one device to use the management service to manage the distributed deployment of the software toolkit, and can use this one device to dynamically authorize each node device that wants to use the software toolkit; it can be seen that the software provider only needs to collect the hardware information of the device on which the management service runs, that is, only needs to collect the hardware information of one device, and does not need to collect the hardware information of all node devices on which the software toolkit needs to be deployed, so as to realize distributed deployment management of the software toolkit, that is, it can realize dynamic authorization of software toolkit deployment to multiple node devices; and, after the software provider authorizes a device deployed with a management service, real-time dynamic authorization of the node device that wants to use the software toolkit can be realized through the interactive collaboration between the device authorized with the management service and the node device that wants to use the software toolkit; thereby, the problems of inefficiency and high delivery cost of collecting hardware information of all node devices can be effectively overcome, and the efficiency of deployment management for software toolkits can be effectively improved, and the authorization efficiency of node devices can be improved, and the delivery cost generated for hardware information can be reduced.

[0056] As mentioned above, the first device authorized with the management service and each node device using the software toolkit can be deployed in a privatized environment. Since the authorization of the node device of the privatized distributed deployment is achieved by using the first device authorized with the management service, there is no need to initiate an authorization request to the second device used by the software provider of the software toolkit. The software deployment management solution can be applicable to the authorization management of the software toolkit in the privatized distributed deployment scenario, that is, the software deployment management solution can also overcome the technical difficulties of online authorization caused by the inability to access the public network in the privatized environment. For example, when the target object is an enterprise, the enterprise often requires the software toolkit to be deployed in a private manner, and the business services corresponding to the privately deployed software toolkit are often in a private network that cannot be connected to the public network. Since the public network cannot be reached, it is impossible to initiate an authorization request to the second device used by the software provider of the software toolkit, resulting in the inability to perform online authorization. The software deployment management solution proposed in this application can effectively solve this problem.

[0057] Based on the above description of the software deployment management system and software deployment management solution, the present application embodiment proposes a software deployment management method. Figure 2 The software deployment management method may include the following steps S201-S205:

[0058] S201: The first device sends a management authorization request to the second device.

[0059] The first device may refer to a device that has a built-in management service for a software toolkit and intends to use the management service to manage the distributed deployment of the software toolkit. It can be seen that the first device sends a management authorization request to the second device, that is, requests the second device to authorize the first device to use the management service to manage the distributed deployment of the software toolkit. In a specific implementation, when the target object has a need to use the management service to manage the distributed deployment of the software toolkit, the target object may send a management authorization request to the second device through the first device to request the second device to authorize the first device to use the management service to manage the distributed deployment of the software toolkit.

[0060] Among them, the management authorization request may carry an authorization request string for the management service; the authorization request string may be generated based on the hardware information of the first device, and the hardware information of the first device may include: a device identifier for uniquely indicating the first device, for example, the device identifier may be a universally unique identifier (Universally Unique Identifier, UUID).

[0061] In one embodiment, in addition to the hardware information of the first device, the authorization request string may also include data information negotiated between the software provider and the target object, and the data information may include at least one of the following: the object identifier of the target object, and the deployment number of the software development kit, which may be used to indicate that the target object plans to deploy the software development kit in K node devices, where K is a positive integer. For example, the deployment number may be 15, which means that the target object plans to deploy the software development kit in 15 node devices.

[0062] It should be noted that, in the present application, data information including the object identifier of the target object and the number of deployments of the software development kit are taken as an example for relevant explanation.

[0063] S202, the second device verifies the qualification of the first device to use the management service according to the management authorization request; and generates authorization credential information after verifying that the first device is qualified to use the management service.

[0064] It is understandable that the second device may receive the management authorization request sent by the first device, and after the second device receives the management authorization request, step S202 may be executed.

[0065] In a specific implementation, since the authorization request string carried by the management authorization request contains data information and hardware information of the first device, the second device can parse the authorization request string to obtain data information, and match the parsed data information with the data information negotiated between the software provider and the target object to determine whether the first device is qualified to use the management service. In one embodiment, if the parsed data information matches the data information negotiated between the software provider and the target object, it can be determined that the first device is qualified to use the management service; if the parsed data information does not match the data information negotiated between the software provider and the target object, it can be determined that the first device is not qualified to use the management service.

[0066] Among them, the above-mentioned matching of the parsed data information with the data information negotiated between the software provider and the target object, that is, determining whether the parsed data information is the same as the data information negotiated between the software provider and the target object; if they are the same, it can be determined that the parsed data information matches the data information negotiated between the software provider and the target object; if they are not the same, it can be determined that the parsed data information does not match the data information negotiated between the software provider and the target object.

[0067] In a specific implementation, after the second device verifies that the first device is qualified to use the management service, authorization credential information can be generated so that the first device can subsequently initialize the management service of the software toolkit based on the authorization credential information. The authorization credential information can also be understood as an authorization certificate. The second device can issue the authorization credential information based on the data information included in the authorization request string and the hardware information of the first device, and the authorization credential information can be obtained by signing the data information and the hardware information of the first device.

[0068] S203: The second device returns the authorization credential information to the first device.

[0069] S204: The first device initializes the management service based on the authorization credential information.

[0070] In a specific implementation, the first device may initialize the management service based on the authorization credential information to complete the authorization verification of the management service. Specifically, when the first device is to initialize the management service based on the authorization credential information, the authorization credential information may be imported into the management service so that the management service may perform initialization verification of the operating environment of the first device. If the first device passes the initialization verification of the operating environment, it may be determined that the initialization of the management service is successful; and if the first device fails to pass the initialization verification of the operating environment, it may be determined that the initialization of the management service has failed.

[0071] As mentioned above, since the authorization credential information is obtained through signature processing, the authorization credential information can be subjected to signature verification to verify the legitimacy of the authorization credential information. If the authorization credential information passes the signature verification, the operating environment of the management service can be further initialized and verified; only if the authorization credential information passes the signature verification and the first device passes the initialization verification of the operating environment, can the initialization of the management service be determined to be successful.

[0072] As can be seen from the foregoing, the authorization credential information carries the hardware information of the first device. For the convenience of description, the hardware information of the first device carried in the authorization credential information can be used as the reference hardware information of the first device. The current hardware information of the first device can also be obtained to initialize and verify the operating environment of the management service based on the reference hardware information of the first device and the current hardware information of the first device. Initializing and verifying the operating environment of the management service is to determine whether the reference hardware information of the first device and the current hardware information of the first device are consistent. If the reference hardware information of the first device and the current hardware information of the first device are consistent, it can be determined that the first device has passed the initialization verification of the operating environment. If the reference hardware information of the first device and the current hardware information of the first device are inconsistent, it can be determined that the first device has not passed the initialization verification of the operating environment.

[0073] S205, after successfully initializing the management service, the first device responds to a registration request sent by any node device that intends to use the software toolkit, and calls the management service to perform deployment management of the software toolkit on the corresponding node device.

[0074] In a specific implementation, after the management service is successfully initialized, the real-time authorization link of the management service for the node device that wants to use the software toolkit can be executed. In this link, any node device that wants to use the software toolkit can deploy the software toolkit and complete the real-time authorization registration so that the node device has the authority to use the software toolkit. In order to complete the real-time authorization registration, first, any node device that wants to use the software toolkit can send a registration request to the first device, and the first device can respond to the registration request sent by any node device that wants to use the software toolkit, and call the management service to deploy the software toolkit for the node device that wants to use the software toolkit, so as to achieve real-time authorization.

[0075] In an embodiment of the present application, the device used by the software provider of the software toolkit only needs to authorize one device to use the management service to manage the distributed deployment of the software toolkit, and this one device can be used to dynamically authorize each node device that wants to use the software toolkit; it can be seen that the software provider only needs to collect the hardware information of the device on which the management service runs, that is, only needs to collect the hardware information of one device, and there is no need to collect the hardware information of all node devices on which the software toolkit needs to be deployed, so as to realize dynamic authorization of software toolkit deployment to multiple node devices; and, after the software provider authorizes a device deployed with the management service, real-time dynamic authorization of the node device that wants to use the software toolkit can be realized through the interactive collaboration between the device authorized with the management service and the node device that wants to use the software toolkit; thereby, the problems of inefficiency and high delivery cost of collecting hardware information of all node devices can be effectively overcome, thereby effectively improving the authorization efficiency of node devices and reducing the delivery cost of hardware information.

[0076] Based on the relevant description of the above method embodiment, the present application embodiment also proposes a software deployment management method. Figure 3 The software deployment management method may include the following steps S301-S309:

[0077] S301: The first device sends a management authorization request to the second device.

[0078] The management authorization request may carry an authorization request string for the management service.

[0079] In a specific implementation, the management authorization request may be generated by a target tool provided by a software provider; wherein the target tool is a tool that can be used to generate an authorization request string for a management service, and the target tool may be a command line tool, an interface tool, or other forms of tools, which are not limited thereto. After the authorization request string is generated using the target tool, a management authorization request may be further generated based on the authorization request string.

[0080] Based on this, it can be known that in a specific implementation, the target tool provided by the software provider can be deployed in the first device. After the target tool is successfully deployed on the first device, the first device can call the target tool to collect the hardware information of the first device, and call the target tool to generate a character string based on the collected hardware information as an authorization request string for the management service; further, the first device can generate a management authorization request carrying the authorization request string, that is, the management authorization request carries the authorization request string.

[0081] Among them, the hardware information of the first device can be obtained by the target tool by calling the system interface for obtaining hardware information. The hardware information mentioned in this application can be the original hardware information directly collected by the system interface, or it can be the hardware information after processing (such as hash calculation, encryption calculation, etc.), such as the ciphertext of the hardware information or the hash value of the hardware information. For example, the hardware information of the first device can be a UUID, and the UUID can be generated based on the MAC (Media Access Control) address of the first device. It can be seen that the target tool can collect the MAC address of the first device by calling the system interface for collecting the MAC address. After collecting the MAC address, the UUID can be determined based on the MAC address. For example, the MAC address can be directly used as the UUID, or the MAC address can be calculated and the result of the calculation can be used as the UUID. Among them, the calculation can refer to hash calculation, encryption calculation or other calculation. For example, in the case where the calculation is a hash calculation, the MAC address can be hashed and the result of the hash calculation can be used as the UUID. It should be noted that when performing hash calculation on a MAC address, there is no limit on the number of hash calculations, for example, one hash calculation may be performed or multiple hash calculations may be performed; there is no limit on the hash algorithm used in the hash calculation. The number of hash calculations and the hash algorithm may be set in the target tool.

[0082] Among them, the target tool can specifically indicate the information required to be collected to generate the authorization request string and the method of generating the authorization request string based on the collected information. For example, the target tool indicates that the information to be collected includes data information (such as the object identifier of the target object, the number of deployments of the software development kit) and the hardware information of the device where the target tool is deployed (such as the first device in this application). The method of generating the authorization request string based on the collected information can be a method of splicing the collected information, or a method of encrypting it, etc.

[0083] For example, the target tool is a tool in the form of an interface, that is, the target tool can provide an operation interface so that relevant personnel can perform relevant operations on the operation interface, so that the target tool generates an authorization request string. Figure 4aAs shown: the terminal used by the relevant personnel can display the operation interface corresponding to the target tool on the terminal screen, and the operation interface can at least include an information setting area marked by 401 and a confirmation control marked by 402. If the relevant personnel want to have the authority to manage the distributed deployment of the software toolkit for the first device with a built-in management service of the software toolkit, the relevant personnel can enter the relevant data information in the information setting area 401 (such as the object identifier of the object is ID1, and the number of deployments of the software development kit is 15), and then perform a trigger operation (such as a click operation, a press operation, etc.) on the confirmation control 402, thereby triggering the target tool to generate an authorization request string; and after the target tool detects that the confirmation control 402 is triggered, the target tool can further collect the hardware information of the first device to generate an authorization request string based on the collected hardware information and data information. After the target tool generates the authorization request string, the authorization request string can be sent to the first device so that the first device obtains the authorization request string and further generates a management authorization request carrying the authorization request string. Among them, the specific implementation method of collecting the hardware information of the first device can refer to the above description, which will not be repeated here.

[0084] It should be noted that the operation interface corresponding to the above-mentioned target tool is only an illustrative example. In another operation interface, the information setting area may include a setting area for data information (such as object identification, deployment quantity) and hardware information. In this case, the hardware information of the first device may also be input by relevant personnel, and the way in which the relevant personnel obtain the hardware information of the first device is similar to the principle of obtaining the hardware information of the first device mentioned above. In another operation interface, the information setting area may be a setting area including hardware information. In this case, the hardware information of the first device may be input by relevant personnel, and the data information (such as object identification, deployment quantity) may be built-in in the target tool, and the data information is the information negotiated between the software provider and the target object. In another operation interface, the information setting area may not be included, and only a confirmation control for triggering the generation of an authorization request string may be included. In this case, the data information (such as object identification, deployment quantity) may be built-in in the target tool, and the relevant personnel may trigger the confirmation control so that the target tool can obtain the built-in data information and can collect the hardware information of the first device in real time to generate an authorization request string based on the built-in data information and the collected hardware information.

[0085] Based on the above description, it can be known that in order to generate an authorization request string using the target tool, in one embodiment, the target tool deployed in the first device may include: data information negotiated between the software provider and the target object, and a first key generated by the software provider using the second device. Among them, the first key refers to the key used to generate the authorization request string based on the information collected by the target tool, that is, the first key refers to the key for encrypting the hardware information and data information of the first device collected by the target tool. The first key can be generated by the software provider and is not disclosed to the target object. The cryptographic algorithm used by the first key is not limited, for example, it can be a symmetric cryptographic algorithm or an asymmetric cryptographic algorithm. Exemplarily, the cryptographic algorithm used by the first key can be the SM4-GCM algorithm, wherein SM4-GCM refers to a group symmetric cryptographic algorithm in GCM mode, and GCM mode refers to an authentication mode.

[0086] In summary, before the first device sends a management authorization request to the second device, it can first call the target tool to generate an authorization request string, and then generate a management authorization request carrying the authorization request string. Specifically, the above-mentioned calling the target tool to generate a string based on the collected hardware information as the authorization request string for the management service, or calling the target tool to generate the authorization request string based on the collected hardware information can include any of the following two methods:

[0087] Generation method 1: First, the first device can call the target tool to splice the collected hardware information and data information according to the first splicing method to obtain a first character string; then, the first character string can be used as an authorization request string for the management service.

[0088] Among them, the first splicing method indicates the method for splicing the hardware information and the data information, or indicates the order of splicing the hardware information and the data information. For example, the first splicing method indicates that the splicing is performed in the order of the hardware information and the data information; as another example, it indicates that the splicing is performed in the order of the data information and the hardware information. As mentioned above, the data information may include one or more of an object identifier and a deployment quantity. When the data information includes an object identifier and a deployment quantity, the first splicing method indicates the method for splicing the hardware information, the object identifier and the deployment quantity. For example, the first splicing method indicates that the splicing is performed in the order of the hardware information, the object identifier and the deployment quantity; as another example, the first splicing method indicates that the splicing is performed in the order of the object identifier, the hardware information and the deployment quantity.

[0089] For example, the hardware information is represented by UUID, the object identifier is represented by ID (Identity document), and the deployment quantity is represented by K; then the first string obtained by splicing these three information can be UUID|ID|K, or K|UUID|ID, or K|ID|UUID; in summary, the first device can combine these three information in any form to obtain the first string. Among them, the symbol "|" in this application can be understood as splicing.

[0090] Generation method 2: Considering that in the above generation method 1, when the first character string is directly used as the authorization request string for the management service, there is a risk of information leakage during the transmission of the management authorization request between the first device and the second device, the first character string can be encrypted to improve information security. Based on this, it can be seen that the specific implementation of generating the authorization request string for the management service can be: first, the first device can call the target tool to splice the collected hardware information and data information according to the first splicing method to obtain the first character string; then, the first key built into the target tool can be called to encrypt the first character string to obtain the authorization request string for the management service, which is the result of encrypting the first character string.

[0091] For example, the hardware information is represented by UUID, the object identifier is represented by ID, the deployment quantity is represented by K, and the first key is the encryption key in the SM4-GCM algorithm, then the authorization request string can be expressed as SM4-GCM (ID|UUID|K), where SM4-GCM represents the encryption of the information in brackets (i.e., the first string) using the SM4-GCM algorithm.

[0092] S302, the second device verifies the qualification of the first device to use the management service according to the management authorization request; and generates authorization credential information after verifying that the first device is qualified to use the management service.

[0093] As mentioned above, the management authorization request carries an authorization request string, and when the second device verifies the first device's eligibility to use the management service according to the management authorization request, the second device can use the authorization request string to verify the first device's eligibility to use the management service. Different methods of generating the authorization request string will result in different verification methods of using the authorization request string to verify the first device's eligibility to use the management service.

[0094] In one embodiment, when the authorization request string is generated by the above generation method 1, the specific implementation of the second device verifying the qualification of the first device to use the management service according to the management authorization request in step S302 can be the verification method 1 described below:

[0095] First, the second device can parse data information from the authorization request string carried by the management authorization request; then, the second device can match the parsed data information with the data information negotiated between the software provider and the target object. If the parsed data information is the data information negotiated between the software provider and the target object, the second device can determine that the first device is qualified to use the management service. If the parsed data information is not the data information negotiated between the software provider and the target object, the second device can determine that the first device is not qualified to use the management service.

[0096] In another embodiment, when the authorization request string is generated by the second generation method, the second device verifies the qualification of the first device to use the management service according to the management authorization request in step S302 in the second generation method as described below:

[0097] First, the second device can decrypt the authorization request string carried by the management authorization request to obtain a first character string; then, the second device can parse data information from the first character string; further, the second device can match the parsed data information with the data information negotiated between the software provider and the target object. If the parsed data information is the data information negotiated between the software provider and the target object, the second device can determine that the first device is qualified to use the management service. If the parsed data information is not the data information negotiated between the software provider and the target object, the second device can determine that the first device is not qualified to use the management service.

[0098] In a specific implementation, after the second device verifies that the first device is qualified to use the management service, the second device may generate authorization credential information so that the first device may subsequently initialize the management service using the authorization credential information.

[0099] Among them, the authorization credential information can be an authorization string obtained by the second device using a private key to sign the target character string; the private key can be a private key held only by the software provider, and the target character string can be generated by the second device based on the hardware information of the first device and the data information negotiated between the software provider and the target object.

[0100] The following first describes the process of the second device generating a target character string, and then describes the process of the second device using a private key to sign the target character string to obtain an authorization string.

[0101] In one embodiment, the process of the second device generating the target character string may include any of the following methods:

[0102] Method 1 for generating a target string: The second device may concatenate the hardware information of the first device and the data information agreed upon between the software provider and the target object according to a second concatenation method to obtain a second string, and the second string may be used as the target string. The second concatenation method may be consistent with or inconsistent with the first concatenation method, and there is no limitation on this.

[0103] Based on the operation of generating the target string in the above target string generation method 1, it can be known that no confidentiality measures have been taken for the hardware information and data information in the target string. Considering that there may be a risk of leakage during the transmission process when the second device returns the authorization credential information and the target string to the first device, the hardware information and data information can be encrypted to improve the confidentiality of the target string. Based on this, it can be known that the second device can generate the target string in the following method 2 or method 3:

[0104] Method 2 for generating a target string: First, the second device can concatenate the hardware information of the first device and the data information agreed upon between the software provider and the target object according to the second concatenation method to obtain a second string. After obtaining the second string, the second device can further encrypt the second string using a second key to obtain a target string, which is the result of encrypting the second string. The second key can be the same as or different from the first key, and there is no limitation on this.

[0105] Method 3 for generating target string: As mentioned above, the authorization request string is generated based on the hardware information and data information of the first device and is generated through encryption operation. Then the second device can directly use the authorization request string generated by the first device as the target string. For example, if the authorization request string in the example above is SM4-GCM (ID|UUID|K), then the target string can be SM4-GCM (ID|UUID|K).

[0106] In one embodiment, the process of the second device using the private key to sign the target string to obtain the authorized string may include any of the following methods:

[0107] Authorization string generation method 1: The second device can directly use the private key to sign the target string, and use the signed result as the authorization string.

[0108] Method 2 for generating an authorization string: First, the second device can perform a hash operation on the target character string to obtain a corresponding hash result, which can be referred to as a first hash result; then, the second device can use a private key to sign the first hash result to obtain an authorization string, which is the result obtained by signing the first hash result.

[0109] Among them, this application does not limit the private key used for the signature. For example, the private key can be the private key corresponding to the SM2-SING (a signature algorithm based on the public key cryptography of the elliptic curve cryptography) algorithm. Exemplarily, assuming that the target string can be expressed as SM4-GCM (ID|UUID|K), the authorization string can be expressed as SM2-SING (SM4-GCM (ID|UUID|N)), where SM2-SING means that the information in the brackets is signed using the SM2 algorithm.

[0110] As mentioned above, the authorization credential information can be an authorization string obtained by the second device using a private key to sign the target string; it should be understood that the second device returns the authorization credential information to the first device in order to enable the first device to initialize the management service using the authorization credential information, and to complete the initialization of the management service, the second device also needs to return the original data for the authorization credential information, which is the target string mentioned above. Based on this, it can be seen that the second device returns the authorization credential information and the target string to the first device together, so that the first device can initialize the management service based on the authorization credential information and the target string.

[0111] In a specific implementation, after the second device receives the management authorization request sent by the first device, the second device may further determine whether it needs to respond to the management authorization request, or determine whether it needs to execute step S302. The process of the second device determining whether it needs to execute step S302 can be described as follows:

[0112] First, the second device can determine the amount of electronic resources actually received by the software provider from the target object; the second device can also determine the number of deployments of the software toolkit and the electronic resources required to deploy a software toolkit. The deployment number is used to indicate that the target object plans to deploy the software development kit in K node devices; the electronic resources required to deploy a software toolkit can be understood as: when the target object is to deploy the software toolkit on a node device, the target object needs to actually transfer the electronic resources to the software provider; the actual amount of electronic resources received can be understood as: when the target object is to deploy the software development kit in K node devices, the target object needs to actually transfer the electronic resources to the software provider.

[0113] Then, the second device can determine the total amount of electronic resources that the target object needs to transfer to the software provider based on the deployment quantity and the electronic resources required to deploy a software toolkit. The total amount of electronic resources that the target object needs to transfer to the software provider can be understood as: when the target object deploys the software development kit on K node devices, the amount of electronic resources that the target object theoretically needs to transfer to the software provider. In one embodiment, the product of the deployment quantity and the electronic resources required to deploy a software toolkit can be used as the total amount of electronic resources that the target object needs to transfer to the software provider.

[0114] Finally, it can be determined whether step S302 can be executed based on the actually received amount of electronic resources and the total amount of electronic resources. For example, the actually received amount of electronic resources and the total amount of electronic resources can be compared in size, and it can be determined whether step S302 can be executed based on the comparison result. Specifically, if the actually received amount of electronic resources is greater than or equal to the total amount of electronic resources, it indicates that the target object has successfully transferred the amount of electronic resources required to deploy the software development kit on K node devices to the software provider, and thus the step of triggering the execution of step S302 (i.e., verifying the qualification of the first device to use the management service according to the management authorization request) can be triggered; if the actually received amount of electronic resources is less than the total amount of electronic resources, it indicates that the target object has not successfully transferred the amount of electronic resources required to deploy the software development kit on K node devices to the software provider, and thus the management authorization request can be refused to respond.

[0115] For example, assume that the deployment quantity is N, the electronic resources required to deploy a software toolkit is P, then the total amount of electronic resources Q1 that the target object needs to transfer to the software provider = P * K; and assume that the actually received amount of electronic resources from the target object by the software provider is Q2; then, if Q2 >= Q1, the execution of step S302 can be triggered; if Q2 < Q1, the management authorization request can be refused to respond.

[0116] To better understand the process of generating the authorization string proposed in this application, the following further elaborates in combination with Figure 4b the process shown. This process can be understood as the offline authorization link of the software provider for the management service, specifically the link of authorization issuance. For example, as shown in Figure 4b shown, this link can include the following steps 1 - step 6:

[0117] Step 1: The first device generates an authorization request string based on the target tool provided by the software provider.

[0118] For example, the authorization request string can be expressed as SM4 - GCM(ID|UUID|K), where SM4 - GCM represents encrypting the information within the parentheses.

[0119] Step 2: The first device sends an authorization request string to the second device to request the second device to issue authorization.

[0120] Requesting the second device to issue authorization may specifically refer to requesting the second device to authorize the first device to use the management service to manage the distributed deployment of the software toolkit.

[0121] Step 3: The second device decrypts the authorization request string.

[0122] If the decryption fails, it can be determined that the authorization issuance has failed, and it can also be determined that the first device is not qualified to use the management service. If the decryption is successful, the following step 4 can be executed. It should be noted that if a symmetric encryption algorithm (such as the SM4-GCM algorithm) is used when encrypting the data information and hardware information to generate the authorization request string in step 1, the key used for decryption here is the same as the key used for encryption when generating the authorization request string.

[0123] Step 4: The second device performs a legitimacy check on the decrypted object identifier and deployment quantity.

[0124] This step is to verify whether the data information (object identifier and deployment quantity) authorized in the authorization string is consistent with the data information actually negotiated between the software provider and the target object. If the decrypted object identifier and deployment quantity are the object identifier and deployment quantity negotiated between the software provider and the target object, it is determined that the legality verification is successful, and it can be determined that the first device is qualified to use the management service, and the following step 5 can be executed. If the decrypted object identifier and deployment quantity are not the object identifier and deployment quantity negotiated between the software provider and the target object, it is determined that the legality verification fails, that is, it can be determined that the authorization issuance fails, and it can be determined that the first device is not qualified to use the management service.

[0125] Step 5: The second device signs the authorization request string to obtain an authorization string.

[0126] This step is to sign the ciphertext (i.e., the authorization request string) generated in step 1 using a private key held only by the software provider to obtain an authorization string; alternatively, a key different from that used to generate the authorization request string can be used to sign the re-encrypted ciphertext of the data information and hardware information decrypted in step 3 to obtain an authorization string.

[0127] Step 6: The second device sends the authorization string and the authorization request string to the first device, so that the target object completes the deployment of the management service.

[0128] The second device sends the authorization string and the authorization request string to the first device, which indicates that the authorization is issued successfully.

[0129] It should be noted that the specific implementation of each step in this link can refer to the above-mentioned related description and will not be repeated here.

[0130] From the above description, it can be seen that the software provider only needs to collect the corresponding hardware information of the environment where the management service runs (that is, the device where the management service runs, such as the first device here) in advance, and issue an authorization string based on the collected hardware information, and the authorization string can be used for the initialization verification of the subsequent management service. After the initialization verification is successful, the first device can call the management service to perform distributed deployment management on the software toolkit, that is, it can realize the authorization of multiple node devices under the target object to deploy the software toolkit. It can be seen that in order to realize the authorization of multiple node devices under the target object, the present application can only collect the hardware information of the device where the management service runs, that is, only the hardware information of one device needs to be collected, and the hardware information of all node devices does not need to be collected, so as to realize the authorization of multiple node devices under the target object; thereby, the delivery cost generated for the hardware information can be effectively reduced, and the authorization efficiency can also be improved.

[0131] S303: The second device returns the authorization credential information to the first device.

[0132] S304: The first device initializes the management service based on the authorization credential information.

[0133] As described in the above step S302, the second device returns the authorization credential information and the target string to the first device, and the first device can receive the authorization credential information and the target string. After the first device receives the authorization credential information and the target string, it can initialize the management service based on the authorization credential information and the target string to complete the authorization verification of the management service. After the authorization verification of the management service is passed, the management service is allowed to manage the distributed deployment of the software toolkit, or the management service has the function of authorizing the node device that wants to use the software toolkit. In a specific implementation, the specific implementation of step S304 may include the following steps S1-S2:

[0134] S1, the first device transmits the authorization credential information and the target character string to the management service, so that the management service performs initialization verification of the operating environment of the first device according to the target character string and the authorization credential information.

[0135] The process of the management service involved in step S1 performing initialization verification of the operating environment of the first device according to the target character string and the authorization credential information may include the following steps s11-s13:

[0136] s11, the management service performs signature verification on the authorization credential information according to the public key and the target character string of the second device.

[0137] As mentioned above, the authorization credential information may be an authorization string obtained by the second device using a private key to sign a target string, and the public key of the second device may refer to: when generating the authorization credential information, the public key corresponding to the private key used for the signature. The public key may be built into the management service so that when the public key is needed to verify the signature of the authorization credential information, it can be directly obtained from the management service. It should be noted that the management service can be presented in the form of an application. It is understandable that an application is configured with a corresponding configuration file. The public key, authorization credential information, target string and other information involved here may be configured in the configuration file, so that when the relevant information is needed later, it can be directly obtained from the configuration file.

[0138] It should be noted that different methods of generating authorization credential information (ie, authorization string) based on the target string will result in different methods of performing signature verification on the authorization credential information. As mentioned above, the method of generating authorization credential information may include the authorization string generation method 1 and the authorization string generation method 2 in step S302.

[0139] In one embodiment, if the method for generating the authorization credential information is the authorization string generation method 1, the implementation process of step s11 may be: first, the authorization credential information may be decrypted using the public key of the second device to obtain a decryption result; then, the decryption result and the target string are subjected to a consistency check. If the decryption result and the target string pass the consistency check, it can be determined that the authorization credential information has passed the signature verification; if the decryption result and the target string do not pass the consistency check, it can be determined that the authorization credential information has not passed the signature verification.

[0140] Among them, performing a consistency check on the decryption result and the target string is to determine whether the decryption result and the target string are consistent; if it is determined that the decryption result and the target string are consistent, it can be determined that the decryption result and the target string have passed the consistency check; and if it is determined that the decryption result and the target string are inconsistent, it can be determined that the decryption result and the target string have not passed the consistency check.

[0141] In another embodiment, if the method for generating the authorization credential information is the second authorization string generation method, the implementation process of step s11 may be: first, the authorization credential information may be decrypted using the public key of the second device to obtain a decryption result; and, the target string may be hashed to obtain a second hash result. The second hash result is the result of performing a hash operation on the target string, and the hash calculation here is the same as the hash algorithm used in the hash calculation when signing. Then, the decryption result and the second hash result may be checked for consistency; if the decryption result and the second hash result pass the consistency check, it may be determined that the authorization credential information has passed the signature verification; if the decryption result and the second hash result do not pass the consistency check, it may be determined that the authorization credential information has not passed the signature verification.

[0142] Among them, the principle of consistency check between the decryption result and the second hash result is the same as the principle of consistency check between the decryption result and the target string, that is, consistency check between the decryption result and the second hash result is to determine whether the decryption result and the second hash result are consistent. When it is determined that the decryption result and the second hash result are consistent, it can be determined that the decryption result and the second hash result pass the consistency check; when it is determined that the decryption result and the second hash result are inconsistent, it can be determined that the decryption result and the second hash result do not pass the consistency check.

[0143] s12, if the authorization credential information passes the signature verification, the management service determines that the first device passes the initialization verification of the operating environment.

[0144] In one embodiment, if the authorization credential information passes the signature verification, first, the system interface can be called to obtain the current hardware information of the first device. Among them, the current hardware information of the first device may refer to the hardware information of the first device obtained at the current moment, and the current moment may refer to the moment when the system interface is called to obtain the hardware information. As mentioned above, the hardware information may refer to a UUID, and the UUID may be generated based on the MAC address of the device, then the system interface can be called to obtain the MAC address of the first device, and the current hardware information of the first device can be determined based on the obtained MAC address. Among them, the specific implementation principle of determining the current hardware information of the first device based on the MAC address here is the same as the specific implementation principle of determining the hardware information of the first device based on the MAC address described above; that is, the MAC address can be used as the current hardware information of the first device, or the result of hashing the MAC address can be used as the current hardware information of the first device. Its specific implementation can refer to the relevant description of the specific implementation of determining the hardware information of the first device based on the MAC address, which will not be repeated here.

[0145] Then, the target character string may be parsed, and the hardware information obtained by the parsing process may be used as reference hardware information.

[0146] It should be noted that, as can be seen from the description of the generation of the target string in step S303, the second device may generate the target string in three ways (such as the target string generation way 1, the target string generation way 2 and the target string generation way 3 mentioned above). For the target strings generated by different generation ways, there are also differences in the parsing of the target strings. The following is a relevant description of the process of parsing the target strings under different generation ways.

[0147] (1) When the target string is generated by the target string generation method 1, considering that the target string is directly obtained by splicing the hardware information and data information of the first device using the second splicing method, the specific process of parsing the target string can be: splitting the target string to obtain the hardware information and data information of the first device included in the target string.

[0148] (2) In the case where the target string is generated by the second target string generation method, considering that the target string is obtained by encrypting the second string using the second key, and the second string is obtained by splicing the hardware information and data information of the first device; then the specific process of parsing the target string may be: decrypting the target string using the decryption key corresponding to the second key to decrypt the hardware information and data information of the first device included in the target string; specifically, first decrypting the target string using the decryption key corresponding to the second key to obtain the second string, and then splitting the second string to obtain the hardware information and data information of the first device included in the second string.

[0149] (3) In the case where the target string is generated by the target string generation method three, considering that the target string is the authorization request string generated by the first device, and the authorization request string is obtained by encrypting the first string using the first key, and the first string is obtained by splicing the hardware information and data information of the first device; then the specific process of parsing the target string can be: decrypting the target string using the decryption key corresponding to the first key to decrypt the hardware information and data information of the first device included in the target string; specifically, first decrypting the target string using the decryption key corresponding to the first key to obtain the first string, and then splitting the first string to obtain the hardware information and data information of the first device included in the first string.

[0150] Among them, in the parsing process involved in the above (1), (2) and (3), if the parsing fails (such as decryption failure), an initialization verification failure prompt can be output so that relevant personnel can understand the initialization verification situation in a timely and intuitive manner.

[0151] Finally, it can be determined whether the first device has passed the initialization verification of the operating environment based on the current hardware information and the reference hardware information. Specifically, the current hardware information can be matched with the reference hardware information. If the current hardware information and the reference hardware information match, it can be determined that the first device has passed the initialization verification of the operating environment; if the current hardware information and the reference hardware information do not match, it can be determined that the first device has not passed the initialization verification of the operating environment. In the case of determining that the first device has not passed the initialization verification of the operating environment, an initialization verification failure prompt can also be output so that relevant personnel can understand the initialization verification situation in a timely and intuitive manner.

[0152] Among them, matching the current hardware information with the reference hardware information means determining whether the current hardware information is the same as the reference hardware information; if the current hardware information is the same as the reference hardware information, it can be determined that the current hardware information and the reference hardware information match; if the current hardware information and the reference hardware information are different, it can be determined that the current hardware information and the reference hardware information do not match.

[0153] s13, if the authorization credential information fails to pass the signature verification, the management service determines that the first device fails to pass the initialization verification of the operating environment.

[0154] In a specific implementation, when the authorization credential information fails the signature verification, the first device may also output an initialization verification failure prompt so that relevant personnel can easily understand the initialization verification situation and make timely adjustments to the initialization verification failure problem.

[0155] S2: If the first device passes the initialization verification of the operating environment, it is determined that the initialization of the management service is successful; if the first device fails the initialization verification of the operating environment, it is determined that the initialization of the management service fails.

[0156] In one embodiment, if the first device passes the initialization verification of the operating environment, it can be determined that the initialization management service is successful; in the case where the initialization management service is successful, a prompt for successful initialization of the management service can be output. If the first device does not pass the initialization verification of the operating environment, it can be determined that the management service initialization has failed. Similarly, in the case of a failure in the initialization management service, a prompt for failure in the initialization management service can also be output. By outputting these prompt messages, relevant personnel can clearly and directly understand the results of the initialization management service, and in the case of outputting the prompt for failure in the initialization management service, relevant personnel can also quickly solve the problem of failure in the initialization management service. For example, if the reason for the failure of the initialization management service is that the device on which the management service is running is not authorized by the second device, the management service can be redeployed.

[0157] To better understand the process of initializing management services based on authorization credential information proposed in this application, the following Figure 4c The process shown further explains the initialization of the management service. This process can also be understood as the link of the management service verification authorization, for example, see Figure 4c As shown, this step may include the following steps 1 to 10:

[0158] Step 1: The management service uses the built-in public key and the authorization request string to verify the signature of the authorization string.

[0159] It should be noted that this process uses the target string as the authorization request string as an example to illustrate the signature verification of the authorization string.

[0160] Step 2: Determine whether the signature verification is successful.

[0161] If it is determined that the signature verification is successful, the following step 3 may be executed; if it is determined that the signature verification fails, it may be determined that the initialization verification of the management service fails.

[0162] Step 3: Decrypt the authorization request string to obtain the object ID, deployment quantity, and hardware information.

[0163] The decrypted hardware information may be used as the reference hardware information mentioned above.

[0164] Step 4: Determine whether the decryption was successful.

[0165] If it is determined that the decryption fails, it can be determined that the initialization verification of the management service fails. If it is determined that the decryption succeeds, the following step 5 can be performed.

[0166] Step 5: The management service calls the system interface to obtain or calculate the current hardware information of the first device.

[0167] Among them, the current hardware information may refer to the hardware information at the current moment, and the current moment may refer to the moment of calling the system interface to obtain the hardware information; as mentioned above, the hardware information may be represented by UUID, then the current hardware information may refer to REAL-UUID (real-time UUID).

[0168] Step 6: The management service compares the current hardware information with the hardware information in the authorization request string to see if they are consistent.

[0169] In a specific implementation, if they are consistent, it indicates that the verification is successful, and it is determined that the first device has passed the initialization verification of the operating environment; if they are inconsistent, it indicates that the verification has failed, and it is determined that the first device has not passed the initialization verification of the operating environment. The hardware information in the authorization request string here may refer to the aforementioned reference hardware information.

[0170] It can be seen that the information in the authorization string may at least include the hardware information of the device where the management service is deployed, the deployment quantity of the software development kit, the object identifier of the target object, the corresponding signature of the software provider, etc. After the first device obtains the authorization string, the management service can be initialized and verified based on the authorization string to ensure that the management service is successfully deployed on the device authorized by the software provider.

[0171] It should be noted that the specific implementation of each step in this link can refer to the above-mentioned related description, which will not be repeated here. It should also be noted that some steps in the above process can be replaced before and after when it does not affect the actual effect. For example, the specific execution order of signature verification and decryption involved here is not limited, that is, signature verification can be performed first and then decryption, or decryption can be performed first and then signature verification.

[0172] S305, the node device sends a registration request.

[0173] The node device may refer to any node device that intends to use the software toolkit.

[0174] In a specific implementation, the registration request may be generated by the node device based on the hardware information of the node device, such as the hardware information may be the device identification of the corresponding node device, for example, the device identification of the corresponding node device may refer to a UUID, wherein the principle of obtaining the hardware information of the node device is the same as the principle of obtaining the hardware information of the first device as described above, for example, the node device may obtain the hardware information by calling the system interface, and its specific implementation may refer to the above-mentioned related description, which will not be repeated here. Among them, the method of generating a registration request may include any of the following methods.

[0175] Registration request generation method 1: The node device can obtain the device identification corresponding to the node device, and generate a registration request carrying the device identification.

[0176] Registration request generation method 2: To avoid the risk of leakage of the device identification during the transmission of the registration request, the device identification can be encrypted, and the encrypted data can be used as the data required to be carried by the registration request. In this case, the node device can first obtain the device identification corresponding to the node device, and then encrypt the device identification to obtain the encrypted device identification; then, generate a registration request carrying the encrypted device identification. Among them, the key used for encryption can be the same as the key involved above (such as the first key, the second key), or different, without limitation.

[0177] Registration request generation method three: After obtaining the device identifier, the node device can also sign the device identifier and carry the signed device identifier in the registration request. Specifically, first, the node device can obtain the device identifier corresponding to the node device; then, the node device can directly sign the device identifier to obtain the signature of the device identifier. For the convenience of description, the signature here can be referred to as the first identifier signature. After the node device generates the first identifier signature, a registration request carrying the first identifier signature and the device identifier can be generated.

[0178] Registration request generation method four: After obtaining the device identifier, the node device can also encrypt and sign the device identifier, and carry the encrypted device identifier and the signed device identifier in the registration request. Specifically, first, the node device can obtain the device identifier corresponding to the node device; then, the device identifier can be encrypted to obtain the encrypted device identifier; further, the encrypted device identifier can be signed to obtain a signature result, and the signature result here can be referred to as the second identifier signature. After the node device generates the encrypted device identifier and the second identifier signature, a registration request carrying the second identifier signature and the encrypted device identifier can be generated.

[0179] It should be noted that in addition to the identification signature (such as the first identification signature or the second identification signature) carried in the registration request, the original data corresponding to the identification signature must also be carried, so that when the identification signature is verified, the signature verification can be implemented based on the original data corresponding to the identification signature. For example, if the identification signature is the first identification signature, the original data is the device identification; if the identification signature is the second identification signature, the original data is the encrypted device identification.

[0180] S306: After successfully initializing the management service, the first device responds to the registration request sent by the node device and calls the management service to obtain the device identification of the corresponding node device.

[0181] In a specific implementation, after successfully initializing the management service, the first device can respond to a registration request sent by any node device that wants to use the software toolkit. In order to respond to the registration request sent by the node device, the management service can be called to obtain the device identification of the corresponding node device. For example, the device identification of the node device can be obtained from the registration request. For registration requests generated in different ways, the way to obtain the device identification of the node device from the registration request is also different.

[0182] Acquisition method 1: When the registration request is generated using registration request generation method 1, since the registration request directly carries the device identification of the node device, the first device can call the management service to directly obtain the device identification of the corresponding node device from the registration request.

[0183] Acquisition method 2: When the registration request is generated using registration request generation method 2, since the registration request directly carries the encrypted node identifier, the first device can call the management service to decrypt the encrypted node identifier. If the decryption is successful, the decrypted data can be used as the device identifier of the corresponding node device. If the decryption fails, a registration failure prompt can be sent to the corresponding node device, and the registration failure prompt can be a prompt message indicating the decryption failure.

[0184] Acquisition method three: When the registration request is generated using registration request generation method three, since the registration request directly carries the signed node identifier (i.e., the first identifier signature) and the node identifier, the first device can call the management service to perform signature verification on the first identifier signature. If the first identifier signature passes the signature verification, it can indicate that the device identifier carried in the registration request has not been tampered with, and the device identifier carried in the registration request can be obtained as the device identifier of the corresponding node device. If the first identifier signature fails the signature verification, it can indicate that the device identifier carried in the registration request is at risk of being tampered with, and a registration failure prompt can be sent to the corresponding node device, and the registration failure prompt can be a prompt message indicating that the signature verification failed.

[0185] Acquisition method four: When the registration request is generated using registration request generation method four, since the registration request directly carries the second identification signature and the encrypted node identification, the first device can call the management service to perform signature verification on the first identification signature. If the first identification signature fails to pass the signature verification, it can indicate that the device identification carried in the registration request is at risk of being tampered with, and a registration failure prompt can be sent to the corresponding node device, and the registration failure prompt can be a prompt message indicating that the signature verification failed. If the first identification signature passes the signature verification, it can indicate that the device identification carried in the registration request has not been tampered with, that is, the encrypted data can be further decrypted to obtain the device identification of the corresponding node device. If the encrypted data is decrypted successfully, the device identification of the corresponding node device can be decrypted; if the encrypted data fails to be decrypted, it can indicate that the device identification of the responding node device is at risk of being leaked, and a registration failure prompt can be sent to the corresponding node device, and the registration failure prompt can be a prompt message indicating that the decryption failed.

[0186] It should be noted that the specific execution order of the signature verification and decryption involved here is not limited, that is, the signature verification can be performed first and then the decryption, or the decryption can be performed first and then the signature verification.

[0187] S307: The first device calls the management service to search for the registration record of the corresponding node device according to the acquired device identifier.

[0188] In a specific implementation, when the first device responds to each registration request sent by a node device that intends to use a software toolkit and performs authorization processing on the node device so that the node device has the authority to use the software toolkit, it can store the registration record corresponding to the node device, so that it can determine whether to authorize subsequent node devices based on the registration record.

[0189] In one embodiment, the registration record may be a device identification corresponding to a node device, that is, when a node device has the authority to use a software toolkit, the first device records the device identification of the node device. For example, the first device may record a device identification set for node devices that have the authority to use a software toolkit, and the device identification set includes the device identification of each node device that has the authority to use the software toolkit. Exemplarily, the device identification set is: [device identification 1 device identification 2 device identification 3 device identification 4].

[0190] S308, if no registration record is found, the first device performs a registration process on the corresponding node device, and after the corresponding node device is successfully registered, performs an authorization process on the corresponding node device so that the corresponding node device has the authority to use the software toolkit.

[0191] As described above, if the first device records a device identification set for node devices with permission to use the software toolkit, the first device finds the device identification of the corresponding node device in the device identification set, and thus determines that the first device has not found the registration record.

[0192] It can be understood that if the first device does not find the registration record, it means that the corresponding node device has not yet been registered. In order to enable the corresponding node device to have the authority to use the software toolkit, the corresponding node device can be registered, wherein the result of the registration process can be a successful registration or a failed registration. When the result of the registration process is a successful registration, the corresponding node device can be authorized to enable the corresponding node device to have the authority to use the software toolkit.

[0193] In a specific implementation, the process of registering the corresponding node device in step S307 may be as follows:

[0194] First, you can query the number of node devices that have been successfully registered and determine the number of software development kits deployed.

[0195] Then, after determining the number of devices and the number of deployments, the corresponding node devices can be registered based on the number of devices and the number of deployments; in one embodiment, the corresponding node devices can be registered based on the comparison between the number of devices and the number of deployments. Specifically, if the number of devices is less than the number of deployments, the device identification of the corresponding node device can be stored to complete the registration of the corresponding node device, and it can be determined that the registration of the corresponding node device is successful. If the number of devices is equal to the number of deployments, it can be determined that the registration of the corresponding node device has failed.

[0196] It can be understood that if the number of devices is less than the number of deployments, that is, the number of currently registered node devices has not exceeded the number of node devices for which the target object plans to deploy the software development kit, then the corresponding node device can be allowed to register; to complete the registration of the corresponding node device, the device identification of the corresponding node device can be stored. If the number of devices is equal to the number of deployments, that is, the number of currently registered node devices has reached the number of node devices for which the target object plans to deploy the software development kit, then the corresponding node device is not allowed to register, and it can be determined that the registration of the corresponding node device has failed.

[0197] For example, when the number of deployments is 15, if the number of devices is 13, the device identification of the corresponding node device can be stored to complete the registration of the corresponding node device. If the number of devices is 15, it can be determined that the registration of the corresponding node device has failed.

[0198] In one embodiment, in order to complete the registration of the corresponding node device, the first device can store the device identification of the corresponding node device and send a registration success prompt to the corresponding node device; after the first device determines that the registration of the corresponding node device fails, the first device can also send a registration failure prompt to the corresponding node device. By sending these prompt information, relevant personnel can understand the registration status of the corresponding node device based on these prompt information, and when relevant personnel browse the prompt information of registration failure, they can also solve the registration failure problem in time.

[0199] In one embodiment, before registering the corresponding node device in step S308, it is also possible to determine whether to trigger the step of registering the corresponding node device based on relevant features. For example, the relevant features may refer to the hardware information of the node device, the business services it belongs to, and so on.

[0200] In a possible implementation, the first device may determine whether to perform registration processing on the corresponding node device based on the node device hardware information. In a specific implementation, the first device may obtain the hardware information of the corresponding node device, and detect the ability of the corresponding node device to run the software toolkit according to the hardware information of the corresponding node device; if it is detected that the corresponding node device has the ability to run the software toolkit, the step of performing registration processing on the corresponding node device may be triggered; if it is detected that the corresponding node device does not have the ability to run the software toolkit, a registration failure prompt may be sent to the corresponding node device.

[0201] For example, the hardware information here may include one or more of an IP address (Internet Protocol Address) corresponding to the node device, a CPU (Central Processing Unit) type, memory, etc.

[0202] In combination with the hardware information mentioned above, the specific implementation of detecting the capability of the corresponding node device to run the software toolkit according to the hardware information of the corresponding node device is described below.

[0203] In one implementation, when the hardware information of the node device is the CPU type, the target object can pre-set the CPU type of the node device that allows the deployment of the software toolkit. In this case, the first device can determine whether the CPU type corresponding to the corresponding node device is the CPU type corresponding to the node device that allows the deployment of the software toolkit; if the CPU type corresponding to the corresponding node device is the CPU type corresponding to the node device that allows the deployment of the software toolkit, it can be determined that the corresponding node device has the ability to run the software toolkit; if the CPU type corresponding to the corresponding node device is not the CPU type corresponding to the node device that allows the deployment of the software toolkit, it can be determined that the corresponding node device does not have the ability to run the software toolkit.

[0204] For example, a CPU type with better performance can be used as the CPU type of the node device that allows the deployment of the software toolkit. Among them, the performance of the CPU can be defined according to the performance parameters of the CPU, such as the performance of the CPU can be defined based on performance parameters such as the main frequency and cache. For example, the performance of the CPU is defined by the main frequency. It should be understood that the higher the main frequency, the faster the CPU calculation and processing speed. In order to ensure the running speed of the business services of the integrated software toolkit, the node device with better CPU performance can be selected as much as possible. Based on this, it can be known that the CPU corresponding to the main frequency value higher than the main frequency threshold can be determined as the CPU type of the node device that allows the deployment of the software toolkit, wherein the main frequency threshold can be set based on demand, and the specific value is not limited.

[0205] In another implementation, when the hardware information of the node device is memory, the target object can pre-set a memory threshold. It can be understood that the larger the memory of the node device, the faster the running speed of the node device. In order to ensure the running speed of the business service of the integrated software toolkit, the first device can select a node device with a larger memory. Based on this, it can be known that the first device can determine whether the memory of the corresponding node device is higher than the memory threshold; if the memory of the corresponding node device is higher than the memory threshold, it can be determined that the corresponding node device has the ability to run the software toolkit; if the memory of the corresponding node device is not higher than the memory threshold, it can be determined that the corresponding node device does not have the ability to run the software toolkit.

[0206] In another possible implementation, the target object may pre-set a business service that allows the deployment of the software toolkit. In this case, the first device may determine whether to register the corresponding node device based on the business service to which the node device belongs. In a specific implementation, the first device may obtain the business service to which the corresponding node device belongs, and detect the ability of the corresponding node device to run the software toolkit based on the business service to which the corresponding node device belongs; if it is detected that the corresponding node device has the ability to run the software toolkit, the step of registering the corresponding node device may be triggered; if it is detected that the corresponding node device does not have the ability to run the software toolkit, a registration failure prompt may be sent to the corresponding node device.

[0207] Among them, the specific implementation of detecting the ability of the corresponding node device to run the software toolkit according to the business service to which the corresponding node device belongs can be: determining whether the business service to which the corresponding node device belongs is a business service that allows the deployment of software toolkits; if the business service to which the corresponding node device belongs is a business service that allows the deployment of software toolkits, it can be determined that the corresponding node device has the ability to run the software toolkit; if the business service to which the corresponding node device belongs is not a business service that allows the deployment of software toolkits, it can be determined that the corresponding node device does not have the ability to run the software toolkit.

[0208] For example, the target object pre-sets the business services that allow deployment of software toolkits as business service 1, business service 2, and business service 3; if the business service to which the node device belongs is business service 3, it indicates that the node device has the ability to run the software toolkit; if the business service to which the node device belongs is business service 4, it indicates that the node device does not have the ability to run the software toolkit.

[0209] S309: If the registration record is found, the first device performs authorization processing on the corresponding node device so that the corresponding node device has the authority to use the software toolkit.

[0210] As described above, if the first device records a device identification set for node devices with permission to use the software toolkit, the first device finds the device identification of the corresponding node device in the device identification set, and thus it can be determined that the first device has found the registration record.

[0211] In a specific implementation, if the first device finds the registration record, it indicates that the corresponding node device has completed registration and has been successfully registered, and the corresponding node device can be authorized to have the authority to use the software toolkit.

[0212] To better understand the link proposed by the present application where the first device calls the management service to authorize the corresponding node device, the following combination Figure 4dSee, for example, Figure 4d As shown, this step may include the following steps 1 to 10:

[0213] Step 1: The node device obtains the device identification of the node device in real time, and generates a registration request based on the device identification.

[0214] The device identifier may be understood as hardware information of a local operating environment of the node device. For example, the device identifier may refer to a UUID of the node device.

[0215] Step 2: The node device sends a registration request to the first device.

[0216] The registration request may carry the encrypted data obtained by encrypting the device identification of the node device and the signature data (such as the second identification signature mentioned above) for signing the encrypted data. It should be noted that the registration request may carry other information (such as the relevant description in step S306). The process here is described by taking the registration request carrying the encrypted data of the device identification of the node device and the second identification signature as an example.

[0217] Step 3: The first device performs signature verification and decryption on the registration request.

[0218] In a specific implementation manner, the first device may perform signature verification on the second identification signature and decrypt the encrypted data.

[0219] Step 4: The first device determines whether the signature verification and decryption are successful.

[0220] Among them, when both signature verification and decryption are successful, the following step 5 can be executed; if any of signature verification and decryption is unsuccessful, it can be determined that the authorization of the node device has failed, that is, the node device does not have the authority to use the software toolkit.

[0221] Step 5: The first device obtains the decrypted device identification of the node device.

[0222] Step 6: The first device queries whether the device identification of the node device has been registered.

[0223] If it is found that the device identification of the node device has not been registered, the following step 7 can be executed. If it is found that the hardware information of the node device has been registered, it can be determined that the node device has been authorized successfully, that is, the node device has the authority to use the software toolkit.

[0224] Step 7: The first device queries the number of node devices that have been successfully registered.

[0225] Step 8: The first device determines whether the number of devices is less than the deployment number.

[0226] If the number of devices is not less than the number of deployments, for example, the number of devices is equal to the number of deployments, it can be determined that the number of node devices authorized is exceeded, and it can be determined that the node device registration fails, that is, the authorization of the node device fails. If the number of devices is less than the number of deployments, the node device can be authorized, and the following step 9 can be performed.

[0227] Step 9: The first device stores the device identifier of the node device.

[0228] Step 10: The first device sends a registration success response packet to the node device.

[0229] The registration success response packet may be a prompt for successful registration or authorization of the node device, so that relevant personnel can understand the authorization status of the node device.

[0230] It can be known from the above description that the real-time dynamic authorization of the node device that wants to use the software toolkit can be realized through the interactive cooperation between the device authorized with the management service and the node device that wants to use the software toolkit; at the same time, since the number of deployments of the software development kit is specified in the authorization string issued by the software provider, the present application can also realize the management of the number of authorizations of the devices running the software toolkit. Moreover, in the scenario of privatized distributed deployment of large-scale projects, the authorization of the node device and the management of the number of authorizations of the node device are realized through the interactive cooperation between the first device and the node device deployed in the same privatized environment. For the environment of dynamically scalable node devices (such as the environment where the hardware information of the node device is unstable and changes frequently), it is also conducive to the dynamic expansion and contraction of the business services under the target object, that is, the target object can adjust the authorization status of the node device in real time.

[0231] It should be noted that the specific implementation of each step in this link can refer to the above-mentioned related description, which will not be repeated here. It should also be noted that the process in the above flowchart can be replaced before and after when it does not affect the actual effect. For example, the execution order of the above steps 9 and 10 can be swapped; the specific execution order of the signature verification and decryption involved in step 4 is not limited, that is, signature verification can be performed first and then decryption, or decryption can be performed first and then signature verification.

[0232] It should be noted that the cryptographic algorithms mentioned in the embodiments of the present application, such as SM2 and SM4, can be replaced by other similar cryptographic algorithms, such as RSA (an algorithm for public key cryptography), ECDSA (Elliptic Curve Digital Signature Algorithm), AES (Advanced Encryption Standard), etc., that is, the cryptographic algorithms are not specifically limited in the embodiments of the present application. For security reasons, the encryption and signature keys involved in the node device registration process may be inconsistent with the keys used in the generation of the aforementioned authorization credential information and the initialization verification process of the management service.

[0233] In an embodiment of the present application, the device used by the software provider of the software toolkit only needs to authorize one device to use the management service to manage the distributed deployment of the software toolkit, and this device can be used to dynamically authorize each node device that wants to use the software toolkit; it can be seen that the software provider only needs to collect the hardware information of the device on which the management service runs, that is, only needs to collect the hardware information of one device, and does not need to collect the hardware information of all node devices on which the software toolkit is to be deployed, so as to achieve distributed deployment management of the software toolkit, that is, dynamic authorization of software toolkit deployment can be achieved for multiple node devices; and, after the software provider authorizes a device deployed with a management service, through the interactive collaboration between the authorized device with the management service and the node device that wants to use the software toolkit, real-time dynamic authorization of the node device that wants to use the software toolkit can be achieved, and the management of the authorized number of devices running the software development kit can also be achieved; thereby, the problems of inefficiency and high delivery cost of collecting hardware information of all node devices can be effectively overcome, and the efficiency of deployment management for software toolkits can be effectively improved, the authorization efficiency of node devices can be improved, and the delivery cost generated for hardware information can be reduced.

[0234] Based on the description of the software deployment management method embodiment, the present application embodiment provides a software deployment management device. The software deployment management device may be a computer program (including program code) running in the first device, and the software deployment management device may execute Figure 2-Figure 3 The first device is a device that has a built-in management service for the software toolkit and intends to use the management service to manage the distributed deployment of the software toolkit; the device used by the software provider of the software toolkit is the second device. Figure 5 , the software deployment management device can run the following units:

[0235] A sending unit 501 is used to send a management authorization request to the second device to request the second device to authorize the first device to use the management service to manage the distributed deployment of the software toolkit; wherein the management authorization request is generated according to the hardware information of the first device;

[0236] The receiving unit 502 is configured to receive the authorization credential information returned by the second device, where the authorization credential information is generated after the second device verifies, according to the management authorization request, that the first device is qualified to use the management service;

[0237] The management unit 503 is used to initialize the management service based on the authorization credential information, and after successfully initializing the management service, in response to a registration request sent by any node device that wants to use the software toolkit, call the management service to perform deployment management of the software toolkit on the corresponding node device.

[0238] In one implementation, the apparatus further includes a generating unit 504. Before sending the management authorization request to the second device, the generating unit 504 may be specifically configured to:

[0239] deploying a target tool provided by the software provider in the first device, wherein the target tool is a tool for generating an authorization request string for the management service;

[0240] Calling the target tool to collect hardware information of the first device, and calling the target tool to generate a character string based on the collected hardware information as an authorization request string for the management service;

[0241] Generate a management authorization request carrying the authorization request string.

[0242] In one embodiment, the target tool deployed in the first device includes: data information negotiated between the software provider and the target object, and a first key generated by the software provider using the second device; wherein the target object refers to an object that uses electronic resources to obtain the software toolkit from the software provider, and the data information includes at least one of the following: an object identifier of the target object, and a deployment number of the software development kit, the deployment number being used to indicate that the target object plans to deploy the software development kit in K node devices, where K is a positive integer; when the generation unit 504 is used to call the target tool to generate a character string based on the collected hardware information as the authorization request string for the management service, it can be specifically used to:

[0243] Calling the target tool to perform splicing processing on the collected hardware information and the data information according to a first splicing method to obtain a first character string;

[0244] The first key built in the target tool is called to encrypt the first character string to obtain an authorization request string for the management service.

[0245] In one implementation, the authorization credential information is an authorization string obtained by the second device using a private key to sign a target string, and the second device returns the authorization credential information and the target string to the first device together; wherein the target string is generated according to the hardware information of the first device and the data information negotiated between the software provider and the target object; when the management unit 503 is used to initialize the management service based on the authorization credential information, it can be specifically used to:

[0246] Passing the authorization credential information and the target character string to the management service, so that the management service performs initialization verification of the operating environment of the first device according to the target character string and the authorization credential information;

[0247] If the first device passes the initialization verification of the operating environment, it is determined that the management service is initialized successfully; if the first device does not pass the initialization verification of the operating environment, it is determined that the management service initialization fails.

[0248] In one embodiment, the process of the second device using the private key to sign the target string to obtain the authorization string includes: performing a hash operation on the target string to obtain a first hash result, and signing the first hash result using the private key to obtain the authorization string;

[0249] When the management unit 503 is used to perform initialization verification of the operating environment of the first device according to the target character string and the authorization credential information in the management service, it can be specifically used to:

[0250] Performing signature verification on the authorization credential information according to the public key of the second device and the target character string;

[0251] If the authorization credential information passes the signature verification, it is determined that the first device passes the initialization verification of the operating environment;

[0252] If the authorization credential information fails the signature verification, it is determined that the first device fails the initialization verification of the operating environment.

[0253] In one implementation, when the management unit 503 is used to perform signature verification on the authorization credential information according to the public key of the second device and the target character string, it can be specifically used to:

[0254] Using the public key of the second device to decrypt the authorization credential information to obtain a decryption result; and performing a hash operation on the target string to obtain a second hash result;

[0255] Performing a consistency check on the decryption result and the second hash result;

[0256] If the decryption result and the second hash result pass the consistency check, it is determined that the authorization credential information passes the signature verification;

[0257] If the decryption result and the second hash result fail the consistency check, it is determined that the authorization credential information fails the signature verification.

[0258] In one implementation, if the authorization credential information passes the signature verification, the management unit 503, when used to determine that the first device passes the initialization verification of the operating environment, may be specifically used to:

[0259] If the authorization credential information passes the signature verification, calling the system interface to obtain the current hardware information of the first device;

[0260] Parsing the target character string, and using the hardware information obtained by the parsing as reference hardware information;

[0261] If the current hardware information matches the reference hardware information, determining that the first device passes the initialization verification of the operating environment;

[0262] If the current hardware information does not match the reference hardware information, it is determined that the first device has not passed the initialization verification of the operating environment.

[0263] In one implementation, when the management unit 503 is used to respond to a registration request sent by any node device that intends to use the software toolkit and call the management service to perform deployment management of the software toolkit on the corresponding node device, it can be specifically used to:

[0264] In response to a registration request sent by any node device that intends to use the software toolkit, calling the management service to obtain a device identification of the corresponding node device;

[0265] Calling the management service to search for the registration record of the corresponding node device according to the acquired device identifier;

[0266] If no registration record is found, register the corresponding node device, and after the corresponding node device is successfully registered, authorize the corresponding node device so that the corresponding node device has the authority to use the software toolkit;

[0267] If the registration record is found, authorization processing is performed on the corresponding node device so that the corresponding node device has the authority to use the software toolkit.

[0268] In one implementation, when the management unit 503 is used to perform registration processing on the corresponding node device, it can be specifically used to:

[0269] Query the number of node devices that have been successfully registered, and determine the deployment number of the software development kit, where the deployment number is used to indicate that the target object plans to deploy the software development kit in K node devices, where K is a positive integer;

[0270] If the number of devices is less than the deployment number, storing the device identification of the corresponding node device to complete the registration of the corresponding node device;

[0271] If the number of devices is equal to the deployment number, it is determined that the registration of the corresponding node device fails.

[0272] In one implementation, before registering the corresponding node device, the management unit 503 may also be used to:

[0273] Acquire the hardware information of the corresponding node device, and detect the capability of the corresponding node device to run the software toolkit according to the hardware information of the corresponding node device;

[0274] If it is detected that the corresponding node device has the ability to run the software toolkit, triggering the step of performing registration processing on the corresponding node device;

[0275] If it is detected that the corresponding node device does not have the ability to run the software toolkit, a registration failure prompt is sent to the corresponding node device.

[0276] According to one embodiment of the present application, Figure 2-Figure 3 Some of the steps involved in the method shown can be performed by Figure 5 The software deployment management device shown in FIG. Figure 2 The step S201 shown in FIG. 1 can be performed by Figure 5 The sending unit 501 shown in FIG. 1 is executed, and steps S204-S205 can be performed by Figure 5 , the management unit 503 shown in is executed; for example, Figure 3 The step S301 shown in FIG. Figure 5 The sending unit 501 shown in FIG. 1 is executed, and step S304 and steps S306-S309 can be performed by Figure 5 The management unit 503 shown in FIG.

[0277] According to another embodiment of the present application, Figure 5 The various units in the software deployment management device shown can be separately or completely combined into one or several other units to form, or one (some) of the units can also be split into multiple smaller units in function to form, which can achieve the same operation without affecting the realization of the technical effects of the embodiments of the present application. The above-mentioned units are divided based on logical functions. In practical applications, the functions of one unit can also be implemented by multiple units, or the functions of multiple units can be implemented by one unit. In other embodiments of the present application, other units can also be included based on the software deployment management device. In practical applications, these functions can also be implemented with the assistance of other units, and can be implemented by the collaboration of multiple units.

[0278] According to another embodiment of the present application, the program can be executed by running on a general computing device such as a computer including a central processing unit (CPU), a random access memory medium (RAM), a read-only memory medium (ROM), and other processing elements and storage elements. Figure 2-Figure 3 A computer program (including program code) of some steps involved in the corresponding method shown in , to construct Figure 5 The software deployment management device shown in and the relevant steps of the software deployment management method of the embodiment of the present application are implemented. The computer program can be recorded on, for example, a computer readable recording medium, and loaded into the above-mentioned computing device through the computer readable recording medium and run therein.

[0279] Based on the description of the software deployment management method embodiment, the present application embodiment also provides a software deployment management device. The software deployment management device may be a computer program (including program code) running in the second device, and the software deployment management device may execute Figure 2-Figure 3 The second device refers to the device used by the software provider of the software toolkit. Figure 6 , the software deployment management device can run the following units:

[0280] The receiving unit 601 is used to receive a management authorization request sent by a first device, where the first device refers to a device that has a built-in management service of the software toolkit and intends to use the management service to manage the distributed deployment of the software toolkit; wherein the management authorization request is generated according to the hardware information of the first device; and the management authorization request is used to request: the second device to authorize the first device to use the management service to manage the distributed deployment of the software toolkit;

[0281] A generating unit 602 is configured to verify the eligibility of the first device to use the management service according to the management authorization request; and after verifying that the first device is qualified to use the management service, generate authorization credential information;

[0282] The return unit 603 is used to return the authorization credential information to the first device, so that the first device initializes the management service based on the authorization credential information, and after successfully initializing the management service, in response to a registration request sent by any node device that wants to use the software toolkit, calls the management service to perform deployment management of the software toolkit on the corresponding node device.

[0283] In one implementation, the management authorization request carries an authorization request string; when the generating unit 602 is used to verify the qualification of the first device to use the management service according to the management authorization request, it can be specifically used to:

[0284] Decrypting the authorization request string carried in the management authorization request to obtain a first character string; and parsing data information from the first character string;

[0285] If the parsed data information is the data information agreed upon between the software provider and the target object, it is determined that the first device is qualified to use the management service; wherein the target object refers to an object that uses electronic resources to obtain the software toolkit from the software provider;

[0286] If the parsed data information is not the data information agreed upon between the software provider and the target object, it is determined that the first device is not qualified to use the management service.

[0287] In one implementation, when the generating unit 602 is used to generate the authorization credential information, it can be specifically used to:

[0288] Acquire a target character string, where the target character string is generated according to the hardware information of the first device and the data information negotiated between the software provider and the target object;

[0289] The target character string is signed using a private key to obtain authorization credential information.

[0290] In one implementation, when the generating unit 602 is used to obtain the target character string, it can be specifically used to:

[0291] Using the authorization request string generated by the first device as the target string;

[0292] Alternatively, the hardware information of the first device and the data information agreed upon between the software provider and the target object are concatenated in a second concatenation manner to obtain a second character string; and the second character string is encrypted using a second key to obtain a target character string.

[0293] In one implementation, after receiving the management authorization request sent by the first device, the receiving unit 601 may further be used to:

[0294] Determining the amount of electronic resources actually received by the software provider from a target object, wherein the target object is an object that uses the electronic resources to obtain the software toolkit from the software provider;

[0295] Determine the deployment quantity of the software toolkit and the electronic resources required to deploy one software toolkit; wherein the deployment quantity is used to indicate that the target object plans to deploy the software development kit in K node devices, where K is a positive integer;

[0296] Determine the total amount of electronic resources that the target object needs to transfer to the software provider according to the deployment quantity and the electronic resources required to deploy one software toolkit;

[0297] If the amount of electronic resources actually received is greater than or equal to the total amount of electronic resources, triggering the step of verifying the eligibility of the first device to use the management service according to the management authorization request;

[0298] If the amount of electronic resources actually received is less than the total amount of electronic resources, the management authorization request is rejected.

[0299] According to one embodiment of the present application, Figure 2-Figure 3 Some of the steps involved in the method shown can be performed by Figure 6 The software deployment management device shown in FIG. Figure 2 The step S202 shown in FIG. 1 can be performed by Figure 6 The generation unit 602 shown in FIG. 1 is executed, and step S203 can be performed by Figure 6 , and the return unit 603 shown in FIG. Figure 3 The step S302 shown in FIG. 1 can be performed by Figure 6 The generation unit 602 shown in FIG. 1 is executed, and step S303 can be performed by Figure 6 The return unit 603 shown in FIG.

[0300] According to another embodiment of the present application, Figure 6The various units in the software deployment management device shown can be separately or completely combined into one or several other units to form, or one (some) of the units can also be split into multiple smaller units in function to form, which can achieve the same operation without affecting the realization of the technical effects of the embodiments of the present application. The above-mentioned units are divided based on logical functions. In practical applications, the functions of one unit can also be implemented by multiple units, or the functions of multiple units can be implemented by one unit. In other embodiments of the present application, other units can also be included based on the software deployment management device. In practical applications, these functions can also be implemented with the assistance of other units, and can be implemented by the collaboration of multiple units.

[0301] According to another embodiment of the present application, the program can be executed by running on a general computing device such as a computer including a central processing unit (CPU), a random access memory medium (RAM), a read-only memory medium (ROM), and other processing elements and storage elements. Figure 2-Figure 3 A computer program (including program code) of some steps involved in the corresponding method shown in , to construct Figure 6 The software deployment management device shown in and the relevant steps of the software deployment management method of the embodiment of the present application are implemented. The computer program can be recorded on, for example, a computer readable recording medium, and loaded into the above-mentioned computing device through the computer readable recording medium and run therein.

[0302] Based on the description of the software deployment management method embodiment, the present application embodiment further provides a computer device, which may be the first device mentioned above, or the second device mentioned above. Figure 7 The computer device may at least include a processor 701, an input interface 702, an output interface 703, and a computer storage medium 704. The processor 701, the input interface 702, the output interface 703, and the computer storage medium 704 in the computer device may be connected via a bus or other means.

[0303] The computer storage medium 704 is a memory device in a computer device for storing programs and data. It is understandable that the computer storage medium 704 here can include both the built-in storage medium of the computer device and the extended storage medium supported by the computer device. The computer storage medium 704 provides a storage space, which stores the operating system of the computer device. In addition, one or more instructions suitable for being loaded and executed by the processor 701 are also stored in the storage space. These instructions can be one or more computer programs (including program codes). It should be noted that the computer storage medium here can be a high-speed RAM memory; optionally, it can also be at least one computer storage medium away from the aforementioned processor. The processor can be called a central processing unit (CPU), which is the core and control center of the computer device, suitable for implementing one or more instructions, specifically loading and executing one or more instructions to achieve the corresponding method flow or function.

[0304] In a feasible embodiment, the processor 701 may load and execute one or more instructions stored in a computer storage medium to implement corresponding steps of the method in the above-mentioned software deployment management method embodiment;

[0305] In a specific implementation, when the computer device is the first device mentioned above, one or more instructions in the computer storage medium are loaded by the processor 701 and perform the following operations:

[0306] Sending a management authorization request to the second device to request the second device to authorize the first device to use the management service to manage the distributed deployment of the software toolkit; wherein the management authorization request is generated according to the hardware information of the first device;

[0307] receiving authorization credential information returned by the second device, where the authorization credential information is generated after the second device verifies, according to the management authorization request, that the first device is qualified to use the management service;

[0308] The management service is initialized based on the authorization credential information, and after the management service is successfully initialized, in response to a registration request sent by any node device that intends to use the software toolkit, the management service is called to perform deployment management of the software toolkit on the corresponding node device.

[0309] In one implementation, before sending the management authorization request to the second device, the one or more instructions are loaded by the processor 701 and further executed:

[0310] deploying a target tool provided by the software provider in the first device, wherein the target tool is a tool for generating an authorization request string for the management service;

[0311] Calling the target tool to collect hardware information of the first device, and calling the target tool to generate a character string based on the collected hardware information as an authorization request string for the management service;

[0312] Generate a management authorization request carrying the authorization request string.

[0313] In one embodiment, the target tool deployed in the first device includes: data information negotiated between the software provider and the target object, and a first key generated by the software provider using the second device; wherein the target object refers to an object that uses electronic resources to obtain the software toolkit from the software provider, and the data information includes at least one of the following: an object identifier of the target object, and a deployment number of the software development kit, the deployment number is used to indicate that the target object plans to deploy the software development kit in K node devices, K is a positive integer; when calling the target tool to generate a string based on the collected hardware information as an authorization request string for the management service, the one or more instructions are loaded and specifically executed by the processor 701:

[0314] Calling the target tool to perform splicing processing on the collected hardware information and the data information according to a first splicing method to obtain a first character string;

[0315] The first key built in the target tool is called to encrypt the first character string to obtain an authorization request string for the management service.

[0316] In one implementation, the authorization credential information is an authorization string obtained by the second device using a private key to sign a target string, and the second device returns the authorization credential information and the target string to the first device together; wherein the target string is generated according to the hardware information of the first device and the data information negotiated between the software provider and the target object; when initializing the management service based on the authorization credential information, the one or more instructions are loaded and specifically executed by the processor 701:

[0317] Passing the authorization credential information and the target character string to the management service, so that the management service performs initialization verification of the operating environment of the first device according to the target character string and the authorization credential information;

[0318] If the first device passes the initialization verification of the operating environment, it is determined that the management service is initialized successfully; if the first device does not pass the initialization verification of the operating environment, it is determined that the management service initialization fails.

[0319] In one embodiment, the process of the second device using the private key to sign the target string to obtain the authorization string includes: performing a hash operation on the target string to obtain a first hash result, and signing the first hash result using the private key to obtain the authorization string;

[0320] When the management service performs initialization verification of the operating environment of the first device according to the target string and the authorization credential information, the one or more instructions are loaded and specifically executed by the processor 701:

[0321] Performing signature verification on the authorization credential information according to the public key of the second device and the target character string;

[0322] If the authorization credential information passes the signature verification, it is determined that the first device passes the initialization verification of the operating environment;

[0323] If the authorization credential information fails the signature verification, it is determined that the first device fails the initialization verification of the operating environment.

[0324] In one implementation, when performing signature verification on the authorization credential information according to the public key of the second device and the target string, the one or more instructions are loaded and specifically executed by the processor 701:

[0325] Using the public key of the second device to decrypt the authorization credential information to obtain a decryption result; and performing a hash operation on the target string to obtain a second hash result;

[0326] Performing a consistency check on the decryption result and the second hash result;

[0327] If the decryption result and the second hash result pass the consistency check, it is determined that the authorization credential information passes the signature verification;

[0328] If the decryption result and the second hash result fail the consistency check, it is determined that the authorization credential information fails the signature verification.

[0329] In one implementation, if the authorization credential information passes the signature verification, when it is determined that the first device passes the initialization verification of the operating environment, the one or more instructions are loaded and specifically executed by the processor 701:

[0330] If the authorization credential information passes the signature verification, calling the system interface to obtain the current hardware information of the first device;

[0331] Parsing the target character string, and using the hardware information obtained by the parsing as reference hardware information;

[0332] If the current hardware information matches the reference hardware information, determining that the first device passes the initialization verification of the operating environment;

[0333] If the current hardware information does not match the reference hardware information, it is determined that the first device has not passed the initialization verification of the operating environment.

[0334] In one implementation, in response to a registration request sent by any node device that intends to use the software toolkit, when calling the management service to perform deployment management of the software toolkit on the corresponding node device, the one or more instructions are loaded and specifically executed by the processor 701:

[0335] In response to a registration request sent by any node device that intends to use the software toolkit, calling the management service to obtain a device identification of the corresponding node device;

[0336] Calling the management service to search for the registration record of the corresponding node device according to the acquired device identifier;

[0337] If no registration record is found, register the corresponding node device, and after the corresponding node device is successfully registered, authorize the corresponding node device so that the corresponding node device has the authority to use the software toolkit;

[0338] If the registration record is found, authorization processing is performed on the corresponding node device so that the corresponding node device has the authority to use the software toolkit.

[0339] In one implementation, when registering the corresponding node device, the one or more instructions are loaded and specifically executed by the processor 701:

[0340] Query the number of node devices that have been successfully registered, and determine the deployment number of the software development kit, where the deployment number is used to indicate that the target object plans to deploy the software development kit in K node devices, where K is a positive integer;

[0341] If the number of devices is less than the deployment number, storing the device identification of the corresponding node device to complete the registration of the corresponding node device;

[0342] If the number of devices is equal to the deployment number, it is determined that the registration of the corresponding node device fails.

[0343] In one implementation, before performing registration processing on the corresponding node device, the one or more instructions are loaded and further executed by the processor 701:

[0344] Acquire the hardware information of the corresponding node device, and detect the capability of the corresponding node device to run the software toolkit according to the hardware information of the corresponding node device;

[0345] If it is detected that the corresponding node device has the ability to run the software toolkit, triggering the step of performing registration processing on the corresponding node device;

[0346] If it is detected that the corresponding node device does not have the ability to run the software toolkit, a registration failure prompt is sent to the corresponding node device.

[0347] In a specific implementation, when the computer device is the second device mentioned above, one or more instructions in the computer storage medium are loaded by the processor 701 and perform the following operations:

[0348] receiving a management authorization request sent by a first device, wherein the first device is a device having a built-in management service of the software toolkit and intending to use the management service to manage the distributed deployment of the software toolkit; wherein the management authorization request is generated according to hardware information of the first device; and the management authorization request is used to request: the second device to authorize the first device to use the management service to manage the distributed deployment of the software toolkit;

[0349] Verifying the eligibility of the first device to use the management service according to the management authorization request; and generating authorization credential information after verifying that the first device is qualified to use the management service;

[0350] The authorization credential information is returned to the first device, so that the first device initializes the management service based on the authorization credential information, and after successfully initializing the management service, in response to a registration request sent by any node device that wants to use the software toolkit, calls the management service to perform deployment management of the software toolkit on the corresponding node device.

[0351] In one implementation, the management authorization request carries an authorization request string; when verifying the qualification of the first device to use the management service according to the management authorization request, the one or more instructions are loaded and specifically executed by the processor 701:

[0352] Decrypting the authorization request string carried in the management authorization request to obtain a first character string; and parsing data information from the first character string;

[0353] If the parsed data information is the data information agreed upon between the software provider and the target object, it is determined that the first device is qualified to use the management service; wherein the target object refers to an object that uses electronic resources to obtain the software toolkit from the software provider;

[0354] If the parsed data information is not the data information agreed upon between the software provider and the target object, it is determined that the first device is not qualified to use the management service.

[0355] In one implementation, when generating authorization credential information, the one or more instructions are loaded and specifically executed by the processor 701:

[0356] Acquire a target character string, where the target character string is generated according to the hardware information of the first device and the data information negotiated between the software provider and the target object;

[0357] The target character string is signed using a private key to obtain authorization credential information.

[0358] In one implementation, when obtaining the target string, the one or more instructions are loaded and specifically executed by the processor 701:

[0359] Using the authorization request string generated by the first device as the target string;

[0360] Alternatively, the hardware information of the first device and the data information agreed upon between the software provider and the target object are concatenated in a second concatenation manner to obtain a second character string; and the second character string is encrypted using a second key to obtain a target character string.

[0361] In one implementation, after receiving the management authorization request sent by the first device, the one or more instructions are loaded by the processor 701 and further executed:

[0362] Determining the amount of electronic resources actually received by the software provider from a target object, wherein the target object is an object that uses the electronic resources to obtain the software toolkit from the software provider;

[0363] Determine the deployment quantity of the software toolkit and the electronic resources required to deploy one software toolkit; wherein the deployment quantity is used to indicate that the target object plans to deploy the software development kit in K node devices, where K is a positive integer;

[0364] Determining the total amount of electronic resources that the target object needs to transfer to the software provider based on the deployment quantity and the electronic resources required to deploy one software toolkit;

[0365] If the amount of electronic resources actually received is greater than or equal to the total amount of electronic resources, triggering the step of verifying the eligibility of the first device to use the management service according to the management authorization request;

[0366] If the amount of electronic resources actually received is less than the total amount of electronic resources, the management authorization request is rejected.

[0367] It should be noted that the embodiment of the present application provides a computer program product, which includes one or more instructions, and the one or more instructions are stored in a computer storage medium. The processor of the computer device executes the above-mentioned software deployment management method embodiment by calling the one or more instructions. Figure 2 or Figure 3 The steps performed in

[0368] What is disclosed above is only a preferred embodiment of the present application, and it certainly cannot be used to limit the scope of rights of the present application. Ordinary technicians in this field can understand that all or part of the processes of the above embodiment and equivalent changes made according to the claims of the present application are still within the scope of the invention.

Claims

1. A software deployment management method, characterized in that: The method is performed by a first device, wherein the first device is a device having a management service of a software toolkit built in and intending to use the management service to manage the distributed deployment of the software toolkit; wherein the device used by the software provider of the software toolkit is a second device; the method comprises: Sending a management authorization request to the second device to request the second device to authorize the first device to use the management service to manage the distributed deployment of the software toolkit; wherein the management authorization request is generated according to the hardware information of the first device; receiving authorization credential information returned by the second device, where the authorization credential information is generated after the second device verifies, according to the management authorization request, that the first device is qualified to use the management service; The management service is initialized based on the authorization credential information, and after the management service is successfully initialized, in response to a registration request sent by any node device that intends to use the software toolkit, the management service is called to perform deployment management of the software toolkit on the corresponding node device.

2. The method according to claim 1, characterized in that Before sending the management authorization request to the second device, the method further includes: deploying a target tool provided by the software provider in the first device, wherein the target tool is a tool for generating an authorization request string for the management service; Calling the target tool to collect hardware information of the first device, and calling the target tool to generate a character string based on the collected hardware information as an authorization request string for the management service; Generate a management authorization request carrying the authorization request string.

3. The method according to claim 2, characterized in that The target tool deployed in the first device includes: data information negotiated between the software provider and the target object, and a first key generated by the software provider using the second device; The target object refers to an object that uses electronic resources to obtain the software toolkit from the software provider, and the data information includes at least one of the following: an object identifier of the target object, and a deployment quantity of the software development kit, where the deployment quantity is used to indicate that the target object plans to deploy the software development kit in K node devices, where K is a positive integer; The calling of the target tool generates a character string based on the collected hardware information as the authorization request string of the management service, including: Calling the target tool to perform splicing processing on the collected hardware information and the data information according to a first splicing method to obtain a first character string; The first key built in the target tool is called to encrypt the first character string to obtain an authorization request string for the management service.

4. The method according to any one of claims 1 to 3, characterized in that: The authorization credential information is an authorization string obtained by the second device using a private key to sign a target string, and the second device returns the authorization credential information and the target string together to the first device; wherein the target string is generated according to the hardware information of the first device and the data information negotiated between the software provider and the target object; The initializing the management service based on the authorization credential information comprises: Passing the authorization credential information and the target character string to the management service, so that the management service performs initialization verification of the operating environment of the first device according to the target character string and the authorization credential information; If the first device passes the initialization verification of the operating environment, it is determined that the management service is initialized successfully; if the first device does not pass the initialization verification of the operating environment, it is determined that the management service initialization fails.

5. The method according to claim 4, characterized in that The process of the second device using the private key to sign the target character string to obtain the authorization string includes: performing a hash operation on the target character string to obtain a first hash result, and using the private key to sign the first hash result to obtain the authorization string; The management service performs initialization verification of the operating environment of the first device according to the target character string and the authorization credential information, including: Performing signature verification on the authorization credential information according to the public key of the second device and the target character string; If the authorization credential information passes the signature verification, it is determined that the first device passes the initialization verification of the operating environment; If the authorization credential information fails the signature verification, it is determined that the first device fails the initialization verification of the operating environment.

6. The method according to claim 5, characterized in that The performing signature verification on the authorization credential information according to the public key of the second device and the target character string includes: Using the public key of the second device to decrypt the authorization credential information to obtain a decryption result; and performing a hash operation on the target string to obtain a second hash result; Performing a consistency check on the decryption result and the second hash result; If the decryption result and the second hash result pass the consistency check, it is determined that the authorization credential information passes the signature verification; If the decryption result and the second hash result fail the consistency check, it is determined that the authorization credential information fails the signature verification.

7. The method according to claim 5, characterized in that If the authorization credential information passes the signature verification, determining that the first device passes the initialization verification of the operating environment includes: If the authorization credential information passes the signature verification, calling the system interface to obtain the current hardware information of the first device; Parsing the target character string, and using the hardware information obtained by the parsing as reference hardware information; If the current hardware information matches the reference hardware information, determining that the first device passes the initialization verification of the operating environment; If the current hardware information does not match the reference hardware information, it is determined that the first device has not passed the initialization verification of the operating environment.

8. The method according to claim 1, characterized in that The step of responding to a registration request sent by any node device that intends to use the software toolkit, calling the management service to perform deployment management of the software toolkit on the corresponding node device, includes: In response to a registration request sent by any node device that intends to use the software toolkit, calling the management service to obtain a device identification of the corresponding node device; Calling the management service to search for the registration record of the corresponding node device according to the acquired device identifier; If no registration record is found, register the corresponding node device, and after the corresponding node device is successfully registered, authorize the corresponding node device so that the corresponding node device has the authority to use the software toolkit; If the registration record is found, authorization processing is performed on the corresponding node device so that the corresponding node device has the authority to use the software toolkit.

9. The method according to claim 8, characterized in that The registering process for the corresponding node device includes: Query the number of node devices that have been successfully registered, and determine the deployment number of the software development kit, where the deployment number is used to indicate that the target object plans to deploy the software development kit in K node devices, where K is a positive integer; If the number of devices is less than the deployment number, storing the device identification of the corresponding node device to complete the registration of the corresponding node device; If the number of devices is equal to the deployment number, it is determined that the registration of the corresponding node device fails.

10. The method according to claim 8, characterized in that Before registering the corresponding node device, the method further includes: Acquire the hardware information of the corresponding node device, and detect the capability of the corresponding node device to run the software toolkit according to the hardware information of the corresponding node device; If it is detected that the corresponding node device has the ability to run the software toolkit, triggering the step of performing registration processing on the corresponding node device; If it is detected that the corresponding node device does not have the ability to run the software toolkit, a registration failure prompt is sent to the corresponding node device.

11. A software deployment management method, characterized in that: The method is performed by a second device, where the second device is a device used by a software provider of a software toolkit; the method includes: receiving a management authorization request sent by a first device, wherein the first device is a device having a built-in management service of the software toolkit and intending to use the management service to manage the distributed deployment of the software toolkit; wherein the management authorization request is generated according to hardware information of the first device; and the management authorization request is used to request: the second device to authorize the first device to use the management service to manage the distributed deployment of the software toolkit; Verifying the eligibility of the first device to use the management service according to the management authorization request; and generating authorization credential information after verifying that the first device is qualified to use the management service; The authorization credential information is returned to the first device, so that the first device initializes the management service based on the authorization credential information, and after successfully initializing the management service, in response to a registration request sent by any node device that wants to use the software toolkit, calls the management service to perform deployment management of the software toolkit on the corresponding node device.

12. The method according to claim 11, characterized in that The management authorization request carries an authorization request string; and verifying the qualification of the first device to use the management service according to the management authorization request includes: Decrypting the authorization request string carried in the management authorization request to obtain a first character string; and parsing data information from the first character string; If the parsed data information is the data information agreed upon between the software provider and the target object, it is determined that the first device is qualified to use the management service; wherein the target object refers to an object that uses electronic resources to obtain the software toolkit from the software provider; If the parsed data information is not the data information agreed upon between the software provider and the target object, it is determined that the first device is not qualified to use the management service.

13. The method according to claim 11 or 12, characterized in that The generating of authorization credential information includes: Acquire a target character string, where the target character string is generated according to the hardware information of the first device and the data information negotiated between the software provider and the target object; The target character string is signed using a private key to obtain authorization credential information.

14. The method according to claim 13, characterized in that The step of obtaining the target character string includes: Using the authorization request string generated by the first device as the target string; Alternatively, the hardware information of the first device and the data information agreed upon between the software provider and the target object are concatenated in a second concatenation manner to obtain a second character string; and the second character string is encrypted using a second key to obtain a target character string.

15. The method according to claim 11, characterized in that After receiving the management authorization request sent by the first device, the method further includes: Determining the amount of electronic resources actually received by the software provider from a target object, wherein the target object is an object that uses the electronic resources to obtain the software toolkit from the software provider; Determine the deployment quantity of the software toolkit and the electronic resources required to deploy one software toolkit; wherein the deployment quantity is used to indicate that the target object plans to deploy the software development kit in K node devices, where K is a positive integer; Determining the total amount of electronic resources that the target object needs to transfer to the software provider based on the deployment quantity and the electronic resources required to deploy one software toolkit; If the amount of electronic resources actually received is greater than or equal to the total amount of electronic resources, triggering the step of verifying the eligibility of the first device to use the management service according to the management authorization request; If the amount of electronic resources actually received is less than the total amount of electronic resources, the management authorization request is rejected.

16. A software deployment management device, characterized in that: The apparatus is run in a first device, the first device is a device having a management service of a software toolkit built in, and the management service is used to manage the distributed deployment of the software toolkit; wherein the device used by the software provider of the software toolkit is a second device; the apparatus comprises: a sending unit, configured to send a management authorization request to the second device, so as to request the second device to authorize the first device to use the management service to manage the distributed deployment of the software toolkit; wherein the management authorization request is generated according to the hardware information of the first device; a receiving unit, configured to receive authorization credential information returned by the second device, wherein the authorization credential information is generated after the second device verifies, according to the management authorization request, that the first device is qualified to use the management service; A management unit is used to initialize the management service based on the authorization credential information, and after successfully initializing the management service, in response to a registration request sent by any node device that intends to use the software toolkit, call the management service to perform deployment management of the software toolkit on the corresponding node device.

17. A software deployment management device, characterized in that: The apparatus is run in a second device, where the second device is a device used by a software provider of a software toolkit; the apparatus includes: A receiving unit, configured to receive a management authorization request sent by a first device, wherein the first device is a device having a built-in management service of the software toolkit and intending to use the management service to manage the distributed deployment of the software toolkit; wherein the management authorization request is generated according to the hardware information of the first device; and the management authorization request is used to request: the second device to authorize the first device to use the management service to manage the distributed deployment of the software toolkit; a generating unit, configured to verify the eligibility of the first device to use the management service according to the management authorization request; and to generate authorization credential information after verifying that the first device is qualified to use the management service; A return unit is used to return the authorization credential information to the first device, so that the first device initializes the management service based on the authorization credential information, and after successfully initializing the management service, in response to a registration request sent by any node device that wants to use the software toolkit, calls the management service to perform deployment management of the software toolkit on the corresponding node device.

18. A computer device, comprising an input interface, an output interface, a processor and a storage medium, wherein the processor is used to obtain one or more instructions stored in the computer storage medium to execute the method as described in any one of claims 1-10 or 11-15.

19. A computer storage medium storing one or more instructions, wherein the one or more instructions, when executed, execute the method according to any one of claims 1-10 or 11-15.

20. A computer program product, characterized in that The computer program product comprises one or more instructions, and when the one or more instructions are executed by a processor, the method according to any one of claims 1-10 or 11-15 is implemented.

Citation Information

Patent Citations

  • Software content use authorization method

    CN110162936A

  • A method for software use authorization

    CN110855426A

  • Data processing authority verification method and device, electronic equipment and storage medium

    CN111488596A

  • Service authorization method and device, computer equipment and storage medium

    CN111708991A

  • Distributed authorization management method and device based on R tree and storage medium

    CN112968863A