0.2.4 • Published 7 months ago

@rytass/secret-adapter-vault-nestjs v0.2.4

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

Rytass Utils - Secret Manager Nestjs Module (Vault)

Getting Started

This module will get vault config from env with @nestjs/common, please set following env before use.

  • VAULT_HOST (Vault service base url)
  • VAULT_ACCOUNT
  • VAULT_PASSWORD
  • VAULT_PATH (Vault secret path from root)
import { Module } from '@nestjs/common';
import { VaultService, VaultModule } from '@rytass/secret-adapter-vault-nestjs';

@Injectable()
class TestService {
  constructor(private readonly vault: VaultService) {}

  async getValue() {
    return vault.get<string>('key');
  }
}

@Module({
  imports: [VaultModule.forRoot({ path: '/', isGlobal: true })],
  providers: [TestService],
})
class TestModule {};
0.2.4

7 months ago

0.2.1

12 months ago

0.2.0

12 months ago

0.2.3

11 months ago

0.2.2

11 months ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago