Skip to content
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

DNSSEC Blocking API #239

Open
johndturn opened this issue Sep 5, 2024 · 5 comments
Open

DNSSEC Blocking API #239

johndturn opened this issue Sep 5, 2024 · 5 comments
Labels
🐛 type: bug An issue or pull request relating to a bug in Quotable

Comments

@johndturn
Copy link

Overview

I love this API, and currently use it to populate quotes for my Obsidian-based journal and daily notes. Thank you so much for your work and support of it!

Unfortunately, about 3-4 months ago, I stopped being able to get responses from the API while on my local network. However, when on other networks I was able to receive data just fine. I investigated further and found that my PiHole / unbound setup was blocking the API due to a DNSSEC issue. I can't access the API without turning off DNSSEC protections entirely on my local setup, which I'm trying not to do.

For more information on the issue specifically for the api.quotable.io endpoint, see this link here.

I know that this is likely an easy thing to classify as just a "me" problem. However, and I could be wrong on this, I believe that this is actually something that probably should be addressed at the DNS level. Further, I haven't changed / updated anything with my local setup, which leads me to believe that something might have changed or been invalidated at the DNS level for the API.

Reproduction

Visit the link above that shows DNSSEC settings for the endpoint

OR

  1. Run PiHole / unbound with DNSSEC activated
  2. Hit the API via Postman

Expected Response

Getting any data at all.

Actual Response

image

image

image

Final Thoughts

If I'm wrong here, and all DNSSEC settings are actually up-to-snuff, and this is just an issue with my PiHole/unbound setup, please let me know. I searched for a while to see if I could even just ignore / disable DNSSEC specifically for this one domain, but I haven't been able to find anything allowing me to do this.

@johndturn johndturn added the 🐛 type: bug An issue or pull request relating to a bug in Quotable label Sep 5, 2024
@johndturn
Copy link
Author

In case anyone else would like to try and get around this issue for the time being, I've created a small val (from val.town) that proxies through the API forcing HTTP instead. You can use the following endpoint to get a random quote that won't through DNS errors:

GET https://johndturn-quotableapiproxy.web.val.run/

Example Return value:

[
    {
        "_id": "r7qJ-YKIq2e",
        "author": "Earl Monroe",
        "content": "Just be patient. Let the game come to you. Don't rush. Be quick, but don't hurry.",
        "tags": [
            "Sports",
            "Competition"
        ],
        "authorSlug": "earl-monroe",
        "length": 81,
        "dateAdded": "2022-07-06",
        "dateModified": "2023-04-14"
    }
]

@DrPanayioths
Copy link

https://johndturn-quotableapiproxy.web.val.run/

Thank You Very Much @johndturn, i wanted to use this api but i tried to find a workaround for the Cert Expired but i didn't found anything and now i found your comment, and the problem i was trying to resolve 3 days just got resolved

@johndturn
Copy link
Author

@DrPanayioths happy to hear it!

I wrote up a bit more on the full workaround solution for my Obsidian daily note template here, in case anyone else is curious.

@MarkOSullivan94
Copy link

@DrPanayioths happy to hear it!

I wrote up a bit more on the full workaround solution for my Obsidian daily note template here, in case anyone else is curious.

This was a huge help!

Thank you

@Musheer360
Copy link

Feel free to use my API while this one is being fixed: https://quoteslate.vercel.app/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 type: bug An issue or pull request relating to a bug in Quotable
Projects
None yet
Development

No branches or pull requests

4 participants