The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

WebService::HashiCorp::Vault::Secret::PostgreSQL - Perl API for HashiCorp's Vault (PostgreSQL)

VERSION

version 0.003

SYNOPSIS

 use WebService::HashiCorp::Vault;
 my $vault->new(%args);

 # Grab the PostgreSQL secret backend object
 my $postgresql = $vault->secret( backend => 'postgresql' );

 # Grab a generated credential for the database
 $postgresql->cred($name);

DESCRIPTION

The PostgreSQL Secret Backend handling for HashiCorps Vault server software. To be used via WebService::HashiCorp::Vault.

METHODS

creds

 my $credentials = $backend->creds($name);

 Generates dynamic credentials based upon the named role

Paramaters

$name (string: required) - Specifies the name of the role to create credentials against. This is part of the request URL.

Returns

A hashref containing the credentials

AUTHOR

Dean Hamstead <dean@bytefoundry.com.au>

COPYRIGHT AND LICENSE

This software is copyright (c) 2017 by Dean Hamstad.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.