CN110493175A - A kind of information processing method, electronic equipment and storage medium - Google Patents
A kind of information processing method, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN110493175A CN110493175A CN201910586527.XA CN201910586527A CN110493175A CN 110493175 A CN110493175 A CN 110493175A CN 201910586527 A CN201910586527 A CN 201910586527A CN 110493175 A CN110493175 A CN 110493175A
- Authority
- CN
- China
- Prior art keywords
- server
- jupyterhub
- account
- storage resource
- terminal request
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/30—Authentication, i.e. establishing the identity or authorisation of security principals
- G06F21/31—User authentication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/02—Network architectures or network communication protocols for network security for separating internal from external traffic, e.g. firewalls
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/10—Network architectures or network communication protocols for network security for controlling access to devices or network resources
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- General Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Computing Systems (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer And Data Communications (AREA)
- Telephonic Communication Services (AREA)
Abstract
The embodiment of the present application discloses a kind of information processing method, this method comprises: receiving terminal request;Wherein, terminal request carries the first account;Terminal request is sent to the first jupyterhub server corresponding with the first account;The first account is controlled by the first jupyterhub server to access to the first storage resource;Wherein, the first storage resource includes storage resource corresponding with the first account in the second storage resource of the corresponding physical machine of the first jupyterhub server.Embodiments herein also discloses a kind of electronic equipment and storage medium simultaneously.
Description
Technical field
This application involves but be not limited to field of computer technology more particularly to a kind of information processing method, electronic equipment and
Storage medium.
Background technique
An interactive notebook notebook is provided using jupyter in the related technology, so that research staff passes through
WWW (World Wide Web, web) creation and sharing boa Python document;Although however, being simplified using jupyter
Writing for code, but jupyter only supports the research and development of single user to operate, cannot achieve the corresponding object of multiple users
Manage the security isolation between resource.
Apply for content
In order to solve the above technical problems, the embodiment of the present application is intended to provide a kind of information processing method, electronic equipment and deposits
Storage media solves jupyter in the related technology and the research and development of single user is only supported to operate, it is respectively right to cannot achieve multiple users
The problem of security isolation between the physical resource answered, realize the resource-sharing and security isolation between multiple users.
The technical solution of the application is achieved in that
A kind of information processing method, which comprises
Receive terminal request;Wherein, the terminal request carries the first account;
The terminal request is sent to the first jupyterhub server corresponding with first account;
First account is controlled by the first jupyterhub server to access to the first storage resource;Its
In, first storage resource include in the second storage resource of the corresponding physical machine of the first jupyterhub server with
The corresponding storage resource of first account.
Optionally, described to send the terminal request to first jupyterhub corresponding with first account service
Device, comprising:
Lua script is generated by nginx server;
First account is obtained from the terminal request by the lua script;
If including and first account corresponding second in the presets list of the nginx server storage
Jupyterhub server determines that the 2nd jupyterhub server is the first jupyterhub server;
The terminal request is sent to the first jupyterhub server by nginx server.
Optionally, the method also includes:
If in described the presets list not including the 2nd jupyterhub server corresponding with first account, institute is sent
The first account is stated to certificate server;The certificate server with the first jupyterhub server there is signal to connect;
Receive the first jupyterhub server that the certificate server distributes first account.
Optionally, the method also includes:
Described the presets list that certificate server is sent is received by the nginx server;Wherein, described the presets list
Mapping relations between the multiple accounts generated including the certificate server and multiple jupyterhub servers;The certification
Server with the nginx server there is signal to connect.
Optionally, described that first account is controlled to the first storage resource by the first jupyterhub server
It accesses, comprising:
Pass through the first jupyterhub server creation and associated second account of first account;
Corresponding first storage resource of second account is determined from second storage resource;
Determine second account to the operating right of first storage resource;
Second account, which is controlled, by the first jupyterhub server is based on the operating right to described the
One storage resource accesses.
Optionally, described to pass through the first jupyterhub server creation and associated second account of first account
Family, comprising:
First account is verified by the first jupyterhub server;
If verification result allows first account to access the first storage resource, pass through described first
Jupyterhub server creates second account.
It is optionally, described that first account is verified by the first jupyterhub server, comprising:
The presets list that certificate server is sent is received by the first jupyterhub server;Wherein, described pre-
If list includes the mapping relations between multiple accounts that the certificate server generates and multiple jupyterhub servers;Institute
Stating certificate server with the first jupyterhub server there is signal to connect;
First account is verified according to described the presets list by the first jupyterhub server, is obtained
To the verification result.
A kind of electronic equipment, the electronic equipment include: processor, memory and communication bus;
The communication bus is for realizing the communication connection between processor and memory;
The processor is for executing the message handling program stored in memory, to perform the steps of
Receive terminal request;Wherein, the terminal request carries the first account;
The terminal request is sent to the first jupyterhub server corresponding with first account;
First account is controlled by the first jupyterhub server to access to the first storage resource;Its
In, first storage resource include in the second storage resource of the corresponding physical machine of the first jupyterhub server with
The corresponding storage resource of first account.
Optionally, the processor is also used to perform the steps of
Lua script is generated by nginx server;
First account is obtained from the terminal request by the lua script;
If including and first account corresponding second in the presets list of the nginx server storage
Jupyterhub server determines that the 2nd jupyterhub server is the first jupyterhub server;
The terminal request is sent to the first jupyterhub server by nginx server.
A kind of storage medium, the storage medium are stored with one or more program, one or more of programs
Can be executed by one or more processor, with realize as above-mentioned information processing method the step of.
Information processing method, electronic equipment provided by the embodiment of the present application and storage medium receive terminal request;Its
In, terminal request carries the first account;Terminal request is sent to the first jupyterhub server corresponding with the first account;
The first account is controlled by the first jupyterhub server to access to the first storage resource;Wherein, the first storage resource
Storage resource corresponding with the first account in the second storage resource including the corresponding physical machine of the first jupyterhub server;
That is, in the embodiment of the present application, the corresponding associated storage resource of jupyterhub server of different accounts be it is unique,
Therefore, for electronic equipment after receiving terminal request, the first account that can be carried based on terminal request sends terminal request extremely
The corresponding first jupyterhub server of first account, in turn, electronic equipment are controlled by the first jupyterhub server
First account the first storage resource corresponding to the first account accesses;It solves jupyter in the related technology and only supports list
The problem of research and development of a user operate, and cannot achieve the security isolation between the corresponding physical resource of multiple users is realized
Resource-sharing and security isolation between multiple users.
Detailed description of the invention
Fig. 1 is a kind of flow diagram for information processing method that embodiments herein provides;
Fig. 2 is the flow diagram for another information processing method that embodiments herein provides;
Fig. 3 is the topological structure schematic diagram for the electronic equipment that embodiments herein provides;
Fig. 4 is the flow diagram for another information processing method that embodiments herein provides;
Fig. 5 is the network topology structure schematic diagram that embodiments herein provides.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete
Site preparation description.
In the related technology, jupyter official provides jupyterhub branch, and the use of single machine device multi-user may be implemented,
But the program is only limitted to a machine, and needs all cluster machines that will be created that in system if developing long-range starting
Use user, it is not intended to which the cost of creation user is excessive when measuring for large user.In addition, in the related technology, it can also be by jupyter
It is made into container, container service one by one can be packaged out in the machine;But the operation of container inherently needs centainly in the program
Basic resource, container can only provide service and reliability is not strong, and the resource management under container be needed to spend more
Energy go to solve, the cost of the program is not intended as expensive as a result,.
Based on foregoing teachings, embodiments herein provides a kind of information processing method, is applied to electronic equipment, referring to figure
Shown in 1, method includes the following steps:
Step 101 receives terminal request.
Wherein, terminal request carries the first account.
In the embodiment of the present application, the first account is for identifying the corresponding terminal of terminal request.Terminal request is at least used to ask
Seek a certain associated storage resource of jupyterhub server of access.
In practical applications, user sends terminal request to electronic equipment by terminal, and in turn, electronic equipment, which receives, to be come
From in the terminal request of terminal.
Step 102 sends terminal request to the first jupyterhub server corresponding with the first account.
In the embodiment of the present application, there is corresponding relationship between account and jupyterhub server;Illustratively, an account
Family can have corresponding unique jupyterhub server;Alternatively, multiple accounts can correspond to it is same
Jupyterhub server;Alternatively, an account can correspond to multiple jupyterhub servers.
In the embodiment of the present application, after electronic equipment receives terminal request, the first account can be got from terminal request
Family, and then terminal request is sent to the first jupyterhub server corresponding with the first account.
In practical applications, electronic equipment can realize terminal request to terminal request by the intake assembly of electronic equipment
The distribution of corresponding jupyterhub server operates;Here, intake assembly, which at least has, carries out unified distribution to terminal request
The function of processing.
Step 103 accesses to the first storage resource by the first account of the first jupyterhub server control.
Wherein, the first storage resource includes in the second storage resource of the corresponding physical machine of the first jupyterhub server
Storage resource corresponding with the first account.
In the embodiment of the present application, the corresponding associated storage resource of jupyterhub server of different accounts is unique;
That is, no matter be one-to-one corresponding relationship or account between account and jupyterhub server with
It is one-to-many corresponding relationship between jupyterhub server, also or, is more between account and jupyterhub server
To one corresponding relationship, as long as the corresponding jupyterhub server of account has been determined, then, the account is corresponding
The storage resource that jupyterhub server place can access is exactly unique.
In practical applications, terminal request is sent to first jupyterhub corresponding with the first account and taken by electronic equipment
It is engaged in after device, then it is corresponding to the first account unique to control the first account by the first jupyterhub server by this
First storage resource accesses;In this way, realizing the resource security isolation between each account;Meanwhile different accounts may be implemented
The same associated storage resource of jupyterhub server is shared between family.
Information processing method provided by the embodiment of the present application receives terminal request;Wherein, terminal request carries first
Account;Terminal request is sent to the first jupyterhub server corresponding with the first account;It is taken by the first jupyterhub
Business device controls the first account and accesses to the first storage resource;Wherein, the first storage resource takes including the first jupyterhub
Storage resource corresponding with the first account in second storage resource of the corresponding physical machine of business device;That is, the application is implemented
In example, the corresponding associated storage resource of jupyterhub server of different accounts be it is unique, therefore, electronic equipment is receiving
To after terminal request, the first account that can be carried based on terminal request sends terminal request to the first account corresponding first
Jupyterhub server, in turn, electronic equipment control the first account to the first account by the first jupyterhub server
Corresponding first storage resource accesses;Solving jupyter in the related technology only supports the research and development of single user to operate, nothing
Method realizes the problem of security isolation between the corresponding physical resource of multiple users, realizes that the resource between multiple users is total
It enjoys and security isolation.
Based on previous embodiment, embodiments herein provides a kind of information processing method, is applied to electronic equipment, reference
Shown in Fig. 2, method includes the following steps:
Here, network topology structure shown in Figure 3, to electronic equipment 3, terminal involved by the embodiment of the present application
31 and certificate server 32 carry out brief description.Here, user using the first account by the client in terminal to electronics
Equipment 3 sends terminal request.Electronic equipment includes but is not limited to nginx server 33, the first jupyterhub server 34,
Three jupyterhub servers 35 and the 4th jupyterhub server 36;Wherein, nginx server 33 is used for terminal request
Carry out unified distribution processor;At least by the first jupyterhub server 34, the 3rd jupyterhub server 35 and the 4th
Jupyterhub server 36 constitutes jupyterhub server cluster;First jupyterhub server 34, third
Jupyterhub server 35 and the 4th jupyterhub server 36 respectively correspond to the storage resource of different physical machines.
Step 201 receives terminal request.
Wherein, terminal request carries the first account.
Step 202 generates lua script by nginx server.
In the embodiment of the present application, intake assembly includes but is not limited to nginx server;In turn, electronic equipment can pass through
Nginx server receives the terminal request that the client in terminal is sent.
Here, electronic equipment can do lua exploitation on nginx server, generate lua script by nginx server.
Further, electronic equipment can obtain data flow based on lua script, open up buffer area and the data flow write-in that will acquire is above-mentioned
Buffer area.
Step 203 obtains the first account by lua script from terminal request.
In the embodiment of the present application, it may include electricity that electronic equipment obtains the first account by lua script from terminal request
Sub- equipment is from the uniform resource locator (Uniform Resource Locator, URL) of terminal request, cookie, header
The first account is obtained in header or data data.In the embodiment of the present application, hereafter related username is equal to first
Account.
Illustratively, terminal is based on http protocol and sends terminal request to electronic equipment, then, pass through in terminal in user
Client send terminal request in, will appear following several situations according to scene: URL has username, client identification
client_id;There is username in cookie;There is referer in header, can also be taken by splitting refer
username;It also will appear username in required parameter data.
In practical applications, electronic equipment generates lua script by nginx server, and is received by nginx server
After the terminal request that client in terminal is sent, the first account can be obtained from terminal request by lua script.
In the embodiment of the present application, received terminal request is sent to the corresponding jupyterhub of the first account by electronic equipment
Server can be realized by the method in step 204~step 205 or step 206~step 207.
If including corresponding with the first account second in the presets list of step 204, nginx server storage
Jupyterhub server determines that the 2nd jupyterhub server is the first jupyterhub server.
In the embodiment of the present application, the presets list is stored in buffer area described above.It should be noted that the default column
Table can be what electronic equipment was generated by nginx server;Certainly, which can be itself of electronic equipment acquisition
External equipment generate.Here, the presets list that the external equipment of itself that electronic equipment obtains generates, it is possible to reduce
The operand of nginx server promotes the distribution effect of nginx server.Above electronic equipment can be obtained based on lua script
The data flow taken includes the presets list.
In practical applications, after electronic equipment gets the first account, preferential the presets list read in buffer area, if base
The corresponding 2nd jupyterhub server of the first account is found in the presets list, it is determined that the 2nd jupyterhub service
Device is the first jupyterhub server, the i.e. corresponding target jupyterhub server of the first account.
Step 205 sends terminal request to the first jupyterhub server by nginx server.
In the embodiment of the present application, if electronic equipment is based on the presets list and determines the first account corresponding first
Jupyterhub server then sends terminal request to the first jupyterhub server, so that handy by nginx server
Family can access to the first associated storage resource of jupyterhub server based on the first account.
If in step 206, the presets list not including the 2nd jupyterhub server corresponding with the first account, the is sent
One account is to certificate server.
Wherein, certificate server with the first jupyterhub server there is signal to connect.
In the embodiment of the present application, electronic equipment is not if it is determined that include corresponding with the first account second in the presets list
Jupyterhub server then sends the first account to certificate server, and then determines the first account by means of certificate server
Corresponding first jupyterhub server.
It should be noted that it does not include corresponding with the first account second in the presets list that electronic equipment, which determines,
Jupyterhub server, it may be possible to which the update of the presets list of buffer area postpones;Or the real-time update of buffer area is default
It does not include really the 2nd jupyterhub server corresponding with the first account in list.
Step 207 receives the first jupyterhub server that certificate server distributes the first account.
In the embodiment of the present application, electronic equipment determines do not include corresponding with the first account second in the presets list
Jupyterhub server, the first account of transmission to certificate server, and then receive what certificate server distributed the first account
First jupyterhub server.
Here, the first jupyterhub server that certificate server distributes the first account, can be certificate server
The first jupyterhub server that the presets list is distributed by the first account is generated based on itself.
In practical applications, if the corresponding jupyterhub server of the first account is not in the pre- of buffer area real-time update
If in list, illustrating that the first account belongs to and logging in for the first time, the first account carried in terminal request is then transmitted to by electronic equipment
Certificate server, certificate server are completed to authenticate according to the account name and password of the first account, authenticate after passing through according to the first account
Family returns to the corresponding information for being divided jupyterhub server.
Further, in conjunction with preceding method process, information processing method described in the embodiment of the present application can also include with
Lower step: the presets list that certificate server is sent is received by nginx server.
Wherein, the presets list includes between the multiple accounts and multiple jupyterhub servers of certificate server generation
Mapping relations;Certificate server with nginx server there is signal to connect.
In the embodiment of the present application, the presets list that nginx server is sent by means of certificate server is realized to different accounts
Dynamic Separation between family, preventing the storage resource to a certain jupyterhub server to be concentrated use in causes user experience to be paid no attention to
The phenomenon that thinking.
It should be noted that in the present embodiment with the explanation of same steps in other embodiments and identical content, Ke Yican
According to the description in other embodiments, details are not described herein again.
Based on previous embodiment, embodiments herein provides a kind of information processing method, is applied to electronic equipment, reference
Shown in Fig. 4, method includes the following steps:
Step 401 receives terminal request.
Wherein, terminal request carries the first account.
Step 402 sends terminal request to the first jupyterhub server corresponding with the first account.
Step 403 passes through the creation of the first jupyterhub server and associated second account of the first account.
In the embodiment of the present application, the second account is properly termed as operating system account, and the second different accounts corresponds to different
Process, the second different accounts storage resource accessible in the first associated physical machine of jupyterhub server is not
Together.
In the embodiment of the present application, user is using start up integrated of corresponding second account of the first account and that calls deposits
Storing up resource is all in corresponding operating system account extent of competence;The permission between operating system account is utilized in this way, realizing
The isolation in storage resource is accomplished in isolation.
In the embodiment of the present application, the second account is identical as the account name of the first account and password.Electronic equipment passes through first
The creation of jupyterhub server calls system command and associated second account of the first account.
In the embodiment of the present application, step 403 passes through the creation of the first jupyterhub server and the first account associated the
Two accounts, comprising:
Step 403a, the first account is verified by the first jupyterhub server.
In the embodiment of the present application, step 403a verifies the first account by the first jupyterhub server, packet
It includes:
The first step receives the presets list that certificate server is sent by the first jupyterhub server;Wherein, it presets
List includes the mapping relations between multiple accounts that certificate server generates and multiple jupyterhub servers.
Wherein, certificate server with the first jupyterhub server there is signal to connect.
Second step verifies the first account according to the presets list by the first jupyterhub server, is tested
Demonstrate,prove result.
It should be noted that the first account that electronic equipment receives the first jupyterhub server of electronic equipment
It is verified, can prevent the first account may during storage resource associated using the first jupyterhub server
Existing malicious attack improves the safety that storage resource uses, improves the stability of electronic equipment.
If step 403b, verification result allows the first account to access the first storage resource, pass through first
Jupyterhub server creates the second account.
Step 404 determines corresponding first storage resource of the second account from the second storage resource.
Step 405 determines the second account to the operating right of the first storage resource.
In the embodiment of the present application, operating right includes but is not limited to that additions and deletions are looked into and changed.
Step 406 controls the second account by the first jupyterhub server based on operating right to the first storage money
Source accesses.
In the embodiment of the present application, electronic equipment determine the second account in the case where the operating right of the first storage resource,
It controls the second account by the first jupyterhub server to access to the first storage resource based on operating right, it is ensured that no
Different associated second accounts of the first account is utilized with user, is accessed to unique storage resource, each user is corresponding
Storage resource between it is mutually isolated, it is ensured that the safety of operation.
As shown in the above, electronic equipment provided by the embodiment of the present invention, the addition dynamic point before jupyterhub
The storage resource in the associated physical machine of reasonable distribution jupyterhub is realized from device, and interface authentication is added at jupyterhub
With the function of automatically creating system account;Realize the High Availabitity of electronic equipment, stronger stability;Without spend a large amount of research and development at
This, and meet large-scale consumer amount.
It should be noted that in the present embodiment with the explanation of same steps in other embodiments and identical content, Ke Yican
According to the description in other embodiments, details are not described herein again.
Based on previous embodiment, embodiments herein provides a kind of electronic equipment, which can be applied to figure
1, in a kind of information processing method that 2,4 corresponding embodiments provide, referring to Figure 5, which includes: processor
51, memory 52 and communication bus 53, electronic equipment 5 are corresponding with the electronic equipment 3 in Fig. 3, in which:
Communication bus 53 is for realizing the communication connection between processor 51 and memory 52.
Processor 51 is for executing the message handling program stored in memory 52, to perform the steps of
Receive terminal request;Wherein, terminal request carries the first account;
Terminal request is sent to the first jupyterhub server corresponding with the first account;
The first account is controlled by the first jupyterhub server to access to the first storage resource;Wherein, first
Storage resource includes corresponding with the first account in the second storage resource of the corresponding physical machine of the first jupyterhub server
Storage resource.
In the other embodiments of the application, processor 51 is used to execute the message handling program stored in memory 52,
To perform the steps of
Lua script is generated by nginx server;
The first account is obtained from terminal request by lua script;
If in the presets list of nginx server storage including the 2nd jupyterhub service corresponding with the first account
Device determines that the 2nd jupyterhub server is the first jupyterhub server;
Terminal request is sent to the first jupyterhub server by nginx server.
In the other embodiments of the application, processor 51 is used to execute the message handling program stored in memory 52,
To perform the steps of
If in the presets list not including the 2nd jupyterhub server corresponding with the first account, the first account is sent extremely
Certificate server;Certificate server with the first jupyterhub server there is signal to connect;
Receive the first jupyterhub server that certificate server distributes the first account.
In the other embodiments of the application, processor 51 is used to execute the message handling program stored in memory 52,
To perform the steps of
The presets list that certificate server is sent is received by nginx server;Wherein, the presets list includes authentication service
Mapping relations between multiple accounts that device generates and multiple jupyterhub servers;Certificate server and nginx server
It is connected with signal.
In the other embodiments of the application, processor 51 is used to execute the message handling program stored in memory 52,
To perform the steps of
Pass through the creation of the first jupyterhub server and associated second account of the first account;
Corresponding first storage resource of the second account is determined from the second storage resource;
Determine the second account to the operating right of the first storage resource;
The second account is controlled by the first jupyterhub server to visit the first storage resource based on operating right
It asks.
In the other embodiments of the application, processor 51 is used to execute the message handling program stored in memory 52,
To perform the steps of
The first account is verified by the first jupyterhub server;
If verification result allows the first account to access the first storage resource, pass through the first jupyterhub server
Create the second account.
In the other embodiments of the application, processor 51 is used to execute the message handling program stored in memory 52,
To perform the steps of
The presets list that certificate server is sent is received by the first jupyterhub server;Wherein, the presets list packet
Include the mapping relations between the multiple accounts and multiple jupyterhub servers of certificate server generation;Certificate server and
One jupyterhub server is connected with signal;
The first account is verified according to the presets list by the first jupyterhub server, is verified result.
It should be noted that in the present embodiment step performed by processor specific implementation process, be referred to Fig. 1,
2, the realization process in the information processing method that 4 corresponding embodiments provide, details are not described herein again.
Based on previous embodiment, embodiments herein provides a kind of computer readable storage medium, this is computer-readable
Storage medium is stored with one or more program, which can be executed by one or more processor,
To realize following steps:
Receive terminal request;Wherein, terminal request carries the first account;
Terminal request is sent to the first jupyterhub server corresponding with the first account;
The first account is controlled by the first jupyterhub server to access to the first storage resource;Wherein, first
Storage resource includes corresponding with the first account in the second storage resource of the corresponding physical machine of the first jupyterhub server
Storage resource.
In the other embodiments of the application, which can be executed by one or more processor,
It can also perform the steps of
Lua script is generated by nginx server;
The first account is obtained from terminal request by lua script;
If in the presets list of nginx server storage including the 2nd jupyterhub service corresponding with the first account
Device determines that the 2nd jupyterhub server is the first jupyterhub server;
Terminal request is sent to the first jupyterhub server by nginx server.
In the other embodiments of the application, which can be executed by one or more processor,
It can also perform the steps of
If in the presets list not including the 2nd jupyterhub server corresponding with the first account, the first account is sent extremely
Certificate server;Certificate server with the first jupyterhub server there is signal to connect;
Receive the first jupyterhub server that certificate server distributes the first account.
In the other embodiments of the application, which can be executed by one or more processor,
It can also perform the steps of
The presets list that certificate server is sent is received by nginx server;Wherein, the presets list includes authentication service
Mapping relations between multiple accounts that device generates and multiple jupyterhub servers;Certificate server and nginx server
It is connected with signal.
In the other embodiments of the application, which can be executed by one or more processor,
It can also perform the steps of
Pass through the creation of the first jupyterhub server and associated second account of the first account;
Corresponding first storage resource of the second account is determined from the second storage resource;
Determine the second account to the operating right of the first storage resource;
The second account is controlled by the first jupyterhub server to visit the first storage resource based on operating right
It asks.
In the other embodiments of the application, which can be executed by one or more processor,
It can also perform the steps of
The first account is verified by the first jupyterhub server;
If verification result allows the first account to access the first storage resource, pass through the first jupyterhub server
Create the second account.
In the other embodiments of the application, which can be executed by one or more processor,
It can also perform the steps of
The presets list that certificate server is sent is received by the first jupyterhub server;Wherein, the presets list packet
Include the mapping relations between the multiple accounts and multiple jupyterhub servers of certificate server generation;Certificate server and
One jupyterhub server is connected with signal;
The first account is verified according to the presets list by the first jupyterhub server, is verified result.
It should be noted that in the present embodiment step performed by processor specific implementation process, be referred to Fig. 1,
2, the realization process in the information processing method that 4 corresponding embodiments provide, details are not described herein again.
It should be understood by those skilled in the art that, embodiments herein can provide as method, system or computer program
Product.Therefore, the shape of hardware embodiment, software implementation or embodiment combining software and hardware aspects can be used in the application
Formula.Moreover, the application, which can be used, can use storage in the computer that one or more wherein includes computer usable program code
The form for the computer program product implemented on medium (including but not limited to magnetic disk storage and optical memory etc.).
The application is referring to method, the process of equipment (system) and computer program product according to the embodiment of the present application
Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
The above, the only preferred embodiment of the application, are not intended to limit the protection scope of the application.
Claims (10)
1. a kind of information processing method, which comprises
Receive terminal request;Wherein, the terminal request carries the first account;
The terminal request is sent to the first jupyterhub server corresponding with first account;
First account is controlled by the first jupyterhub server to access to the first storage resource;Wherein,
First storage resource include in the second storage resource of the corresponding physical machine of the first jupyterhub server with institute
State the corresponding storage resource of the first account.
2. the method according to claim 1, wherein it is described send the terminal request to first account
Corresponding first jupyterhub server, comprising:
Lua script is generated by nginx server;
First account is obtained from the terminal request by the lua script;
If in the presets list of the nginx server storage including the 2nd jupyterhub clothes corresponding with first account
Business device determines that the 2nd jupyterhub server is the first jupyterhub server;
The terminal request is sent to the first jupyterhub server by nginx server.
3. according to the method described in claim 2, it is characterized in that, the method also includes:
If in described the presets list not including the 2nd jupyterhub server corresponding with first account, described the is sent
One account is to certificate server;The certificate server with the first jupyterhub server there is signal to connect;
Receive the first jupyterhub server that the certificate server distributes first account.
4. according to the method described in claim 2, it is characterized in that, the method also includes:
Described the presets list that certificate server is sent is received by the nginx server;Wherein, described the presets list includes
Mapping relations between multiple accounts that the certificate server generates and multiple jupyterhub servers;The authentication service
Device with the nginx server there is signal to connect.
5. the method according to claim 1, wherein described controlled by the first jupyterhub server
First account accesses to the first storage resource, comprising:
Pass through the first jupyterhub server creation and associated second account of first account;
Corresponding first storage resource of second account is determined from second storage resource;
Determine second account to the operating right of first storage resource;
Second account is controlled by the first jupyterhub server to deposit based on the operating right to described first
Storage resource accesses.
6. according to the method described in claim 5, it is characterized in that, described created by the first jupyterhub server
With associated second account of first account, comprising:
First account is verified by the first jupyterhub server;
If verification result allows first account to access the first storage resource, taken by the first jupyterhub
Business device creates second account.
7. according to the method described in claim 6, it is characterized in that, it is described by the first jupyterhub server to institute
The first account is stated to be verified, comprising:
The presets list that certificate server is sent is received by the first jupyterhub server;Wherein, the default column
Table includes the mapping relations between multiple accounts that the certificate server generates and multiple jupyterhub servers;It is described to recognize
Card server with the first jupyterhub server there is signal to connect;
First account is verified according to described the presets list by the first jupyterhub server, obtains institute
State verification result.
8. a kind of electronic equipment, which is characterized in that the electronic equipment includes: processor, memory and communication bus;
The communication bus is for realizing the communication connection between processor and memory;
The processor is for executing the message handling program stored in memory, to perform the steps of
Receive terminal request;Wherein, the terminal request carries the first account;
The terminal request is sent to the first jupyterhub server corresponding with first account;
First account is controlled by the first jupyterhub server to access to the first storage resource;Wherein,
First storage resource include in the second storage resource of the corresponding physical machine of the first jupyterhub server with institute
State the corresponding storage resource of the first account.
9. electronic equipment according to claim 8, which is characterized in that the processor is also used to perform the steps of
Lua script is generated by nginx server;
First account is obtained from the terminal request by the lua script;
If in the presets list of the nginx server storage including the 2nd jupyterhub clothes corresponding with first account
Business device determines that the 2nd jupyterhub server is the first jupyterhub server;
The terminal request is sent to the first jupyterhub server by nginx server.
10. a kind of storage medium, which is characterized in that the storage medium is stored with one or more program, it is one or
The multiple programs of person can be executed by one or more processor, to realize at the information as described in any one of claims 1 to 7
The step of method of reason.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910586527.XA CN110493175B (en) | 2019-07-01 | 2019-07-01 | Information processing method, electronic equipment and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910586527.XA CN110493175B (en) | 2019-07-01 | 2019-07-01 | Information processing method, electronic equipment and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN110493175A true CN110493175A (en) | 2019-11-22 |
| CN110493175B CN110493175B (en) | 2020-09-25 |
Family
ID=68546415
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201910586527.XA Active CN110493175B (en) | 2019-07-01 | 2019-07-01 | Information processing method, electronic equipment and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN110493175B (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112256399A (en) * | 2020-10-28 | 2021-01-22 | 四川长虹电器股份有限公司 | Docker-based Jupyter Lab multi-user remote development method and system |
| CN112988165A (en) * | 2021-04-15 | 2021-06-18 | 成都新希望金融信息有限公司 | Kubernetes-based interactive modeling method and device, electronic equipment and storage medium |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104838630A (en) * | 2012-10-10 | 2015-08-12 | 思杰系统有限公司 | Policy-based application management |
| CN105122237A (en) * | 2013-02-27 | 2015-12-02 | 奎克西公司 | Sharing application states |
| CN105808240A (en) * | 2016-03-01 | 2016-07-27 | 北京量邦信息科技股份有限公司 | Method for realizing user isolation under online programming environment |
| CN109067866A (en) * | 2018-07-27 | 2018-12-21 | 北京金山云网络技术有限公司 | A kind of resource share method, device, electronic equipment and storage medium |
| US20190045008A1 (en) * | 2017-08-02 | 2019-02-07 | DataCoral, Inc. | Systems and methods for generating, deploying, and managing data infrastructure stacks |
-
2019
- 2019-07-01 CN CN201910586527.XA patent/CN110493175B/en active Active
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104838630A (en) * | 2012-10-10 | 2015-08-12 | 思杰系统有限公司 | Policy-based application management |
| CN105122237A (en) * | 2013-02-27 | 2015-12-02 | 奎克西公司 | Sharing application states |
| CN105808240A (en) * | 2016-03-01 | 2016-07-27 | 北京量邦信息科技股份有限公司 | Method for realizing user isolation under online programming environment |
| US20190045008A1 (en) * | 2017-08-02 | 2019-02-07 | DataCoral, Inc. | Systems and methods for generating, deploying, and managing data infrastructure stacks |
| CN109067866A (en) * | 2018-07-27 | 2018-12-21 | 北京金山云网络技术有限公司 | A kind of resource share method, device, electronic equipment and storage medium |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112256399A (en) * | 2020-10-28 | 2021-01-22 | 四川长虹电器股份有限公司 | Docker-based Jupyter Lab multi-user remote development method and system |
| CN112256399B (en) * | 2020-10-28 | 2022-08-19 | 四川长虹电器股份有限公司 | Docker-based Jupitter Lab multi-user remote development method and system |
| CN112988165A (en) * | 2021-04-15 | 2021-06-18 | 成都新希望金融信息有限公司 | Kubernetes-based interactive modeling method and device, electronic equipment and storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN110493175B (en) | 2020-09-25 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN104871172B (en) | Equipment for connection allocates framework | |
| CN103618752B (en) | A kind of virtual machine remote desktop safety accesses system and method | |
| CN103051631B (en) | Unified security authentication method for PaaS platform and SaaS application system | |
| CN109768965B (en) | Login method, equipment and storage medium of server | |
| CN105554098B (en) | A kind of equipment configuration method, server and system | |
| CN107948201A (en) | The purview certification method and system in Docker mirror images warehouse | |
| CN107995215A (en) | Control method, device and the cloud platform server of smart home device | |
| TWI735429B (en) | Authentication method, device, system and electronic equipment for client login server end | |
| EP4120109A1 (en) | Cluster access method and apparatus, electronic device, and medium | |
| KR102080156B1 (en) | Auto Recharge System, Method and Server | |
| US20150149530A1 (en) | Redirecting Access Requests to an Authorized Server System for a Cloud Service | |
| CN110096847B (en) | User-specific application activation for remote sessions | |
| CN101410803A (en) | Methods and systems for providing access to a computing environment | |
| CN104809369B (en) | Packet sets method, client, server and the system of equipment access rights | |
| JP2017513151A (en) | Private cloud connection device cluster architecture | |
| CN107800781A (en) | A kind of configuration data processing method and device | |
| CN105338016B (en) | Data high-speed caching method and device and resource request response method and device | |
| JP2014534515A (en) | User permission methods, systems, clients and servers | |
| CN110493175A (en) | A kind of information processing method, electronic equipment and storage medium | |
| JP5589034B2 (en) | Information distribution system, authentication linkage method, apparatus, and program thereof | |
| CN107734046A (en) | Method, service end, client and the system of remote operation database | |
| CN110536118A (en) | A kind of data capture method, device and computer storage medium | |
| CN104866282B (en) | A kind of method and electronic equipment of control electronics | |
| US7506162B1 (en) | Methods for more flexible SAML session | |
| CN105763532B (en) | A kind of method and device logging in virtual desktop |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |