-
-
Notifications
You must be signed in to change notification settings - Fork 562
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
Show DNSSEC status icon (if applicable) #3185
base: development
Are you sure you want to change the base?
Conversation
Signed-off-by: DL6ER <[email protected]>
Co-authored-by: RD WebDesign <[email protected]> Signed-off-by: Dominik <[email protected]>
Signed-off-by: RD WebDesign <[email protected]>
Signed-off-by: RD WebDesign <[email protected]>
@@ -321,13 +332,13 @@ function formatInfo(data) { | |||
|
|||
// Show DNSSEC status if applicable | |||
var dnssecInfo = ""; | |||
if (dnssecClass !== false) { | |||
if (dnssec.color !== "") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (dnssec.color !== "") { | |
if (dnssec.text !== "N/A") { |
While being logical equivalent, it feels strange to base the decision on the color status.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually dnssec.icon
and dnssec.color
store strings containing CSS classes for the icon shape and icon color.
No color means no icon and text = N/A. No icon means no color and text = N/A. Text=N/A means no icon and no color.
The 3 tests are 100% equivalent:
if (dnssec.color !== "")
;if (dnssec.icon !== "")
;if (dnssec.text !== "N/A")
;
Co-authored-by: yubiuser <[email protected]> Signed-off-by: RD WebDesign <[email protected]>
What does this implement/fix?
This PR adds colored DNSSEC status icons if DNSSEC is enabled inside Pi-hole. It tries to solve the issue that queries which are BOGUS are not immediately visible to the user: Their background color may still be green when they haven't been blocked by Pi-hole.
Example (https://wander.science/projects/dns/dnssec-resolver-test/):
Green closed lock: DNSSEC enabled for this site, verification successful
Orange open lock: DNSSEC not enabled for this site, check not possible
Red triangle: DNSSEC enabled for this side but verification failed
No icon: DNSSEC validation not possible or not enabled for this record, e.g., domain blocked by Pi-hole or DS query for a site having no DS.
Related issue or feature (if applicable): N/A
Pull request in docs with documentation (if applicable): N/A
By submitting this pull request, I confirm the following:
git rebase
)Checklist:
developmental
branch.