Joaquín Menchaca (智裕)
1 min readMar 2, 2024

--

Why web API with curl?

A lot of vault functionality in general is only exposed through web api (JSON), with no equivalent representation in the CLI. So it becomes a trade off between inconsistent CLI + JSON or consistent JSON via web API. Over time, this may change where more APIs have CLI equivalents. Also, the documentation is rather inconsistent with full CLI examples, where the web API is more robustly documented, and at the time there was no AI assistance that could help extract better docs where there are gaps.

It's one of those scenarios: damned if you do, damned if you don't…

I am thinking of revisiting this one, having more paths, and do a pure CLI one (as much as possible). At least I should do this in the source, and then followup with an article refresh on it. If Medium had tabs in code boxes, I would have a tab with different languages, but alas it doesn't support that.

--

--

Joaquín Menchaca (智裕)
Joaquín Menchaca (智裕)

Written by Joaquín Menchaca (智裕)

DevOps/SRE/PlatformEng — k8s, o11y, vault, terraform, ansible

No responses yet