Latest bw-linux 2024.6.1 isnt compatible with vaultwarden anymore #1059

Closed
opened 2026-04-06 01:34:12 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @peterge-misoft on 7/9/2024

Subject of the issue

We use a CI pipeline that downloads and encrypts a dump of our whole vault. Its running every week. Last week with 2024.6.0 it did work just fine, but this week with 2024.6.1 it says Invalid master password. when executing bw unlock. I did not change the pw of course.

Deployment environment

  • vaultwarden version:
    Vaultwarden Web Version 2024.1.2 (vaultwarden/server:latest)

Steps to reproduce

  script:
    # Install prerequisites
    - apt-get update >/dev/null && apt install unzip sshpass wget -y >/dev/null 
    - wget --no-check-certificate 'https://vault.bitwarden.com/download/?app=cli&platform=linux' -O bw-linux.zip > /dev/null 2>&1
    - unzip bw-linux.zip
    - rm bw-linux.zip
    - chmod +x bw
    # Set timezone to Eurpoe/Berlin for printing date
    - ln -fs /usr/share/zoneinfo/Europe/Berlin /etc/localtime
    - dpkg-reconfigure -f noninteractive tzdata
    # Install certificate
    - echo "$CERTIFICATE" > /root/certificate.pem
    # Set env vars
    - export NODE_EXTRA_CA_CERTS="/root/certificate.pem"
    - export BW_CLIENTID=$BW_CLIENTID
    - export BW_CLIENTSECRET=$BW_CLIENTSECRET
    - export MASTERPASSWORD_EXPORT_USER="$MASTERPASSWORD_EXPORT_USER"
    # Show bw-cli version
    - ./bw -v
    # Configure server
    - ./bw config server https://pass.misoft.local/
    # Login in
    - ./bw login --apikey
    # Export the session key as env var
    - export BW_SESSION=$(./bw unlock --passwordenv MASTERPASSWORD_EXPORT_USER --raw)
    # Export the misoft organization in plaintext
    - ./bw export --organizationid 4ad08680-93e8-400e-a74b-cde5c6e41ce3 --format json --output vaultwarden-misoft-organization-export.json

Expected behaviour

create a dump file, this is the CI output from last week with bw 2024.6.0:
image

Actual behaviour

this is the CI output with bw 2024.6.1:
image

Troubleshooting data

see both screenshots

*Originally created by @peterge-misoft on 7/9/2024* <!-- # ### NOTE: Please update to the latest version of vaultwarden before reporting an issue! This saves you and us a lot of time and troubleshooting. See: * https://github.com/dani-garcia/vaultwarden/issues/1180 * https://github.com/dani-garcia/vaultwarden/wiki/Updating-the-vaultwarden-image # ### --> <!-- Please fill out the following template to make solving your problem easier and faster for us. This is only a guideline. If you think that parts are unnecessary for your issue, feel free to remove them. Remember to hide/redact personal or confidential information, such as passwords, IP addresses, and DNS names as appropriate. --> ### Subject of the issue We use a CI pipeline that downloads and encrypts a dump of our whole vault. Its running every week. Last week with 2024.6.0 it did work just fine, but this week with 2024.6.1 it says `Invalid master password.` when executing bw unlock. I did not change the pw of course. ### Deployment environment <!-- ========================================================================================= Preferably, use the `Generate Support String` button on the admin page's Diagnostics tab. That will auto-generate most of the info requested in this section. ========================================================================================= --> <!-- The version number, obtained from the logs (at startup) or the admin diagnostics page --> <!-- This is NOT the version number shown on the web vault, which is versioned separately from vaultwarden --> <!-- Remember to check if your issue exists on the latest version first! --> * vaultwarden version: Vaultwarden Web Version 2024.1.2 (vaultwarden/server:latest) <!-- How the server was installed: Docker image, OS package, built from source, etc. --> * Install method: docker compose * Clients used: <!-- web vault, desktop, Android, iOS, etc. (if applicable) --> bw-linux 2024.6.1 https://vault.bitwarden.com/download/?app=cli&platform=linux * Other relevant details: ### Steps to reproduce ``` script: # Install prerequisites - apt-get update >/dev/null && apt install unzip sshpass wget -y >/dev/null - wget --no-check-certificate 'https://vault.bitwarden.com/download/?app=cli&platform=linux' -O bw-linux.zip > /dev/null 2>&1 - unzip bw-linux.zip - rm bw-linux.zip - chmod +x bw # Set timezone to Eurpoe/Berlin for printing date - ln -fs /usr/share/zoneinfo/Europe/Berlin /etc/localtime - dpkg-reconfigure -f noninteractive tzdata # Install certificate - echo "$CERTIFICATE" > /root/certificate.pem # Set env vars - export NODE_EXTRA_CA_CERTS="/root/certificate.pem" - export BW_CLIENTID=$BW_CLIENTID - export BW_CLIENTSECRET=$BW_CLIENTSECRET - export MASTERPASSWORD_EXPORT_USER="$MASTERPASSWORD_EXPORT_USER" # Show bw-cli version - ./bw -v # Configure server - ./bw config server https://pass.misoft.local/ # Login in - ./bw login --apikey # Export the session key as env var - export BW_SESSION=$(./bw unlock --passwordenv MASTERPASSWORD_EXPORT_USER --raw) # Export the misoft organization in plaintext - ./bw export --organizationid 4ad08680-93e8-400e-a74b-cde5c6e41ce3 --format json --output vaultwarden-misoft-organization-export.json ``` ### Expected behaviour create a dump file, this is the CI output from last week with bw 2024.6.0: ![image](https://github.com/dani-garcia/vaultwarden/assets/162673647/c5738f55-a269-48aa-af2e-9eada6496499) ### Actual behaviour this is the CI output with bw 2024.6.1: ![image](https://github.com/dani-garcia/vaultwarden/assets/162673647/9639dd5a-58a3-47bd-bb58-c9a53dc91da3) ### Troubleshooting data <!-- Share any log files, screenshots, or other relevant troubleshooting data --> see both screenshots
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/vaultwarden#1059