1220 Commits

Author SHA1 Message Date
Thomas Waldmann
97ce91da86 add tab for dyndnsc 2018-10-19 21:24:38 +02:00
Thomas Waldmann
d2d535d32d add EdgeOS configuration help, see #86 2018-10-19 21:23:19 +02:00
Thomas Waldmann
1856fc9eb0 add speedport hybrid configuration help, fixes #286 2018-10-19 21:11:12 +02:00
TW
c93daae899
Merge pull request #384 from ThomasWaldmann/simple-error-views
use error views without templating, fixes #365
2018-10-19 20:07:16 +02:00
TW
667d4a4a29
Merge pull request #382 from ThomasWaldmann/init-timestamps
new host creation: set update timestamps to current time, fixes #357
2018-10-19 20:06:56 +02:00
TW
6bd52d7f00
Merge pull request #383 from ThomasWaldmann/default-session-expiry
shorter default session expiry, fixes #381
2018-10-19 20:06:22 +02:00
Thomas Waldmann
70c9f9e24a use error views without templating, fixes #365 2018-10-19 00:50:50 +02:00
Thomas Waldmann
d494b41a9e shorter default session expiry, fixes #381
otherwise too many not-expired sessions accumulate in the session store.
2018-10-18 23:32:54 +02:00
Thomas Waldmann
18d5078b38 new host creation: set update timestamps to current time, fixes #357 2018-10-18 23:26:04 +02:00
TW
7ba8b6f2fa
Merge pull request #380 from ThomasWaldmann/reduce-db-accesses
session engine: remove hardcoded db session engine, use SESSION_ENGINE
2018-10-18 16:06:02 +02:00
Thomas Waldmann
55af9068fd session engine: remove hardcoded db session engine, use SESSION_ENGINE 2018-10-18 15:46:14 +02:00
TW
e2ea05be04
Merge pull request #377 from ThomasWaldmann/fix-crash
add ugly workaround for crash in django-admin users --stale-check
2018-10-14 15:58:30 +02:00
TW
bd0fa0f040
Merge pull request #375 from ThomasWaldmann/validate-registration-email
validate email address in registration form
2018-10-14 15:16:50 +02:00
Thomas Waldmann
f4e320aace add ugly workaround for crash in django-admin users --stale-check
i tried repr(user), but somehow this did not help.

Traceback (most recent call last):
  File "/srv/nsupdate.info/env/bin/django-admin.py", line 5, in <module>
    management.execute_from_command_line()
  File "/srv/nsupdate.info/env/lib/python3.5/site-packages/django/core/management/__init__.py", line 364, in execute_from_command_line
    utility.execute()
  File "/srv/nsupdate.info/env/lib/python3.5/site-packages/django/core/management/__init__.py", line 356, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/srv/nsupdate.info/env/lib/python3.5/site-packages/django/core/management/base.py", line 283, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/srv/nsupdate.info/env/lib/python3.5/site-packages/django/core/management/base.py", line 330, in execute
    output = self.handle(*args, **options)
  File "/srv/nsupdate.info/repo/nsupdate/management/commands/users.py", line 85, in handle
    self.stdout.write(log_msg)
  File "/srv/nsupdate.info/env/lib/python3.5/site-packages/django/core/management/base.py", line 110, in write
    self._out.write(force_str(style_func(msg)))
UnicodeEncodeError: 'ascii' codec can't encode characters in position 1-2: ordinal not in range(128)
2018-10-14 15:16:28 +02:00
Thomas Waldmann
7dcf5a22bb validate domain of email address in registration form, fixes #284
- via DNS (MX, A/AAAA records)
- against blacklist with regexes

This is implemented because without it, postmasters get tons of mailer daemon
emails each day, just because emails are invalid, domain has no mx, ...
2018-10-14 14:52:52 +02:00
TW
90e59c7a89
Merge pull request #367 from ThomasWaldmann/http-error
http error templates simplified, catch session-saving OperationalError
2018-10-01 17:21:14 +02:00
TW
5d25e6b7a3
Merge pull request #371 from ThomasWaldmann/fix-stale-users-check
Fix stale users check
2018-10-01 16:50:08 +02:00
TW
3fc43f40ab
Merge pull request #370 from ThomasWaldmann/upgrade-static
upgrade jquery from 3.2.1 to 3.3.1, fixes #366
2018-10-01 16:09:36 +02:00
Thomas Waldmann
92211b0402 django-admin.py users: avoid unicode issues by using %r, fixes #350
non-ascii user names crashed the log output.
2018-10-01 15:52:49 +02:00
Thomas Waldmann
80590a646b django-admin.py users: initialize log_msg 2018-10-01 15:50:48 +02:00
Thomas Waldmann
e0a373dfcc upgrade jquery from 3.2.1 to 3.3.1, fixes #366 2018-10-01 15:40:40 +02:00
Thomas Waldmann
bc9776b119 no exceptions when context processor saves the session, fixes #356 2018-10-01 15:06:01 +02:00
Thomas Waldmann
8c6d6c6346 use a much simpler errorpage.html template, related to #356 #365
the normal base template does quite a lot of stuff and the context /
session needs to be prepared for that. in case of errors, we do not
want to do any heavy stuff, like accessing the db / session.
2018-10-01 14:10:43 +02:00
TW
04dcbc8662
Merge pull request #358 from ThomasWaldmann/fix-strip
do not strip interface_id_ipv(4|6) if empty/None, fixes #355
2018-09-30 22:14:54 +02:00
TW
64780a0368
Merge pull request #359 from ThomasWaldmann/tsigkeyring-exceptions
catch exceptions of dns.tsigkeyring.from_text(), fixes #338, fixes #319
2018-09-30 22:05:20 +02:00
TW
bdf984e5e3
Merge pull request #360 from ThomasWaldmann/exception-fixes
more exception fixes
2018-09-30 21:54:30 +02:00
Thomas Waldmann
3caf2508f7 do not strip interface_id_ipv(4|6) if empty/None, fixes #355 2018-09-30 21:39:36 +02:00
Thomas Waldmann
7e868de697 use same cleaning for the secret in (Create|Edit)DomainForm, see #338 2018-09-30 21:39:03 +02:00
Thomas Waldmann
837103fdd7 catch exceptions of dns.tsigkeyring.from_text(), fixes #338, fixes #319 2018-09-30 21:39:03 +02:00
Thomas Waldmann
fc7e48d7a2 django-admin domains --check: catch UnknownTSIGKey, fixes #336 2018-09-30 21:38:30 +02:00
Thomas Waldmann
133dd9fcba transform UnknownTSIGKey into DnsUpdateError, fixes #337
this exception is catched in nsupdate.api.views._update_or_delete.
2018-09-30 21:38:30 +02:00
TW
917dacfceb
Merge pull request #362 from ThomasWaldmann/travis
fixes/updates for travis
2018-09-30 21:37:08 +02:00
Thomas Waldmann
95acf264cf use tool:pytest in setup.cfg 2018-09-30 21:19:43 +02:00
Thomas Waldmann
73b274b8ae require pytest >= 3.6
looks like "pluggy" package needs this.
2018-09-30 20:58:51 +02:00
Thomas Waldmann
fe7b1bc0cb 1.1.1.1 == one.one.one.one 2018-09-30 20:53:26 +02:00
Thomas Waldmann
c206004084 run apt-get update first 2018-09-30 20:40:23 +02:00
TW
96e86cfa6e
Merge pull request #349 from ThomasWaldmann/fix-domains-mgmt-msgs
fix placeholders in domains management script
2018-05-02 20:25:37 +02:00
Thomas Waldmann
ee54d07d2a fix placeholders in domains management script 2018-05-02 13:46:22 +02:00
TW
c6afaf2e52
Merge pull request #348 from ThomasWaldmann/docs-django-links
update django links in admin docs to point to 1.11
2018-04-26 14:03:13 +02:00
Thomas Waldmann
ba20483c8e update django links in admin docs to point to 1.11 2018-04-26 02:59:18 +02:00
TW
ba43006194
Merge pull request #343 from ThomasWaldmann/fix-335
work around UnknownTSIGKey exception blowing up the overview view
2018-04-26 02:04:40 +02:00
TW
b5ed33529f
Merge pull request #344 from ThomasWaldmann/stale-domains
implement django-admin domains --stale-check
2018-04-26 00:52:54 +02:00
TW
930d3f64d6
Merge pull request #345 from ThomasWaldmann/fix-rdns-tests
fix reverse dns lookup tests
2018-04-25 19:00:00 +02:00
Thomas Waldmann
4e41cfb96b implement django-admin domains --stale-check 2018-04-25 18:49:08 +02:00
Thomas Waldmann
b2e2ddf949 fix reverse dns lookup tests
not sure why, but the old ones were failing half of the time.
let's try the latest shit from cloudflare. :)
2018-04-25 18:45:04 +02:00
TW
322e487dc1
Merge pull request #341 from ThomasWaldmann/stale-users
implement django-admin users --stale-check
2018-04-25 16:30:53 +02:00
Thomas Waldmann
92c105b64c work around UnknownTSIGKey exception blowing up the overview view 2018-04-25 16:29:24 +02:00
Thomas Waldmann
b62fa0454d implement django-admin users --stale-check
deletes users who have not logged in for >= 1y and
have no hosts and domains.
2018-04-20 10:29:17 +02:00
TW
a70e9d01c5
update CHANGES (#307)
update CHANGES
2018-04-20 02:15:32 +02:00
TW
a51ac95313
Merge pull request #340 from ThomasWaldmann/update-authors
update AUTHORS file to reflect current state
2018-04-20 02:14:57 +02:00