BitWarden

Authentication & Configuration

To use BitWarden module:

  • Ensure BitWarden CLI bw is available in the same context novops runs in
  • Set environment variable BW_SESSION_TOKEN
environments:
  dev:
    files: 
      - variable: PRIVATE_SSH_KEY
        content:
          bitwarden:
            # Name of the entry to load
            entry: Some SSH Key entry
            # Field to read from BitWarden objects. Maps directly to JSON field from 'bw get item' command
            # See below for details
            field: notes

Novops will load items using bw get item as JSON. field must be set to expected field. Separate sub-field with .. Examples:

  • Secure Note item
    field: notes
    
  • Login item
    field: login.username
    field: login.password
    field: login.totp
    
  • Identity item:
    field: identity.title
    field: identity.firstName
    # field: identity.xxx
    
  • Card item:
    field: card.cardholderName
    field: card.number
    field: card.expMonth
    field: card.expYear
    field: card.code
    field: card.brand 
    

To get full output from BitWarden, use bw getor bw get template