Skip to content

Commit

Permalink
⬆️ Upgrades Vaultwarden to 1.21.0 (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck authored May 9, 2021
1 parent be6a2be commit 4051e97
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 23 deletions.
6 changes: 3 additions & 3 deletions bitwarden/.README.j2
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Home Assistant Community Add-on: Bitwarden RS
# Home Assistant Community Add-on: Bitwarden (Vaultwarden)

[![Release][release-shield]][release] ![Project Stage][project-stage-shield] ![Project Maintenance][maintenance-shield]

Expand All @@ -19,7 +19,7 @@ The Bitwarden platform offers a variety of client applications including
a web interface, desktop applications, browser extensions and mobile apps.

This add-on is based upon the lightweight and opensource
[Bitwarden RS][bitwarden-rs] implementation, allowing you to self-host
[Vaultwarden][vaultwarden] implementation, allowing you to self-host
this amazing password manager.

Password theft is a serious problem. The websites and apps that you use are
Expand Down Expand Up @@ -68,7 +68,6 @@ If you are more interested in stable releases of our add-ons:
<https://github.com/hassio-addons/repository>

{% endif %}
[bitwarden-rs]: https://github.com/dani-garcia/bitwarden_rs
[discord-shield]: https://img.shields.io/discord/478094546522079232.svg
[discord]: https://discord.me/hassioaddons
[forum-shield]: https://img.shields.io/badge/community-forum-brightgreen.svg
Expand All @@ -82,4 +81,5 @@ If you are more interested in stable releases of our add-ons:
[release-shield]: https://img.shields.io/badge/version-{{ version }}-blue.svg
[release]: {{ repo }}/tree/{{ version }}
[screenshot]: {{ repo }}/raw/main/images/screenshot.png
[vaultwarden]: https://github.com/dani-garcia/vaultwarden

18 changes: 9 additions & 9 deletions bitwarden/DOCS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Home Assistant Community Add-on: Bitwarden RS
# Home Assistant Community Add-on: Bitwarden (Vaultwarden)

Bitwarden is an open-source password manager that can store sensitive
information such as website credentials in an encrypted vault.
Expand All @@ -7,7 +7,7 @@ The Bitwarden platform offers a variety of client applications including
a web interface, desktop applications, browser extensions and mobile apps.

This add-on is based upon the lightweight and opensource
[Bitwarden RS][bitwarden-rs] implementation, allowing you to self-host
[Vaultwarden][vaultwarden] implementation, allowing you to self-host
this amazing password manager.

Password theft is a serious problem. The websites and apps that you use are
Expand All @@ -20,12 +20,12 @@ email, bank, and other important accounts. USE A PASSWORD MANAGER!
The installation of this add-on is pretty straightforward and not different in
comparison to installing any other Home Assistant add-on.

1. Search for the "Bitwarden RS" add-on in the Supervisor add-on store and
install it.
1. Start the "Bitwarden RS" add-on.
1. Check the logs of the "Bitwarden RS" add-on to see if everything went
well and to get the admin token/password.
1. Click the "OPEN WEB UI" button to open Bitwarden RS.
1. Search for the "Bitwarden (Vaultwarden)" add-on in the Supervisor add-on
store and install it.
1. Start the "Bitwarden (Vaultwarden)" add-on.
1. Check the logs of the "Bitwarden (Vaultwarden)" add-on to see if everything
went well and to get the admin token/password.
1. Click the "OPEN WEB UI" button to open Vaultwarden.
1. Add `/admin` to the URL to access the admin panel, e.g.,
`http://hassio.local:7277/admin`. Log in using the admin token you got
in step 3.
Expand Down Expand Up @@ -165,7 +165,6 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

[bitwarden-rs]: https://github.com/dani-garcia/bitwarden_rs
[contributors]: https://github.com/hassio-addons/addon-bitwarden/graphs/contributors
[discord-ha]: https://discord.gg/c5DvZ4e
[discord]: https://discord.me/hassioaddons
Expand All @@ -175,3 +174,4 @@ SOFTWARE.
[reddit]: https://reddit.com/r/homeassistant
[releases]: https://github.com/hassio-addons/addon-bitwarden/releases
[semver]: http://semver.org/spec/v2.0.0.htm
[vaultwarden]: https://github.com/dani-garcia/vaultwarden
10 changes: 5 additions & 5 deletions bitwarden/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
ARG BUILD_FROM=ghcr.io/hassio-addons/debian-base/amd64:4.2.0
###############################################################################
# Get prebuild containers from Bitwarden RS
# Get prebuild containers from Vaultwarden
###############################################################################
FROM "bitwardenrs/server:1.20.0" as bitwarden
FROM "vaultwarden/server:1.21.0" as vaultwarden

###############################################################################
# Build the actual add-on.
Expand All @@ -14,9 +14,9 @@ FROM ${BUILD_FROM}
SHELL ["/bin/bash", "-o", "pipefail", "-c"]

# Get the Bitwarden from official images
COPY --from=bitwarden /bitwarden_rs /opt/bitwarden_rs
COPY --from=bitwarden /Rocket.toml /opt/Rocket.toml
COPY --from=bitwarden /web-vault /opt/web-vault
COPY --from=vaultwarden /vaultwarden /opt/vaultwarden
COPY --from=vaultwarden /Rocket.toml /opt/Rocket.toml
COPY --from=vaultwarden /web-vault /opt/web-vault

# add Nginx
# hadolint ignore=DL3009
Expand Down
4 changes: 2 additions & 2 deletions bitwarden/config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "Bitwarden RS",
"name": "Bitwarden (Vaultwarden)",
"version": "dev",
"slug": "bitwarden",
"description": "Open source password management solution",
Expand All @@ -12,7 +12,7 @@
"7277/tcp": 7277
},
"ports_description": {
"7277/tcp": "Bitwarden Vault"
"7277/tcp": "Vaultwarden Web interface"
},
"map": ["ssl"],
"options": {
Expand Down
6 changes: 3 additions & 3 deletions bitwarden/rootfs/etc/services.d/bitwarden/run
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/with-contenv bashio
# ==============================================================================
# Home Assistant Community Add-on: Bitwarden
# Runs the Bitwarden RS server
# Runs the Vaultwarden server
# ==============================================================================
declare admin_token
declare log_level
Expand Down Expand Up @@ -76,6 +76,6 @@ export WEBSOCKET_ENABLED=true
export WEBSOCKET_PORT=8080

# Run the Bitwarden server
bashio::log.info 'Starting the Bitwarden RS server...'
bashio::log.info 'Starting the Vaultwarden server...'
cd /opt || bashio::exit.nok
exec ./bitwarden_rs
exec ./vaultwarden
2 changes: 1 addition & 1 deletion bitwarden/translations/en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ configuration:
name: Size limit of HTTP requests
description: >-
Optionally set the size limit of HTTP requests on the API of
Bitwarden RS. This might be needed to support larger imports.
Vaultwarden. This might be needed to support larger imports.
The default is 10485760, which is 10MB.
network:
7277/tcp: Web interface

0 comments on commit 4051e97

Please sign in to comment.