Socket
Book a DemoInstallSign in
Socket

@dmno/encrypted-vault-plugin

Package Overview
Dependencies
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dmno/encrypted-vault-plugin

dmno plugin to store secrets encrypted in your repo

0.0.10
latest
Source
npmnpm
Version published
Maintainers
2
Created
Source

Check out the docs for more information on how to use DMNO with an encrypted vault for your secrets.

If you have any questions, please reach out to us on Discord.

@dmno/encrypted-vault-plugin npm

Provides functionality to encrypt and store secrets committed to your repo for the @dmno config engine

Plugin

Installation

npm add @dmno/encrypted-vault-plugin

Initialization

import { defineDmnoService, configPath } from 'dmno';
import { EncryptedVaultDmnoPlugin, EncryptedVaultTypes } from '@dmno/encrypted-vault-plugin';

const MyProdVault = new EncryptedVaultDmnoPlugin('vault/prod', {
  key: configPath('..', 'DMNO_VAULT_KEY'),
});


export default defineDmnoService({
  schema: {
    DMNO_VAULT_KEY: {
      extends: EncryptedVaultTypes.encryptionKey,
      // NOTE - the type itself is already marked as secret
    },
    // simple case example
    SUPER_SECRET_ITEM: {
      value: MyProdVault.item(),
    },
  },
});

Value Resolvers

Fetch item using unique IDs

myEncryptedVault.item()

Data Types

  • EncryptedVaultTypes.encryptionKey

CLI Commands

# set up a new encrypted vault
dmno plugin -p vault -- setup

# Update or insert an item to te vault
dmno plugin -p vault -- upsert

# add an item to the vault
dmno plugin -p vault -- add

# update an item in the vault
dmno plugin -p vault -- update

# delete an item from the vault
dmno plugin -p vault -- delete

# delete an item from the vault
dmno plugin -p vault -- delete

Keywords

dmno

FAQs

Package last updated on 15 Jan 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.