by malachygr · 8y ago · 0 comments
We will plug some of these (and other) open source products in the articles, but we really want to teach you something. There is so much SEO-optimized onboarding (for expensive blackbox SaaS) content with little substance on this topic. We really hope this helps you!
One last thing: We hope it's ok that the other parts are not ready yet. Aeneas (author of the guide) is trying to push out one ~ every month! Getting this content right is a lot of work :)
Cheers!
[1] http://hackingdistributed.com/2014/05/21/my-first-macaroon/
For example, verification of third party Macaroons requires building a directed graph, that needs cycle detection. No implementation that I've checked does this instead allowing only one level of nesting.
Third party caveats have more problems, if a third party would issue them they need to be standardized but there is no such standard. Worse, even the underlying byte format is not standardized instead there is this de facto standard of using "variable op value" format. But what variables are supported? It needs to be specified or the third party macaroon would be invalid.
If we talk about byte formats Macaroons are serialized using another custom format. Compare this with base64 and JSON used by JWT.
Then there are certain "programming shortcuts" in implementations [0].
I've spent some time implementing Javascript library to build and verify Macaroons from the paper (that is also inconsistent with the de facto implementations) but ultimately I've decided to just use limited subset of JWT. It's just simpler.
[0]: https://github.com/nitram509/macaroons.js/blob/master/lib/Cr...
https://about.sourcegraph.com/go/gophercon-2018-an-over-engi...
The first code example is missing an end ' in the endpoint string. '/some-protected-resource -> '/some-protected-resource'.
(Not convinced about "ultimative" though. I'm assuming you were going for a portmanteau of "ultimate" and "definitive", but I suspect a lot of people are just going to read it as "ultimate" and subsequently remember/Google the wrong thing.)