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

NAME

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

VERSION

version 0.03

SYNOPSIS

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

 # Grab the MongoDB secret backend object
 my $mongodb = $vault->secret( backend => 'cassandra' );

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

DESCRIPTION

The MongoDB 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

Parameters

$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@fragfest.com.au>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2023 by Dean Hamstad.

This is free software, licensed under:

  The MIT (X11) License