-
Notifications
You must be signed in to change notification settings - Fork 251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get-ScubaSpfRecord returns in rdata all TXT records not only SPF #1510
Comments
Hi, thanks for reaching out. There are couple of moving pieces here. The "provider" module, which pulls all the data for ScubaGear, doesn't filter the TXT records returned, as you say. But the Rego code, the code that actually evaluates the policies, does filter the TXT records returned to just the SPF records, so the report produced will still be accurate, though there may be some superfluous records in the raw data stored in the ScubaResults.json file. Is there a reason this might cause a problem for your use case? Though on further reflection, I can see that there is a slight discrepancy between the function name and what it actually does, which certainly isn't good practice. Either way, curious to hear what additional thoughts you might have on this issue. |
Hi, |
Got it. This does look like something we'll eventually want to fix, if nothing else so the functionality of Get-ScubaSpfRecord more closely aligns with what it actually does. But in the meantime, rest assured that the extra records are not skewing the assessment results. Thanks again for reporting! |
I think there is a related issue where
When I run this over my domain:
I get four items for
|
🐛 Summary
Get-ScubaSpfRecord returns in rdata all TXT records not only SPF
To reproduce
Check on domains with TXT records, but not SPF.
Expected behavior
Only SPF records to be present in rdata
The text was updated successfully, but these errors were encountered: