Open akamensky opened 3 years ago
Also, while v5
seemingly works, how ffs do I log from there? I cannot find anywhere in documentation how to make log entries from plugin to main app logs...
@taoism4504 Maybe we can work with @digivava on sorting this out?
Describe the bug /me attempt to write a plugin for handling temporary users in database using https://www.vaultproject.io/docs/secrets/databases/custom as a guide. /me discover that
github.com/hashicorp/vault/api/plugins
package does not exist, instead seemingly same types and functions are available ingithub.com/hashicorp/vault/api
github.com/hashicorp/vault/sdk/database/v5
does not have methodServe(Database, TLSConfig)
method, onlyServe(Database)
existsv5
with1.7.3
, but without TLSConfig (because of point numero 2), results in:To Reproduce Steps to reproduce the behavior:
Expected behavior Up-to-date documentation that references actual existing packages. Preferably with some example code. Also explanations on the use of arguments and return values. I.e.
ctx
argument is present in pretty much all ofDatabase
methods, but there is no documentation on what kind of context object can be expected. Is it timed, or is it cancellable? What is the use for context in context of plugin?Environment:
vault status
): 1.7.3vault version
): N/AVault server configuration file(s):
Additional context SDK/API are maybe bug free, but documentation needs to be up-to-date else how can anyone really use it?