beta/bx.hashicorp

Bitrix HashiCorp Vault

Installs: 53

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 0

Open Issues: 0

Type:bitrix-module

1.1.0 2022-11-25 09:00 UTC

This package is auto-updated.

Last update: 2024-04-25 11:48:52 UTC


README

Example:

use Bx\HashiCorp\Factory;

$vaultOptionHolder = Factory::crateCached('main');  // init option holder from module setting
$vaultOptionHolder->getOptionValue('PRIVATE_KEY', 'my.module'); // read value by key PRIVATE_KEY
$vaultOptionHolder->setOptionValue('PRIVATE_KEY', '...', 'my.module'); // update value by key PRIVATE_KEY