Bug 2212111
| Summary: | [RFE] Design and implement a way to auto-correct time with DNSSEC validation enabled early on boot | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Petr Menšík <pemensik> |
| Component: | unbound | Assignee: | Paul Wouters <paul.wouters> |
| Status: | NEW --- | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | low | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | akhaitovich, paul.wouters, pemensik, pj.pandit |
| Target Milestone: | --- | Keywords: | FutureFeature, RFE |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Linux | ||
| URL: | https://lists.nlnetlabs.nl/pipermail/unbound-users/2023-April/008075.html | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Enhancement | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | Type: | --- | |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Petr Menšík
2023-06-03 22:55:12 UTC
I think statistics counter increasing each time the timestamp were not accepted for RRSIG, but otherwise the signature would pass, would be helpful. That would allow chrony to trigger time synchronization event, where we try to accept wider range of time for a initial time set. It could query that counter if all names known failed to resolve, whether to enable the special mode. But if it worked fine, it would boot with full security. Useful for devices without RTC like raspberry PI or old devices, where the clock got wrong for whatever reason. Found interesting requirement: https://www.ietf.org/archive/id/draft-ietf-dnsop-dnssec-validator-requirements-04.html#name-time-deviation-and-absence- STARTUP: A DRO MUST provide a mean to update the time without relying on DNSSEC when the DNSSEC validator is started. The resolver MUST NOT start if the time synchronization does not succeed at start time. ... In other words, the mechanisms may have to update the time over an unsecure DNSSEC resolution. ^ The problem I see with this is getaddrinfo() in glibc does not provide a way to make unsecure resolution. It either works or not. Usage of dns-specific API like res_query() would not use /etc/hosts and similar databases. So they can result in different responses. It seems to me we should add ability to request validation of timestamps disabled in a query. Which is possible with CD bit set in DNS query, but nothing such is available in getaddrinfo(). |