1
0
mirror of https://github.com/github/octodns.git synced 2024-05-11 05:55:00 +00:00
Commit Graph

53 Commits

Author SHA1 Message Date
Ross McFarland
bc6e492f35 Merge remote-tracking branch 'origin/master' into dynamic-records 2018-12-10 08:44:57 -08:00
Ross McFarland
36b4a421c9 Simplify values -> value -> [] fallback code in _ValuesMixin 2018-12-10 08:24:41 -08:00
Ross McFarland
a767a5cb25 Implement pool-level fallbacks and validations 2018-12-07 14:29:05 -08:00
Ross McFarland
e3b0ce9dcf Pass cls._type, not cls/record_cls to validate 2018-12-06 06:17:47 -08:00
Ross McFarland
0114e54bd3 Remove _DynamicRuleGeo, its overkill, no details parsing for now 2018-12-06 06:14:04 -08:00
Ross McFarland
ccd9038a38 Impliment Dynamic rule geo validation 2018-12-05 16:42:38 -08:00
Ross McFarland
e16648ab1f Progress towards fully fleshed out pools & rules 2018-12-05 16:28:41 -08:00
Ross McFarland
b80348c2c7 Add __eq__, __ne__, and __repr__ to Dynamic objects and test 2018-12-03 16:46:18 -08:00
Ross McFarland
446f66f562 Implement _DynamicMixin's value objects, unit test them 2018-12-03 15:51:30 -08:00
Ross McFarland
b650013ccb Add a AAAA dyanmic.tests example, comments 2018-12-03 15:03:53 -08:00
Ross McFarland
0e0e995436 AaaaRecord and CnameRecord should implement _DynamicMixin, fix validate params 2018-12-03 14:54:22 -08:00
Ross McFarland
70c35aac26 WIP implementation of dyanmic pools & rules validation 2018-12-03 14:28:30 -08:00
Ross McFarland
e07165a2ab Move _process_value to cls.process on Value types 2018-11-30 09:14:23 -08:00
Ross McFarland
a29f188bc0 Same for ValueMixin 2018-11-30 08:35:56 -08:00
Ross McFarland
c9b373f0ae Further clean up/division of labor and tests 2018-11-30 08:32:55 -08:00
Ross McFarland
2829862ea5 Major refactoring of record validation to better support (planned) complex/dynamic record types 2018-11-29 15:15:12 -08:00
Ross McFarland
698eb91684 Add Dynamic Mixin class structure, all noops for now 2018-11-28 09:18:24 -08:00
No GUI
a06ad43e0a Mark SSHFP algorithm 4 as valid
[RFC 7479](https://tools.ietf.org/html/rfc7479) introduces support for Ed25519 host keys for the SSHFP record.
2018-04-07 09:39:20 -07:00
Ross McFarland
849a97f161 Add healthcheck protocol validation, HTTP or HTTPS 2018-03-31 13:35:48 -07:00
Ross McFarland
9752cb0a12 Add protocol and port to octodns.healthcheck configurables 2018-03-31 13:10:06 -07:00
Ross McFarland
182c953875 Remove extraxted Record.ignored, extract excluded and included
Make the Record.octodns bits more consistent
2018-03-31 12:21:25 -07:00
Dirkjan Bussink
a180f246a2 Use proper object 2018-03-22 09:03:32 +01:00
Dirkjan Bussink
a7f6da96d3 Merge branch 'master' into configurable-geo-healthcheck 2018-03-22 08:51:51 +01:00
Ross McFarland
29b6f5a886 Unsorted GeoValue.values can result in false diffs 2018-03-15 06:22:40 -07:00
Josh Soref
5d2ba2e715 Spelling (#214)
* spelling: ancillary
* spelling: antarctica
* spelling: australia
* spelling: authentication
* spelling: continental
* spelling: constructor
* spelling: conversion
* spelling: creation
* spelling: doesn't
* spelling: easily
* spelling: efficiently
* spelling: equivalent
* spelling: essentially
* spelling: everything
* spelling: exactly
* spelling: be
* spelling: expensive
* spelling: supports
* spelling: healthcheck
* spelling: immediately
* spelling: ignored
* spelling: invocation
* spelling: itself
* spelling: leftovers
* spelling: missing
* spelling: natural
* spelling: nonexistent
* spelling: peculiarities
* spelling: pointing

This change hit a line length limitation, so I'm wrapping it and
adding a period which appears to match local style...

* spelling: quicker
* spelling: response
* spelling: requested
* spelling: redirect
* spelling: traffic
* spelling: unknown
* spelling: uploaded
* spelling: useful
* spelling: separately
* spelling: zone
2018-02-27 09:09:47 -08:00
Ross McFarland
9f2b65ec83 Change str() to unicode() to avoid encoding problems 2018-02-24 09:19:23 -08:00
Ross McFarland
093398ff94 Support for SSHFP ECDSA (3) and SHA-256 (2)
RFC 6594 & RFC 7479
2018-02-11 17:01:38 -08:00
Ross McFarland
af435c3130 Handle MX preference of 0 2018-01-21 06:31:37 -08:00
Ross McFarland
4b740a48ff Merge branch 'master' into master 2017-10-30 11:00:25 -07:00
Adam Smith
bf1896329b validate values for empty string or None value
dump does not write invalid value(s) to yaml
2017-10-29 10:37:18 -07:00
Ross McFarland
bf4f7dd42d Allow enabling lenient on a per-record basis with octodns.lenient
```
---
'':
    octodns:
        ignored: True
        lenient: True
    type: CNAME # not valid to have a root cname
    value: foo.com.
2017-10-26 06:30:38 -05:00
Ross McFarland
9a30b058e2 Merge remote-tracking branch 'origin/master' into configurable-geo-healthcheck 2017-10-18 10:57:32 -07:00
Ross McFarland
70120bedc8 Implement "chunked" TXT/SPF value support for long values
This implements it transparently at Record level. Providers that need things to
be chunked (seems to just be Route53 an Dyn) switch to use `chunked_values`, but
everything else can stick with `values`. I've run through each provider I have
access to verifying that things operate as expected/required. OVH and Azure are
untested.
2017-10-05 10:04:29 -07:00
Paul van Brouwershaven
11f4359099 Add support for included and excluded records
`Included` and `Excluded` can be used to filter records for one or more specific provider(s). This can be extremely useful when certain record types are not supported by a provider and you want only that provider to receive an alternative record.

See also: https://github.com/github/octodns/issues/26
2017-09-28 15:16:39 +02:00
Ross McFarland
ba6dc9858e Get out of the business of validating CAA records
Seem to be pretty inconsistently implemented/validated across providers so
just shrug and move on.
2017-08-28 13:40:25 -07:00
Ross McFarland
1e68cd6ae9 Add CAA support to Dyn, PowerDNS, and Route53 2017-08-26 09:03:59 -07:00
Ross McFarland
4cae1e2bdb Add CAA Record class and tests 2017-08-26 08:18:17 -07:00
Ross McFarland
3a2ccdcac0 Manually join self.values to avoid double escapes, e.g. \\; 2017-06-28 03:09:41 -07:00
Ross McFarland
4e3cc6b46a SSHFP RFC4255 - validate algorithm & fingerprint_type
- unrecognized wording for invalid values
2017-06-23 13:35:04 -07:00
Ross McFarland
3ce0d71e62 NAPTR RFC2915 - validate flags (partial)
- punting on service, regex & replacement validation for now
- clean up MX a smidge
2017-06-23 13:28:22 -07:00
Ross McFarland
6fc82fd279 Validate that MX preference parses as int 2017-06-23 13:17:32 -07:00
Ross McFarland
1340aee8a9 MX RFC1035 - priority -> preference & value -> exchange 2017-06-23 13:04:38 -07:00
Ross McFarland
d2af8efe5c Root CNAMEs are not allowed 2017-06-23 09:49:11 -07:00
Ross McFarland
a97818b6ec populating existing provider state is lenient
- adds lenient flag to Record.new, problems during validation are just
  warnings if it's true
- target populate calls during the plan phase pass lenient=True
- make all of the provider.populate call logging consistent including both
  target and lenient
- add source=self to Record.new in a few places that were missing it
2017-06-23 09:01:25 -07:00
Ross McFarland
8323b4c0ea Complete refactor & rework of how validation is set up
This is with an eye toward expanding it in the future both in terms of what it
checks and to add the ability to ignore things. This commit does not intend to
change any validation. It only reworks the flow and improves the error
messaging.
2017-06-23 07:14:01 -07:00
Ross McFarland
670d7eef17 Record.healtcheck_(host|path) 2017-06-15 09:04:35 -07:00
Ross McFarland
b777c159ce Merge remote-tracking branch 'origin/master' into alias-support 2017-06-12 14:07:03 -07:00
Ross McFarland
ff2fec72d8 Add support for ignored records.
```yaml
ignored:
  octodns:
    ignored: true
  type: A
  value: 1.2.3.4
```
2017-06-04 19:03:38 -07:00
Ross McFarland
11cf155477 Pass of ALIAS support across supported providers. Allow ALIAS ttl
Supports ALIAS for Dnsimple, Dyn, Ns1, and PowerDNS. Notes added to readme about
some of the quirks found while working with them. TTL seems to mostly be
accepted on ALIAS records so it has been added back, what it means seems to vary
across providers, thus notes.
2017-06-03 09:44:05 -07:00
Ross McFarland
756f017854 Go back to simple/standard ALIAS value 2017-06-03 08:47:01 -07:00