by the_mitsuhiko · 1y ago · 0 comments
My GraphQL plugin for example works by firing off internal requests against Datasette's REST API and I ended up needing some gnarly hacks to get authentication to work with that.
I like this kind of mechanism (circuit-breaker) as a last ditch effort to prevent failures by then erroring out before it does more damage. I never made any good experiences with silently disabling stuff.
Trade-offs aside, I personally find the idea of re-running the request through the stack a bit hacky.