Closed
Bug 1469905
Opened 8 years ago
Closed 8 years ago
RRA Medium: Monitor critical TXT record changes (spf for mail records for example)
Categories
(Infrastructure & Operations :: MOC: Service Requests, task)
Infrastructure & Operations
MOC: Service Requests
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: sidler, Assigned: fauweh)
Details
><(((ˣ> dig txt mozilla.com
; <<>> DiG 9.10.3-P4-Ubuntu <<>> txt mozilla.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 27052
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1280
;; QUESTION SECTION:
;mozilla.com. IN TXT
;; ANSWER SECTION:
mozilla.com. 60 IN TXT "MS=ms53448578"
mozilla.com. 60 IN TXT "v=spf1 include:_spf.mozilla.com include:_spf.google.com include:mailgun.org include:servers.mcsv.net ~all"
mozilla.com. 60 IN TXT "status-page-domain-verification=66thnl6f725t"
;; Query time: 26 msec
;; SERVER: 127.0.1.1#53(127.0.1.1)
;; WHEN: Wed Jun 20 09:11:22 PDT 2018
;; MSG SIZE rcvd: 241
LEA (Let's Encrypt Automation) is going to be creating and deleting TXT records. We would like some monitoring for import TXT records across Mozilla's properties. Above is an example of an spf record for mozilla.com. This monitoring should regularly check that these important TXT records are not altered or deleted.
| Assignee | ||
Updated•8 years ago
|
Assignee: nobody → kferrando
Status: NEW → ASSIGNED
Component: MOC: Projects → MOC: Service Requests
| Reporter | ||
Comment 1•8 years ago
|
||
Let's start with mozilla.org, mozilla.com and mozilla.net
Assignee: kferrando → nobody
Status: ASSIGNED → NEW
Component: MOC: Service Requests → MOC: Projects
| Assignee | ||
Comment 2•8 years ago
|
||
So the current check_dns check may work out of the box here. One thing of note is that the check returns ALL TXT content so you must check on all the contents, if any TXT record changes or is missing, this would cause the alert to trip.
If this is acceptable, we can use it.
./check_dns -H mozilla.com -q TXT -a '"MS=ms53448578","status-page-domain-verification=66thnl6f725t",~all"'
DNS OK: 0.011 seconds response time. mozilla.com returns "MS=ms53448578","status-page-domain-verification=66thnl6f725t",~all"|time=0.010603s;;;0.000000
If we want the check to be intelligent about only matching on substring/single TXT record, we'll have to come up with something in-house.
Scott, do you have a preference here?
Assignee: nobody → kferrando
Status: NEW → ASSIGNED
Component: MOC: Projects → MOC: Service Requests
Flags: needinfo?(sidler)
| Reporter | ||
Comment 3•8 years ago
|
||
Let's start with that for the three main domains as a first step.
Flags: needinfo?(sidler)
| Assignee | ||
Comment 4•8 years ago
|
||
(In reply to Scott Idler [:sidler] [:escote] from comment #3)
> Let's start with that for the three main domains as a first step.
Great, will do!
I had some issues with fighting quotations but got this in puppet for a test:
<nagios-mdc1> fauweh: [Unknown] nagios1.private.mdc1.mozilla.com:DNS TXT check for mozilla.com is OK - DNS OK: 0.063 seconds response time. mozilla.com returns "MS=ms53448578","status-page-domain-verification=66thnl6f725t",~all" Last Checked: 2018-06-27 18:50:14 UTC
I will get the other domains added shortly.
| Assignee | ||
Comment 5•8 years ago
|
||
[06-27 12:46:13] <fauweh> nagios-mdc1: status nagios1.private.mdc1.mozilla.com:DNS TXT*
[06-27 12:46:13] <nagios-mdc1> fauweh: [Unknown] nagios1.private.mdc1.mozilla.com:DNS TXT check for mozilla.com is OK - DNS OK: 0.067 seconds response time. mozilla.com returns "MS=ms53448578","status-page-domain-verification=66thnl6f725t",~all" Last Checked: 2018-06-27 19:45:59 UTC
[06-27 12:46:13] <nagios-mdc1> fauweh: [Unknown] nagios1.private.mdc1.mozilla.com:DNS TXT check for mozilla.net is OK - DNS OK: 0.048 seconds response time. mozilla.net returns "google-site-verification=PFugIdWufVHs28w5mr_gORsgu7RZr9En5EeuBvOGOxI",~all" Last Checked: 2018-06-27 19:45:59 UTC
[06-27 12:46:13] <nagios-mdc1> fauweh: [Unknown] nagios1.private.mdc1.mozilla.com:DNS TXT check for mozilla.org is OK - DNS OK: 0.069 seconds response time. mozilla.org returns "google-site-verification=Lo_B34AJAe70BQVNF1Fo1zGGJudPmw9bLTnP2C8lV-s",~all" Last Checked: 2018-06-27 19:45:59 UTC
We're good to go here. Anything else we need for this bug Scott?
Flags: needinfo?(sidler)
| Reporter | ||
Comment 6•8 years ago
|
||
No I think that looks great for now.
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Flags: needinfo?(sidler)
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•