452 Commits

Author SHA1 Message Date
Thomas Waldmann
1a02925bfa minor changes: fix typo, move comment to right place 2013-11-21 04:10:04 +01:00
Thomas Waldmann
2b5fdacadc status view is expensive (DB accesses to build statistics), make it logged-in only 2013-11-21 04:07:27 +01:00
Thomas Waldmann
ae9c2f29d0 more tests, better coverage 2013-11-21 04:02:16 +01:00
Thomas Waldmann
11a6c0177e README: add some badges 2013-11-19 08:01:43 +01:00
Thomas Waldmann
d0cabca1c5 travis: we use py 2.7 syntax, so 2.6 can't work - remove 2.6 2013-11-19 07:39:15 +01:00
Thomas Waldmann
4e6029cd93 travis: try using --upgrade to get the py.test version conflict sorted 2013-11-19 07:18:07 +01:00
Thomas Waldmann
bff859e904 travis: remove quiet from pip install for debugging issues on travis-ci 2013-11-19 07:09:14 +01:00
Thomas Waldmann
8aef8f9417 improved .travis.yml 2013-11-19 06:35:57 +01:00
Thomas Waldmann
1f38f19d35 checking if even 2.5 works :D (this is mostly to trigger a travis-ci initial run) 2013-11-19 06:13:06 +01:00
Thomas Waldmann
4c4e7aa83a adding a travis-ci configuration 2013-11-19 06:09:20 +01:00
Thomas Waldmann
ca43191890 move footer contents to base_footer.html, so it is customizable 2013-11-18 09:10:04 +01:00
Thomas Waldmann
fe96c21592 clarify how the SECRET_KEY is setup, we don't have a builtin (not secret) SECRET_KEY any more 2013-11-17 02:08:02 +01:00
Thomas Waldmann
cb89967189 release 0.4.0, update changelog 2013-11-17 00:15:19 +01:00
Thomas Waldmann
d8bcc5b7f5 avoid KeyErrors in logging, at least for default log format
remove ineffective defaultdict
2013-11-16 23:53:27 +01:00
Thomas Waldmann
5fb721d112 more api tests, add another user and another host so we can test separation 2013-11-16 07:51:04 +01:00
Thomas Waldmann
08d8ce472b added test for nic_update_session 2013-11-16 07:23:44 +01:00
Thomas Waldmann
925ad20405 update api: there is no "noauth" return value, it must be "badauth" 2013-11-16 06:09:56 +01:00
Thomas Waldmann
89e18d9d65 document how cookies are used depending on the "keep me logged in" checkbox state 2013-11-16 05:14:03 +01:00
Thomas Waldmann
56341d0581 implement remember_me checkbox in the login view
if checked, we use a permanent cookie as configured in settings.
if not, we use a session cookie that gets cleared at the end of the session.
2013-11-16 04:52:45 +01:00
Thomas Waldmann
d3724032e1 simplify url dispatcher
we can include all the urls (as usual) AFTER overiding some of them giving a special rule first.
2013-11-16 04:52:45 +01:00
Thomas Waldmann
d6b5041573 a real nic update api test, using basic auth
generate_secret was modified to support giving a secret (not generating a random one), so it matches the test database

add a User and a Host to the test db
2013-11-16 01:25:05 +01:00
Thomas Waldmann
b1ef5ed6b4 api / session ip updates: reorder evaluation, is a bit faster for failures 2013-11-15 13:22:06 +01:00
Thomas Waldmann
4c46c30d25 more api tests (mostly triggering execution of some code)
it's hard to test anything without a user / http auth / login / session.
2013-11-15 13:00:57 +01:00
Thomas Waldmann
1f28cb3ed0 name api views, use reverse() in unit tests 2013-11-15 12:14:36 +01:00
Thomas Waldmann
aa755d2ce2 so much pain and duplication just to get the cursor into the right field using html5 autofocus attr 2013-11-15 10:07:40 +01:00
Thomas Waldmann
76d3dfebc2 catch case where .session_key was None, leading to an invalid /detectip/None url 2013-11-15 01:16:13 +01:00
Thomas Waldmann
117b34d4c9 fix docstring, is for class, not method 2013-11-14 10:17:53 +01:00
Thomas Waldmann
182671783d for now, default to real (non-permanent) session cookies that are cleared at browser close
SESSION_EXPIRE_AT_BROWSER_CLOSE = True

later we can maybe have a "remember me" checkbox at login time, so a user can decide on his
own whether to use session or long-living cookie.
2013-11-14 10:01:36 +01:00
Thomas Waldmann
f6fb8b67bd try to not write into session unless there is really a change or a refresh needed, reduce code duplication
move code from HomeView to context processor
2013-11-14 02:11:44 +01:00
Thomas Waldmann
e341d7a857 add docs for manage testuser, add user crontab 2013-11-13 03:31:59 +01:00
Thomas Waldmann
7930adc596 reinitialize test user management command 2013-11-13 03:22:54 +01:00
Thomas Waldmann
4205172942 document clearsessions usage 2013-11-13 01:21:24 +01:00
Thomas Waldmann
5e2ddfec1c add a warning if we have no javascript
it is needed e.g. for the IP address detection and also other functions.
2013-11-12 14:28:50 +01:00
Thomas Waldmann
7aa48d7d4f ajax get ips: increase delay for first call, add a second call later to update the view (again)
sometimes those v6 tunnels are a bit slow...
2013-11-10 16:41:29 +01:00
Thomas Waldmann
b4ae7110c9 add changelog to MANIFEST.in 2013-11-10 14:29:35 +01:00
Thomas Waldmann
be0e537c56 bump version to 0.3.0 2013-11-10 14:28:00 +01:00
Thomas Waldmann
13f6c1ac1f added release change log 2013-11-10 14:23:44 +01:00
Thomas Waldmann
f1cdf2ec45 dnstools logging levels improved 2013-11-10 13:59:40 +01:00
Thomas Waldmann
9da1fe95b6 better logging for mismatching username/hostname 2013-11-10 08:12:22 +01:00
Thomas Waldmann
50bdf58398 fix typo 2013-11-10 08:03:36 +01:00
Thomas Waldmann
367bc70f56 security fix: authenticating is not enough, hostname qs param (if given) also needs to match the username 2013-11-10 07:57:40 +01:00
Thomas Waldmann
24b687960e deal with "nameserver not available" and "peer bad signature" in same way as with dns update errors, 2013-11-10 07:04:46 +01:00
Thomas Waldmann
e27d1fa687 update bind9 configuration example / view 2013-11-10 06:48:48 +01:00
Thomas Waldmann
bd3e7c80f7 if a dns update give a rcode != NOERROR, we log it and raise a DnsUpdateError, dyndns2 result code: "dnserr REASON" (also shown on web ui) 2013-11-10 06:29:33 +01:00
Thomas Waldmann
57641f3b9a allow single-host update secrets, make dnstools tests work for everybody
the nsupdate.info zone is configured to allow updating test.nsupdate.info with a non-secret key used for the tests.
we also have a test that tries to update another host with that key and checks that this fails.

change the tests so they only use test.nsupdate.info (if possible).

single-host update secrets need a Domain record for the fqdn of this single host, the fqdn is tried first, before it tries the origin zone.
2013-11-10 05:52:41 +01:00
Thomas Waldmann
4fadb5de82 dnstools tests: always use the same TEST_HOST 2013-11-09 23:19:05 +01:00
Thomas Waldmann
f13f4f474f bump version to 0.2.0b0, add Version code, read version number from package init for use in setup.py and sphinx docs 2013-11-09 21:45:30 +01:00
Thomas Waldmann
5a96234cbc update / improve sample configs 2013-11-09 21:17:52 +01:00
Thomas Waldmann
8cce8e3b94 requirements: use django 1.5.5 2013-11-09 20:12:06 +01:00
Thomas Waldmann
06b2f94206 fix setup.py
add missing stuff

fix problematic package_data patterns: static/* also matched the "static/css" directory and
then it falls over that at install time, because it wants to copy that like a file. :-(
2013-11-09 20:00:57 +01:00