aboutsummaryrefslogtreecommitdiff
path: root/Cargo.toml
AgeCommit message (Collapse)Author
2023-03-25Some small fixes and updatesBlackDex
- Updated workflows to use new checkout version This probably fixes the curl download for hadolint also. - Updated crates including Rocket to the latest rc3 :party: - Applied 2 nightly clippy lints to prevent future clippy issues.
2023-03-22Update web vault to v2023.3.0 and dependenciesDaniel García
2023-03-15Update Rust, MSRV and CratesBlackDex
- Updated all the crates - Updated Rust and MSRV
2023-03-07Upd Crates, Rust, MSRV, GHA and remove BacktraceBlackDex
- Changed MSRV to v1.65. Discussed this with @dani-garcia, and we will support **N-2**. This is/will be the same as for the `time` crate we use. Also updated the wiki regarding this https://github.com/dani-garcia/vaultwarden/wiki/Building-binary - Removed backtrace crate in favor of `std::backtrace` stable since v1.65 - Updated Rust to v1.67.1 - Updated all the crates - Updated the GHA action versions - Adjusted the GHA MSRV build to extract the MSRV from `Cargo.toml`
2023-03-04Admin token Argon2 hashing supportBlackDex
Added support for Argon2 hashing support for the `ADMIN_TOKEN` instead of only supporting a plain text string. The hash must be a PHC string which can be generated via the `argon2` CLI **or** via the also built-in hash command in Vaultwarden. You can simply run `vaultwarden hash` to generate a hash based upon a password the user provides them self. Added a warning during startup and within the admin settings panel is the `ADMIN_TOKEN` is not an Argon2 hash. Within the admin environment a user can ignore that warning and it will not be shown for at least 30 days. After that the warning will appear again unless the `ADMIN_TOKEN` has be converted to an Argon2 hash. I have also tested this on my RaspberryPi 2b and there the `Bitwarden` preset takes almost 4.5 seconds to generate/verify the Argon2 hash. Using the `OWASP` preset it is below 1 second, which I think should be fine for low-graded hardware. If it is needed people could use lower memory settings, but in those cases I even doubt Vaultwarden it self would run. They can always use the `argon2` CLI and generate a faster hash.
2023-02-21Update web vault to v2023.2.0 and dependenciesDaniel García
2023-02-13Updated Rust and cratesBlackDex
- Updated Rust to v1.67.0 - Updated all crates except for `cookies` and `webauthn`
2023-02-12check if SENDMAIL_COMMAND is valid using 'which' cratesoruh
2023-02-12Add support for sendmail as a mail transportsoruh
2023-01-24Re-License Vaultwarden to AGPLv3BlackDex
This commit prepares Vaultwarden for the Re-Licensing to AGPLv3 Solves #2450
2023-01-24Updated web vault to 2023.1.1 and rust dependenciesDaniel García
2023-01-09Update dependencies and MSRVBlackDex
- Updated dependencies. This includes a janked openssl crate version we currently use. - Updated MSRV to v1.61.0 because hashbrown/cached has this version restriction.
2022-12-29Remove patched multer-rsAlex Martel
2022-12-16Disable groups by default and Some optimizationsBlackDex
- Put groups support behind a feature flag, and disabled by default. The reason is that it has some known issues, but we want to keep optimizing this feature. Putting it behind a feature flag could help some users, and the developers into optimizing this feature without to much trouble. Further: - Updates Rust to v1.66.0 - Updated GHA workflows - Updated Alpine to 3.17 - Updated jquery to v3.6.2 - Moved jdenticon.js to load at the bottom, fixes an issue on chromium - Added autocomplete attribute to admin login password field - Added some extra CSP options (Tested this on Safari, Firefox, Chrome, Bitwarden Desktop) - Moved uppercase convertion from runtime to compile-time using `paste` for building the environment variables, lowers heap allocations.
2022-12-12Remove ctrlc crate and some updatesBlackDex
- Removed ctrlc crate and use the tokio provided ctrl_c function. - Updated some crates.
2022-12-04Update dependencies for Rust and Admin interface.BlackDex
- Updated Rust deps and one small change regarding chrono - Updated bootstrap 5 css - Updated datatables - Replaced identicon.js with jdenticon. identicon.js is unmaintained ( https://github.com/stewartlord/identicon.js/issues/52 ) The icon's are very different, but nice. It also doesn't need custom code to find and update the icons our selfs.
2022-12-03Add dev-only query logging supportBlackDex
This PR adds query logging support as an optional feature. It is only allowed during development/debug builds, and will abort when used during a `--release` build. For this feature to be fully activated you also need to se an environment variable `QUERY_LOGGER=1` to activate the debug log-level for this crate, else there will be no output. The reason for this PR is that sometimes it is useful to be able to see the generated queries, like when debugging an issue, or trying to optimize a query. Currently i always added this code when needed, but having this a part of the code could benifit other developers too who maybe need this.
2022-11-09Update Rust version, deps and workflowBlackDex
- Update Rust to v1.65.0 - Update dependencies - Updated workflow files - Added some extra clippy checks - Fixed some clippy checks
2022-11-07Support Org Export for v2022.11 clientsBlackDex
Since v2022.9.x the org export uses a different endpoint. But, since v2022.11.x this endpoint will return a different format. See: https://github.com/bitwarden/clients/pull/3641 and https://github.com/bitwarden/server/pull/2316 To support both version in the case of users having an older client either web-vault or cli this PR checks the version and responds using the correct format. If no version can be determined it will use the new format as a default.
2022-10-26Update dependenciesDaniel García
2022-10-26validate billing_email on saveStefan Melmuk
2022-10-23Update to diesel2Daniel García
2022-10-14Update web-vault to 2022.10.0 and dependencies1.26.0Daniel García
2022-10-09Update dependenciesDaniel García
2022-09-25Update libraries and Rust versionBlackDex
- Updated to Rust v1.64.0 - Updated all libararies - Updated multer-rs to be based upon the latest version - Updated Dockerfiles to match the Rust version
2022-09-04Update web vault to 2022.8.1 and cargo dependenciesDaniel García
2022-08-04Fix uploads from mobile clients (and dep updates)BlackDex
This patch fixes the file upload send by the mobile clients. It resolves #2644 by always providing a `Content-Type` even though one isn't set in this specific case. I do hope it will be fixed upstream by either Bitwarden by fixing the client. Or Rocket by allowing to override this somehow. Until then, we can use this patched version of multer-rs. Issue @ Rocket: https://github.com/SergioBenitez/Rocket/issues/2299 Issue @ Bitwarden: https://github.com/bitwarden/mobile/issues/2018 Also updated some dependencies.
2022-08-01Update MSRV to 1.60.0BlackDex
The latest version of chrono-tz needs 1.60.0 because of phf. Since chrono-tz has updated timezone information i do think it is usefull in some cases around the world.
2022-07-31Update deps and Alpine imageBlackDex
- Updated deps - Updated Alpine images to 3.16 - Removed dumb-init, not needed anymore - Some small shellcheck tweaks on the start/healthcheck scripts
2022-07-15Update deps and fix file-uploadsBlackDex
- Update deps. One of them is multer-rs which fixes #2516 - Changed MSRV to `1.59.0`, since that is the correct MSRV currently. It could be lower, but that would mean removing the `strip` option.
2022-07-06Upgrade dependencies and swap lettre to async transportDaniel García
2022-06-25Update dep's and small improvements on faviconsBlackDex
- Updated dependencies (html5gum for favicon downloading) * Also openssl, time, jsonwebtoken and r2d2 - Small optimizations on downloading favicons. It now only emits tokens/tags which needs to be parsed, all others are being skipped. This prevents unneeded items within the for-loop being parsed.
2022-06-14Updated deps and misc fixes and updatesBlackDex
- Updated some Rust dependencies - Fixed an issue with CSP header, this was not configured correctly - Prevent sending CSP and Frame headers for the MFA connector.html files. Else some clients will fail to handle these protocols. - Add `unsafe-inline` for `script-src` only to the CSP for the Admin Interface - Updated JavaScript and CSS files for the Admin interface - Changed the layout for showing overridden settings, better visible now. - Made the version check cachable to prevent hitting the Github API rate limits - Hide the `database_url` as if it is a password in the Admin Interface Else for MariaDB/MySQL or PostgreSQL this was plain text. - Fixed an issue that pressing enter on the SMTP Test would save the config. resolves #2542 - Prevent user names larger then 50 characters resolves #2419
2022-06-04Update pico-argsDaniel García
2022-06-04Re-Base, Update crates and small change.BlackDex
2022-06-04Move to job_scheduler_ngDaniel García
2022-06-04Migrate old ws crate to tungstenite, which is async and also removes over 20 ↵Daniel García
old dependencies
2022-06-04Merge branch 'lettre-improvements' of ↵Daniel García
https://github.com/paolobarbolini/vaultwarden into paolobarbolini-lettre-improvements
2022-06-04Remove manual IDN handlingPaolo Barbolini
2022-06-04Bump lettre to 0.10.0-rc.7Paolo Barbolini
2022-05-11Dependency updatesDaniel García
2022-05-06Improve sync speed and updated dep. versionsBlackDex
Improved sync speed by resolving the N+1 query issues. Solves #1402 and Solves #1453 With this change there is just one query done to retreive all the important data, and matching is done in-code/memory. With a very large database the sync time went down about 3 times. Also updated misc crates and Github Actions versions.
2022-04-23Update web vault to 2.28.0 and dependenciesDaniel García
2022-03-27Remove u2f implementationBlackDex
For a while now WebAuthn has replaced u2f. And since web-vault v2.27.0 the connector files for u2f have been removed. Also, on the official bitwarden server the endpoint to `/two-factor/get-u2f` results in a 404. - Removed all u2f code except the migration code from u2f to WebAuthn
2022-03-26Update web vault to 2.27.0 and dependenciesDaniel García
2022-03-20Several updates and fixesBlackDex
- Removed all `thread::sleep` and use `tokio::time::sleep` now. This solves an issue with updating to Bullseye ( Resolves #1998 ) - Updated all Debian images to Bullseye - Added MiMalloc feature and enabled it by default for Alpine based images This increases performance for the Alpine images because the default memory allocator for MUSL based binaries isn't that fast - Updated `dotenv` to `dotenvy` a maintained and updated fork - Fixed an issue with a newer jslib (not fully released yet) That version uses a different endpoint for `prelogin` Resolves #2378 )
2022-03-12Update login API codeBlackDex
- Updated jsonwebtoken to latest version - Trim `username` received from the login form ( Fixes #2348 ) - Make uuid and user_uuid a combined primary key for the devices table ( Fixes #2295 ) - Updated crates including regex which contains a CVE ( https://blog.rust-lang.org/2022/03/08/cve-2022-24713.html )
2022-02-26Favicon, SMTP and misc updatesBlackDex
Favicon: - Replaced HTML tokenizer, much faster now. - Caching the domain blacklist function. - Almost all functions are async now. - Fixed bug on minimizing data to parse - Changed maximum icon download size to 5MB to match Bitwarden - Added `apple-touch-icon.png` as a second fallback besides `favicon.ico` SMTP: - Deprecated SMTP_SSL and SMTP_EXPLICIT_TLS, replaced with SMTP_SECURITY Misc: - Fixed issue when `resolv.conf` contains errors and trust-dns panics (Fixes #2283) - Updated Javscript and CSS files for admin interface - Fixed an issue with the /admin interface which did not cleared the login cookie correctly - Prevent websocket notifications during org import, this caused a lot of traffic, and slowed down the import. This is also the same as Bitwarden which does not trigger this refresh via websockets. Rust: - Updated to use v1.59 - Use the new `strip` option and enabled to strip `debuginfo` - Enabled `lto` with `thin` - Removed the strip RUN from the alpine armv7, this is now done automatically
2022-02-22Update async to prepare for main mergeBlackDex
- Changed nightly to stable in Dockerfile and Workflow - Updated Dockerfile to use stable and updated ENV's - Removed 0.0.0.0 as default addr it now uses ROCKET_ADDRESS or the default - Updated Github Workflow actions to the latest versions - Updated Hadolint version - Re-orderd the Cargo.toml file a bit and put libs together which are linked - Updated some libs - Updated .dockerignore file
2022-01-30Update to rocket 0.5 and made code async, missing updating all db calls, ↵Daniel García
that are currently blocking