open-vault/api
Calvin Leung Huang bb54e9c131 Backend plugin system (#2874)
* Add backend plugin changes

* Fix totp backend plugin tests

* Fix logical/plugin InvalidateKey test

* Fix plugin catalog CRUD test, fix NoopBackend

* Clean up commented code block

* Fix system backend mount test

* Set plugin_name to omitempty, fix handleMountTable config parsing

* Clean up comments, keep shim connections alive until cleanup

* Include pluginClient, disallow LookupPlugin call from within a plugin

* Add wrapper around backendPluginClient for proper cleanup

* Add logger shim tests

* Add logger, storage, and system shim tests

* Use pointer receivers for system view shim

* Use plugin name if no path is provided on mount

* Enable plugins for auth backends

* Add backend type attribute, move builtin/plugin/package

* Fix merge conflict

* Fix missing plugin name in mount config

* Add integration tests on enabling auth backend plugins

* Remove dependency cycle on mock-plugin

* Add passthrough backend plugin, use logical.BackendType to determine lease generation

* Remove vault package dependency on passthrough package

* Add basic impl test for passthrough plugin

* Incorporate feedback; set b.backend after shims creation on backendPluginServer

* Fix totp plugin test

* Add plugin backends docs

* Fix tests

* Fix builtin/plugin tests

* Remove flatten from PluginRunner fields

* Move mock plugin to logical/plugin, remove totp and passthrough plugins

* Move pluginMap into newPluginClient

* Do not create storage RPC connection on HandleRequest and HandleExistenceCheck

* Change shim logger's Fatal to no-op

* Change BackendType to uint32, match UX backend types

* Change framework.Backend Setup signature

* Add Setup func to logical.Backend interface

* Move OptionallyEnableMlock call into plugin.Serve, update docs and comments

* Remove commented var in plugin package

* RegisterLicense on logical.Backend interface (#3017)

* Add RegisterLicense to logical.Backend interface

* Update RegisterLicense to use callback func on framework.Backend

* Refactor framework.Backend.RegisterLicense

* plugin: Prevent plugin.SystemViewClient.ResponseWrapData from getting JWTs

* plugin: Revert BackendType to remove TypePassthrough and related references

* Fix typo in plugin backends docs
2017-07-20 13:28:40 -04:00
..
test-fixtures moved the test cert keys to appropriate test-fixtures folder 2016-02-29 15:49:08 -05:00
SPEC.md Update documentation to be consistent with return codes 2015-12-10 10:26:40 -05:00
api_integration_test.go updating for TestCluster changes 2017-07-10 20:47:03 -07:00
api_test.go Use a separate package for API integration tests 2017-07-07 17:14:45 -04:00
auth.go Remove RevokePrefix from the API too as we simply do not support it any 2016-04-05 11:00:12 -04:00
auth_token.go Use RenewTokenAsSelf instead 2017-07-07 17:14:44 -04:00
client.go Adding option to set custom vault client timeout using env variable VAULT_CLIENT_TIMEOUT (#3022) 2017-07-18 09:48:31 -04:00
client_test.go Adding option to set custom vault client timeout using env variable VAULT_CLIENT_TIMEOUT (#3022) 2017-07-18 09:48:31 -04:00
help.go command/help 2015-04-02 22:42:05 -07:00
logical.go Better handle nil responses in logical unwrap 2016-12-01 16:38:08 -05:00
renewer.go Do not double-convert to seconds 2017-07-11 16:06:50 -07:00
renewer_integration_test.go Fix vet errors 2017-07-07 17:14:47 -04:00
renewer_test.go Fix failing test 2017-07-07 17:14:49 -04:00
request.go Return error on bad CORS and add Header specification to API request primitive 2017-06-19 18:20:44 -04:00
request_test.go api: Allow reseting of request body 2015-04-20 10:44:51 -07:00
response.go api: Don't treat 429 as error (#2850) 2017-06-12 18:31:36 -04:00
secret.go Plumb request UUID through the API 2016-07-27 09:25:04 -04:00
secret_test.go Add token accessor to wrap information if one exists 2016-06-13 23:58:17 +00:00
ssh.go ssh-helper api changes 2016-02-23 00:16:00 -05:00
ssh_agent.go allow a TLS server name to be configured for SSH agents (#1720) 2016-08-23 22:06:56 -04:00
ssh_agent_test.go Fix breakage for HTTP2 support due to changes in wrapping introduced in 1.8 (#2412) 2017-02-27 12:49:35 -05:00
sys.go api: separate sys out further 2015-03-11 17:46:41 -05:00
sys_audit.go Add WithOptions methods to audit/auth enabling (#2383) 2017-02-16 11:37:27 -05:00
sys_auth.go Backend plugin system (#2874) 2017-07-20 13:28:40 -04:00
sys_capabilities.go Restore compatibility with pre-0.6.1 servers for CLI/Go API calls 2016-08-14 14:52:45 -04:00
sys_config_cors.go Cors headers (#2021) 2017-06-17 00:04:55 -04:00
sys_generate_root.go Return status for rekey/root generation at init time. This mitigates a 2016-02-12 14:24:36 -05:00
sys_health.go Add Health() method to Sys client (#2805) 2017-06-05 11:00:45 -04:00
sys_init.go Add support for PGP encrypting the initial root token. (#1883) 2016-09-13 18:42:24 -04:00
sys_leader.go api: Support sys/leader endpoint 2015-04-20 12:04:13 -07:00
sys_lease.go reverting client changes in #2856 (#2866) 2017-06-14 16:39:20 -04:00
sys_mounts.go Backend plugin system (#2874) 2017-07-20 13:28:40 -04:00
sys_policy.go Restore compatibility with pre-0.6.1 servers for CLI/Go API calls 2016-08-14 14:52:45 -04:00
sys_rekey.go Provide base64 keys in addition to hex encoded. (#1734) 2016-08-15 16:01:15 -04:00
sys_rotate.go Restore compatibility with pre-0.6.1 servers for CLI/Go API calls 2016-08-14 14:52:45 -04:00
sys_seal.go Add nonce to unseal to allow seeing if the operation has reset (#2276) 2017-01-17 11:47:06 -05:00
sys_stepdown.go Provide 'sys/step-down' and 'vault step-down' 2016-02-26 19:43:55 -05:00