bitwarden / clients

Bitwarden client apps (web, browser extension, desktop, and cli).
https://bitwarden.com
Other
9.36k stars 1.26k forks source link

CLI Not Posting to Event Logs when doing get password #11039

Open jonjohnston opened 2 months ago

jonjohnston commented 2 months ago

Steps To Reproduce

  1. Log into bw cli
  2. run bw get password itemname
  3. Log into Admin Console and go to Event Logs

Expected Result

Event logs show cli user "Logged in" Event logs show cli user "Viewed password for item fasdfadfd"

Actual Result

Event logs show cli user "Logged in" Does not record that the password was viewed.

On a probably related issue. When I perform the "bw get password item" when it returns the item password it also says: "Event Post Failed"

Screenshots or Videos

No response

Additional Context

No response

Operating System

Windows, macOS, Linux

Operating System Version

No response

Shell

Bash, Zsh, PowerShell

Build Version

2024.8.2

Issue Tracking Info

SergeantConfused commented 2 months ago

Hi @jonjohnston,

Thank you for this report. I was able to reproduce this and have flagged it to the Engineering department. Please feel free to post additional information, such as screenshots or a screen video recordings, if you wish.

By the way, are you seeing 1107 (Viewed Item) events for the relevant vault item, after running bw get password <item id>? Also, on which operating system did you test this?

Thank you again,

jonjohnston commented 2 months ago

@SergeantConfused after running bw get password I get no events. I do not get 1107 or 1108 when getting password. This was tested on MacOS and Linux.