Jeremy Lin
9f86196a9d
Add support for the Personal Ownership policy
Upstream refs:
* https://github.com/bitwarden/server/pull/1013
* https://bitwarden.com/help/article/policies/#personal-ownership
4 years ago
Jeremy Lin
4e60df7a08
Fix stale data check failure when cloning a cipher
4 years ago
Jeremy Lin
a9e9a397d8
Validate cipher updates with revision date
Prevent clients from updating a cipher if the local copy is stale.
Validation is only performed when the client provides its last known
revision date; this date isn't provided when using older clients,
or when the operation doesn't involve updating an existing cipher.
Upstream PR: https://github.com/bitwarden/server/pull/994
4 years ago
Jeremy Lin
95caaf2a40
Add missing admin endpoints for deleting ciphers
This fixes the inability to bulk-delete ciphers from org vault views.
5 years ago
Jeremy Lin
4c3b328aca
Hide ciphers from non-selected collections for org owners/admins
If org owners/admins set their org access to only include selected
collections, then ciphers from non-selected collections shouldn't
appear in "My Vault". This matches the upstream behavior.
5 years ago
Jeremy Lin
f83a8a36d1
Track favorites on a per-user basis
Currently, favorites are tracked at the cipher level. For org-owned ciphers,
this means that if one user sets it as a favorite, it automatically becomes a
favorite for all other users that the cipher has been shared with.
5 years ago
Jeremy Lin
a846f6c610
Fix soft delete notifications
A soft-deleted entry should now show up in the trash folder immediately
(previously, an extra sync was required).
5 years ago
Daniel García
668d5c23dc
Removed try_trait and some formatting, particularly around imports
5 years ago
BlackDex
24c914799d
Fixes #1022 cloning with attachments
When a cipher has one or more attachments it wasn't able to be cloned.
This commit fixes that issue.
5 years ago
theycallmesteve
632f4d5453
Whitespace fixes
5 years ago
Daniel García
e3b00b59a7
Initial support for soft deletes
5 years ago
Jeremy Lin
7407b8326a
Fix attachment size limit calculation
The config values (in KB) need to be converted to bytes when comparing
against total attachment sizes.
5 years ago
Daniel García
2ee07ea1d8
Fix empty data when cloning cipher
5 years ago
Daniel García
a30d5f4cf9
Fix cloning issues
5 years ago
Daniel García
3fa78e7bb1
Initial version of policies
5 years ago
Daniel García
325039c316
Attachment size limits, per-user and per-organization
5 years ago
Patrick Li
85dbf4e16c
Don't include excluded global equivalent domains during sync
Fixes #681
6 years ago
Emil Madsen
e22e290f67
Fix key and type variable names for mysql
6 years ago
Daniel García
874f5c34bd
Formatting
6 years ago
janost
03fdf36bf9
Fixed purging organization vault
6 years ago
Daniel García
04922f6aa0
Some formatting and dependency updates
6 years ago
Daniel García
10756b0920
Update dependencies and fix some lints
6 years ago
Daniel García
5ee04e31e5
Updated dependencies, removed some unnecessary clones and fixed some lints
6 years ago
Daniel García
20d8d800f3
Updated dependencies
6 years ago
Miroslav Prasil
637f655b6f
Do not allocate uneccessary Vec
6 years ago
Miroslav Prasil
b3f7394c06
Do not update revision at the end, as we already did that
6 years ago
Miroslav Prasil
1a5ecd4d4a
cipher does not need to be mutable
6 years ago
Miroslav Prasil
bd65c4e312
Remove superfluous cipher.save() call
6 years ago
Daniel García
bef1183c49
Only send one notification per vault import and purge, improve move ciphers functions
6 years ago
Daniel García
a1dc47b826
Change config to thread-safe system, needed for a future config panel.
Improved some two factor methods.
6 years ago
Daniel García
1ce2587330
Correct update cipher order: first save cipher, then cipher-folder, then notify
6 years ago
Miroslav Prasil
71a10e0378
Fix sharing the item to organization.
6 years ago
Daniel García
9bf13b7872
Can't return inside multipart closure
6 years ago
Daniel García
d420992f8c
Update some function calls to use ?
6 years ago
Daniel García
432be274ba
Improve org mismatch check, consider different orgs
6 years ago
Daniel García
484bf5b703
Check that the client is not updating an outdated cipher, that should be part of an org now
6 years ago
Daniel García
4bf32af60e
Fix folder notifications, enable template strict mode and add missing option to env template
6 years ago
Daniel García
1d7f704754
Send CipherUpdate when adding and deleting attachments
6 years ago
Daniel García
320266606e
Implement put collections
6 years ago
Daniel García
30e768613b
Start using rustfmt and some style changes to make some lines shorter
6 years ago
Daniel García
6a99849a1e
Implemented proper error handling, now we can do `user.save($conn)?;` and it works.
In the future, maybe we can do the same with the `find_by_id` methods that return an Option.
6 years ago
Daniel García
738ad2127b
Fixed some clippy linting issues
6 years ago
Daniel García
94810c106a
Migrate to rust 2018 edition
6 years ago
Daniel García
2fde4e6933
Implemented proper logging, with support for file logging, timestamp and syslog (this last one is untested)
6 years ago
Daniel García
6364c05789
Fix attachments during key rotation, add individual attachment key
6 years ago
Daniel García
f71f10eac6
Implemented key rotation with the latest vault
6 years ago
Daniel García
00abd4c853
Add create endpoint, fixes #253 , fixes #261
6 years ago
Daniel García
a4550e51ea
Update dependencies and add /ciphers/create
6 years ago
Miroslav Prasil
b94f4db52a
Fix #242
7 years ago
Daniel García
c673370103
Updated bw_rs to Rocket version 0.4-rc1
7 years ago