Wener Site

bitwarden

约 2 分钟阅读
  • bitwarden
    • 密码管理器
  • bitwarden/clientsGitHubbitwarden/clients密码管理器 · bitwarden/clients · GPL-3.0, TypeScript · 只支持一个账号 · web, browser extension, desktop, cli · cli - NodeJS · bitwarden/directory-connector笔记:bitwarden
    • GPL-3.0, TypeScript
    • 只支持一个账号
    • web, browser extension, desktop, cli
    • cli - NodeJS
  • bitwarden/directory-connectorGitHubbitwarden/directory-connector密码管理器 · bitwarden/clients · GPL-3.0, TypeScript · 只支持一个账号 · web, browser extension, desktop, cli · cli - NodeJS · bitwarden/directory-connector笔记:bitwarden
    • bitwarden <-> AD, LDAP, Azure, G Suite, Okta
  • bitwarden/serverGitHubbitwarden/server密码管理器 · bitwarden/clients · GPL-3.0, TypeScript · 只支持一个账号 · web, browser extension, desktop, cli · cli - NodeJS · bitwarden/directory-connector笔记:bitwarden
    • AGPLv3.0, Bitwarden License v1.0, C#
  • bitwarden/mobileGitHubbitwarden/mobile密码管理器 · bitwarden/clients · GPL-3.0, TypeScript · 只支持一个账号 · web, browser extension, desktop, cli · cli - NodeJS · bitwarden/directory-connector笔记:bitwarden
    • GPLv3, C#
    • Xamarin Android, Xamarin iOS, Xamarin Forms
  • passkey

cli

bash
npm install -g @bitwarden/cli

# for Self-hosted
bw config server https://vault.bitwarden.com
bw login

bw status

# items, folders, collections, org-collections, org-members, organizations
bw list organizations --pretty

# local web API
# https://bitwarden.com/help/vault-management-api/
# --disable-origin-protection
bw serve --port 8087

bw list items | jq '.[] | select(.name=="my-secret")'

ITEM_ID=$(bw list items | jq '.[] | select(.name=="my-secret") | .id' | tr -d '"')
bw get item $ITEM_ID --pretty
bw get item $ITEM_ID | jq '.notes="TEST"' | bw encode | bw edit item $ITEM_ID
bw get item $ITEM_ID | jq --argfile content ./notes.txt '.notes = $content' | bw encode | bw edit item $ITEM_ID
Packages@bitwarden/clinpm Package@bitwarden/cliNPM
Environment VariableDescription
BITWARDENCLI_APPDATA_DIR
BITWARDENCLI_DEBUGdebug
BW_CLIENTIDclient_id
BW_CLIENTSECRET
BW_SESSIONfor unlock
BW_PASSWORD--passwordenv
NODE_EXTRA_CA_CERTSfor self-signed certificate
bash
# backupVaults.sh
echo "Logging into vault"
export CODE="$(bash /backups/_internal/decode.sh "$(< /backups/_internal/encoded-credentials.txt)")" # I use a custom openssl scripts to decode my encoded vault password
export BW_SESSION=$(bw unlock --passwordenv CODE --raw $1)
unset CODE

echo "Removing leftover exports"
rm bitwarden_org_export*.json
rm bitwarden_org_export*.enc

echo "Backing up org: Primary"
bw export --organizationid 93601111-af11-4fd4-8307-06dc2a11a9cf --format json
bash /backups/_internal/encryptFile.sh bitwarden_org_export*.json $MY_SECRET # custom openssl script to encode the unencrypted json with MY_SECRET
rm bitwarden_org_export*.json
mv bitwarden_org_export*.enc /backups/primary

# repeat for all orgs...

echo "Clearing session token"
unset BW_SESSION
echo "Done"

关联信息

反向链接和本文引用的外部资料。

反向链接

  • Service Awesome
    笔记 · bitwarden

    backstage/backstage · platform for building developer portals · 开发者门户网站 · 管理服务、基础设施、文档 · 追踪组织生态系统中所有软件的所有权和元数据 · amplication/amplication

References

GitHub

5 条

其他外链

1 条
最近更新commit 521899bEdit

On this page