0.0.13 • Published 9 months ago

@dmno/1password-plugin v0.0.13

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

Check out the docs for more information on how to use DMNO with 1Password.

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


@dmno/1password-plugin npm

Securely use your secrets and data from 1password within DMNO Config Engine.

Plugin

Installation

npm add @dmno/1password-plugin

Example Usage

import { OnePasswordDmnoPlugin, OnePasswordTypes } from '@dmno/1password-plugin';

// token will be injected using types by default
const onePassSecrets = new OnePasswordDmnoPlugin('1pass');

// or you can wire up the path explicitly
const onePassSecrets2 = new OnePasswordDmnoPlugin('1passWithExplicitPath', {
  token: configPath('..', 'OP_TOKEN'),
});

export default defineDmnoService({
  schema: {
    OP_TOKEN: {
      extends: OnePasswordTypes.serviceAccountToken,
      // NOTE - the type itself is already marked as sensitive 🔐
    },
  },
});

Value Resolvers

Fetch from .env blob

onePassVault.item()

Fetch item using unique IDs

onePassVault.itemById(vaultId, itemId, fieldId)

Fetch item using private link

onePassVault.itemByLink(itemLink, fieldId)

Fetch item using secret reference URI

onePassVault.itemByReference(itemReferenceUri)

Data Types

  • OnePasswordTypes.serviceAccountToken
  • OnePasswordTypes.uuid
  • OnePasswordTypes.vaultId
  • OnePasswordTypes.itemId
  • OnePasswordTypes.secretReferenceUri
  • OnePasswordTypes.itemLink
0.0.10

11 months ago

0.0.11

11 months ago

0.0.12

10 months ago

0.0.13

9 months ago

0.0.9

12 months ago

0.0.8

12 months ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.3

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.2

2 years ago

0.0.1

2 years ago