182 Commits
Author SHA1 Message Date
Ross McFarland 743c3b88db Fix CAA value handling to support tags 2024-05-05 16:38:17 -07:00
Ross McFarland f936d0fa1f black 24.x formatting changes 2024-03-20 13:59:29 -07:00
Ross McFarland 9f58b8e482 Record.octodns formalized, Record._octodns deprecated
Both point to the same thing via properties
2024-02-10 20:14:08 -05:00
Ross McFarland b148a4c716 Add test_records_have_rdata_methods, implement them for URLFWD 2024-01-23 13:45:42 -08:00
Ross McFarland c04a320cfd Treat value/values interchangably when configuring records
- All of the `if data isn't a list turn it into one in the value type
  validates are no longer needed, they'll always be passed a list now`
- Special case to handle PTR/target values since it previously was
  single value and is now values

See README for more information
2024-01-15 16:02:35 -08:00
Ross McFarland 3beab65e8b Add Record.values not a single string validation 2024-01-11 09:43:58 -08:00
Ross McFarland 119de9b421 Add ASCII validation to ChunkedValue, TXT/SPF 2024-01-03 08:42:17 -08:00
Ross McFarland 780fa2a24b Add support for checksum matching 2023-12-11 13:27:49 -08:00
Ross McFarland cb09b590e7 ValueMixin._data always includes 'value' 2023-11-29 14:21:14 -08:00
Ross McFarland 1a5c9a2c5e Flip ValuesMixin._values logic to handle/have key in all cases 2023-11-29 14:03:22 -08:00
Ross McFarland 6f6cb79854 Fix bug with Record.copy when values is an empty list [] 2023-11-29 13:56:48 -08:00
Ross McFarlandandGitHub 139e73cfd0 Merge branch 'main' into record-data-octodns 2023-11-27 14:15:03 -08:00
Ross McFarland f776fc6e65 essentially ditch stacklevel/context for deprecation of config thigns (it's not useful) 2023-11-26 13:21:02 -08:00
Ross McFarland 0332b34f72 deprecation.deprecated, use official mechinism for deprecations 2023-11-22 18:06:10 -08:00
Ross McFarlandandGitHub f6f7dbf853 Merge branch 'main' into record-data-octodns 2023-11-22 12:50:02 -08:00
Ross McFarland 7be540b86c Record.lenient property added similar to other common/standard _octodns data 2023-11-14 14:19:14 -08:00
Ross McFarland 65e87d0a46 Fixed Record.data, now includes the octodns special section data 2023-11-13 09:00:05 -08:00
Ross McFarland e9cdacdd13 Include octodns special section in record __repr__ 2023-11-10 16:01:14 -08:00
Ross McFarland 65f4a48bc1 rr_values as a property for consistency 2023-10-15 17:51:06 -07:00
Ross McFarland ded53023e7 add support for chunked values to ValuesMixin.rrs 2023-10-15 13:23:57 -07:00
Ross McFarland 9a28437b81 chunked_values should return _value_type not plain string 2023-10-15 13:20:43 -07:00
Viranch MehtaandGitHub 55a535d0f0 Merge branch 'main' into mixed-subnets 2023-09-25 14:35:15 -07:00
Ross McFarland bca8db6c8f parse_rdata_text supports unquoting things (powerdns) 2023-09-25 12:59:51 -07:00
Ross McFarland 76e330a7c3 Add source parameter to Record.from_rrs 2023-09-25 12:26:59 -07:00
Viranch Mehta a728a7ca4c Use sorted's key to sort subnets by version 2023-09-24 23:39:17 -07:00
Viranch Mehta 63c5118bcd Fix validation for dynamic records with IPv4+IPv6 subnets 2023-09-24 23:27:35 -07:00
Ross McFarland 879d8cd527 cls not self 2023-09-23 13:10:55 -07:00
Ross McFarland dfac2da3ec DEPRECATION warning on DsValue field fixes 2023-09-23 13:08:59 -07:00
Martin Frausing 533cd12128 Support both the both sets of field names for DS 2023-09-22 07:45:41 +02:00
Martin Frausing 43d380d76a The record got field names from the DNSKEY record by accident, fix this
Basically changing from
https://www.rfc-editor.org/rfc/rfc4034.html#section-2.1 to https://www.rfc-editor.org/rfc/rfc4034.html#section-5.1

So:
flags -> key_tag
protocol -> algorithm
algorithm -> digest_type
public_key -> digest
2023-09-20 10:09:16 +02:00
Ross McFarland 4256ad6caf Deprecate SpfRecord 2023-09-09 14:35:45 -07:00
Ross McFarland 857d5e2a61 Record's carry context, Zone exceptions make use of it to help with error messages 2023-08-18 20:24:26 -07:00
Kirill Losev 4c86566f82 rdata_text for SrvValue
Fixing #1038
2023-08-09 03:06:18 +03:00
Ross McFarland fc76b1d604 Merge remote-tracking branch 'origin/main' into error-context 2023-07-31 12:09:25 -07:00
Ross McFarland 303bc7740d Deprecate geo records in favor of dynamic 2023-07-30 06:40:17 -07:00
Ross McFarland 1776d558b5 POC of config/validation errors with context. Implemented by YAML for all it's cases 2023-07-28 17:14:01 -07:00
Ross McFarland 59a8958226 Record.parse_rdata_texts, TinyDns support for arbitrary record types 2023-07-01 09:18:53 -07:00
Ross McFarland cfa7abaee5 Validations to ensure Record.name and Zone.name have no whitespace 2023-05-19 09:57:56 -07:00
Viranch Mehta eeec1a7e7b prevent invalid subnet from crashing us 2023-04-12 23:51:52 -07:00
Viranch Mehta ae781f9b4f Validate rule ordering 2023-04-10 16:28:29 -07:00
Viranch Mehta 3b17eb155d subnets before geos, empty lists ok 2023-04-10 16:17:58 -07:00
Viranch Mehta 75cca9d12f Check subnets for re-used pools 2023-04-09 09:59:17 -07:00
Viranch Mehta 96f09cb4e5 Add subnet ordering validation 2023-04-09 09:17:42 -07:00
Viranch Mehta 09c07d4651 Merge branch 'main' into dynamic-subnets 2023-04-06 14:29:17 -07:00
Viranch Mehta a0646441e9 Drop unused logger 2023-04-02 05:07:34 -07:00
Viranch Mehta 37e8a88349 Support subnets in dynamic rules 2023-04-02 04:51:02 -07:00
Ross McFarland 2539cbe59b Rework script/generate-geo-data to output formatted code. Minor updates to data 2023-03-31 19:05:48 -07:00
Ross McFarland 80be9e7758 Add dynamic recordA validation to ensure last rule is a catch-all 2023-03-28 19:54:16 -07:00
Ross McFarland ae5c6bdd52 Validate that dynamic rule goes are not reused 2023-03-28 10:53:44 -07:00
Ross McFarland 14668d8f94 Implement dynamic rule validation for targeting a specific location that would have already matched a more generic one 2023-03-28 10:50:44 -07:00