Coder Social home page Coder Social logo

bw-serve-client's Introduction

Bitwarden CLI Vault Management API

This module supports the Bitwarden CLI Vault Management API, available via Bitwarden CLI's bw serve command.

If you're looking for Bitwarden's public api (for organizational tools and stuff) that API is here.

Please note that this module won't be supporting email and master password login to start with. It's not the most secure method, but pull requests are welcome. Also, SSO support is low on the todo list, as the author doesn't use it.

Generated Code

XXX: TBD

Requirements

bw serve Configuration

This module expects the user of this module to manage the configuration and setup of the bw serve server. Documentation is here.

Authentication Steps

These authentication steps are required for the bw cli tool regardless of how it's being used. I'm including the basic steps you'll need to use this module here for completeness. Be sure to read the documentation.

  • Check status
    • unauthenticated, need to run bw login --apikey
    • locked, need to run bw unlock
    • unlocked, nothing needs to be done

bw login --apikey

Environment variables (both required):

  • BW_CLIENTID
  • BW_CLIENTSECRET

bw unlock

docs

  • --passwordenv <ENVIRONMENT_VARIABLE>
  • --passwordfile /path/to/file
  • prompt for password

Capture BW_SESSION and set it.

In bash, only bash scripts can be sourced, so we can't set the environment variable outside of the script. Provide an option for the user to be to do something like the following.

BW_SESSION="$(bw-serve-client unlock [--passwordenv|--passwordfile|prompt])"

So they aren't stomping all over themselves when using both the command line and this module.

There is a --session option for each command, but I'm not supporting that.

Installation

pip install

If the python package is hosted on a repository, you can install directly using:

pip install git+https://github.com/harleypig/bw-serve-client.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/harleypig/bw-serve-client.git)

Then import the package:

import bw_serve_client

Tests

Execute pytest to run the tests.

Getting Started

XXX: TBD

Documentation for API Endpoints

XXX: TBD

Documentation For Models

XXX: TBD

bw-serve-client's People

Contributors

harleypig avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.