anubis/lib
The Ninth 00fa939acf
Implement FCrDNS and other DNS features (#1308)
* Implement FCrDNS and other DNS features

* Redesign DNS cache and methods

* Fix DNS cache

* Rename regexSafe arg

* Alter verifyFCrDNS(addr) behaviour

* Remove unused dnsCache field from Server struct

* Upd expressions docs

* Update docs/docs/CHANGELOG.md

Signed-off-by: Xe Iaso <me@xeiaso.net>

* refactor(dns): simplify FCrDNS logging

* docs: clarify verifyFCrDNS behavior

Add a note to the documentation for `verifyFCrDNS` to clarify that it returns true when no PTR records are found for the given IP address.

* fix(dns): Improve FCrDNS error handling and tests

The `VerifyFCrDNS` function previously ignored errors returned from reverse DNS lookups. This could lead to incorrect passes when a DNS failure (other than a simple 'not found') occurred. This change ensures that any error from a reverse lookup will cause the FCrDNS check to fail.

The test suite for FCrDNS has been updated to reflect this change. The mock DNS lookups now simulate both 'not found' errors and other generic DNS errors. The test cases have been updated to ensure that the function behaves correctly in both scenarios, resolving a situation where two test cases were effectively duplicates.

* docs: Update FCrDNS documentation and spelling

Corrected a typo in the `verifyFCrDNS` function documentation.

Additionally, updated the spelling exception list to include new terms and remove redundant entries.

* chore: update spelling

Signed-off-by: Xe Iaso <me@xeiaso.net>

---------

Signed-off-by: Xe Iaso <me@xeiaso.net>
Co-authored-by: Xe Iaso <me@xeiaso.net>
2025-11-26 22:24:45 -05:00
..
challenge fix(config): deprecate the report_as field for challenges (#1311) 2025-11-25 23:25:17 -05:00
config Implement FCrDNS and other DNS features (#1308) 2025-11-26 22:24:45 -05:00
localization Implement FCrDNS and other DNS features (#1308) 2025-11-26 22:24:45 -05:00
policy Implement FCrDNS and other DNS features (#1308) 2025-11-26 22:24:45 -05:00
store feat(store/valkey): Add Redis(R) Sentinel support (#1294) 2025-11-18 09:55:19 -05:00
testdata fix(config): deprecate the report_as field for challenges (#1311) 2025-11-25 23:25:17 -05:00
thoth chore: expose thoth in lib (#911) 2025-07-25 10:58:30 -04:00
anubis.go fix(config): deprecate the report_as field for challenges (#1311) 2025-11-25 23:25:17 -05:00
anubis_test.go fix(config): deprecate the report_as field for challenges (#1311) 2025-11-25 23:25:17 -05:00
config.go feat: writing logs to the filesystem with rotation support (#1299) 2025-11-21 11:46:00 -05:00
config_test.go feat: writing logs to the filesystem with rotation support (#1299) 2025-11-21 11:46:00 -05:00
http.go fix: SERVE_ROBOTS_TXT works again (#1229) 2025-10-31 09:08:33 -04:00
http_test.go perf: apply fieldalignement (#1284) 2025-11-16 20:43:07 +00:00
redirect_security_test.go perf: apply fieldalignement (#1284) 2025-11-16 20:43:07 +00:00