-
Notifications
You must be signed in to change notification settings - Fork 202
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
[Tracking] Support for Hashicorp Vault #1216
Comments
Pls kindly see my comments below.
For
For |
Thanks, Kailun. Updating with your suggestions made that build error go away, but landed in another error related to azure go sdk.
|
I don't know how to fix the latest build error (maybe some googling will help?). But it looks like slowly but steadily Golang itself and its popular libraries/modules are embracing the "dynamic linking" world. This is very good news for Gramine :)
Go is full of such ad-hoc tricks... |
Yeah. I tried updating some modules in azure-sdk-for-go to their latest, but that ends up in other issues. |
The latest related modules do not resolve the issue. A more straightforward one is to disable azure plugin in building, however it's a built-in vault plugin which IDK how to make it... |
Yes. I tried that as well, but I could not find a way to disable it. |
The hashicorp dependencies that I encountered for building a dynamically linked binary are (possibly) resolved now, but there are errors internal to vault source that prevents the shared object build. I raised a GitHub issue with vault yesterday, and they closed saying it won't be supported. Error building with |
Not sure what to do with this GitHub issue. Does anyone want to re-test support for Hashicorp Vault and report on the results? Maybe it's fully supported by now. |
This should be closed, as it doesn't represent any concrete issue with Gramine and there's nothing to do on our side. If you find some specific problems with Vault then please file separate issues for each. |
[There is no issue in Gramine at present; This issue is filed only for tracking purposes]
The issue is with building Hashicorp Vault source as a dynamically linked binary instead of a statically linked library which comes by default.
Vault source code present at https://github.com/hashicorp/vault was previously using gox for building the binary. That did not support dynamically linked binary. Over the second half of last year vault scripts were updated to use
go
directly, but by default the binary is built as statically linked. As we know, this binary has inline syscalls that degrades performance while running in Gramine.When I tried to introduce
--linkshared
option there are three dependent ingredients that fail to link properly. There are issues discussed in GitHub and other forums, but I couldn't find any resolution for those.I also tried to build a
hello
binary with--linkshared
and that builds and works without issues.The text was updated successfully, but these errors were encountered: