communicate with vault API (write in database/config/DBName) within database plugin

37 views
Skip to first unread message

Alireza David

unread,
Feb 27, 2020, 11:09:51 AM2/27/20
to Vault
I'm using Oracle database plugin, I wanted to access specific API path like `database/config/DBName` and change DB connection string within the plugin. 

Is it possible to call the vault process API via the database plugin?

For example inside this method

func (o *Oracle) SetCredentials(ctx context.Context, statements dbplugin.Statements, staticUser dbplugin.StaticUserConfig) (username, password string, err error)


I want to read and write to this API path `database/config/DBName`, in other words, Do we have a client object in database plugin so we can use it to communicate through vault API with vault process?

Vishal Nayak

unread,
Mar 25, 2020, 6:18:34 PM3/25/20
to Vault
Hi there,

Creating a Vault API client within the plugin with a token that has permissions to read/write to that path seems to be the way to go.

Regards,
Vishal
Reply all
Reply to author
Forward
0 new messages