3030 Commits

Author SHA1 Message Date
Tom Galloway
6a7a508eb1 Added withsqlite submodule. 2013-04-25 09:53:26 +01:00
Tom Galloway
2bd413e657 If needed instead of an elif. 2013-04-24 09:29:58 +01:00
Nick Daly
3ab7d05bf3 Add hosting and auto-archive-creation.
The makefile has three new targets:

1. hosting: Publish repository and automagically build the archives to
   serve to clients.

2. current-checkout.tar.gz: Create an archive of the current project
   directory.

3. current-repository.tar.gz: Create an archive of the current project
   directory along with the source repository metadata so that the
   archive is a full checkout of the project.
2013-04-23 21:44:09 -05:00
Nick Daly
f55c7a48ea Merged with James's upstream.
Hope I did it right.  If I screwed up, withsqlite is borked.
2013-04-23 17:49:22 -05:00
Nick Daly
157226f1b8 Updated links issue. 2013-03-23 22:05:17 -05:00
Nick Daly
1492fe9728 Unify authentication errors.
Give the same error if the username doesn't exist or if the password
is wrong.  If we deliver separate errors, we tell the attacker whether
they've picked a valid password or not.

Also, if username doesn't exist, hash the password anyway to avoid
this timing side-channel attack:

1. Invalid Username:

   A. User tries to log in with invalid username.
   B. User name is not found in database.
   C. Password is never hashed.

2. Invalid Password:

   A. User tries to log in with valid username.
   B. User name is found in database.
   C. Password is hashed.

Given that proper password hashing will take a minute, *not* hashing
the password takes so much less time that we've effectively indicated
to the attacker that the username didn't exist, regardless of the
error message.  This way, no such error occurs.
2013-03-23 19:59:20 -05:00
Nick Daly
ea49a08675 Don't crash if we couldn't import ExMachina. 2013-03-23 18:45:07 -05:00
Nick Daly
bef0bcecca Added "run make". 2013-03-23 18:44:32 -05:00
Nick Daly
83cc3b4614 Build files are now stored in ./vendor/ 2013-03-23 18:44:13 -05:00
James Vasile
f5cd610535 template fiddling, but who cares. We're going to simplify that way down and likely delete this file. 2013-02-12 12:29:27 -05:00
James Vasile
939753c892 add text hidden type 2013-02-12 12:28:47 -05:00
James Vasile
bf0b3c28ab more intro screen work 2013-02-12 12:27:08 -05:00
James Vasile
af650212ca remove order line (we don't need it). Don't require auth for firstboot 2013-02-09 15:51:32 -05:00
James Vasile
f449b83ee5 log the html root for debugging purposes 2013-02-09 15:51:32 -05:00
James Vasile
a8c3a73013 First boot hijacks root if needed 2013-02-09 15:51:32 -05:00
James Vasile
d1a4d8ec9f start to handle state storage and transition 2013-02-09 15:51:32 -05:00
James Vasile
68f58ea8f5 remove dead code, edit directions to user, minor bug fix 2013-02-09 15:51:27 -05:00
James Vasile
557f8bbbfe Make template handle columns, stop using many different versions
* adjust template to remove nav and top menu for first boot
 * base on login_nav.tmpl
 * add login and nav to template
 * no need for two_cols, don't populate nav unless one exists
2013-02-09 15:50:58 -05:00
James Vasile
243ed3f64b use 'with' construct to open file 2013-02-09 13:47:06 -05:00
James Vasile
d4ad036ff0 new commits 2013-02-09 13:35:37 -05:00
James Vasile
6ab09922a3 resolve conflict 2013-02-09 13:35:13 -05:00
James Vasile
f80e30342d adjust name of sqlite file bc withsqlite will add the extension 2013-02-09 13:29:52 -05:00
James Vasile
5612316128 don't track backup text files, don't worry about cherrypy.config 2013-02-09 13:29:45 -05:00
James Vasile
1ddf4bede4 Adjust how modules are imported
* change to u. notation for util, since from foo import * is evil
 * make import vendor.foo possible
 * vendor dir is part of the repo now, no need to mkdir
 * use the vendor.foo notation
2013-02-09 13:11:06 -05:00
James Vasile
3c7aa32c5b Yay for first boot screens
* import withsqlite into plinth.py and start detecting first boot
 * new url page and start on forms
 * update license intro and (c) statement
2013-02-08 11:31:07 -05:00
James Vasile
2e1240ad18 added some more documentation 2013-02-08 11:31:06 -05:00
James Vasile
f3d4604b7f use my repo 2013-02-07 23:28:58 -05:00
James Vasile
a742b3e135 add __init__.py 2013-02-07 17:53:09 -05:00
James Vasile
f475410bca Update withsqlite 2013-02-07 17:51:56 -05:00
James Vasile
ce34a5eaa8 bit of Makefile reorganization 2013-02-07 16:43:44 -05:00
James Vasile
c976b1a00c adjust makefile to use submodules 2013-02-07 14:25:08 -05:00
James Vasile
c1ee3f73d3 add ex machina as a submodule 2013-02-07 14:24:36 -05:00
James Vasile
fd42ac3deb add withsqlite as a subproject 2013-02-07 14:18:04 -05:00
James Vasile
f0fd63b544 add missing pieces to make uninstall 2013-02-07 12:55:43 -05:00
James Vasile
0c1a79c2e7 remove some lies from README 2013-02-07 12:24:19 -05:00
James Vasile
338a0684ba quote the wildcards in rsync excludes 2013-02-07 12:22:45 -05:00
James Vasile
fdd1d04170 Don't set DESTDIR in the Makefile
See http://www.gnu.org/prep/standards/html_node/DESTDIR.html#DESTDIR
2013-02-07 11:38:49 -05:00
James Vasile
5aa7a680a9 no need for this with the new cfg parsing 2013-02-07 11:35:32 -05:00
James Vasile
65fe8434e3 Fix paths in installed version
* Read python.config from script dir
 * Make dirs for pid and run

Maybe making DESTDIR/var/run during make install is not needed because
we can expect the target system to have /var/run, but if it's missing
the CherryPy engine will fail when it tries to write the pid.  So I
added it.
2013-02-07 11:30:37 -05:00
James Vasile
9501204fcc Fix CherryPy Config
* fixed improperly specified path
 * don't write cherrpy.config, just pass it as a dict
2013-02-07 11:27:35 -05:00
James Vasile
3a7f2bd860 no need to write a cherryp.config 2013-02-07 09:22:00 -05:00
James Vasile
63d2c3ee68 Makefile improvements
* Remove commented out git pull lines.  We shouldn't update so automatically.
 * Use rsync because it gives us --exclude
 * Put docs where the webserver can find them
2013-02-07 06:21:45 -05:00
James Vasile
8440775141 put man page in place during make install 2013-02-07 06:06:35 -05:00
James Vasile
d5354d6f42 tell people to use the issue tracker if they want to complain about a 404 2013-02-06 22:54:36 -05:00
James Vasile
4371af4c12 silencing some things in Makefile 2013-02-06 22:41:09 -05:00
James Vasile
dc7dba26cf copy sample config 2013-02-06 22:31:07 -05:00
James Vasile
2f4dd2642d add docs to make un/install, handle a few unhandled things to install 2013-02-06 22:28:14 -05:00
James Vasile
348a44afe3 note the issue tracker in documentation 2013-02-06 22:20:22 -05:00
James Vasile
5c6f38f9b8 make debian version of config, edit config lightly 2013-02-06 21:18:47 -05:00
James Vasile
2ec84edc74 put sample in repo so we don't overwrite local copy on git update 2013-02-06 20:53:29 -05:00