open-vault/http
Christopher Swenson b136a7ecd8
Add plugin version to GRPC interface (#17088)
Add plugin version to GRPC interface

Added a version interface in the sdk/logical so that it can be shared between all plugin types, and then wired it up to RunningVersion in the mounts, auth list, and database systems.

I've tested that this works with auth, database, and secrets plugin types, with the following logic to populate RunningVersion:

If a plugin has a PluginVersion() method implemented, then that is used
If not, and the plugin is built into the Vault binary, then the go.mod version is used
Otherwise, the it will be the empty string.
My apologies for the length of this PR.

* Placeholder backend should be external

We use a placeholder backend (previously a framework.Backend) before a
GRPC plugin is lazy-loaded. This makes us later think the plugin is a
builtin plugin.

So we added a `placeholderBackend` type that overrides the
`IsExternal()` method so that later we know that the plugin is external,
and don't give it a default builtin version.
2022-09-15 16:37:59 -07:00
..
web_ui
assets.go update gofumpt to 0.3.1 and reformat the repo (#17055) 2022-09-07 17:31:20 -07:00
assets_stub.go
auth_token_test.go Revert the WithContext changes to vault tests (#14947) 2022-04-07 15:12:58 -04:00
cors.go
custom_header_test.go
forwarded_for_test.go
forwarding_bench_test.go Update deps for consul-template 0.29.0 (#15293) 2022-05-05 10:30:40 -07:00
forwarding_test.go Revert the WithContext changes to vault tests (#14947) 2022-04-07 15:12:58 -04:00
handler.go update gofumpt to 0.3.1 and reformat the repo (#17055) 2022-09-07 17:31:20 -07:00
handler_test.go Add plugin version to GRPC interface (#17088) 2022-09-15 16:37:59 -07:00
help.go
help_test.go
http_test.go
logical.go update gofumpt to 0.3.1 and reformat the repo (#17055) 2022-09-07 17:31:20 -07:00
logical_test.go Parse query parameters for GET request turned in logical.ListOperation (#16991) 2022-09-02 14:21:25 -07:00
plugin_test.go Support version selection for database plugins (#16982) 2022-09-09 17:32:28 +01:00
sys_audit_test.go
sys_auth_test.go Add plugin version to GRPC interface (#17088) 2022-09-15 16:37:59 -07:00
sys_config_cors_test.go
sys_config_state_test.go Vault 3992 ToB Config and Plugins Permissions (#14817) 2022-04-04 09:45:41 -07:00
sys_feature_flags.go
sys_generate_root.go
sys_generate_root_test.go
sys_health.go
sys_health_test.go
sys_hostinfo_test.go Revert the WithContext changes to vault tests (#14947) 2022-04-07 15:12:58 -04:00
sys_in_flight_requests.go
sys_in_flight_requests_test.go
sys_init.go Validate parameters for vault operator init (#16379) 2022-07-25 12:45:04 -07:00
sys_init_test.go OSS portion of wrapper-v2 (#16811) 2022-08-23 15:37:16 -04:00
sys_internal_test.go
sys_leader.go
sys_leader_test.go
sys_lease_test.go
sys_metrics.go
sys_metrics_test.go
sys_monitor_test.go api/monitor: Adding log format to monitor command and debug (#15536) 2022-05-24 13:10:53 -04:00
sys_mount_test.go Add plugin version to GRPC interface (#17088) 2022-09-15 16:37:59 -07:00
sys_mounts_test.go Revert the WithContext changes to vault tests (#14947) 2022-04-07 15:12:58 -04:00
sys_policy_test.go
sys_raft.go Use %q for quoted strings where appropriate (#15216) 2022-08-03 12:32:45 -06:00
sys_rekey.go
sys_rekey_test.go
sys_rotate_test.go
sys_seal.go
sys_seal_test.go Add build date (#14957) 2022-04-19 14:28:08 -04:00
sys_wrapping_test.go VAULT-7698 Fix ignored parameter warnings for endpoint arbitrary data options (#16794) 2022-08-23 08:51:23 -04:00
testing.go
unwrapping_raw_body_test.go Revert the WithContext changes to vault tests (#14947) 2022-04-07 15:12:58 -04:00
util.go VAULT-6614 Enable role based quotas for lease-count quotas (OSS) (#16157) 2022-07-05 13:02:00 -04:00