1. 06 Nov, 2013 1 commit
  2. 24 Sep, 2012 1 commit
    • Eric Eide's avatar
      Replace license symbols with {{{ }}}-enclosed license blocks. · 6df609a9
      Eric Eide authored
      This commit is intended to makes the license status of Emulab and
      ProtoGENI source files more clear.  It replaces license symbols like
      "EMULAB-COPYRIGHT" and "GENIPUBLIC-COPYRIGHT" with {{{ }}}-delimited
      blocks that contain actual license statements.
      
      This change was driven by the fact that today, most people acquire and
      track Emulab and ProtoGENI sources via git.
      
      Before the Emulab source code was kept in git, the Flux Research Group
      at the University of Utah would roll distributions by making tar
      files.  As part of that process, the Flux Group would replace the
      license symbols in the source files with actual license statements.
      
      When the Flux Group moved to git, people outside of the group started
      to see the source files with the "unexpanded" symbols.  This meant
      that people acquired source files without actual license statements in
      them.  All the relevant files had Utah *copyright* statements in them,
      but without the expanded *license* statements, the licensing status of
      the source files was unclear.
      
      This commit is intended to clear up that confusion.
      
      Most Utah-copyrighted files in the Emulab source tree are distributed
      under the terms of the Affero GNU General Public License, version 3
      (AGPLv3).
      
      Most Utah-copyrighted files related to ProtoGENI are distributed under
      the terms of the GENI Public License, which is a BSD-like open-source
      license.
      
      Some Utah-copyrighted files in the Emulab source tree are distributed
      under the terms of the GNU Lesser General Public License, version 2.1
      (LGPL).
      6df609a9
  3. 22 Jun, 2010 1 commit
  4. 22 Feb, 2007 1 commit
  5. 12 Feb, 2007 1 commit
    • Leigh Stoller's avatar
      * Replace the argument processing code in all pages. Currently we rely on · 48acc8e3
      Leigh Stoller authored
        register_globals=1 to turn POST/GET/COOKIES arguments in local variables.
        This is known to be a terrible security risk, and we keep saying we are
        going to fix it, and now I am. In order to accomplish this on a
        transitional basis (since I don't want the entire web interface to stop
        working while I debug it), and because the code just needs the cleanup, I
        am doing it like this: Each page will sport new declarations at the top:
      
      	RequiredPageArguments("experiment", PAGEARG_EXPERIMENT,
                                    "template",   PAGEARG_TEMPLATE,
                                    "instance",   PAGEARG_INSTANCE,
                                    "metadata",   PAGEARG_METADATA,
                                    "osinfo",     PAGEARG_OSINFO,
                                    "image",      PAGEARG_IMAGE,
                                    "project",    PAGEARG_PROJECT,
                                    "group",      PAGEARG_GROUP,
                                    "user",       PAGEARG_USER,
      			      "node",       PAGEARG_NODE,
      			      "yesno",      PAGEARG_BOOLEAN,
      			      "message",    PAGEARG_STRING,
      			      "age",        PAGEARG_INTEGER,
                                    "cost",       PAGEARG_NUMERIC,
                                    "formfields", PAGEARG_ARRAY,
                                    "unknown",    PAGEARG_ANYTHING);
      
      	OptionalPageArguments("canceled", PAGEARG_BOOLEAN);
      
        The first token in each pair is the name of the global variable to
        set, and the second token is the type. So, for "experiment" we look at
        the URL for a pid/eid or exptidx, etc, sanity check them (safe for a
        DB query), and then try to find that experiment in the DB. If it maps
        to an experiment, set global variable $experiment to the object. Since
        its a required argument, produce an error if not supplied. Similar
        treatment for optional arguments, with the obvious difference.
      
        The goal is to have ALL argument processing in one place, consistent,
        and correct. I've found numerous places where we leak unchecked
        arguments into queries. It also cuts out a lot of duplicated code.
      
      * To make the above easier to deal with, I've been replacing lots of
        hardcoded URLS in the code of the form:
      
      	foo.php3?pid=$pid&eid=$eid ...
      
        with
      
              CreateURL("foo", $experiment)
      
        which creates and returns the neccessary url string, by looking at
        the type of its arguments (experiment, template, instance, etc.)
      
        Eventually plan to replace them all so that URL handling throughout
        the code is all defined in one place (all the new URL code is in
        url_defs.php).
      
      * I have cranked up error reporting to tell me anytime a variable is
        used before it is initialized, plus a bunch of other stuff that PHP
        deems improper. Think of it like -Wall ... and boy we get a lot of
        warnings.  A very large percentage of the diffs are to fix all these
        warnings.
      
        The warnings are currently going to /usr/testbed/log/php-errors.log,
        and I'll be adding a script to capture them each night and mail them
        to tbops. This file also gets errors (this will be a change for
        developers; rather then seeing errors and warnings dumped in the
        middle of web pages, they will go to this file instead).
      
      * Major refactoring of the code. More objects (nodes, images, osids).
        Moving tons of queries into the objects in the hopes of someday
        getting to a point where we can split the web interface onto a
        different server.  Lots of general cleanup.
      48acc8e3
  6. 13 Apr, 2006 1 commit
  7. 11 Apr, 2006 2 commits
  8. 25 Jan, 2006 1 commit
  9. 16 Jun, 2004 1 commit
  10. 15 Jun, 2004 2 commits
  11. 07 Aug, 2003 2 commits
  12. 28 Jul, 2003 1 commit
  13. 23 Jun, 2003 1 commit
  14. 19 Jun, 2003 1 commit
  15. 05 Jun, 2003 2 commits
  16. 22 Apr, 2003 1 commit
    • Leigh Stoller's avatar
      Switch from MD5 verification of all files (fdisk, slice images, · 998da1de
      Leigh Stoller authored
      tarballs) to proper digital signatures. Also includes the downloaded
      netbed-setup.pl script. The new version is incompatible with older
      versions of the CD, so check the CD version to see what script path to
      return, and whether to give it an MD5 or a digital signature pointer.
      
      Add version 4 installation instructions, for new CD that Dave is going
      to be playing with.
      998da1de
  17. 08 Apr, 2003 1 commit
  18. 14 Nov, 2002 1 commit
  19. 12 Nov, 2002 1 commit
  20. 05 Nov, 2002 1 commit
  21. 04 Nov, 2002 1 commit
  22. 29 Oct, 2002 1 commit
  23. 22 Oct, 2002 1 commit
    • Leigh Stoller's avatar
      Several changes: · 05d1aa0e
      Leigh Stoller authored
      * Nodes report their local hostname in the URL. Optional of course.
        Stick that in as the nickname so its easier to see where a wa/ron
        node actually is.
      
      * As of version 3, the CDROM no downloads the entire register.pl
        script. The old script is just a wrapper that asks the page for the
        real script, which is run on the node. We return a url and md5 in
        the response, which the node then gets with wget. Right now the md5
        and the url are hardwired in the page, and the script goes in
        /z/testbed/distributions on boss. Needs to be DB loaded instead.
      
      * Return the slice in which we want to place the extrafs (/users)
        instead of trying to guess one. Since we return an fdisk table and a
        set of slices, we know what the setup is going to be anyway!
      05d1aa0e
  24. 19 Oct, 2002 1 commit
    • Leigh Stoller's avatar
      Update version 3 cdrom image info. · 61c8af1b
      Leigh Stoller authored
      Add icky hack to pass the hostname of the new node into newwanode so
      that it gets a nickname set. Optional, but not nice in the web
      display until we get the node registration page going; it tells us who
      owns the node more clearly.
      Another really icky hack to notice that its a ron node, and use the
      proper argument to newwanode.
      61c8af1b
  25. 27 Sep, 2002 1 commit
  26. 26 Sep, 2002 1 commit
  27. 10 Sep, 2002 1 commit
  28. 28 Aug, 2002 1 commit
    • Mike Hibler's avatar
      Update md5 hashes for images · 429621e7
      Mike Hibler authored
      Add a path, "if (0)"ed by default, allowing V1 CD owners to load their
      disk image from us (for those with corrupt on-CD images)
      429621e7
  29. 26 Aug, 2002 1 commit
    • Leigh Stoller's avatar
      Rework all of the ssh key handling. Moved the parsing and verification · ae77bdb6
      Leigh Stoller authored
      to an external perl script, and use ssh-keygen to attempt conversion
      off SSH2/SECSH key formats. This is actually a simplification of the
      php code, which is not generally very good at this kind of thing (or
      maybe I mean perl is just better at it). The parsing and error
      handling it also much improved.
      ae77bdb6
  30. 18 Aug, 2002 1 commit
  31. 17 Aug, 2002 1 commit
  32. 15 Aug, 2002 2 commits