designate/releasenotes/notes/bug-1755788-txt-spf-validation-d18e43c12691132a.yaml
Dmitry Galkin 02ef0350af Check TXT/SPF records for RFC1035 sec. 5.1
If record data has empty spaces it should be surrounded by double quotes.
This patch will raise an error during validation if record has whitespaces,
empty spaces, tabs, etc., but not wrapped in " " (double quotes).

Corresponding RFC part:

<character-string> is expressed in one or two ways: as a contiguous set
of characters without interior spaces, or as a string beginning with a "
and ending with a ".  Inside a " delimited string any character can
occur, except for a " itself, which must be quoted using \ (back slash).

Closes-Bug: 1755788
Depends-On: https://review.openstack.org/#/c/617809/
Change-Id: I159d0732688ddf1337ab3602a84a43fd043dcaa2
2019-03-25 15:02:26 +01:00

8 lines
311 B
YAML

---
fixes:
- |
TXT and SPF records are now validated for empty spaces in the values.
If record value has empty space it should use "" quotation according to
RFC-1035 section 5.1. Use of single quotation mark within record value
requires quote symbol to be escaped with backslash. Bug-1755788