117 Commits

Author SHA1 Message Date
Fabian Weisshaar
f65dfa330c fixes #222 2015-12-27 17:53:41 +01:00
Thomas Waldmann
95e9cabf65 avoid that invalid domains get added, fixes #205 2015-06-04 10:49:04 +02:00
Thomas Waldmann
01f426deb9 fix code to succeed with tests for related host views 2015-01-02 21:21:37 +01:00
elnappo
1897c9a913 replace PermissionDenied with Http404 2014-12-28 14:07:06 +01:00
Thomas Waldmann
73d69e7502 fix method signature of get_context_data, fixes #180 2014-11-17 22:09:39 +01:00
Thomas Waldmann
04cc11f6d5 forward port security fix from 0.9.1, fixes #177 2014-11-08 17:14:46 +01:00
Thomas Waldmann
4383226046 fix some issues found by pycharm 2014-11-01 19:25:49 +01:00
Jonne Haß
5e637b14c9 Handle IPv4-mapped IPv6 addresses
Some reverse proxy configurations pass REMOTE_ADDR
as a IPv4-mapped IPv6 address when listening on a
IPv6 socket. This patch converts such a mapped
address into a IPv4 address at all usages of
REMOTE_ADDR. It handles both, the ::ffff:192.0.2.128
format as well as the deprecated ::192.0.2.128 format.
2014-09-29 06:21:24 +02:00
Thomas Waldmann
c1f2f91dc6 add user interface for related hosts 2014-09-25 20:15:18 +02:00
Thomas Waldmann
3da3d82eb4 update CHANGES, fix typo in comment 2014-09-12 21:11:55 +02:00
Thomas Waldmann
6fc1f64698 disallow deleting hosts that are flagged abuse_blocked 2014-09-12 20:53:08 +02:00
Thomas Waldmann
5f55fedd73 remove unused context data, fix nav 2014-09-03 17:16:12 +02:00
Thomas Waldmann
37f26d6031 unify hosts and domains overview views into one 2014-08-31 01:23:38 +02:00
Thomas Waldmann
c6bdd34fee split off add host / add domain view from hosts overview / domains overview 2014-08-31 01:03:19 +02:00
Thomas Waldmann
7c5260a6da rename overview.html to host_overview.html 2014-08-30 23:44:53 +02:00
Thomas Waldmann
cf2c46e612 use FQDN typed params in api, remove unused parse_name (which was problematic anyway) 2014-08-30 18:27:21 +02:00
Thomas Waldmann
f26ae31882 s/ssl_update_v4/tls_update_v4/g (and same for v6)
SSL is the old/outdated name. Since 1999, it's called TLS.

Changed model field names. Added a schema migration to rename the DB columns.

Note: the schema migration also adds/removes the index introduced in cs 32289ebb183907e8618ff251dd5846fd00fe9423
2014-05-30 02:03:48 +02:00
Thomas Waldmann
16416cb2af catch NoNameservers exception and show error msg on UI 2014-05-29 17:27:11 +02:00
Thomas Waldmann
3d922e4f13 catch "Network is unreachable" error 2014-05-28 15:19:21 +02:00
Thomas Waldmann
b818ea9df9 catch / handle DnsUpdateError (e.g. SERVFAIL) 2014-04-28 00:47:28 +02:00
Thomas Waldmann
c0cb56a97d implement custom template view, add docs for it 2014-01-22 00:09:14 +01:00
Thomas Waldmann
6b526f4ebd fix 500 error when domain does not exist
happens if POST contains a faked basedomain (not from our dropdown list)
2013-12-27 13:03:48 +01:00
Thomas Waldmann
ba977193ce Merge branch 'master' into py3-port
Conflicts:
	nsupdate/main/_tests/test_main.py
2013-12-24 21:31:40 +01:00
Thomas Waldmann
b718b93453 test more main views, exclude csrf failure view from coverage 2013-12-18 03:50:41 +01:00
Thomas Waldmann
758a38f95e fix some minor issues found by pycharm code checker 2013-12-15 18:05:19 +01:00
Thomas Waldmann
271666876d update robots.txt 2013-12-15 17:36:38 +01:00
Thomas Waldmann
0df4efce1c add/fix some module-level docstrings 2013-12-15 17:09:22 +01:00
Thomas Waldmann
711aba237f python 3.3 port
not much tested yet, be careful
2013-12-14 00:35:29 +01:00
Thomas Waldmann
915d64b592 fix stupid class name collision from previous changeset 2013-12-06 20:54:46 +01:00
Thomas Waldmann
de973353cf view with js based updater - thanks for 1v3ry for helping 2013-12-06 13:59:26 +01:00
Thomas Waldmann
c20295e68b add counts for unavailable / abuse / abuse_blocked hosts to status view 2013-12-01 14:06:45 +01:00
Thomas Waldmann
d9e9c66319 service updater host configuration: added user interface
this is the ui USERS need to configure sending updates to an ALREADY CONFIGURED service.

there is no UI yet for creating a new service, the ADMIN has to use django admin for that.
2013-11-29 10:43:18 +01:00
Thomas Waldmann
71509fe935 fix typo in class name 2013-11-27 07:23:04 +01:00
Thomas Waldmann
d83df3ead1 use get_user_model and AUTH_USER_MODEL 2013-11-24 09:37:47 +01:00
Thomas Waldmann
972a411ef4 make adding a domain workflow more similar to adding a host
don't ask for the secret in the first form, just autocreate one and show the configuration example with it.
2013-11-24 04:14:31 +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
117b34d4c9 fix docstring, is for class, not method 2013-11-14 10:17:53 +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
2eb13ee3b8 remove the screenshots view, it is prone to be outdated and boring work to keep it uptodate
it is replaced by a hint to use a test account, so you can see it all "live" - without needing to register first.
2013-11-08 05:35:10 +01:00
Thomas Waldmann
1072b7ccf0 fixed levels of some error messages, should work now 2013-11-06 01:30:06 +01:00
Thomas Waldmann
51e5efbe8f transform some views from function- to class-based
fixes some pep8 issues. use lowercase function name for the stuff we keep as function.
2013-11-05 00:24:02 +01:00
Thomas Waldmann
12c3c052f7 bots don't need to request the ajax_get_ips view 2013-11-03 17:36:04 +01:00
Thomas Waldmann
f7bbb41fd2 show statistics about SSL updates 2013-11-03 08:57:16 +01:00
Thomas Waldmann
9cc5bdf938 implemented status view
status: counts for domains (incl. domains flagged unavailable), hosts, users (incl. inactive users)

statistics: usage for 2d / 2w / 2m / 2y
2013-11-03 04:29:14 +01:00
Thomas Waldmann
a4c82cf7e3 domain overview: first list own domains (with edit links), then list available public domains of other users 2013-11-03 03:16:59 +01:00
Thomas Waldmann
c8d6c6605b remove help view
there was only a link to the rtd documentation (now directly linked from a "Documentation" navbar entry) and
some duplicate router configuration that was also shown (even with the correct values) when adding a host.

the help page html was not valid due to the values inserted into the router configuration help.

help/documentation policy: add static help to the docs, add dynamic help directly at the places (in the views) where needed
2013-11-02 23:23:01 +01:00
Thomas Waldmann
363590714e update robots.txt 2013-11-02 13:24:44 +01:00
Thomas Waldmann
8e9b272c70 cleanup active nav tabs, have Hosts and Domains in navbar 2013-11-02 12:12:13 +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