Program and device
The agent program handles authentication for AI servers, reducing processing load and enabling efficient updates by determining and executing authentication methods, addressing the inefficiencies in existing AI technology deployment systems.
Patent Information
- Application Number
- PCT/JP2024/006324
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-13
- Filing Date
- 2024-02-21
- Publication Date
- 2024-09-19
AI Technical Summary
Existing AI technology deployment systems require each AI server to handle authentication processing, leading to increased processing load and inefficiencies, especially in offline environments and with frequent security updates.
An agent program determines the authentication method, either offline or online, and executes it, allowing the AI server to activate without needing to handle authentication processing itself, thereby reducing processing load and enabling efficient updates.
This solution eliminates the need for AI servers to manage authentication based on device environments, preventing processing load expansion and enabling efficient authentication and updates by separating authentication responsibilities from the AI server.
Smart Images

Figure JP2024006324_19092024_PF_FP_ABST
Abstract
Description
Programs and Devices
[0001] The present disclosure relates to a program and a device.
[0002] In recent years, technologies using AI (Artificial Intelligence) (e.g., machine learning) (hereinafter referred to as AI technologies or AI functions) have been used in various situations, such as daily life, academia, and business, and there is a demand for an environment in which AI technologies can be used easily and quickly.
[0003] One mechanism for providing AI technology easily and quickly is to package a program that provides the AI technology together with an execution environment into a container, and then distribute and deploy the container to a user device (e.g., an edge device) that runs the program within the container via a container distribution platform implemented on the cloud, for example.
[0004] Hereinafter, the program will also be referred to as an AI server or an AI server program, and the container will also be referred to as an AI server container.
[0005] Deploying refers to placing (expanding) a program or container (a container can also be considered a form of program) and making it available for use. Programs can also be read as software, and deploying can also be read as installing.
[0006] In the above-described system, for example, an AI engineer with AI technology creates an AI server container and stores the AI server container in a container storage unit (e.g., a container distribution server) of a container distribution platform. An (end) user of the AI technology can then use the AI technology by deploying the AI server container from the container storage unit of the container distribution platform to their own user device.
[0007] Incidentally, in order to prevent unauthorized use of programs such as AI servers due to, for example, unauthorized copying, an authentication process (in other words, a process for determining whether or not a program can be used) may be performed when the program is used (or executed) to confirm (or determine or judge) that the program is legitimately permitted for use (licensed).
[0008] For example, Patent Document 1 discloses a technology for performing license management regarding the use of virtual machines.
[0009] JP 2017-58711 A
[0010] Patent Document 1 discloses that a virtual machine inquires of a license management device or server via a network about whether the virtual machine or the software executed by the virtual machine can be used, and the license management device or server determines whether the virtual machine or the software executed by the virtual machine can be used, and transmits the determination result to the virtual machine. Thus, Patent Document 1 discloses that license management is performed by performing the license authentication, which is the series of processes described above, online.
[0011] On the other hand, the end user may use AI technology on a user device installed in an online environment or on a user device installed in an offline environment. Alternatively, the user device on which AI technology is used may be in an online environment or an offline environment depending on the time of use.
[0012] However, in the technology disclosed in Patent Document 1, license authentication must be performed via a network (online), and authentication cannot be performed in an offline environment.
[0013] Regarding authentication in offline environments, it is possible to attempt authentication in offline environments by incorporating authentication processing functionality into the AI server itself. This will be discussed below.
[0014] In recent years, it has become common for multiple AI servers to be implemented in devices, and for the analysis performed by the AI servers to become more sophisticated (for example, integrating behavioral analysis AI and attribute recognition AI for analysis). When multiple AI servers (or AI server containers) are implemented in such a device, it is necessary to incorporate an authentication processing function for each of the multiple AI servers. As a result, such devices may incur a considerable processing load. Therefore, if each of the multiple AI servers has an authentication processing function, the processing load increases, and there is a risk that authentication waits may occur.
[0015] Furthermore, in recent years, with the development of IoT (Internet of Things) technology, such as the advancement of security, the frequency of updates has been increasing, which may lead to issues with updates that were not previously significant. For example, every time a new security update or the like is released, all AI servers (or AI server containers) must be updated, which increases the processing load (the update itself, data communication associated with the update, etc.), potentially making efficient updates impossible.
[0016] Therefore, there is a demand for a technology that can be adapted to the environment in which authentication is performed (online environment or offline environment) without incorporating an authentication processing function into the program itself that is the object of authentication.
[0017] In view of the above, the present disclosure aims to provide a technology that eliminates the need for the program itself to handle authentication processing according to the device environment when authenticating a program when it is launched on a device.
[0018] A program according to one aspect of the present disclosure is a program for causing a device to execute a process including determining an authentication means including an offline authentication means that executes authentication processing of another program different from its own program offline or an online authentication means that executes the authentication processing online, executing the determined authentication means, and starting the other program if the result of the authentication processing by the executed authentication means is successful authentication.
[0019] A device according to one aspect of the present disclosure comprises a processor; a storage device storing a first program that, when executed by the processor, causes the processor to execute a process including determining an authentication means that includes offline authentication means that executes authentication processing of a second program different from its own program offline or online authentication means that executes the authentication processing online, executing the determined authentication means, and, if the result of the authentication processing by the executed authentication means is successful authentication, starting the second program executed by the processor; and the second program.
[0020] According to one aspect of the present disclosure, in authentication when a program is started on a device, it is possible to eliminate the need for the program itself to handle authentication processing according to the device environment.
[0021] FIG. 1 is a block diagram showing an example of a schematic configuration of a program development, distribution, and authentication system according to an embodiment of the present disclosure; FIG. 2 is a block diagram showing an example of a hardware configuration of an edge device according to an embodiment of the present disclosure; FIG. 3 is a block diagram showing an example of a functional configuration of an edge device according to an embodiment of the present disclosure;
[0022] Hereinafter, embodiments of the present disclosure will be described with reference to the drawings. However, the scope of the invention is not limited to the examples shown in the drawings. In the following description, components having the same functions and configurations are designated by the same reference numerals, and their description will be omitted.
[0023] (Embodiment) <Summary of the Present Disclosure> According to one embodiment of the present disclosure, an agent program is provided that determines an authentication means that executes authentication processing (determines whether or not the program to be authenticated or the program to be authenticated), such as an AI server or an AI server container, that is executed on a user device (e.g., edge device 100 shown in FIG. 1 ), executes the determined authentication means, and starts the authentication target program based on the result of the authentication processing by the executed authentication means. Here, the authentication target program and the agent program are separate and distinct programs, and the authentication means includes one or more offline authentication means that execute the authentication processing offline (e.g., authentication that does not go through a network using a USB dongle or the like that stores key information) and one or more online authentication means that execute the authentication processing online (e.g., authentication that goes through a network by, for example, querying license server 200A shown in FIG. 1 ).
[0024] The agent program may be downloaded from a server installed in a cloud environment (e.g., agent program distribution server 200B shown in Figure 1) to a user device and installed thereon, or may be stored on a storage medium and installed on the user device.
[0025] The agent program is stored in a storage device provided in a user device, and when executed by the user device (for example, a processing device or processor of the user device), causes the user device (for example, a processing device or processor of the user device) to execute the following processes: - A process of determining the authentication means, including offline authentication means that executes the authentication process of the program to be authenticated offline and / or online authentication means that executes the authentication process online - A process of executing the determined authentication means - A process of starting the program to be authenticated based on the result of the authentication process by the executed authentication means (if the result of the authentication process is successful authentication)
[0026] In this embodiment, it is assumed that the program to be authenticated is an AI server or an AI server container.
[0027] Such an agent program allows the authentication means to be switched depending on the environment of the user device (whether the user device is in an online environment or an offline environment) during authentication when the authentication target program is launched on the user device, thereby eliminating the need for the authentication target program itself to handle authentication processing depending on the environment of the user device. As a result, it is no longer necessary to build individual authentication-related components into the authentication target program, which makes it possible to prevent or suppress the authentication target program from becoming bloated and to prevent or suppress an increase in the processing load on the user device. Furthermore, even if updates related to the authentication processing are frequently performed, the authentication target program can be efficiently updated by updating the agent program.
[0028] <System Configuration> FIG. 1 is a block diagram showing a schematic configuration example of a program development, distribution, and authentication system according to an embodiment of the present disclosure.
[0029] As shown in FIG. 1 , the program development, distribution, and authentication system 1 includes a user environment 10 , a cloud environment 20 , and an AI engineer environment 30 .
[0030] The user environment 10, the cloud environment 20, and the AI engineer environment 30 are connected to each other via a wired and / or wireless network (not shown), such as a LAN (Local Area Network), the Internet, a VPN (Virtual Private Network), a mobile communication network, or a combination thereof.
[0031] [User Environment] The user environment 10 refers to the environment of a user who uses AI technology, and includes an edge device 100 (e.g., a personal computer (PC), a tablet, etc.) which is an example of a user device. The user can use AI technology by executing an AI server program 100P2 on the edge device 100.
[0032] In response to an input operation by a user of the edge device 100 instructing the edge device 100 to download the agent program 100P1, the edge device 100 downloads the agent program 100P1 from an agent program distribution server 200B in the cloud environment 20 described below.
[0033] The edge device 100 installs the agent program 100P1 in the edge device 100 in response to an input operation by the user of the edge device 100 instructing installation of the agent program 100P1 in the edge device 100. As described above, the agent program 100P1 may be downloaded from the agent program distribution server 200B and installed, or may be stored in a removable storage medium such as a Universal Serial Bus (USB) memory, a Compact Disc Real Only Memory (CD-ROM), or a removable Hard Disk Drive (HDD) and installed.
[0034] In response to an input operation by a user of the edge device 100 instructing the edge device 100 to download an AI server program 100P2, the edge device 100 downloads various AI server programs 100P2 from an AI server program distribution server 200C (described later) in the cloud environment 20. The AI server programs 100P2 may be downloaded in an AI server container (packaged).
[0035] The edge device 100 installs the AI server program 100P2 in the edge device 100 in response to an input operation by the user of the edge device 100 instructing installation of the AI server program 100P2 in the edge device 100. If the AI server program 100P2 is included in an AI server container, the edge device 100 may install the AI server program 100P2 by installing the AI server container. The AI server program 100P2 may be downloaded and installed from the AI server program distribution server 200C, or may be stored and installed on a removable storage medium such as a USB memory, a CD-ROM, or a removable HDD.
[0036] As described above and shown in FIG. 1, an agent program 100P1 and an AI server program 100P2 (or an AI server container) are installed in the edge device 100.
[0037] When the agent program 100P1 starts the AI server program 100P2 (or the AI server container), it determines the authentication means to be executed, which is the online authentication means or the offline authentication means.
[0038] The agent program 100P1 executes the determined authentication means when starting the AI server program 100P2 (or the AI server container).
[0039] The agent program 100P1 starts the AI server program 100P2 (or the AI server container).
[0040] In this way, the agent program 100P1 has a function of determining an authentication means including an offline authentication means that performs the authentication process (determining whether or not it can be used) of the AI server program 100P2 (or AI server container) offline and / or an online authentication means that performs the authentication process online, a function of executing the determined authentication means, and a function of starting the AI server program 100P2 (or AI server container) based on the result of the authentication process by the executed authentication means.
[0041] In this embodiment, the online authentication means refers to authentication means that involves accessing a license server such as the license server 200A in the cloud environment 20 via a network (e.g., the Internet). The edge device 100 (agent program 100P1) inquires of the license server 200A about whether the AI server program 100P2 (or the AI server container) can be used by transmitting user information to the license server 200A via the network. Hereinafter, this inquiry is referred to as an instruction (or request or inquiry) related to the authentication process. Alternatively, the online authentication means may refer to authentication means that involves accessing a license server in an on-premises environment, such as an in-house server. In this case, the edge device 100 (agent program 100P1) inquires of the license server about whether the AI server program 100P2 (or the AI server container) can be used, for example, via an in-house network.
[0042] On the other hand, in this embodiment, the offline authentication means refers to an authentication means that involves accessing an authentication device (for example, the authentication device 105 shown in FIG. 2) that is installed in or connected to the edge device 100.
[0043] [Cloud Environment] The cloud environment 20 includes a program distribution and authentication platform (PF) 200 that distributes an agent program and an AI server program (or an AI server container) to the edge device 100 and determines whether the AI server program (or the AI server container) can be used based on license information of the AI server program (or the AI server container) executed on the edge device 100. The program distribution and authentication PF 200 may perform the above distribution and determination only for the edge devices 100 of registered users.
[0044] The program distribution and authentication PF 200 includes a license server 200A, an agent program distribution server 200B, and an AI server program distribution server 200C. In Fig. 1, the license server 200A, the agent program distribution server 200B, and the AI server program distribution server 200C are shown as separate entities, but two or more of the license server 200A, the agent program distribution server 200B, and the AI server program distribution server 200C may be configured within the same device.
[0045] The license server 200A stores license information. The license information includes identification information (which may be referred to as an identifier, identification number, ID, etc.) and password of a user who is permitted to use the AI server program (or AI server container). The license information may also include an expiration date (validity period) for which use of the AI server program (or AI server container) is permitted and the number of user devices.
[0046] In response to an instruction for authentication processing from the edge device 100 (agent program), the license server 200A determines whether the AI server program (or AI server container) can be used based on the user ID and password transmitted from the edge device 100 (agent program) and the corresponding stored license information (ID and password) (for example, by comparing these pieces of information).The license server 200A then transmits to the edge device 100 (agent program) a determination result that is information indicating that the AI server program (or AI server container) can be used if the ID and password match, or a determination result that is information indicating that the AI server program (or AI server container) cannot be used if the ID and password do not match.
[0047] The agent program distribution server 200B stores an agent program to be distributed to a user device such as the edge device 100. In response to a download request from the edge device 100, the agent program distribution server 200B distributes (transmits) the agent program to the edge device 100. In other words, the agent program is downloaded from the agent program distribution server 200B to the edge device 100.
[0048] The AI server program distribution server 200C receives an AI server program created by, for example, an AI engineer using the development environment device 300 from a development environment device 300 in the AI engineer environment 30 described below. That is, the AI server program is uploaded from the development environment device 300 to the AI server program distribution server 200C. Note that the AI server program may be included in an AI server container created by the AI engineer using the development environment device 300 and uploaded from the development environment device 300 to the AI server program distribution server 200C.
[0049] The AI server program distribution server 200C stores the AI server program that is received from the development environment device 300 and distributed to user devices such as the edge device 100. The AI server program distribution server 200C distributes (transmits) the AI server program to the edge device 100 in response to a download request from the edge device 100.
[0050] The AI server program distribution server 200C may store an AI server container including an AI server program. In this case, the AI server program distribution server 200C may distribute (transmit) the AI server container including the AI server program to the edge device 100 in response to a download request from the edge device 100. In other words, the AI server container including the AI server program may be downloaded from the AI server program distribution server 200C to the edge device 100.
[0051] [AI Engineer Environment] The AI engineer environment 30 refers to an environment for developing an AI server program, and includes a development environment device 300 (for example, a PC, etc.).
[0052] 1 , the development environment device 300 may include an AI Library 300P1 owned by an AI engineer and an AI server Software Development Kit (SDK) 300P2 that can be distributed from a platform (e.g., program distribution / authentication PF 200). Here, the AI Library 300P1 is AI technology owned by the AI engineer, and is assumed to be a collection of programs (e.g., AI algorithm programs) in which highly versatile programs having certain functions are modularized and the modularized programs are combined to be usable by other programs, and the AI server SDK 300P2 is assumed to include tools and / or programs for serverizing the AI algorithm programs.
[0053] Next, the AI server SDK will be described in more detail.
[0054] The AI server SDK enables AI engineers who develop AI technology to easily provide the AI technology to users of the AI technology (e.g., users of the edge device 100).
[0055] By using the AI server SDK, AI engineers can easily create AI server programs.
[0056] In this way, by putting the program in the form of a server that provides AI technology, it becomes possible to separate the program that uses the AI technology from the program that provides the AI technology, which is expected to improve development efficiency. When creating a single application, the program that uses the AI technology, such as the UI, needs to be created together with the program that provides the AI technology.
[0057] The AI server SDK includes a server program and a template. For example, a program related to the process of handling communication is provided by the AI server SDK as one of the server programs. Therefore, an AI engineer can create a program related to the process of connecting this server program with AI technology in accordance with the template.
[0058] FIG. 7 is a diagram illustrating an example of a schematic configuration of the AI server SDK.
[0059] As shown in FIG. 7, the AI server SDK 700 includes an AI Library 701 , a Wrapper 702 , a Server I / F 703 , and a Server Process 704 .
[0060] The AI Library 701 is an AI technology owned by an AI engineer, and is a collection of programs in which highly versatile programs having certain functions are modularized, and the modularized programs are grouped together so that they can be used by other programs.
[0061] The Wrapper 702 serves to connect the AI Library 701 and the Server I / F 703 .
[0062] The Server I / F 703 (also referred to as the AI Server I / F) is a predefined interface (I / F) intended for providing AI technology. Each I / F of the Server I / F 703 is linked to an API (Application Programming Interface) of the AI Library via the Wrapper 702. Table 1 shows an example of the AI Server I / F (Server I / F 703).
[0063]
[0064] The Server Process 704 is a part that realizes the functions of a server, such as receiving requests and sending responses.
[0065] For example, an AI engineer can create an AI server program 300P3 by combining an AI Library 300P1 and an AI server SDK 300P2 on a development environment device 300. For example, the AI engineer can create an AI server program 300P3 that can use AI technology (AI functions) through an AI server I / F.
[0066] Furthermore, an AI engineer can use the AI server SDK 300P2 to create an AI server program that has a communication unit with the above-mentioned agent program, which enables the agent program to communicate with the AI server program and start the AI server program.
[0067] An AI engineer can also use the development environment device 300 to create an AI server container that packages the AI server program 300P3 and an execution environment such as libraries required for the program, as another form of the AI server program 300P3. By using an AI server container instead of an AI server program, the user (e.g., the user of the edge device 100) can execute the AI server program without having to install libraries required for executing the AI server program.
[0068] The development environment device 300 uploads (transmits) the AI server program 300P3 (or AI server container) to the AI server program distribution server in response to an input operation by an AI engineer using the development environment device 300 instructing the development environment device 300 to upload the AI server program 300P3 (or AI server container) to the development environment device 300.
[0069] 2 is a block diagram showing an example of a hardware configuration of an edge device according to an embodiment of the present disclosure. The edge device 100 may be realized by a computing device such as a PC or an information processing device.
[0070] 2 , the edge device 100 may include a storage device 101, a processing device 102, a user interface (UI) device 103, a communication device 104, an authentication device 105, and a bus 106. The storage device 101, the processing device 102, the UI device 103, the communication device 104, and the authentication device 105 may be connected to each other via the bus 106.
[0071] The programs or instructions (e.g., agent program 100P1) that realize the functions and processes described above and below in edge device 100 may be downloaded from some external device (e.g., agent program distribution server 200B) via a network, or may be provided from a removable storage medium such as flash memory (USB memory, etc.), CD-ROM, or removable HDD.
[0072] The storage device 101 is realized by a RAM (Random Access Memory), a flash memory, a HDD, etc., and stores installed programs or instructions as well as files, data, etc. used to execute the programs or instructions. The storage device 101 may also include a non-transitory storage medium.
[0073] The processing device 102 may be realized by one or more CPUs (Central Processing Units), GPUs (Graphics Processing Units), processing circuitry, etc. (processors), which may be composed of one or more processor cores, and performs the functions and processing of the edge device 100 described above and below in accordance with programs or instructions (e.g., agent program 100P1, AI server program 100P2) stored in the storage device 101, data such as parameters used to execute the programs or instructions, etc.
[0074] The UI device 103 may be composed of input devices such as a keyboard, a mouse, a camera, and a microphone, output devices such as a display, a speaker, a headset, and a printer, and input / output devices such as a touch panel, and realizes an interface between a user and the edge device 100. For example, a user operates the edge device 100 by operating a graphical user interface (GUI) displayed on a display or a touch panel using a keyboard, a mouse, or the like.
[0075] The communication device 104 may be realized by various communication circuits that execute communication processes with external devices and communication networks such as the Internet, LAN, and VPN.
[0076] The authentication device 105 is realized by one or more of an authentication device that performs authentication based on a license key input by a user of the edge device 100, a USB dongle that stores license information (key information), etc. Additionally or alternatively, the authentication device 105 may include a near field communication (NFC) card reader, a biometric authentication device (fingerprint authentication device, iris authentication device, etc.), etc.
[0077] The authentication device 105 executes authentication processing in response to instructions relating to authentication processing from the agent program 100P1.
[0078] When an authentication device that performs authentication based on license key input by the user of the edge device 100 is used as the authentication device 105, the edge device 100 (agent program 100P1) determines whether the AI server program 100P2 (or the AI server container) can be used based on (for example, by comparing) the user's ID and password held (stored) as internal information of the agent program 100P1 and the license key (user's ID and password) input by the user via this authentication device. Then, for example, if the ID and password match, the edge device 100 (agent program 100P1) determines that the AI server program 100P2 (or the AI server container) can be used, and if the ID and password do not match, it determines that the AI server program 100P2 (or the AI server container) cannot be used.
[0079] When a USB dongle is used as the authentication device 105, the edge device 100 (agent program 100P1) determines that the AI server program (or AI server container) can be used if it can decrypt the encrypted activation key for the AI server program (or AI server container) stored as internal information of the agent program 100P1 using a key obtained from the USB dongle, and determines that the AI server program (or AI server container) cannot be used if it cannot decrypt the activation key.
[0080] The hardware configuration of the edge device 100 described above is merely an example, and the edge device 100 according to the present disclosure may be realized by any other appropriate hardware configuration.
[0081] In addition, the license server 200A, the agent program distribution server 200B, the AI server program distribution server 200C, and the development environment device 300 can have the same hardware configuration as the edge device 100.
[0082] For example, the storage device of the license server 200A can store license information. Furthermore, for example, the processing device of the license server 200A can determine whether or not an AI server program (or an AI server container) can be used based on a user ID and password received from the edge device 100 via the communication device of the license server 200A and the license information (user ID and password) stored in the storage device. Furthermore, for example, the processing device of the license server 200A can transmit the determination result of whether or not the AI server program (or the AI server container) can be used to the edge device 100 via the communication device of the license server 200A.
[0083] For example, the storage device of the agent program distribution server 200B can store an agent program to be downloaded to the edge device 100. Also, for example, the processing device of the agent program distribution server 200B can receive an instruction to download the agent program from the edge device 100 via the communication device of the agent program distribution server 200B, and transmit the agent program to the edge device 100 in response to the download instruction.
[0084] For example, the storage device of the AI server program distribution server 200C can store an AI server program (or an AI server container) that is transmitted (uploaded) from the development environment device 300 and received via a communication device of the AI server program distribution server 200C. Also, for example, the processing device of the AI server program distribution server 200C can receive a download instruction for the AI server program (or AI server container) from the edge device 100 via the communication device of the AI server program distribution server 200C, and transmit the AI server program (or AI server container) to the edge device 100 in response to the download instruction.
[0085] For example, the storage device of the development environment device 300 can store an AI Library 300P1, an AI server SDK 300P2, and an AI server program 300P3 (or an AI server container). Also, for example, the processing device of the development environment device 300 can transmit the AI server program 300P3 (or the AI server container) to the AI server program distribution server 200C via the communication device of the development environment device 300 in response to an upload instruction for the AI server program 300P3 (or the AI server container) from an AI engineer who uses the development environment device 300.
[0086] FIG. 3 is a block diagram illustrating an example of a functional configuration of an edge device according to an embodiment of the present disclosure.
[0087] 3, the edge device 100 includes an authentication means determination unit 151, an authentication means execution unit 152, a startup unit 153, and an authentication unit 154. For example, as shown in the figure, the authentication means determination unit 151, the authentication means execution unit 152, and the startup unit 153 are realized as functions provided by an agent program 100P1.
[0088] The authentication means determination unit 151 determines (or decides or selects) an authentication means including an offline authentication means that executes the authentication process of the AI server program 100P2 (or the AI server container) offline and / or an online authentication means that executes the authentication process online. For example, the authentication means determination unit 151 may make this determination in response to an input operation by the user of the edge device 100 that instructs the edge device 100 to start the AI server program 100P2 (or the AI server container).
[0089] In this embodiment, one or more authentication means may be present. For example, there may be one offline authentication means, or multiple offline authentication means, or one online authentication means, or multiple online authentication means, or one offline authentication means and one online authentication means, or multiple offline authentication means and one online authentication means, or one offline authentication means and multiple online authentication means, or multiple offline authentication means and multiple online authentication means.
[0090] To determine the authentication means, the authentication means determination unit 151 acquires device information about an authentication apparatus or device for executing authentication processing by online authentication means or offline authentication means (authentication means) when the agent program 100P1 is executed for the first time after being installed. For example, the authentication means determination unit 151 acquires, as device information, identification information (e.g., an Internet Protocol (IP) address, etc.) of the license server 200A held as internal information by the agent program 100P1, identification information of a USB dongle connected to the edge device 100, identification information of an NFC card reader mounted on or connected to the edge device 100, identification information of a biometric authentication device (fingerprint authentication device, iris authentication device, etc.) mounted on or connected to the edge device 100, etc.
[0091] The authentication means determination unit 151 then creates authentication means information based on the acquired device information. The authentication means information includes one or more authentication means and a priority associated with each of the one or more authentication means. If multiple authentication means exist, the authentication means determination unit 151 sets the priorities of the multiple authentication means to be different from one another.
[0092] For example, when the agent program 100P1 is installed, the authentication means determination unit 151 stores the path (installation path) along which the agent program 100P1 is installed in the storage device 101 of the edge device 100 ("save the installation path as internal information"). The installation path can be a path via a network from the program distribution / authentication PF 200 (agent program distribution server 200B) in the cloud environment 20 (online installation), or a path via a storage medium or the like without using a network (offline installation). Thereafter, the authentication means determination unit 151 determines whether the agent program 100P1 was installed online or offline based on the stored installation path when the agent program 100P1 is executed for the first time after installation. The authentication means determination unit 151 then acquires the device information described above and creates authentication means information based on the results of the determination. For example, if the agent program 100P1 is installed online, the authentication means determination unit 151 creates authentication means information in which the highest priority is set (assigned) to the online authentication means using the license server 200A. If similar license servers exist in addition to the license server 200A, the authentication means determination unit 151 randomly sets priorities to each of the online authentication means using the multiple license servers. If one or more offline authentication means using the authentication device 105 exist, the authentication means determination unit 151 creates authentication means information in which a priority lower than any of the priorities set for the online authentication means is randomly set for one or more offline authentication means. Conversely, if the agent program 100P1 is installed offline, the authentication means determination unit 151 creates authentication means information in which the highest priority is set to the offline authentication means using the authentication device 105.If there are multiple authentication devices 105, the authentication means determination unit 151 randomly sets a priority for each of the offline authentication means using the multiple authentication devices 105, and if there are one or more online authentication means using a license server, it creates authentication means information in which a priority lower than any of the priorities set for the offline authentication means is randomly set for one or more online authentication means.
[0093] Furthermore, the authentication means determination unit 151 may update the authentication means information based on the installation path of the AI server program 100P2 (or the AI server container). For example, when installing the AI server program 100P2 (or the AI server container), the authentication means determination unit 151 stores the installation path (installation path) of the AI server program 100P2 (or the AI server container) in the storage device 101 of the edge device 100 via an I / F of the AI server program 100P2 (or the AI server container) (e.g., the I / F of the Server I / F 703 described above) ("save the installation path as internal information"). As with the agent program 100P1, the installation path includes a path from the program distribution / authentication PF 200 (AI server program distribution server 200C) in the cloud environment 20 via a network (online installation) and a path via a storage medium or the like without via a network (offline installation). Thereafter, the authentication means determination unit 151 determines, at the next execution time after the AI server program 100P2 (or the AI server container) is installed, whether the AI server program 100P2 (or the AI server container) was installed online or offline, based on the stored installation path. Then, the authentication means determination unit 151 updates the authentication means information based on the result of the above determination. For example, if the AI server program 100P2 (or the AI server container) was installed online, the authentication means determination unit 151 updates the authentication means information so as to set the highest priority to the online authentication means using the license server 200A. If there are similar license servers other than the license server 200A, the authentication means determination unit 151 randomly sets priorities to each of the online authentication means using the multiple license servers. If there are one or more offline authentication means using the authentication device 105, the authentication means determination unit 151 updates the authentication means information so as to randomly set priorities to one or more offline authentication means lower than any of the priorities set for the online authentication means.Conversely, if the AI server program 100P2 (or AI server container) is installed offline, the authentication means determination unit 151 updates the authentication means information so as to set the highest priority to the offline authentication means using the authentication device 105. If multiple authentication devices 105 exist, the authentication means determination unit 151 randomly sets a priority to each of the offline authentication means using the multiple authentication devices 105, and if one or more online authentication means using a license server exist, updates the authentication means information so as to randomly set a priority to one or more online authentication means that is lower than any of the priorities set for the offline authentication means.
[0094] In addition, the authentication means determination unit 151 may create or update authentication means information so as to set the priority of one or more online authentication means using a license server and / or one or more offline authentication means using the authentication device 105, which are input by the user of the edge device 100, to one or more online authentication means and / or one or more offline authentication means.
[0095] The authentication means determination unit 151 outputs information indicating the determined authentication means (highest priority) to the authentication means execution unit 152. Furthermore, every time the authentication means determination unit 151 receives information indicating authentication failure from the authentication means execution unit 152, it determines the authentication means with the next highest priority and outputs information indicating the determined authentication means to the authentication means execution unit 152. When the authentication means determination unit 151 determines the authentication means with the lowest priority, it outputs to the authentication means execution unit 152 information indicating this authentication means, as well as a message indicating that it has the lowest priority (that there are no other authentication means to be executed).
[0096] When the authentication means execution unit 152 receives the information indicating the authentication means output from the authentication means determination unit 151 , it executes the authentication means determined by the authentication means determination unit 151 .
[0097] For example, if the authentication means determined by the authentication means determination unit 151 is an online authentication means, the authentication means execution unit 152 executes the online authentication means using a corresponding license server (e.g., license server 200A) via the communication device 104.
[0098] Also, for example, if the authentication means determined by the authentication means determination unit 151 is offline authentication means, the authentication means execution unit 152 executes offline authentication means using the corresponding authentication device 105 (authentication unit 154).
[0099] The authentication means execution unit 152 determines the result of the authentication process by the authentication means determined by the authentication means determination unit 151. The result of the authentication process is either a successful authentication (authentication success or simply success) or a failed authentication (authentication failure or simply failure). The result of the authentication process may also be referred to as the execution result of the authentication means.
[0100] For example, if the authentication means determined by the authentication means determination unit 151 is online authentication means, the authentication means execution unit 152 receives, from the license server 200A via the communication device 104, information indicating that use (or execution) of the AI server program 100P2 (or AI server container) is permitted, or information indicating that use (or execution) of the AI server program 100P2 (or AI server container) is not permitted. Information indicating that use (or execution) of the AI server program 100P2 (or AI server container) is permitted may be referred to as information indicating that use of the AI server program 100P2 (or AI server container) is permitted. Information indicating that use (or execution) of the AI server program 100P2 (or AI server container) is not permitted may be referred to as information indicating that use of the AI server program 100P2 (or AI server container) is not permitted. If the authentication means execution unit 152 receives information indicating that use of the AI server program 100P2 (or AI server container) is permitted, it determines that authentication is successful. On the other hand, if the authentication means execution unit 152 receives information indicating that the AI server program 100P2 (or AI server container) is unavailable, it determines that the authentication has failed.
[0101] Also, for example, if the authentication means determined by the authentication means determination unit 151 is an offline authentication means, the authentication means execution unit 152 cooperates with the authentication device 105 as described above to obtain the results of the authentication process.
[0102] If the authentication means execution unit 152 determines that authentication has failed and has not received from the authentication means determination unit 151 that the priority of the authentication means is the lowest priority, it outputs information indicating authentication failure to the authentication means determination unit 151.
[0103] When multiple authentication methods are present, the authentication method execution unit 152 executes the authentication methods in descending order of priority from the multiple authentication methods set by the authentication method determination unit 151. If the authentication process by a particular authentication method fails, the authentication method with the next highest priority is executed, and this process is repeated. For example, the authentication method execution unit 152 first executes online authentication using the license server 200A (highest priority), and if this authentication fails, executes offline authentication using the authentication device 105 (e.g., a USB dongle) (next highest priority). This process is repeated until the authentication process by any of the executed authentication methods is successful, or until the authentication method execution unit 152 has executed all of the authentication methods.
[0104] If the authentication means execution unit 152 is not connected to the network when executing online authentication using a license server, the authentication means execution unit 152 determines that authentication by the authentication means has failed. Also, if the authentication device 105 is not present when executing offline authentication using the authentication device 105 (for example, if the authentication device 105 is not connected to the edge device 100), the authentication means execution unit 152 determines that authentication by the authentication means has failed.
[0105] The authentication means execution unit 152 outputs the result of the determined authentication process (authentication successful if the result of the authentication process by any authentication means is successful; authentication failed if the result of the authentication process by all authentication means is unsuccessful) to the startup unit 153.
[0106] The launch unit 153 launches the AI server program 100P2 (or the AI server container) based on the result of the authentication process by the authentication means executed by the authentication means execution unit 152. For example, as described above, the AI server program 100P2 (or the AI server container) is created using an AI server SDK such as the AI server SDK 300P2 or the AI server SDK 700 so that it communicates with the agent program 100P1 and is launched.
[0107] For example, if the result of the authentication process input from the authentication means execution unit 152 is successful authentication, the startup unit 153 starts the AI server program 100P2 (or AI server container).
[0108] On the other hand, if the result of the authentication process input from the authentication means execution unit 152 is authentication failure, the launch unit 153 records, for example, in a log area provided in the storage device 101 of the edge device 100, a record indicating that the AI server program 100P2 (or the AI server container) has failed to start. Alternatively or additionally, the launch unit 153 may display (e.g., display a pop-up) a message indicating that the AI server program 100P2 (or the AI server container) has failed to start on a display included in the UI device 103 of the edge device 100, or may output the message to a speaker included in the UI device 103 of the edge device 100. This makes it possible to notify the user of the edge device 100 of the failure to start the AI server program 100P2 (or the AI server container).
[0109] The authentication unit 154 is realized by a device for executing authentication processing without going through a network, and is realized by, for example, the authentication device 105 described above.
[0110] In addition, the installation of the agent program 100P1 and the AI server program 100P2 (or the AI server container) may be performed by an installation unit (not shown) provided in the edge device 100.
[0111] As described above, the edge device 100 and the agent program 100P1 can switch authentication means depending on the environment of the edge device 100 (whether the user device is in an online environment or an offline environment) in authentication when the AI server program 100P2 (or the AI server container) is started on the edge device 100, thereby eliminating the need for the AI server program 100P2 (or the AI server container) to handle authentication processing depending on the environment of the edge device 100. As a result, it is no longer necessary to build individual authentication-related components into the AI server program 100P2 (or the AI server container), which prevents or suppresses expansion of the AI server program 100P2 (or the AI server container) and prevents or suppresses an increase in the processing load on the edge device 100. Furthermore, even when updates related to authentication processing are frequently performed, the AI server program 100P2 (or the AI server container) can be efficiently updated by updating the agent program 100P1.
[0112] <Operation of Edge Device> Next, an example of the operation of the edge device 100 will be described with reference to FIGS.
[0113] FIG. 4 is a flowchart illustrating an example of the operation of the edge device 100 (agent program 100P1) according to an embodiment of the present disclosure.
[0114] In step S101, the authentication means determination unit 151 acquires device information relating to the authentication apparatus or device for executing the authentication process when the agent program 100P1 is executed for the first time after being installed, and creates authentication means information.
[0115] In step S102, the authentication means determination unit 151 determines the authentication means to be executed by the authentication means execution unit 152 based on the created authentication means information (device information).
[0116] In step S103, the authentication means execution unit 152 executes the determined authentication means.
[0117] As described above, if multiple authentication methods are available, in step S102, the authentication method determination unit 151 determines the authentication method in descending order of priority, and in step S103, the authentication method execution unit 152 executes the authentication methods in descending order of priority. That is, if multiple authentication methods are available and authentication fails, the authentication method determination unit 151 determines the authentication method with the next highest priority, and the authentication method execution unit 152 executes the authentication method with the next highest priority. For example, the authentication method execution unit 152 first executes online authentication using the license server 200A (highest priority), and if this authentication fails, executes offline authentication using the authentication device 105 (e.g., a USB dongle) (next highest priority). This execution of authentication methods is repeated until the authentication process by any of the executed authentication methods is successful, or until the authentication method execution unit 152 has executed all authentication methods.
[0118] In step S104, the authentication means execution unit 152 determines the execution result of the authentication means (the result of the authentication process by the authentication means).
[0119] If the result of the authentication process is successful (step S104: successful), in step S105, the launch unit 153 launches the AI server program 100P2 (or AI server container).
[0120] On the other hand, if the result of the authentication process is authentication failure (if there are multiple authentication means, the results of all authentication processes are failures) (step S104: failure), in step S106, the startup unit 153 notifies (the user) of the failure to start the AI server program 100P2 (or AI server container) by writing it in a log, displaying it on a display, outputting it to a speaker, etc.
[0121] FIG. 5 is a flowchart illustrating an example of the operation of the edge device 100 according to an embodiment of the present disclosure.
[0122] In step S201, an installation unit (not shown) installs the agent program 100P1 into the edge device 100. When the agent program 100P1 is installed, the authentication means determination unit 151 holds the installation path of the agent program 100P1.
[0123] In step S202, the authentication means determining section 151 determines whether the agent program 100P1 was installed online or offline based on the stored installation path.
[0124] In step S101 (see FIG. 4), the authentication means determination unit 151 acquires device information and creates authentication means information based on the result of the determination in step S202. For example, if the agent program 100P1 is installed online, the authentication means determination unit 151 creates authentication means information in which a high priority is given to the online authentication means using the license server 200A.
[0125] 4 is executed. For example, in subsequent step S102, the authentication means determination unit 151 determines the authentication means to be executed by the authentication means execution unit 152 based on the created authentication means information (installation path).
[0126] FIG. 6 is a flowchart illustrating an example of the operation of the edge device 100 according to an embodiment of the present disclosure.
[0127] In step S301, an installation unit (not shown) installs the AI server program 100P2 (or the AI server container) in the edge device 100. When the AI server program 100P2 (or the AI server container) is installed, the authentication means determination unit 151 retains the installation path through the I / F of the AI server program 100P2 (or the AI server container).
[0128] In step S302, the authentication means determination unit 151 determines whether the AI server program 100P2 (or AI server container) was installed online or offline based on the stored installation path.
[0129] In step S303, the authentication means determination unit 151 updates the authentication means information based on the result of the determination in step S302. For example, if the AI server program 100P2 (or the AI server container) is installed online, the authentication means determination unit 151 updates the authentication means information so as to set a high priority to the online authentication means using the license server 200A.
[0130] 4 is then executed based on the updated authentication information. For example, in step S102, the authentication determination unit 151 determines the authentication method to be executed by the authentication execution unit 152 based on the updated authentication information (installation path).
[0131] <Modification> When multiple AI server programs (or AI server containers) exist, the agent program 100P1 may launch multiple AI server programs (or AI server containers) based on the result of one authentication (online authentication or offline authentication). For example, if the authentication is successful, the agent program 100P1 retains information indicating successful authentication (e.g., as cache information together with information indicating the validity period). Based on this information, the agent program 100P1 may subsequently launch multiple AI server programs (or AI server containers) on the edge device 100 within the validity period without executing any authentication means. Examples of such multiple AI server programs may include an AI server program for human skeleton recognition, an AI server program for attribute recognition, and an AI server program for object recognition.
[0132] In the above description, the authentication means determination unit 151 is described as updating the authentication means information based on the installation path of the AI server program 100P2 (or the AI server container). On the other hand, if the authentication means information has not yet been created, the authentication means determination unit 151 may create the authentication means information based on the acquired device information and the installation path of the AI server program 100P2 (or the AI server container) when the agent program 100P1 is executed for the first time after being installed, similar to the installation path of the agent program 100P1.
[0133] In the above, it has been described that the authentication means determination unit 151 acquires device information and creates authentication means information when the agent program 100P1 is executed for the first time after being installed. However, the authentication means determination unit 151 may acquire device information and create or update authentication means information in response to a change in the configuration of the authentication device 105 or the like (for example, when a USB dongle is connected to the edge device 100, when a USB dongle is removed from the edge device 100, etc.), or periodically.
[0134] In the above, the program to be authenticated is described as an AI server program or an AI server container, but the program to be authenticated is not limited to an AI server program and may be any program.
[0135] The functions provided by the agent program 100P1 may be realized as hardware or by a combination of a program and hardware.
[0136] Two or more of the functional units or processing units of the edge device 100, such as the authentication means determination unit 151 described above, may be integrated into the same functional unit or processing unit, or one functional unit or processing unit may be divided into multiple functional units or processing units. Furthermore, processing performed by a certain functional unit or processing unit may be performed by another functional unit or processing unit as appropriate.
[0137] The order of steps in the flowcharts described above is merely an example, and the order of steps may be changed as appropriate.
[0138] Effect of the Embodiment As described above, the agent program 100P1 is a program for causing the edge device 100 to execute processing including determining an authentication means including offline authentication means that executes authentication processing offline for the AI server program 100P2 (or AI server container) different from the agent program 100P1 and / or online authentication means that executes the authentication processing online, executing the determined authentication means, and starting the AI server program 100P2 (or AI server container) based on the result of the authentication processing by the executed authentication means. This makes it possible to eliminate the need for the AI server program 100P2 (or AI server container) itself to handle authentication processing according to the environment of the edge device 100 during authentication when starting the AI server program 100P2 (or AI server container) on the edge device 100.
[0139] Summary of the embodiment A program according to one aspect of the present disclosure is a program for causing a device to execute processing including determining an authentication means including offline authentication means that executes authentication processing of another program different from its own program offline or online authentication means that executes the authentication processing online, executing the determined authentication means, and starting the other program if the result of the authentication processing by the executed authentication means is successful authentication.
[0140] In this program, the processing further includes obtaining device information regarding a device for performing the authentication processing, and determining the authentication means includes determining the authentication means based on the obtained device information.
[0141] In this program, the device information is obtained when the program is executed for the first time after the program is installed on the device.
[0142] In this program, the processing further includes obtaining a path by which the program is installed on the device, and determining the authentication means includes determining the authentication means based on the determined path.
[0143] In this program, the path is obtained when the program is executed for the first time after the program is installed on the device.
[0144] In this program, the processing further includes obtaining a path by which the other program is installed on the device, and determining the authentication means includes determining the authentication means based on the determined path.
[0145] In the program, obtaining the path is performed the next time the program is run after the other program is installed on the device.
[0146] In this program, there are multiple authentication means, each of which has a different priority set, and the determined authentication means is set to the highest priority among the priorities, and the processing further includes, if the result of the authentication process by the determined authentication means is authentication failure, executing the authentication means among the multiple authentication means that has the next highest priority among the priorities.
[0147] In this program, the execution of the authentication means having the next highest priority among the priorities is repeated until authentication is successful or until all of the plurality of authentication means have been executed.
[0148] In this program, the other program is an AI server program that provides AI (Artificial Intelligence) technology, or an AI server container that packages an AI server program that provides AI technology together with the execution environment of the AI server program.
[0149] In this program, the AI server program or the AI server program is created using a software development kit so as to be launched by this program.
[0150] In this program, there are a plurality of the other programs, and starting the other programs includes starting the plurality of the other programs when the result of one authentication process is successful authentication.
[0151] A device according to one aspect of the present disclosure comprises a processor; a storage device storing a first program that, when executed by the processor, causes the processor to execute a process including determining an authentication means that includes offline authentication means that executes authentication processing of a second program different from its own program offline or online authentication means that executes the authentication processing online, executing the determined authentication means, and, if the result of the authentication processing by the executed authentication means is successful authentication, starting the second program executed by the processor; and the second program.
[0152] As described above, according to one aspect of the present disclosure, in authentication when a program is started on a device, it is possible to eliminate the need for the program itself to handle authentication processing according to the device environment.
[0153] Although the embodiments have been described above with reference to the drawings, the present disclosure is not limited to such examples. It is clear that a person skilled in the art can conceive of various modifications or alterations within the scope of the claims. It is understood that such modifications or alterations also fall within the technical scope of the present disclosure. Furthermore, the components or features in the embodiments (including modifications or alterations) may be combined in any manner without departing from the spirit of the present disclosure.
[0154] The disclosures of the specification, drawings and abstract contained in Japanese Patent Application No. 2023-038392, filed on March 13, 2023, are incorporated herein by reference in their entirety.
[0155] One aspect of the present disclosure is useful for program authentication techniques.
[0156] 1 Program development, distribution, and authentication system 10 User environment 100 Edge device 100P1 Agent program 100P2 AI server program 101 Storage device 102 Processing device 103 User interface (UI) device 104 Communication device 105 Authentication device 151 Authentication means determination unit 152 Authentication means execution unit 153 Startup unit 154 Authentication unit
Claims
1. A program for causing a device to execute a process including: determining an authentication means including an offline authentication means that executes authentication processing of another program different from its own program offline or an online authentication means that executes the authentication processing online; executing the determined authentication means; and starting the other program when the result of the authentication processing by the executed authentication means is successful authentication.
2. The program according to claim 1, wherein the process further includes obtaining device information regarding a device for performing the authentication process, and determining the authentication means includes determining the authentication means based on the obtained device information.
3. The program according to claim 2, wherein obtaining the device information is performed when the program is executed for the first time after the program is installed on the device.
4. The program of claim 1, wherein the process further includes obtaining a path by which the program is installed on the device, and determining the authentication means includes determining the authentication means based on the determined path.
5. The program of claim 4, wherein obtaining the route is performed the first time the program is run after the program is installed on the device.
6. The program of claim 1, wherein the process further includes obtaining a path by which the other program is installed on the device, and determining the authentication means includes determining the authentication means based on the determined path.
7. The program of claim 6, wherein obtaining the route is performed the next time the program is executed after the other program is installed on the device.
8. The program according to claim 1, wherein there are a plurality of said authentication means, each of said plurality of authentication means being set with a different priority, the determined authentication means being set with the highest priority among said priorities, and said processing further includes, when a result of the authentication processing by the determined authentication means is authentication failure, executing an authentication means among said plurality of authentication means which is set with the next highest priority among said priorities.
9. The program according to claim 8, wherein execution of the authentication means having the next highest priority among the priorities is repeated until authentication is successful or until all of the plurality of authentication means have been executed.
10. The program according to claim 1, wherein the other program is an AI server program that provides AI (Artificial Intelligence) technology, or an AI server container that packages an AI server program that provides AI technology together with an execution environment for the AI server program.
11. The program according to claim 10, wherein the AI server program or the AI server program is created using a software development kit so as to be launched by the program.
12. The program according to claim 1, wherein there are a plurality of the other programs, and launching the other programs includes launching a plurality of the other programs when a result of one of the authentication processes is successful authentication.
13. A device comprising: a processor; a first program for causing the processor to execute a process including, when executed by the processor, determining whether an authentication means includes offline authentication means for executing offline authentication processing of a second program different from the processor's own program or online authentication means for executing the authentication processing online; executing the determined authentication means; and, if a result of the authentication processing by the executed authentication means is successful authentication, starting the second program executed by the processor; and a storage device storing the second program.
Citation Information
Patent Citations
Installation support system, installation support device, installation support method, program for supporting installation and recording medium in which the same program is recorded
JP2002318692A
Equipment management system, equipment management device, license authentication method, license authentication program, and recording medium which records the program
JP2010072875A
Information processing device and information processing program
JP2019144995A
IC card, portable electronic apparatus, IC card processing method, and program
JP2020086769A
Printer, method for controlling printer, and program
JP2022116558A
