Replies: 2 comments
-
Hello @jmls Like upstream, we do not support importing all of OpenBao (core) as a library. You can however import SDK does include a testing module, if you wish to develop a plugin and test against OpenBao, though I imagine this is broken at the moment. Hope this helps. |
Beta Was this translation helpful? Give feedback.
-
@jmls Edit: |
Beta Was this translation helpful? Give feedback.
-
TL/DR; Can I use openbao as a library in a separate go project ?
I am a complete noob at go, and I thought that I'd teach myself it by working on / changing my favourite go program Vault. Or, now, openBao ;)
The first task I wanted to do was to learn fibre, and thought that it would be an interesting side-project to replace the http endpoints in openabo with a fibre-based version instead
However, and isn't this always the way, scope creep crept in and because I am not entirely familiar with the language too many questions started to be unanswered.
My first thought was to create a new http server using fibre, and then calling the openbao cli , but didn't sit too well with me.
A second thought was to create a sort of "openbao proxy" where my app would expose the http endpoints using fibre and then sending onto the local openbao server (which is listening on 127.0.0.1 only)
Then something else caught my attention where it was intimated that a go package could be imported into a project and re-used
So, after a long preamble, I get to my TL/DR; Can I use openbao as a library in a separate go project ?
Sorry if it's a stupid question but didn't want to go down too many rabbit holes :)
Beta Was this translation helpful? Give feedback.
All reactions