aboutsummaryrefslogtreecommitdiff
path: root/migrations
AgeCommit message (Collapse)Author
2021-07-04Added web-vault v2.21.x support + some misc fixesBlackDex
- The new web-vault v2.21.0+ has support for Master Password Reset. For this to work it generates a public/private key-pair which needs to be stored in the database. Currently the Master Password Reset is not fixed, but there are endpoints which are needed even if we do not support this feature (yet). This PR fixes those endpoints, and stores the keys already in the database. - There was an issue when you want to do a key-rotate when you change your password, it also called an Emergency Access endpoint, which we do not yet support. Because this endpoint failed to reply correctly produced some errors, and also prevent the user from being forced to logout. This resolves #1826 by adding at least that endpoint. Because of that extra endpoint check to Emergency Access is done using an old user stamp, i also modified the stamp exception to allow multiple rocket routes to be called, and added an expiration timestamp to it. During these tests i stumbled upon an issue that after my key-change was done, it triggered the websockets to try and reload my ciphers, because they were updated. This shouldn't happen when rotating they keys, since all access should be invalided. Now there will be no websocket notification for this, which also prevents error toasts. - Increased Send Size limit to 500MB (with a litle overhead) As a side note, i tested these changes on both v2.20.4 and v2.21.1 web-vault versions, all keeps working.
2021-05-12Merge pull request #1689 from jjlin/hide-emailDaniel García
Add support for hiding the sender's email address in Bitwarden Sends
2021-05-11Add support for hiding the sender's email address in Bitwarden SendsJeremy Lin
Note: The original Vaultwarden implementation of Bitwarden Send would always hide the email address, while the upstream implementation would always show it. Upstream PR: https://github.com/bitwarden/server/pull/1234
2021-05-11Add support for password repromptJeremy Lin
Upstream PR: https://github.com/bitwarden/server/pull/1269
2021-03-15rename send key -> akeyDaniel García
2021-03-14Send APIDaniel García
2020-12-14Fix Key Rotation during password changeBlackDex
When ticking the 'Also rotate my account's encryption key' box, the key rotated ciphers are posted after the change of password. During the password change the security stamp was reseted which made the posted key's return an invalid auth. This reset is needed to prevent other clients from still being able to read/write. This fixes this by adding a new database column which stores a stamp exception which includes the allowed route and the current security stamp before it gets reseted. When the security stamp check fails it will check if there is a stamp exception and tries to match the route and security stamp. Currently it only allows for one exception. But if needed we could expand it by using a Vec<UserStampException> and change the functions accordingly. fixes #1240
2020-11-30Implement admin ability to enable/disable usersjanost
2020-08-22Transfer favorite status for user-owned ciphersJeremy Lin
2020-08-19Track favorites on a per-user basisJeremy Lin
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.
2020-07-02Add support for hiding passwords in a collectionJeremy Lin
Ref: https://github.com/bitwarden/server/pull/743
2020-04-17Initial support for soft deletesDaniel García
2020-03-14Initial version of policiesDaniel García
2019-11-24Implement change-email, email-verification, account-recovery, and welcome ↵tomuta
notifications
2019-10-10Updated authenticator TOTPBlackDex
- Added security check for previouse used codes - Allow TOTP codes with 1 step back and forward when there is a time drift. This means in total 3 codes could be valid. But only newer codes then the previouse used codes are excepted after that.
2019-09-16Added a migration that fixes #1 which caused attachments to be brokenMichael Powers
for the PostgreSQL backend. Also converts any CHAR types to VARCHAR to prevent the same issue from causing problems down the line.
2019-09-12Adds support for PostgreSQL which resolves #87 and is mentioned in #246.Michael Powers
This includes migrations as well as Dockerfile's for amd64. The biggest change is that replace_into isn't supported by Diesel for the PostgreSQL backend, instead requiring the use of on_conflict. This unfortunately requires a branch for save() on all of the models currently using replace_into.
2019-09-05Updated client kdf iterations to 100000 and fixed some lintsDaniel García
2019-05-27user char(36) for uuid columnsNils Domrose
2019-05-26initial mysql supportNils Domrose
2019-05-20Rework migrations for MySQLEmil Madsen
2018-11-27Fix attachments during key rotation, add individual attachment keyDaniel García
2018-09-19Implement KDF iterations change (Fixes #195)Daniel García
2018-09-11Implement poor man's invitation via Organization invitationMiroslav Prasil
2018-08-27Support password history #155 (#156)Kumar Ankur
* Password History Support (#155) * down.sql logic not required as per review comments
2018-07-12Implemented U2F, refactored Two Factor authentication, registering U2F ↵Daniel García
device and authentication should work. Works on Chrome on MacOS with a virtual device.
2018-06-01Improved two factor authDaniel García
2018-05-26Fix reference in attachments tableMiroslav Prasil
2018-05-11Implement Collection-Cipher mappingMiroslav Prasil
2018-05-04Added read_only bit to users_collectionsDaniel García
2018-05-03Implement suggested improvementsMiroslav Prasil
2018-04-30Add per-user folder-cipher mappingMiroslav Prasil
2018-04-24Initial organizations functionality: Creating orgs and inviting usersDaniel García
2018-03-06Updated Cipher API with breaking changes, and included backwards compatibilityDaniel García
2018-02-17Some initial work on organizations, nothing works yetDaniel García
2018-02-15Upload and download attachments, and added License fileDaniel García
2018-02-10First working versionDaniel García