Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(keychain): add rust keychain plugin vault implementation
This is partially a new feature, partially an example to demonstrate how one can develop a plugin written in in rust that then will be callable by other (non-rust) plugins that are hosted inside a Cactus node's API server(s). 99% of the rust code here was generated by the command below: docker run --rm -v "${PWD}:/local" openapitools/openapi-generator-cli generate \ --input-spec https://raw.githubusercontent.com/petermetz/cactus/feat/cmd-api-server/out-of-process-plugin-Instances-for-language-Independence-170/packages/cactus-plugin-keychain-vault/src/main/json/openapi.json \ --generator-name rust-server \ -o /local/gen/rust-server The only thing that was then added to the generated rust code is the logic that uses the vault client create to do the get/set operations in vault and parses the environment variables for the vault token, host. Still a to-do for the above to have a proper has/delete method in the rust code which was not implemented due to time constraints. Also added a Typescript implementation of the vault keychain plugin just so that we can have a full end to end test coverage of all the variants of configurations where the plugin is local vs. remote. Signed-off-by: Peter Somogyvari <peter.somogyvari@accenture.com>
- Loading branch information