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