45 Commits

Author SHA1 Message Date
Fabian Weisshaar
f3d2d031b0 add domain name check, fixes #308 2017-05-26 21:50:24 +02:00
Thomas Waldmann
58f7237654 add migration for f5107138908d728da043faf77f72dee241338ce5 2015-12-29 17:24:37 +01:00
Fabian Weisshaar
cd2fde484a fixes #168, test updates when a domain is set to available 2015-12-29 13:30:58 +01:00
Thomas Waldmann
4232262cb8 add migration for previous changeset 2015-12-28 13:45:35 +01:00
Thomas Waldmann
b6528b748d add migration for prev. changeset 2015-04-25 17:42:27 +02:00
Thomas Waldmann
13cf70baf6 implement host staleness level, management script to check whether host IP is being updated 2014-11-21 11:00:59 +01:00
Thomas Waldmann
223710c4c7 add missing migration (nameserver2_ip, tls_update_ipv6 help text changes) 2014-11-21 10:56:23 +01:00
Thomas Waldmann
b8e37e904d register api auth errors/success in the host record, display auth success/failure in host view, partially fixes #176 2014-11-16 00:04:27 +01:00
Thomas Waldmann
536a5f5d9d add secondary nameserver, prefer it for queries, add migration, fixes #175 2014-11-15 22:42:13 +01:00
Thomas Waldmann
b6968fdb6f add migration for PR #179 2014-11-15 22:28:26 +01:00
Thomas Waldmann
aeceda0f38 manually fix related_name, fixes bug in django 1.7.0 migration generation (issue #23455) 2014-10-21 06:06:23 +02:00
Thomas Waldmann
39eb5e992e support and require django 1.7 (and related changes)
drop python 2.6 (not supported by django any more)
switch from django-registration (dead and broken) to django-registration-redux, fix issue #116
remove south dependency (and south migrations)
create new initial migration with django's builtin migrations
update docs
2014-10-21 05:06:44 +02:00
Thomas Waldmann
3b4669771a rather use PositiveSmallIntegerField for netmasks 2014-09-25 23:47:48 +02:00
Thomas Waldmann
27fe20da18 make netmasks / prefix lengths configurable in host record 2014-09-25 23:40:52 +02:00
Thomas Waldmann
4280728bfa add comments for related hosts 2014-09-25 22:05:14 +02:00
Thomas Waldmann
fa640706f5 add related hosts functionality, to update host records based on main host network address + interface id
this is esp. useful for v6 hosts, where your provider might give you a changing prefix (we assume /64), but your interface ids stay the same.

but same mechanism also principally works for v4 (we assume /29), except that you usually do not get a v4 network where the network address is changing.
and when it comes to dynamic addresses, many people only get 1 ipv4 address anyway. the related host could then be used for aliaseses with ifid == 0 for all aliases.
2014-09-23 00:48:54 +02:00
Thomas Waldmann
522911f6f8 rename BlacklistedDomain to BlacklistedHost, add migration 2014-09-21 22:47:05 +02:00
Thomas Waldmann
5fe8f13015 rename some model attributes, add migration
Domain.domain to Domain.name
Host.subdomain to Host.name
BlacklistedDomain.domain to BlacklistedDomain.name_re
2014-09-21 22:31:26 +02:00
Thomas Waldmann
556194ca3f save latest client/server result to model 2014-09-03 16:26:04 +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
866ddf3bea add available, abuse and abuse_blocked flags to Host, show on UI, script to reset flags
there is an issue with south and sqlite - it doesn't handle migrations that add BooleanField columns with defaults.
just use the faults script to set the flags to their correct default after migrating with south.
2013-11-30 12:32:03 +01:00
Thomas Waldmann
2aeb2a61f8 service updater (host configs): add (give|accept)_(ipv4|ipv6) fields 2013-11-29 02:11:55 +01:00
Thomas Waldmann
aa610e9c3a implement "update other services", with tests, no ui yet
(can be used when adding the records via django admin)
2013-11-26 08:10:05 +01:00
Thomas Waldmann
e9605535b8 add counters for client and server faults (per host) 2013-11-24 11:42:59 +01:00
Thomas Waldmann
d83df3ead1 use get_user_model and AUTH_USER_MODEL 2013-11-24 09:37:47 +01:00
Thomas Waldmann
dd09b6b5af nameserver update key / secret terminology cleanup
key = secret + algorithm
2013-11-24 05:04:07 +01:00
Thomas Waldmann
ab421fb686 models: use sane field lengths
for unique fields there seems to be a limit of 255 chars (not: 256)

some fields are much less than we initially had
2013-11-23 02:51:18 +01:00
Thomas Waldmann
e194ac0e46 show whether we received last v4/v6 update via SSL 2013-11-03 08:32:43 +01:00
Thomas Waldmann
4f50664977 add comment field for Domains 2013-11-02 12:37:27 +01:00
Thomas Waldmann
979f2f8b3e separate ipv4 and v6 update timestamps 2013-10-27 13:09:46 +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
1c1dd2c4d1 add missing migration file for previous commit, removed unneeded import 2013-10-18 15:35:55 -07:00
Arne Schauf
df971fe8e9 more fields 2013-09-29 22:48:09 +02:00
Fabian Faessler
053f2f9a65 added last_api_update field and migrated db 2013-09-29 20:50:33 +02:00
Arne Schauf
13511a7982 fqdn fix 2013-09-29 18:15:15 +02:00
Fabian Faessler
e1c87a1f42 Merge branch 'master' of github.com:asmaps/nsupdate.info
Conflicts:
	nsupdate/main/models.py
2013-09-29 14:33:58 +02:00
Fabian Faessler
f25ed3cdee removed proxy user, because solution was not working. Made id session based. please work now :'( 2013-09-29 14:33:24 +02:00
Arne Schauf
f56b8a8376 actually added the validator and made created_by in blacklist optional 2013-09-29 14:21:23 +02:00
Arne Schauf
b60bd75509 added domain blacklisting 2013-09-29 14:10:14 +02:00
Fabian Faessler
5537a12c1b changed User to ProxyUser 2013-09-29 13:53:35 +02:00
Arne Schauf
332acdf469 divided subdomain and domain (as FK) 2013-09-29 13:36:28 +02:00
Fabian Faessler
aabc5d78d6 updadd Host fields. serve 1px image instead of OK text in /updateip/. favicon change. 2013-09-29 01:12:23 +02:00
Fabian Faessler
eb30914704 added comment field in host. added admin and forms. 2013-09-28 20:01:09 +02:00
Arne Schauf
22eecac4d5 Host model 2013-09-28 18:02:13 +02:00