Page MenuHomePhabricator

Horizon: cannot create/update an SPF DNS record
Closed, ResolvedPublicBUG REPORT

Description

Discovered while working on T347512: Some emails from The Wikipedia Library aren't being received as expected

I was unable to create a complete record from the start, so I did this "stub" to verify that I could create a dns record of some kind.

Steps to replicate the issue (include links if applicable):

  • create a stub spf record that does not contain actionable data
twl.wmflabs.org.	60	IN	TXT	"v=spf1"
  • try to update the record with actual spf info (note that I've also tried ip4 in place of a)
twl.wmflabs.org.	60	IN	TXT	"v=spf1 a:185.15.56.1 ~all"

What happens?:
a 400 error response, with or without info in the body:
response body: "404 Client Error: NOT FOUND for url: https://openstack.eqiad1.wikimediacloud.org:29001/v2/zones/7c72e06e-3bd6-4512-8176-5c4a0e52e00e/recordsets/3c53c1f4-3962-45ca-b08e-0310f1a95de2"
response body from another attempt: ""

What should have happened instead?:
a record update should be saved

Software version (skip for WMF-hosted wikis like Wikipedia):
n/a
Other information (browser name/version, screenshots, etc.):
example horizon dns form:

image.png (720×974 px, 41 KB)

error toast:
image.png (61×331 px, 4 KB)

Event Timeline

Andrew renamed this task from cannot create/update a variety of DNS records to Horizon: cannot create/update a variety of DNS records.Dec 5 2023, 3:03 PM

This is either a quoting/parsing issue or a permissions issue. If I insert the record with quotes like "v=spf1 a:185.15.56.1 ~all" it seems to work for me. I don't yet know if that's an adequate solution for SPF though.

This is either a quoting/parsing issue or a permissions issue. If I insert the record with quotes like "v=spf1 a:185.15.56.1 ~all" it seems to work for me. I don't yet know if that's an adequate solution for SPF though.

I'm now able to create the spf record. It's definitely an unexpected ux relative to other dns tools, but it got the job done. Thanks!
I'll pull the CNAME bit out of this task and mark it as resolved since I now know how to create a txt record with spaces.

jsn.sherman renamed this task from Horizon: cannot create/update a variety of DNS records to Horizon: cannot create/update an SPF DNS record.Dec 5 2023, 4:20 PM
jsn.sherman closed this task as Resolved.
jsn.sherman updated the task description. (Show Details)