0.3.0 • Published 9 months ago

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

Weekly downloads
-
License
MIT
Repository
github
Last release
9 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.3.0

9 months ago

0.2.7

12 months ago

0.2.6

12 months ago

0.2.5

12 months ago

0.2.4

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.2.3

2 years ago

0.2.2

2 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago