Skip to content
Snippets Groups Projects
  1. Dec 06, 2024
  2. Dec 05, 2024
    • Mathijs van Veluw's avatar
      Update Rust and crates (#5248) · 71b3d3c8
      Mathijs van Veluw authored
      
      * Update Rust and crates
      
      - Updated Rust to v1.83.0
      - Updated MSRV to v1.82.0 (Needed for html5gum crate)
      - Updated icon fetching code to match new html5gum version
      - Updated workflows
      - Enabled edition 2024 clippy lints
        Nightly reports some clippy hints, but that would be too much to change in this PR i think.
      
      Signed-off-by: default avatarBlackDex <black.dex@gmail.com>
      
      * Some additional updates
      
      - Patch fern to allow syslog-7 feature
      - Fixed diesel logger which was broken because of the sqlite backup feature
        Refactored the sqlite backup because of this
      - Added a build workflow test to include the query_logger feature
      
      Signed-off-by: default avatarBlackDex <black.dex@gmail.com>
      
      * Also patch yubico-rs and latest updates
      
      Signed-off-by: default avatarBlackDex <black.dex@gmail.com>
      
      ---------
      
      Signed-off-by: default avatarBlackDex <black.dex@gmail.com>
      Unverified
      71b3d3c8
  3. Nov 25, 2024
  4. Oct 18, 2024
  5. Sep 07, 2024
  6. Sep 01, 2024
  7. 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>
      Unverified
      92f1530e
  8. Aug 09, 2024
  9. Aug 08, 2024
  10. 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
      Unverified
      2e6a6fa3
  11. Jul 25, 2024
  12. Jul 23, 2024
  13. Jul 10, 2024
  14. 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.
      Unverified
      247d0706
  15. Jun 24, 2024
  16. 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.
      Unverified
      55fdee3b
  17. Jun 16, 2024
  18. May 25, 2024
  19. May 19, 2024
  20. 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
      Unverified
      ca9234ed
  21. Apr 26, 2024
  22. Apr 06, 2024
  23. 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
      Unverified
      93636eb3
  24. Feb 08, 2024
  25. Jan 31, 2024
  26. Jan 26, 2024
  27. Jan 01, 2024
  28. Dec 24, 2023
  29. 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
      Unverified
      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
      Unverified
      8ab20022
  30. 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
      Unverified
      34e00e14
  31. Nov 15, 2023
  32. 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
      Unverified
      efc6eb00
  33. Nov 04, 2023
  34. 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
      Unverified
      d722328f
  35. 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
      Unverified
      ccc51e75
  36. Sep 01, 2023
  37. Aug 31, 2023
Loading