1
0
Fork 1
Spiegel von https://github.com/dani-garcia/vaultwarden.git synchronisiert 2024-11-16 04:12:53 +01:00
Commit-Graph

2666 Commits

Autor SHA1 Nachricht Datum
BlockListed
96261f1284
remove breaking parameter from to_json methods 2024-03-19 13:10:26 +01:00
BlockListed
d627b02c5f
remove admin_path function
since it just returns a const
2024-03-19 13:10:22 +01:00
BlockListed
fc78b6f4b3
implement error handling for HostInfo extractor
if host isn't an allowed domain, we default to the main domain.
2024-03-19 13:07:25 +01:00
BlockListed
12bdcd447d
clippy and format 2024-03-19 13:07:24 +01:00
BlockListed
3a66772077
use single hashmap instead of two for domain lookups 2024-03-19 13:05:00 +01:00
BlockListed
c0db0d8da0
make clippy happy 2024-03-19 13:05:00 +01:00
BlockListed
f20863096f
fix issue in config 2024-03-19 13:05:00 +01:00
BlockListed
1dfc68ab8a
make auth support multi-domains 2024-03-19 13:05:00 +01:00
BlockListed
7639a2b03d
make identity support multi-domains 2024-03-19 13:04:59 +01:00
BlockListed
df524c7139
make PublicToken support multi-domains 2024-03-19 13:01:28 +01:00
BlockListed
901bf570bf
make organizations work with multi-domains 2024-03-19 13:01:28 +01:00
BlockListed
ab96b26981
make getting config work with multi-domains 2024-03-19 13:01:27 +01:00
BlockListed
3421dfcbf5
make emergency access work with multi-domains 2024-03-19 12:59:20 +01:00
BlockListed
81dd47952b
make ciphers work with multi-domains 2024-03-19 12:59:20 +01:00
BlockListed
2670db15c5
make accounts support multi-domains 2024-03-19 12:59:20 +01:00
BlockListed
6867099291
make headers use hostinfo 2024-03-19 12:59:20 +01:00
BlockListed
ac3c1d41b2
make web support hostinfo 2024-03-19 12:59:20 +01:00
BlockListed
12c0005e7f
make webauthn support multi-domain 2024-03-19 12:59:19 +01:00
BlockListed
42e1018ad7
make admin support hostinfo 2024-03-19 12:57:33 +01:00
BlockListed
968ed8a453
make sends support multi-domain 2024-03-19 12:57:31 +01:00
BlockListed
b5dea32ea5
make attachments / ciphers support multi-domains 2024-03-19 12:55:48 +01:00
BlockListed
f82a142cee
get domain and origin with single extractor 2024-03-19 12:55:47 +01:00
BlockListed
5462b97c26
make cors work with multi-domains 2024-03-19 12:55:47 +01:00
BlockListed
0d7e678c2e
make mail work with multi-domains
the domain chosen is always the first domain
2024-03-19 12:55:47 +01:00
BlockListed
e313745f7c
make domain protocol validation work with multi-domains 2024-03-19 12:55:47 +01:00
BlockListed
2c7b739d49
make fido app-id.json work with multi-domains 2024-03-19 12:55:47 +01:00
BlockListed
0ebd877fb8
make admin work with multi-domains 2024-03-19 12:55:47 +01:00
BlockListed
17923c3fd0
replace domain with base_url 2024-03-19 12:55:47 +01:00
BlockListed
303eb30ae4
remove domain_paths hashmap, since it's no longer used 2024-03-19 12:55:47 +01:00
BlockListed
40edfa5990
implement mutli domain support for auth headers 2024-03-19 12:55:47 +01:00
BlockListed
80d3c61cc2
add configuration support for multiple domains 2024-03-19 12:55:47 +01:00
Stefan Melmuk
79ce5b49bc
automatically use email address as 2fa provider (#4317) 2024-03-17 22:35:02 +01:00
Matlink
7c3cad197c
Fix #3624: fix manager permission within groups (#3754)
* Fix #3624: fix manager permission within groups

* Query returns UUID only

* Fix issue when user is manager and in a group having access to all collections

* optimize condition check

* fix(groups): renaming and optimizations

* fix: wrong organization group membership detection

* Simplify group membership check

Co-authored-by: Stefan Melmuk <509385+stefan0xC@users.noreply.github.com>

* Remove unused statement

* improve check if the user has access via groups

instead of returning the two lists of member ids and later checking if
they contain the uuid of the current user, we really only care if
the current user has full access via a group or if they have
access to a given collection via a group

* improve comments for get_org_collections_details

* small refactor to make it easier to review

* fix(groups): query full access via group only when necessary

Co-authored-by: Mathijs van Veluw <black.dex@gmail.com>

* chore(fmt): apply rustfmt

---------

Co-authored-by: Stefan Melmuk <509385+stefan0xC@users.noreply.github.com>
Co-authored-by: Stefan Melmuk <stefan.melmuk@gmail.com>
Co-authored-by: Mathijs van Veluw <black.dex@gmail.com>
2024-03-17 22:11:34 +01:00
gzfrozen
000c606029
Change timestamp data type. (#4355)
Co-authored-by: Daniel García <dani-garcia@users.noreply.github.com>
2024-03-17 22:04:37 +01:00
Jacques B
29144b2ce0
Small improvements around email change (#4415) 2024-03-17 19:55:03 +01:00
Helmut K. C. Tessarek
ea04b6f151
refactor: replace panic with a graceful exit (#4402)
* refactor: replace panic with a graceful exit

* fix: clippy errors

* fix: typo

* Update src/main.rs

Co-authored-by: Stefan Melmuk <509385+stefan0xC@users.noreply.github.com>

---------

Co-authored-by: Stefan Melmuk <509385+stefan0xC@users.noreply.github.com>
2024-03-17 19:53:41 +01:00
Mathijs van Veluw
3427217686
Remove custom WebSocket code (#4001)
* Remove custom WebSocket code

Remove our custom WebSocket code and only use the Rocket code.
Removed all options in regards to WebSockets
Added a new option `WEBSOCKET_DISABLED` which defaults too `false`.
This can be used to disable WebSockets if you really do not want to use it.

* Addressed remarks given and some updates

- Addressed comments given during review
- Updated crates, including Rocket to the latest merged v0.5 changes
- Removed an extra header which should not be sent for websocket connections

* Updated suggestions and crates

- Addressed the suggestions
- Updated Rocket to latest rc4
  Also made the needed code changes
- Updated all other crates
  Pinned `openssl` and `openssl-sys`

---------

Co-authored-by: Daniel García <dani-garcia@users.noreply.github.com>
2024-03-17 19:52:55 +01:00
Daniel García
a1fbd6d729
Improve JWT key initialization and avoid saving public key (#4085) 2024-03-17 15:11:20 +01:00
Krapp
2cbfe6fa5b
Fix comment in events.rs (#4408)
I think
` // Collection events`
was repeated twice
2024-03-17 14:29:31 +01:00
one230six
d86c4f2c23
Signed-off-by: one230six <723682061@qq.com> (#4422)
Signed-off-by: one230six <723682061@qq.com>
2024-03-17 14:28:10 +01:00
Daniel García
6d73f30b4f
Update crates 2024-03-17 14:25:49 +01:00
Calvin Li
d0c22b9fc9
fix: web API call for jquery 3.7.1 (#4400) 2024-03-02 19:09:36 +01:00
Mathijs van Veluw
d6b97090fa
Update crates, GHA and a Python/JS scripts (#4357)
- Update all crates
- Update GHA
- Update Global Domains script to use main instead of master
  Also fixed some Python linting warnings
- Updated Admin JS and CSS libraries
2024-02-25 23:26:46 +01:00
seiuneko
94b077cb2d
Fix env templateto ensure compatibility with systemd's EnvironmentFile parsing (#4315)
* fix: update env template for systemd compatibility

Adjust env template to ensure compatibility with systemd's EnvironmentFile parsing, which only recognizes line-starting comment symbols.

* Refactor SMTP and Rocket settings in .env.template

- Simplify the SMTP_SECURITY and SMTP_PORT options by providing a list of choices and default values
- Clarify the ROCKET_PORT default value depending on the environment (Docker or not)
2024-02-19 16:29:53 +01:00
Mathijs van Veluw
bb2412d033
Change the codegen-units for low resources (#4336)
It seems (as disscusses here #4320) a single codegen unit makes it still
crash. This sets it to the default 16 Rust uses for the release profile.
2024-02-10 13:04:08 +01:00
Mathijs van Veluw
b9bdc9b8e2
Update Rust, crates and web-vault (#4328)
- 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
2024-02-08 22:16:29 +01:00
Mathijs van Veluw
897bdf8343
Update GHA Workflows (#4309)
- Update the workflow GH Actions.
- Configured the release workflow to always run on main/tag as discussed
  in #4226

Closes #4226
2024-02-03 16:41:25 +01:00
Mathijs van Veluw
569add453d
Add Kubernetes environment detection (#4290)
Also check if we are running within a Kubernetes environment.
These do not always run using Docker or Podman of course.

Also renamed all the functions and variables to use `container` instead
of `docker`.
2024-02-02 21:44:19 +01:00
Mathijs van Veluw
77cd5b5954
Update crates to fix new builds (#4308)
Because handlebars yanked a version which was there for a few days, we
need to downgrade this crate. In this process update all the others.

Fixes #4307
2024-02-02 18:30:54 +01:00
Mathijs van Veluw
4438da39f9
Fix healthcheck when using .env file (#4299)
It seems Debian based images see the `.env` file in the `pwd` path, but
sourcing it via `. .env` breaks. It does work if you provide the full
path `/.env`. Changed the default to `/.env`.

Alpine does not have an issue with both ways.
2024-01-31 22:31:47 +01:00