open-vault/logical/framework
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
..
backend.go Backend plugin system (#2874) 2017-07-20 13:28:40 -04:00
backend_test.go Fix TypeDurationSecond to not panic at runtime if the given default is a string (#2396) 2017-02-17 17:25:53 -05:00
field_data.go fixing Validate() for field data on TypeNameString (#3030) 2017-07-17 13:44:47 -07:00
field_data_test.go fixing Validate() for field data on TypeNameString (#3030) 2017-07-17 13:44:47 -07:00
field_type.go Add field type TypeNameString (#3028) 2017-07-17 11:39:58 -07:00
lease.go Remove Unix() invocations on 'time.Time' objects and removed conversion of time to UTC 2016-07-08 18:30:18 -04:00
lease_test.go Remove Unix() invocations on 'time.Time' objects and removed conversion of time to UTC 2016-07-08 18:30:18 -04:00
path.go Support for 1 and 2 char names in GenericNameRegex 2016-08-30 19:37:52 +02:00
path_map.go Automatically upgrade values to salted on access if salt exists in PathMap (#2831) 2017-06-07 15:22:08 -04:00
path_map_test.go Automatically upgrade values to salted on access if salt exists in PathMap (#2831) 2017-06-07 15:22:08 -04:00
path_struct.go Added JSON Decode and Encode helpers. 2016-07-06 12:25:40 -04:00
path_struct_test.go WriteOperation -> UpdateOperation 2016-01-08 13:03:03 -05:00
policy_map.go logical/framework: more flexible Pathmap and PolicyMap 2015-04-17 09:35:49 -07:00
policy_map_test.go logical/framework: more flexible Pathmap and PolicyMap 2015-04-17 09:35:49 -07:00
secret.go Remove grace periods 2016-01-31 19:33:16 -05:00
secret_test.go vault: clean up VaultID duplications, make secret responses clearer 2015-03-19 23:11:42 +01:00
template.go logical/framework: make help look nicer 2015-04-03 21:00:23 -07:00
testing.go logical/framework: PathMap allows hyphens in keys [GH-119] 2015-05-02 13:17:42 -07:00
wal.go Merge branch 'master-oss' into json-use-number 2016-07-15 19:21:55 -04:00
wal_test.go logical/framework: only rollback old enough WAL entries 2015-03-17 20:39:46 -05:00