open-vault/command
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
..
server Convert listener arguments to map[string]interface{} (#2905) 2017-06-22 20:29:53 +01:00
test-fixtures
token Strip trailing whitespace in token from file. 2016-08-23 20:22:45 -04:00
audit_disable.go Typo corrections and tweaks to commands' help info 2017-03-25 12:51:12 -05:00
audit_disable_test.go Add WithOptions methods to audit/auth enabling (#2383) 2017-02-16 11:37:27 -05:00
audit_enable.go add gofmt checks to Vault and format existing code (#2745) 2017-05-19 08:34:17 -04:00
audit_enable_test.go
audit_list.go Add WithOptions methods to audit/auth enabling (#2383) 2017-02-16 11:37:27 -05:00
audit_list_test.go Add WithOptions methods to audit/auth enabling (#2383) 2017-02-16 11:37:27 -05:00
auth.go Add token-only. (#2971) 2017-07-12 15:04:34 -04:00
auth_disable.go Typo corrections and tweaks to commands' help info 2017-03-25 12:51:12 -05:00
auth_disable_test.go Add WithOptions methods to audit/auth enabling (#2383) 2017-02-16 11:37:27 -05:00
auth_enable.go Backend plugin system (#2874) 2017-07-20 13:28:40 -04:00
auth_enable_test.go
auth_test.go Add a no-store option to vault auth (#2809) 2017-06-05 16:36:28 -04:00
capabilities.go
capabilities_test.go
command_test.go
config.go
config_test.go
delete.go
delete_test.go
format.go Add yml alias for yaml 2016-09-16 10:43:23 -04:00
format_test.go Added JSON Decode and Encode helpers. 2016-07-06 12:25:40 -04:00
generate-root.go Typo corrections and tweaks to commands' help info 2017-03-25 12:51:12 -05:00
generate-root_test.go Fix tests 2017-05-25 09:00:49 -04:00
init.go Typo corrections and tweaks to commands' help info 2017-03-25 12:51:12 -05:00
init_test.go Add support for PGP encrypting the initial root token. (#1883) 2016-09-13 18:42:24 -04:00
key_status.go
key_status_test.go
list.go Typo corrections and tweaks to commands' help info 2017-03-25 12:51:12 -05:00
list_test.go
mount.go Backend plugin system (#2874) 2017-07-20 13:28:40 -04:00
mount_test.go
mount_tune.go Typo corrections and tweaks to commands' help info 2017-03-25 12:51:12 -05:00
mounts.go Backend plugin system (#2874) 2017-07-20 13:28:40 -04:00
mounts_test.go
path_help.go Typo corrections and tweaks to commands' help info 2017-03-25 12:51:12 -05:00
path_help_test.go
pgp_test.go Remove hex output from keys; standardize on B64 for CLI output. This (#1831) 2016-09-01 12:59:15 -04:00
policy_delete.go
policy_delete_test.go
policy_list.go
policy_list_test.go
policy_write.go
policy_write_test.go
read.go Add unwrap command, and change how the response is embedded (as a string, not an object) 2016-05-19 11:25:15 -04:00
read_test.go
rekey.go Typo corrections and tweaks to commands' help info 2017-03-25 12:51:12 -05:00
rekey_test.go Backend plugin system (#2874) 2017-07-20 13:28:40 -04:00
remount.go Add some minor tweaks to the PR 2017-04-04 12:22:14 -04:00
remount_test.go
renew.go Typo corrections and tweaks to commands' help info 2017-03-25 12:51:12 -05:00
renew_test.go Exclude /sys/leases/renew from registering with expiration manager (#2891) 2017-06-20 12:34:00 -04:00
revoke.go Typo corrections and tweaks to commands' help info 2017-03-25 12:51:12 -05:00
revoke_test.go
rotate.go
rotate_test.go
seal.go Typo corrections and tweaks to commands' help info 2017-03-25 12:51:12 -05:00
seal_test.go
server.go Convert listener arguments to map[string]interface{} (#2905) 2017-06-22 20:29:53 +01:00
server_ha_test.go Rename physical backend to storage and alias old value (#2456) 2017-03-08 09:17:00 -05:00
server_test.go all: test: Fix govet warnings 2016-12-21 19:44:07 +01:00
ssh.go Add some minor tweaks to the PR 2017-04-04 12:22:14 -04:00
ssh_test.go
status.go Fix missing newline in status output 2017-02-17 11:23:20 -05:00
status_test.go Multi value test seal (#2281) 2017-01-17 15:43:10 -05:00
step-down.go
token_create.go Typo corrections and tweaks to commands' help info 2017-03-25 12:51:12 -05:00
token_create_test.go
token_lookup.go
token_lookup_test.go
token_renew.go Rename helper 'duration' to 'parseutil'. (#2449) 2017-03-07 11:21:22 -05:00
token_renew_test.go
token_revoke.go Add -self flag to token-revoke (#2596) 2017-04-17 12:40:51 -04:00
token_revoke_test.go
unmount.go Typo corrections and tweaks to commands' help info 2017-03-25 12:51:12 -05:00
unmount_test.go
unseal.go Typo corrections and tweaks to commands' help info 2017-03-25 12:51:12 -05:00
unseal_test.go Multi value test seal (#2281) 2017-01-17 15:43:10 -05:00
unwrap.go Typo corrections and tweaks to commands' help info 2017-03-25 12:51:12 -05:00
unwrap_test.go all: test: Fix govet warnings 2016-12-21 19:44:07 +01:00
util.go cli: fix bug with 'vault read -field=...' when the field value contains a printf formatting verb (#2109) 2016-11-22 12:30:23 -05:00
version.go Add cgo info to vault version output 2016-11-27 19:32:57 -05:00
version_test.go
wrapping_test.go
write.go Write always needs a path, even with force. (#2675) 2017-05-04 06:40:58 -04:00
write_test.go Fix tests 2017-05-25 09:00:49 -04:00