moved urls from portal urls
[unfold.git] / portal / templates / onelab / onelab_registration_view.html
1 {% extends "layout.html" %}
2
3 {% block content %}        
4
5 <div class="row">
6         <div class="col-md-12">
7         <h1><img src="{{ STATIC_URL }}icons/user-xs.png" alt="User Registration" />User sign-up</h1>
8         </div>
9 </div>
10 <div class="row">
11         <div class="col-md-12">
12                 <p><strong>Questions? <a href="/contact" >Contact us.</a></strong></p>
13   </div>
14 </div>
15 {% if errors %}
16 <div class="row">
17         <div class="col-md-12">
18                 <ul>
19                   {% for error in errors %}
20                   <li style="color:white;">{{ error }}</li>
21                   {% endfor %}
22                 </ul>
23         </div>
24 </div>
25 {% endif %}
26 <div class="row">
27         <div class="col-md-12">
28                         <div class="form-group">
29                                 <form action="/register" class="cmxform form-horizontal" method="post" enctype="multipart/form-data">
30
31                                 {% csrf_token %}
32                                 <label for="authority_hrn" class="control-label">Organization</label>
33                                 <p></p>
34                                 <input id="authority_hrn" name="org_name" class="form-control" style="width:590px" value="{{ organization }}" 
35                                 title="Choose your organization (company/university) from the list that apears when you click in the field and start to type.
36                                  Use the arrow keys to scroll through the list; type part of the name to narrow down the list. We will send an email to 
37                                  the managers that we have on record for your organization, asking them to validate your sign-up request." required />
38                                 <p></p>
39                                 <p>Organization not listed? <a href="/portal/join">Request its addition now.</a></p>
40                         </div>
41         </div>
42 </div>
43
44 <div class="row">
45         <div class="col-md-6">
46         
47             <div class="form-group">
48                         <label for="firstname" class="control-label">Personal information</label>
49                         <p></p>
50                         <input type="text" name="firstname" class="form-control" style="width:350px" minlength="2" value="{{ first_name }}" placeholder="First name" required />
51             </div>
52             <div class="form-group">
53                         <input type="text" name="lastname" size="25" class="form-control" style="width:350px" minlength="2" value="{{ last_name }}" placeholder="Last name" required />
54             </div>
55                 <div class="form-group">
56                 <input type="email" name="email" size="25"  class="form-control" style="width:350px" value="{{ email }}" 
57                         title="Your e-mail address will be your identifier for logging in. We contact you to verify your account and then, occasionally, for important issues."
58                         placeholder="Email" required />
59                 </div>
60         </div>  
61
62         <div class="col-md-6">
63             <div class="form-group">
64               <label for="password" class="control-label">Authentication</label>
65                   <p></p>       
66               <input type="password"  id="password" name="password"   class="form-control" style="width:250px" minlength="4" value="{{ password }}" 
67                         title="Your password allows you to log in to this portal."
68                         placeholder="Password" required />
69             </div>
70             <div class="form-group">
71                         <input type="password"  id="confirmpassword" name="confirmpassword" style="width:250px"  minlength="4" class="form-control" value="" 
72                                 placeholder="Confirm password" required />
73             </div>
74             <div class="form-group">
75                         <select name="question" class="form-control" style="width:350px" id="key-policy" 
76                                 title="Your public/private key pair allows you to access the testbeds." required >        
77                                 <option value="generate">Generate my keys for me (recommended)</option>
78                                 <option value="upload">Upload my public key (advanced users only)</option>
79                         </select>
80             </div>
81             <div class="form-group" style="display:none;" id="upload_key">
82                 <label for="file" class="control-label">Upload public key</label>
83                 <input type="file" name="user_public_key" class="form-control" style="width:200px" id="user_public_key" />
84                 <br />
85                         <div class="alert alert-danger" id="pkey_del_msg">
86                                 In order for the portal to contact testbeds on your behalf, so as to list and reserve resources, you will need to 
87                                 <a href="http://trac.myslice.info/wiki/InstallSfa" target="_blank">delegate your public key to the portal.</a>
88                         </div>
89             </div>
90         </div>
91 </div>
92 <div class="row">
93         <div class="col-md-12">
94                 <div class="form-group">
95                         <p></p>
96                         <input type="checkbox" name="agreement" value="agreement" required />&nbsp;&nbsp; I agree to the 
97                         <a href="#" data-toggle="modal" data-target="#myModal">terms and conditions.</a> 
98                 </div>
99         </div>
100 </div>
101 <div class="row">
102         <div class="col-md-10">
103                 <div class="form-group" id="register">
104                         <span class="glyphicon glyphicon-info-sign"></span> &nbsp;
105                 If you are a <b>PlanetLab Europe</b> user, please fill in this form using the same email address that you
106                  currently use for your PlanetLab Europe account.
107                 Your existing credentials will be used to validate your OneLab account.
108                 Please be sure to specify a different password for your new OneLab account.
109             </div>
110         </div>
111 </div>
112 <div class="row">
113         <div class="col-md-12">
114                 <div class="form-group" id="register">
115                         <p></p> 
116                 <input class="submit btn btn-onelab" type="submit" value="Sign up" />
117                 </form>
118             </div>
119         </div>
120 </div>
121
122         <!-- Modal - columns selector -->
123 <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
124                         <div class="modal-dialog">
125                         <div class="modal-content">
126                                 <div class="modal-header">
127                                         <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
128                                                 <h4 class="modal-title" id="myModalLabel">Terms & Conditions</h4>
129                                 </div>
130                                 <div class="modal-body">
131                                                 <p align="left">
132                                         for OneLab Basic level service
133                                         <br/>
134                                         Version 0.6 of 20 May 2014
135                                                 <br>
136                                                 <a href="/portal/terms" target="_blank">[Printable format]</a>
137                                                 </p>
138                                         <h1 align="left">1 Context</h1>
139                                         <h2 align="left">1.1 OneLab</h2>
140                                         <p align="left">
141                                 OneLab is an experimental facility for testing new ideas and new technologies in the area of computer networking. It consists of a variety of types of
142                                 platforms, including:</p>
143                                         <ul type="disc">
144                                 <li>
145                                 <strong>internet overlay testbeds</strong>
146                                 , testbeds that offer virtual machines distributed across locations in different countries, allowing users to deploy overlays on the internet;
147                                 </li>
148                                 <li>
149                                 <strong>wireless testbeds</strong>
150                                 , testbeds that consist of clusters of computers that are within Wi-Fi communication range of each other, either in an office environment or in an
151                                 isolated setting;
152                                 </li>
153                                 <li>
154                                 <strong>internet of things testbeds</strong>
155                                 , testbeds that consist of embedded computing nodes with sensor capabilities, communicating wirelessly in an isolated environment;
156                                 </li>
157                                 <li>
158                                 <strong>emulation testbeds,</strong>
159                                 computing clusters that offer virtual machines on servers that are interconnected by a high speed switch, enabling large scale network emulation.
160                                 </li>
161                                         </ul>
162                                         <p align="left">
163                                 This list of types of platforms is subject to change, and the current list, along with the identities of the specific platforms of each type, can be found
164                                 on the OneLab website (onelab.eu).</p>
165                                         <p align="left">
166                                 Each platform has its own owners, and OneLab is the grouping of these platforms through a consortium of institutions. The OneLab consortium is coordinated
167                                 by UPMC Sorbonne Universités. It operates on a not-for-profit basis.</p>
168                                         <p align="left">
169                                 Access to OneLab may also provide access to additional platforms that are not part of OneLab, due to a federation agreement between OneLab and the owners
170                                 of those platforms.</p>
171                                         <h2 align="left">1.2 Fee-free Basic level service</h2>
172                                         <p align="left">These terms and conditions define and apply to OneLab's Basic level service, which is available free of charge.</p>
173                                         <p align="left">
174                                 Users who would like additional services are encouraged to contact support@onelab.eu. Some additional services require a written agreement, but are
175                                 otherwise free. Others require the payment of fees or in-kind contributions. (An example of an in-kind contribution is the hosting of a PlanetLab Europe
176                                 server node.)</p>
177                                         <h2 align="left">1.3 Managers and standard users</h2>
178                                         <p align="left">
179                                 There are two classes of OneLab user: the manager and the standard user. OneLab grants access rights to managers, who, in turn, provide access rights to
180                                         standard users. Examples are: for a small enterprise, an executive may be the manager and the employees may be standard users; for a research team, a
181                                 senior scientist (faculty member or research scientist) may be a manager and doctoral students and other members of the team may be standard users; for a
182                                 university course, a professor may be a manager and the students may be standard users.</p>
183                                         <h2 align="left">1.4 These terms and conditions</h2>
184                                         <p align="left">
185                                 Acceptance of these terms and conditions is a condition of obtaining OneLab Basic level user service. They are posted to the OneLab portal site
186                                 (portal.onelab.eu). They may be changed without other notice than the posting of a new version to the portal site.</p>
187                                         <h1 align="left">2 Services provided by OneLab</h1>
188                                         <h2 align="left">2.1 Access to the experimental facility</h2>
189                                         <p align="left">
190                                 OneLab provides users with access to the platforms that make up the experimental facility. Each platform owner determines the specifics of this access (for
191                                 example, how many nodes are available to a user, what happens in case of oversubscription, etc.), with the proviso that Basic level service requires that
192                                         users be able to conduct meaningful experiments on every OneLab testbed.</p>
193                                         <p align="left">
194                                 Basic level service may also provide access to platforms that are federated with OneLab, but such access depends upon the terms of the federation
195                                 agreements with those platforms, which may require that the user have a higher level of service in order to gain access. For example, Basic level service
196                                 provides access to PlanetLab Europe, a OneLab platform, without providing access to PlanetLab Central, a federated platform. Users wanting full access
197                                 across the global PlanetLab system should contact support@onelab.eu to arrange to enter into a PlanetLab Europe membership agreement.</p>
198                                         <p align="left">OneLab's role is to facilitate access to the platforms. Specifically, it provides each user with:</p>
199                                         <ul>
200                                 <li align="left">
201                                 <strong>a single account,</strong>
202                                 the credentials for which can be used to access all of the OneLab testbeds;
203                                 </li>
204                                 <li align="left">
205                                 <strong>tools through which to access the testbeds</strong>
206                                 , including, notably, a web-based portal (portal.onelab.eu) that allows a user to see the resources available on each testbed and to reserve them,
207                                 along with a number of experiment control tools that a user can employ to deploy an experiment on those resources;
208                                 </li>
209                                 <li align="left">
210                                 <strong>support</strong>
211                                 , with documentation on how to use the tools, pointers to documentation for individual testbeds, and a helpdesk to respond to user questions.
212                                 </li>
213                                         </ul>
214 <p align="left">
215     Additional support, such as accompaniment through the design and deployment of experiments and the interpretation of their results, is available through
216     higher levels of service.
217 </p>
218 <h2 align="left">
219     2.2 Best effort, without guarantees
220 </h2>
221 <p align="left">
222     OneLab and the owners of the individual OneLab testbeds do their best to provide the services outlined here, with the understanding that Basic level
223     service offers no guarantees. Users should clearly understand the following limitations.
224 </p>
225 <ul type="disc">
226     <li>
227         <strong>Reliability:</strong>
228         OneLab does not provide any guarantees with respect to the reliability of the portal, of other tools, or of the individual nodes on platforms. These
229         may be taken down for maintenance, rebooted, or reinstalled at any time. Reinstallation implies that disks are wiped, meaning that users should not
230         consider a local disk to be a persistent form of storage.
231     </li>
232     <li>
233         <strong>Fitness:</strong>
234         OneLab does not guarantee that the platforms are suitable for the experiments that users intend to conduct. There may be limitations in the
235         technologies that are offered that prevent certain types of experiments from being carried out.
236     </li>
237     <li>
238         <strong>Privacy</strong>
239         : OneLab does not guarantee the privacy of traffic generated on the platforms (e.g., wireless signals, packets). Unless otherwise specified by an
240         individual platform owner, users should assume that traffic is monitored and logged. Such monitoring may be done intentionally, for example, to allow
241         platform administrators as well as other users to investigate abuse.
242     </li>
243 </ul>
244 <p align="left">
245     Users who seek such guarantees are invited to consider a higher level of service.
246 </p>
247 <h2 align="left">
248     2.3 Limitedliability
249 </h2>
250 <p align="left">
251     In no event shall the partners of the OneLab consortium be liable to any user for any consequential, incidental, punitive, or lost profit damages, or for
252     any damages arising out of loss of use or loss of data, to the extent that such damages arise out of the activities of OneLab consortium partners, or any
253     breach of the present terms and conditions, even if the consortium partner has been advised of the possibility of such damages.
254 </p>
255 <p align="left">
256     Nothing contained in these terms and conditions shall be deemed as creating any rights or liabilities in or for third parties who are not Basic level users
257     of OneLab.
258 </p>
259 <h1 align="left">
260     3 Acceptable use policy
261 </h1>
262 <h2 align="left">
263     3.1 Responsibilities of managers and standard users
264 </h2>
265 <p align="left">
266     OneLab creates and administers accounts for managers and delegates to managers the responsibility for creating and administering accounts for standard
267     users. Both managers and standard users are required to follow OneLab's acceptable use policy. In addition, managers are fully responsible for the
268     activities of the standard users whose accounts they create.
269 </p>
270 <p align="left">
271     A manager is expected to grant user access only an individual with whom he or she has a working relationship. In general, this means an individual who
272     works for the same institution as the manager, or, in the case of higher education and research, an individual who is a student at the university where the
273     manager works. Managers may also grant access to individuals from other institutions, provided that they are collaborating on a common project on OneLab.
274     If there is a doubt, a manager should refer the question to support@onelab.eu.
275 </p>
276 <h2 align="left">
277     3.2 Types of use
278 </h2>
279 <p align="left">
280     OneLab may be used by enterprise, by scientific researchers, and by educators.
281 </p>
282 <p align="left">
283     OneLab may be used for pre-commercial research and development. In keeping with OneLab's not-for-profit status, it may not be used to deploy services that
284     are designed to generate a commercial profit.
285 </p>
286 <p align="left">
287     Not-for-profit use of OneLab to deploy services that are designed to generate revenue requires prior approval through a written agreement, and thus may not
288     be carried out on a Basic level account. Interested users are invited to contact support@onelab.eu.
289 </p>
290 <p align="left">
291     OneLab may be used for scientific research.
292 </p>
293 <p align="left">
294     OneLab may be used to host lab exercises for university courses.
295 </p>
296 <p align="left">
297     Questions about other types of use should be addressed to support@onelab.eu.
298 </p>
299 <h2 align="left">
300     3.3 Applicable laws and regulations
301 </h2>
302 <p align="left">
303     OneLab is managed, and the portal is hosted, in France. Information regarding the countries in which individual testbeds are managed and hosted is
304     available from those testbeds. Users are responsible for being aware of the countries in which their experiments are deployed and for ensuring that their
305     use of OneLab fully conforms to the laws and regulations of those countries, as well as the laws and regulations of the country in which they themselves
306     are present when conducting their experiments.
307 </p>
308 <p align="left">
309     Above and beyond specific national laws, the activities email spamming, phishing through web services, and all types of Internet fraud are prohibited on
310     OneLab.
311 </p>
312 <h2>
313     3.4 Security and accounting mechanisms
314 </h2>
315 <p align="left">
316     Users are expected to respect the security and accounting mechanisms put in place by OneLab, its platforms, and federated platforms. For example, access to
317     PlanetLab Europe is designed to take place through the SSH cryptographically-secured connection protocol, which uses public/private key pair
318     authentication, and so users should not attempt to bypass this mechanism. As another example, OneLab's notion of a "slice" associates a set of resources
319     with the group of users who have reserved those resources, and users should not attempt to obscure the identities of participants in a slice.
320 </p>
321 <p align="left">
322     Hacking attempts against the OneLab portal and testbeds are not permitted. This includes "red team" (hacker test) experiments.
323 </p>
324 <h2>
325     3.5 Sharing of resources
326 </h2>
327 <p align="left">
328     OneLab is intended for ambitious experiments. Large numbers of resources and extended leases on resources may legitimately be granted in order to carry
329     these out. At the same time, OneLab and its testbeds are shared environments, and when there is contention for resources, limits must be imposed.
330 </p>
331 <p align="left">
332     Each OneLab platform sets its own policies for handling resource contention. As a general rule, users are encouraged to design their experiments to use
333     resources efficiently. In particular, spinning/busy-waiting techniques for extended periods of time are strongly discouraged. Some resource contention
334     policies (e.g., PlanetLab Europe's) terminate the jobs that are using the most resources in the case of contention.
335 </p>
336 <h2>
337     3.6 Internet-connected platforms
338 </h2>
339 <p align="left">
340     Some of OneLab's platforms allow experiments to take place on resources that have access to the public internet. These experiments can potentially generate
341     traffic to, and receive traffic from, any host or router in the internet.<a></a><a id="_anchor_1" href="#_msocom_1" name="_msoanchor_1">[LB1]</a>
342 </p>
343 <p align="left">
344     Furthermore, some internet-connected platforms (e.g., PlanetLab Europe) consist of servers that are hosted by a large number of member institutions.
345 </p>
346 <p align="left">
347     The accessibility of internet-connected platforms and the distributed hosting model of some of these platforms imply certain responsibilities on the part
348     of users, as detailed below.
349 </p>
350 <h3>
351     3.6.1 General guidance
352 </h3>
353 <p align="left">
354     A good litmus test when considering whether an experiment is appropriate for such internet-connected platforms is to ask what the network administrator at
355     one's own organisation would say about the experiment running locally. If the experiment disrupts local activity (e.g., uses more than its share of the
356     site's internet bandwidth) or triggers complaints from remote network administrators (e.g., performs systematic port scans), then it is not appropriate for
357     such internet-connected platforms.
358 </p>
359 <p align="left">
360     It is the responsibility of the user and the user's manager to ensure that an application that will run on an internet-connected platform is tested and
361     debugged in a controlled environment, to better understand its behaviour prior to deployment.
362 </p>
363 <h3>
364     3.6.2 Standards of network etiquette
365 </h3>
366 <p align="left">
367     Internet-connected platforms are designed to support experiments that generate unusual traffic, such as network measurements. However, it is expected that
368     all users adhere to widely accepted standards of network etiquette in an effort to minimise complaints from network administrators. Activities that have
369     been interpreted as worm and denial-of-service attacks in the past (and should be avoided) include sending SYN packets to port 80 on random machines,
370     probing random IP addresses, repeatedly pinging routers, overloading bottleneck links with measurement traffic, and probing a single target machine from
371     many nodes.
372 </p>
373 <p align="left">
374     For internet-connected platforms that have a distributed hosting model, each host institution will have its own acceptable use policy. Users should not
375     knowingly violate such local policies. Conflicts between local policies and OneLab's stated goal of supporting research into wide-area networks should be
376     brought to the attention of OneLab administrators at support@onelab.eu.
377 </p>
378 <h3>
379     3.6.3 Specific network usage rules
380 </h3>
381 <p align="left">
382     It is not allowed to use one or more nodes of an internet-connected platform to generate a high number of network flows or flood a site with high traffic
383     to the point of interfering with its normal operation. Use of congestion-controlled flows for large transfers is highly encouraged.
384 </p>
385 <p align="left">
386     It is not allowed to perform systematic or random port or address block scans from an internet-connected platform.
387 </p>
388 <p align="left">
389     For internet-connected platforms that use a distributed hosting model, it is not allowed to spoof or sniff traffic on a hosted server or on the network the
390     server belongs to.
391 </p>
392 <p align="left">
393     Access to a server on a distributed hosting platform may not be used to gain access to other servers or networked equipment that are not part of the
394     testbed.
395 </p>
396 <h2>
397     3.7 Wireless platforms
398 </h2>
399 <p align="left">
400     Wireless-connected platforms give users access to nodes that communicate via Wi-Fi and other wireless technologies. They may be capable of detecting
401     wireless activity in the neighbourhood of those nodes: traffic generated by other users of the platform or by individuals not associated with the platform.
402     In general, much of the traffic will be encrypted, with certain aspects (such as SSIDs) not encrypted, but it is also possible that there will be fully
403     unencrypted traffic. They may also be capable of generating wireless activity that reaches equipment outside of the testbed.
404 </p>
405 <p align="left">
406     Furthermore, some wireless-connected platforms may have built-in limitations to prevent them from generating signals at a strength that exceeds health and
407     safety regulations.
408 </p>
409 <p align="left">
410     These characteristics of wireless-connected platforms imply certain responsibilities on the part of users, as detailed below.
411 </p>
412 <h3>
413     3.7.1 Specific network usage rules
414 </h3>
415 <p align="left">
416     Experimenters may make no attempt to defeat the encryption of encrypted third-party traffic. Furthermore, experimenters must treat with utmost discretion
417     any unencrypted traffic. Limited metadata can be recorded for the bona fide purposes of an experiment, but under no case should third party communications
418     be recorded.
419 </p>
420 <p align="left">
421     No attempt may be made to reverse engineer traffic in order to learn the identities of the parties who have generated the traffic.
422 </p>
423 <p align="left">
424     Wireless-connected platforms may not be used to gain access to any network equipment that is not part of the testbed itself.
425 </p>
426 <p align="left">
427     It is not allowed to perform systematic or random scans of wireless networks that are not part of a wireless-connected platform. Similarly, it is not
428     allowed to spoof or sniff wireless traffic of the institution that hosts a wireless-connected platform or of other networks in the proximity.
429 </p>
430 <p align="left">
431     Care must be taken so that traffic on wireless-connected platforms does not interfere with the normal functioning of network equipment that is not part of
432     the testbed itself.
433 </p>
434 <p align="left">
435     No attempt may be made to defeat the mechanisms that limit signal strength on wireless-connected platforms.
436 </p>
437 <h2>
438     3.8 Handling suspected violations
439 </h2>
440 <p align="left">
441     Suspected violations of the OneLab acceptable use policy should be reported to support@onelab.eu.
442 </p>
443 <p align="left">
444     Upon notification or detection of a possible violation, OneLab management will attempt to understand if a violation has in fact occurred. To do so,
445     management will freely communicate with the users concerned, the operators of the platforms concerned, as well as any third parties that might be involved.
446     An example of a third party is a network operator who detects what they believe to be unauthorized traffic emanating from a OneLab platform.
447 </p>
448 <p align="left">
449     The priority is to resolve any real or apparent violations amicably. However, if OneLab management believes that a violation may have occurred, it can, at
450     its sole discretion, and without prior notice, apply any of the following measures:
451 </p>
452 <ul type="disc">
453     <li>
454         notification of the users of the concerned slice (set of resources);
455     </li>
456     <li>
457         disabling of the concerned slice;
458     </li>
459     <li>
460         disabling an individual user's account;
461     </li>
462     <li>
463         reporting of the user's activity to his/her manager;
464     </li>
465     <li>
466         disabling of the manager's account and all user accounts for which the manager is responsible;
467     </li>
468     <li>
469         disabling of all accounts associated with the user's institution.
470     </li>
471 </ul>
472 <p align="left">
473     In the case of suspected illegal activity, OneLab management might need, without prior notice, to notify the relevant authorities.
474 </p>
475
476                                 </div>
477                                 <div class="modal-footer">
478                                         <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
479                                 </div>
480                         </div>
481                         </div>
482 </div>
483
484     
485 <script>
486 $(document).ready(function(){
487     var availableTags = [
488     {% if authorities %}
489         {% for authority in authorities %}
490             {% if authority.name %}
491                 {value:"{{ authority.name }}",label:"{{authority.name}}"},
492             {% endif %}
493         {% endfor %}    
494     {% else %}
495         {value:"",label:"No authority found !!!"}
496     {% endif %}
497     ];
498         // sorting the list
499         availableTags.sort(function(a,b){
500                 var nameA=a.value.toLowerCase(), nameB=b.value.toLowerCase();
501                 if (nameA < nameB) {
502                 return -1;
503                 }
504                 if (nameA > nameB) {
505                 return 1;
506                 }
507         return 0;
508         }); 
509         // auto-complete the form
510     $( "#authority_hrn" ).autocomplete({
511       source: availableTags,
512       minLength: 0,
513       change: function (event, ui) {
514           if(!ui.item){
515               jQuery("#authority_hrn").val("");
516           }
517       }
518     });
519         $('[title!=""]').qtip();
520         $("form").validate();
521         $("form").submit(function() {
522                 if ($('select option:selected').val() == 'upload') {
523                         if ($('input[name=user_public_key]').val() == '') {
524                                 alert('Please specify the key file to upload');
525                                 return false;
526                         }
527                 }
528         });
529 });
530 </script>
531 {% endblock %}
532