Skip to content
Snippets Groups Projects
  1. Sep 07, 2024
  2. Sep 01, 2024
  3. Aug 27, 2024
    • Mathijs van Veluw's avatar
      Allow custom umask setting (#4896) · 92f1530e
      Mathijs van Veluw authored
      
      To provide a way to add more security regarding file/folder permissions
      this PR adds a way to allow setting a custom `UMASK` variable.
      
      This allows people to set a more secure default like only allowing the
      owner the the process/container to read/write files and folders.
      
      Examples:
       - `UMASK=022` File: 644 | Folder: 755 (Default of the containers)
         This means Owner read/write and group/world read-only
       - `UMASK=027` File: 640 | Folder: 750
         This means Owner read/write, group read-only, world no access
       - `UMASK=077` File: 600 | Folder: 700
         This measn Owner read/write and group/world no access
      
      resolves #4571
      
      Signed-off-by: default avatarBlackDex <black.dex@gmail.com>
      92f1530e
  4. Aug 09, 2024
  5. Aug 08, 2024
  6. Aug 07, 2024
    • Mathijs van Veluw's avatar
      Update crates, web-vault and fixes (#4823) · 2e6a6fa3
      Mathijs van Veluw authored
      * Update crates, web-vault and fixes
      
      - Updated crates
      - Updated web-vault to v2024.6.2
        This version is currently the latest version compatible with our API implementation.
        For newer versions we need more code updates to make it compatible.
        Thanks to @stefan0xC this version fixes #4628
      - Added a small fix to prevent errors in the Vaultwarden and Client logs.
        The v2024.6.2 web-vault calls an endpoint with invalid arguments.
        If this happens we ignore the call and just return an Ok.
      - Added the bulk-collection endpoint (Though not yet available in v2024.6.2)
      
      Fixes #4628
      
      * Prevent bulk remove collections to work
      2e6a6fa3
  7. Jul 25, 2024
  8. Jul 23, 2024
    • Daniel's avatar
      Fix Dockerfile linter warnings (#4763) · 0e53f582
      Daniel authored
      - they seem to have started appearing with buildx v0.16.0
      - skip lint check for FromPlatformFlagConstDisallowed and RedundantTargetPlatform
      0e53f582
  9. Jul 10, 2024
  10. Jul 08, 2024
    • Mathijs van Veluw's avatar
      Update crates and web-vault (#4714) · 247d0706
      Mathijs van Veluw authored
      - Updated the crates
         Removed the patch for mimalloc
       - Updated the web-vault to v2024.5.1b
      
      The reason for not updating to v2024.6.x is that there are several items
      not working correctly or need some more research.
      247d0706
  11. Jun 24, 2024
  12. Jun 19, 2024
    • Mathijs van Veluw's avatar
      Update crates, web-vault and GHA (#4648) · 55fdee3b
      Mathijs van Veluw authored
      - Updated all crates including Diesel and the new mysqlclient-sys
      - Updated the MSRV to v1.78 as that is what Diesel mandates
      - Added the mimalloc crate as a patch for now to fix armv6 static builds
        This probably makes #4606 possible
      - Updated web-vault to v2024.5.1
      - Updated GitHub Actions
        Fixed an issue with the localhost images for extracting the musl binaries.
      55fdee3b
  13. Jun 16, 2024
  14. May 25, 2024
  15. May 19, 2024
    • Daniel's avatar
      Optimize Dockerfiles (#4532) · 32615344
      Daniel authored
      Move some ARGs closer to the build stage (potentially improving caching)
      Remove redundant COPY commands
      Remove redundant RUN command
      Move CARGO_HOME's "&&" operator to the first line (improves consistency)
      32615344
    • Mathijs van Veluw's avatar
      Update Rust, crates and web-vault (#4558) · 6cadb262
      Mathijs van Veluw authored
      * Update Rust and crates
      
      - Updated Rust to v1.78.0
      - Updated crates
      
      * Update web-vault to v2024.5.0
      6cadb262
  16. Apr 27, 2024
    • Mathijs van Veluw's avatar
      Add extra (unsupported) container build arch's (#4524) · ca9234ed
      Mathijs van Veluw authored
      There was a PR (#4370) to add i686/i386 support for Vaultwarden.
      That specific PR was not a viable way of adding this.
      
      This PR adds extra architectures for Debian based containers which we
      will not support by default. Those images will not be build and pushed
      to our container registries.
      
      Added the following architectures:
       - linux/386
       - linux/ppc64le
       - linux/s390x
      
      Again, there will be no major support for these architectures, but it
      will allow people who use these architectures to build a Debian based
      binary more easily
      ca9234ed
  17. Apr 26, 2024
  18. Apr 06, 2024
  19. Mar 23, 2024
    • Mathijs van Veluw's avatar
      Update Rust and crates (#4445) · 93636eb3
      Mathijs van Veluw authored
      - Updated Rust to v1.77.0
      - Updated several crates
        The `reqwest` update included `trust-dns` > `hickory-dns` changes.
        Also, `reqwest` v0.12 is not working correctly for us, that is something to investigate.
      - Fixed a new clippy warning
      93636eb3
  20. Feb 08, 2024
    • Mathijs van Veluw's avatar
      Update Rust, crates and web-vault (#4328) · b9bdc9b8
      Mathijs van Veluw authored
      - Updated Rust to v1.76.0
      - Updated crates
      - Updated web-vault to v2024.1.2b
      - Fixed some Clippy lints
      - Moved lint check configuration Cargo.toml
      - Fixed issue with Reset Password Enrollment when logged-in via device
      b9bdc9b8
  21. Jan 31, 2024
  22. Jan 26, 2024
  23. Jan 01, 2024
  24. Dec 24, 2023
  25. Dec 09, 2023
    • Mathijs van Veluw's avatar
      Fix the version string (#4153) · 3246251f
      Mathijs van Veluw authored
      For some reason still not known, the `.git` directory was not copied
      into the container. I think buildkit (buildx) did this by default before, and
      stopped this with newer versions.
      
      This PR fixes this by also touching `build.rs` besides `src/main.rs`.
      
      This PR also updates Rust to v1.74.1 and some crates, including the
      latest version of Alpine 3.19.
      
      Fixes #4150
      3246251f
    • Mathijs van Veluw's avatar
      Several small fixes for open issues (#4143) · 8ab20022
      Mathijs van Veluw authored
      * Fix BWDC when re-run with cleared cache
      
      Using the BWDC with a cleared cache caused invited users to be converted
      to accepted users.
      
      The problem was a wrong check for the `restore` function.
      
      Fixes #4114
      
      * Remove useless variable
      
      During some refactoring this seems to be overlooked.
      This variable gets filled but isn't used at all afterwards.
      
      Fixes #4105
      
      * Check some `.git` paths to force a rebuild
      
      When a checked-out repo switches to a specific tag, and that tag does
      not have anything else changed in the files except the tag, it could
      happen that the build process doesn't see any changes, while it could be
      that the version string needs to be different.
      
      This commit ensures that if some specific paths are changed within the
      .git directory, cargo will be triggered to rebuild.
      
      Fixes #4087
      
      * Do not delete dir on file delete
      
      Previously during a `delete_file` check we also tried to delete the
      parent directory and ignored all errors, like not being empty for
      example.
      
      Since this function is called `delete_file` and does not mention
      anything in regards to a directory i have removed that code and it will
      now only delete the file and leave the rest as-is.
      
      If this somehow is still needed or wanted, which i do not think we want,
      then we should create a new function.
      
      Fixes #4081
      
      * Fix healthcheck when using an ENV file
      
      If someone is using a `.env` file or configured the `ENV_FILE` variable
      to use that as it's configuration, this was missed by the healthcheck.
      
      So, `DOMAIN` and `ROCKET_TLS` were not seen, and not used in these cases.
      
      This commit fixes this by checking for this file and if it exists, then
      it will load those variables first.
      
      Fixes #4112
      
      * Add missing route
      
      While there was a function and a derive, this endpoint wasn't part of
      the routes. Since Bitwarden does have this endpoint ill add the route
      instead of deleting it.
      
      Fixes #4076
      Fixes #4144
      
      * Update crates to update the openssl crate
      
      Because of a bug in the openssl-sys crate we pinned the version to an
      older version. This issue has been fixed and was released 2 days ago.
      
      This commit updates the openssl crates including others.
      This should also fix the issues with building Vaultwarden using newer
      versions of LibreSSL.
      
      Fixes #4051
      8ab20022
  26. Dec 04, 2023
    • Mathijs van Veluw's avatar
      Update Rust, Crates, Profile and Actions (#4126) · 34e00e14
      Mathijs van Veluw authored
      - Updated Rust to v1.74.0
      - Updated all crates (where possible)
      - Changed release profile to use
        * fat lto
        * 1 codegen-unit
        This should optimize a bit for speed and a lot for size ~15MB smaller
      - Updated Github actions to use caching for the bake process
      - Added a schedule to clean the cache every week to prevent stale Debian/Alpine base images
      - During the release action, the Alpine/static binaries are added as artifects.
        Later we could also automatically add them to the releases maybe.
      - Added CODEWONERS to prevent unchecked changes to github actions workflows
      34e00e14
  27. Nov 15, 2023
  28. Nov 07, 2023
    • Mathijs van Veluw's avatar
      Fix missing alpine tag during buildx bake (#4043) · efc6eb00
      Mathijs van Veluw authored
      The bake recipt was missing the single `:alpine` tag for the alpine
      builds when we were releasing a `stable/latest` version of Vaultwarden.
      
      This PR fixes this by checking for those conditions and add the
      `:alpine` tag too.
      
      We will keep the `:latest-alpine` also, which i find even nicer then just
      `:alpine`
      
      Fixes #4035
      efc6eb00
  29. Nov 04, 2023
  30. Oct 22, 2023
    • Mathijs van Veluw's avatar
      Container building changes (#3958) · d722328f
      Mathijs van Veluw authored
      * WIP: Container building changes
      
      * Small updates
      
      - Updated to rust 1.73.0
      - Updated crates
      - Updated documentation
      - Added a bake.sh script to make baking easier
      
      * Update GitHub Actions Workflow
      
      - Updated workflow to use qemu and buildx bake
      
      In the future i would like to extract the alpine based binaries and add
      them as artifacts to the release.
      
      * Address review remarks and small updates
      
      - Addressed review remarks
      - Added `podman-bake.sh` script to build Vaultwarden with podman
      - Updated README
      - Updated crates
      - Added `VW_VERSION` support
      - Added annotations
      - Updated web-vault to v2023.9.1
      d722328f
  31. Sep 22, 2023
    • BlackDex's avatar
      Fix arm builds · ccc51e75
      BlackDex authored
      Because of some changes in the packages of Debian we need to add an
      extra package to request it also to install
      ccc51e75
  32. Sep 01, 2023
  33. Aug 31, 2023
  34. Aug 13, 2023
  35. Aug 12, 2023
    • BlackDex's avatar
      Update images to Bookworm and PQ15 · aaeae169
      BlackDex authored
      This PR updates the base images to use Debian Bookworm as base image. Also the MUSL/Alpine builds now use OpenSSLv3 and PostgreSQL v15.
      
      The GHA Workflows are updated to use Ubuntu 22.04 to better match the versions of Debian Bookworm.
      
      Also:
      - Enabled spares crate registry
      - Updated workflow actions
      - Updated Rust to v1.71.0
      - The rust-musl images now use musl v1.2.3 for the 32bit arch's if the Rust version is v1.71.0 or higher.
         The 64bit arch's already used musl v1.2.3.
      - Updated crates.
      
      Improves / Closes #3434
      aaeae169
Loading