Database providers that use API keys instead of Username / Password

Hello, I’ve been working on this: Adding InfluxDB v2 support by stevenleadbeater · Pull Request #14035 · hashicorp/vault · GitHub (influxdb v2 support) to address this: Adding InfluxDB v2 support by stevenleadbeater · Pull Request #14035 · hashicorp/vault · GitHub (lack of inflxudb v2 support) and have got a bit stuck. The way influxdb v2 works is by using a generated API key for authentication. username and password authentication doesn’t work well with things like telegraf, there are some things you just can’t do without an API key / token. This seems to be incompatible with the plugin architecture in vault.

Specifically sdk/database/dbplugin/v5/database.go:
NewUserRequest and NewUserResponse give no facility for and API key to be returned instead of a password vault determines. I’m not sure how to progress with this. Vault won’t let the database determine the password and influxdb won’t let the consumer determine the password…