1190 Commits

Author SHA1 Message Date
Thomas Waldmann
a08fee5c57 simpler domain overview, add missing template files to repo 2013-11-02 11:43:54 +01:00
Thomas Waldmann
35c953347c domain editing, shared secret generation, show bind9 configuration 2013-11-02 11:29:06 +01:00
Thomas Waldmann
029dc20be0 pep8 fixes 2013-11-02 10:02:51 +01:00
Thomas Waldmann
a91991bc5e redirect to /account/profile when (de)associating accounts 2013-11-02 09:34:59 +01:00
Thomas Waldmann
808c9e7d5d use post requests for disconnecting from social account 2013-11-02 09:28:29 +01:00
Thomas Waldmann
4753a2a84c (de)associate local profile with remote accounts 2013-11-02 08:26:15 +01:00
Thomas Waldmann
4029deb1bf rearrange login screen 2013-11-02 08:04:17 +01:00
Thomas Waldmann
25259dd353 add python-social-auth for disqus 2013-11-02 07:45:26 +01:00
Thomas Waldmann
972146ec87 add python-social-auth for amazon, bitbucket, dropbox, reddit, soundcloud, stackoverflow 2013-11-02 07:20:20 +01:00
Thomas Waldmann
49a466ef1e fix some social-auth urls, remove twitter auth
twitter does not support ipv6 and our production server VM
has only v6. :-(
2013-11-02 06:14:51 +01:00
Thomas Waldmann
f357997f07 add python-social-auth for twitter, github, google
still incomplete, only login view
2013-11-02 05:15:06 +01:00
Thomas Waldmann
461da24b52 add useragent to api / authorized update logging 2013-11-02 02:39:25 +01:00
Thomas Waldmann
a15804429a add sample email sender setting - needs to be valid so user registration activation mails get through 2013-11-02 02:03:37 +01:00
Thomas Waldmann
b45ae25b0a add a danger message if visitor is not using SSL 2013-11-02 01:13:53 +01:00
Thomas Waldmann
87b3711fd5 handle deletion of a Domain
as we reference the Domain as ForeignKey in the Host, it'll kill all Hosts that reference the deleted Domain also.

needs to be the PRE_delete signal as some of the data we need is already gone when using POST.
2013-11-02 00:12:36 +01:00
Thomas Waldmann
32d9f38837 when adding host, deal with Timeout and NameServerNotAvailable exceptions
don't add the host, in case of dns exceptions
2013-11-01 22:26:06 +01:00
Thomas Waldmann
7436a8b578 add autofocussed fields
TODO: autofocus for registration / login views
2013-11-01 21:11:57 +01:00
Thomas Waldmann
275f0821ca catch PeerBadSignature exception, log error, set ns to unavailable 2013-11-01 07:40:42 +01:00
Thomas Waldmann
2089ad7ccf remove info about how ip detection works, it is in the docs now
small wording consistency fixes
2013-11-01 07:23:05 +01:00
Thomas Waldmann
9534cd3619 more docs 2013-11-01 07:17:51 +01:00
Thomas Waldmann
3db9ff8231 use WWW_HOST when talking about the service (not the software), cosmetic changes 2013-11-01 06:12:04 +01:00
Thomas Waldmann
7f8e62cc30 use AJAX to update view with current IPs, cosmetic changes, deal with v4 and v6 js separately 2013-11-01 06:03:36 +01:00
Thomas Waldmann
60f03b0472 fix typo in CSRF setting, fix pep8 issues 2013-11-01 04:22:53 +01:00
Thomas Waldmann
7cbacedaf1 stale ip handling: use logger, initialize timestamp in session if it is not there 2013-11-01 04:14:06 +01:00
Thomas Waldmann
2529263a48 remove stale IPs from session, so we don't show outdated information
could happen if there once was a IPv6 connection, but now is not any more.
it now kills infos older than 3 minutes from the session.

it also shows the age of the infos now on the hosts overview view (but not on home view due to cosmetic reasons).

optimization: only request the fake images for ipv4/v6 detection if we don't have a fresh IP already.

added example settings for using detectip on (ip6-)localhost
2013-11-01 04:03:34 +01:00
Thomas Waldmann
22028c24b4 logging: make sure ERRORs also go to stderr for the request logging handler
otherwise tracebacks just vanish (if you do not see them in the browser or in your email)
2013-11-01 02:14:25 +01:00
Thomas Waldmann
823d21dcef add more cookie settings (for now with defaults) 2013-11-01 01:36:09 +01:00
Thomas Waldmann
3a919c242d more helpful CSRF failure view, add CSRF settings to settings.py
without this, users get a rather unhelpful/misleading response after clicking "Login" if they don't have cookies enabled.
2013-11-01 01:05:12 +01:00
Thomas Waldmann
a8cc003fe1 replace useless logout page by a redirect to the login page 2013-11-01 00:25:03 +01:00
Thomas Waldmann
b5d036eb72 add email to user profile form, so it can be updated by the user
cosmetic change to the profile view headings
2013-10-31 23:41:44 +01:00
Thomas Waldmann
7ccd293a3e cosmetic changes, esp. for mobile
wrap host view into container div (otherwise the top headline hangs out of the screen on the left)
make ipv6 addr a bit smaller, so it might better fit on not-so-wide screens
2013-10-27 13:55:09 +01:00
Thomas Waldmann
252a7e5d0b fix some stuff the pycharm code checker found
it also thought the db param of init_db is not needed, but it is, added a comment there
2013-10-27 13:34:56 +01:00
Thomas Waldmann
979f2f8b3e separate ipv4 and v6 update timestamps 2013-10-27 13:09:46 +01:00
Thomas Waldmann
6a5e67cb9e simplify host overview even more, move deletion to host view 2013-10-27 12:46:44 +01:00
Thomas Waldmann
0761f27e32 simplify host overview, remove update as it is already on host edit view (and it supports v4 and v6 there) 2013-10-27 12:32:08 +01:00
Thomas Waldmann
cdb4f9af20 improve rendering of Domains, give key an own row 2013-10-27 12:14:21 +01:00
Thomas Waldmann
1cc4236d58 add help texts to Domain model fields, improve view 2013-10-27 11:59:16 +01:00
Thomas Waldmann
9125c8072a move screenshots to own view, remove features from home view (features are in docs, don't duplicate)
remove links to individual static screenshots, they break the slideshow

fix spacing on home view, so footer is at bottom
2013-10-27 11:28:40 +01:00
Thomas Waldmann
26e819e013 fix: get v6 address from v6 input field 2013-10-27 09:54:16 +01:00
Thomas Waldmann
018f680a3f separate ip v4 and v6 update fields / button, prepopulated with currently detected addresses, simplify host view 2013-10-27 09:51:40 +01:00
Thomas Waldmann
456f5fd2b7 separate ip v4 and v6 update fields / button, prepopulated with currently detected addresses 2013-10-27 09:25:59 +01:00
Thomas Waldmann
f30d283792 use empty search list, make sure query fqdn is really a absolute fqdn 2013-10-27 08:40:54 +01:00
Thomas Waldmann
a210936dcf use now() from django.utils.timezone - it is utc and not naive 2013-10-27 07:29:58 +01:00
Thomas Waldmann
724f35225e move test settings to test_settings.py, add FIXME for resolver search list
make SECRET_KEY obviously non-secret and non-random + document it should be secret/random
2013-10-27 07:20:43 +01:00
Thomas Waldmann
14209ae25f better icons 2013-10-27 05:42:17 +01:00
Thomas Waldmann
4cf62af8ab rename Domain field available_for_everyone to public (so it is not confused with "available" field)
"public" field means that this zone can be used by every user (not just the owner) to create hosts there

"available" field means that the nameserver is operating and reachable
2013-10-27 05:28:30 +01:00
Thomas Waldmann
6bf1f57fc1 deal with not responding nameservers (offline or unreachable)
if a nameserver does not respond, we flag it in the database
(available = False) and stop talking to it for 5 minutes.

after 5 minutes, we flag it available = True again and retry talking to it
(and if not successful, flag it as unavailable again).

this avoids a unresponsive UI as we do a lot of ns queries from the templates
to get v4 and v6 addresses of our hosts from master nameservers.

we log a warning when setting unavailable and a info when setting available.
2013-10-27 05:14:47 +01:00
Thomas Waldmann
a53ef40e46 remove djangodash references from home view 2013-10-23 17:51:09 +02:00
Thomas Waldmann
a50364c4cf about page: move software section to bottom, add info about feedback 2013-10-20 00:16:42 -07:00
Thomas Waldmann
865318fda3 link to docs, move some info to docs 2013-10-19 23:19:25 -07:00