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

2674 Commits

Autor SHA1 Nachricht Datum
BlockListed
fae770a6a2
remove some outdated comments / move import 2024-03-19 13:11:19 +01:00
BlockListed
aceaf61810
switch back to admin_path, since cookies break otherwise 2024-03-19 13:11:18 +01:00
BlockListed
6375a20f2f
cargo clippy and cargo fmt 2024-03-19 13:10:27 +01:00
BlockListed
d1cb726996
fix bug when extracing host from domain 2024-03-19 13:10:27 +01:00
BlockListed
335984ee28
cargo clippy and cargo fmt 2024-03-19 13:10:27 +01:00
BlockListed
298cf8adcb
change back name of domain configuration option 2024-03-19 13:10:27 +01:00
BlockListed
09c0367571
re-add domain_origin field to configuration 2024-03-19 13:10:27 +01:00
BlockListed
edcd2640d0
cargo clippy and cargo fmt 2024-03-19 13:10:26 +01:00
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