Commit Graph

11618 Commits

Author SHA1 Message Date
Thomas Rittson 98fe486644 Annotate cryptoService abstraction 2022-06-20 16:14:25 +10:00
Thomas Rittson 03af238b56 Move and refactor rsaDecrypt
* move to DecryptService
* require key explicitly
* make callers fetch and pass in key
2022-06-20 16:11:01 +10:00
Thomas Rittson cef96dfad2 Fix send decryption 2022-06-20 16:00:22 +10:00
Thomas Rittson 2fed0f8a77 Fix attachment decryption and use new pattern 2022-06-20 15:52:40 +10:00
Thomas Rittson c60cc86662 Pass orgId? to getKeyForDecryption 2022-06-20 15:52:07 +10:00
Thomas Rittson 843cf86c81 Parse encArrayBuffer using gettings instead of ctor 2022-06-20 15:19:02 +10:00
Thomas Rittson 7a37dde3f7 Merge remote-tracking branch 'origin/master' into EC-271-refactor-crypto-service 2022-06-20 15:05:00 +10:00
Oscar Hinton 98152fee54
Add storybook to web (#2926) 2022-06-17 16:23:04 +02:00
Oscar Hinton 19caa7bfe0
Simplify our gitignore files (#2925) 2022-06-17 15:33:51 +02:00
github-actions[bot] 230c5e626c
Autosync the updated translations (#2922)
Co-authored-by: github-actions <>
2022-06-17 09:57:36 +02:00
github-actions[bot] e817d68e6a
Autosync the updated translations (#2920)
Co-authored-by: github-actions <>
2022-06-17 09:53:49 +02:00
github-actions[bot] bc15e3e120
Autosync the updated translations (#2921)
Co-authored-by: github-actions <>
2022-06-17 06:38:13 +02:00
Thomas Rittson 78a1780b84 Move symmetric decryption to new DecryptService
* create DecryptService
* move methods from CryptoService to DecryptService
* update all calls and dependencies
2022-06-17 11:13:33 +10:00
Thomas Rittson bd537e2b22
Fix manage sso navigation permissions (#2899) 2022-06-17 09:55:48 +10:00
Thomas Rittson 7fb01c5da3 Make decryptToBytes and decryptFromBytes pure
* make key a required arg and throw if not provided
* move encrypted array operations to EncArrayBuffer object
* create new getter for attachment keys
* add better error logging to encString decryptions
* make all callers get their own decryption keys
2022-06-17 09:51:03 +10:00
Oscar Hinton 4106eead02
Migrate Chromatic (#2906) 2022-06-16 20:41:22 +02:00
Jake Fink ba0e33881f
center hcaptcha in connector and fix formatting on desktop (#2911) 2022-06-16 09:53:18 -04:00
Thomas Rittson 55d01f64c0 Make aesDecryptToUtf8 a pure function
* Remove stateful calls to get encKeys
* Caller must supply own encKey
* Add key getter methods for callers to fetch their own key
* Review callers and fetch key where required
2022-06-16 15:36:18 +10:00
Oscar Hinton bc639688e8
Use NPM workspace (#2874) 2022-06-14 17:10:53 +02:00
Jake Fink 6806a1b244
add .DS_Store to gitignore (#2904) 2022-06-14 08:46:51 -04:00
Thomas Rittson bc2fce0be2
Make husky hook executable (#2900) 2022-06-14 07:26:50 +02:00
Matt Gibson c4ff8f99dc
Multi root workspace tweaks (#2858)
* Ignore jest for workspaces without tests (for now)

* Add jest as recommended extension

* Set eslint and prettier file paths

We can't do this on a multi-folder workspace level because the
path depths are not identical between folders

* fix tsconfig extends for

* Simplify bitwarden-licensed web tsconfig

This tsconfig isn't needed to build, since we do that through webpack
and the web client. It's only needed as hints to IDEs

* Remove unintended change

* linter
2022-06-13 21:39:36 -05:00
Thomas Rittson b92685dcd9
[EC-243] Grant premium status when member accepts org invite (#2870)
* Rename setCanAccessPremium to setHasPremiumPersonally

* Add hasPremiumFromOrganization

* Refactor stateService methods

* Add getHasPremiumPersonally, deprecate tokenService.getPremium
2022-06-14 12:13:41 +10:00
Thomas Rittson 29f95cdb7d
[PIQ-3] Add Github Actions to help manage issues and PRs (#2886)
* Add automatic issue responses and stale Github Actions
2022-06-14 10:24:23 +10:00
Addison Beck 61769f16c2
[fix] Organization filter list expansion on badge click (#2897)
In the ciphers list we show a badge for organization ownership that can be clicked to filter the vault by the organization in question. This expansion does not work for items labeled "Me". Click these badges filters by "My Vault" but doesn't expand the filter list.

This commit corrects this behavior so the "Me" badges expand the organization filters when clicked. It does so by simply moving the line that checks for filter expansion out of a conditional that expects an organization, and instead does it any time an organization filter is changed.

https://bitwarden.atlassian.net/browse/SG-293?focusedCommentId=13459&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-13459
2022-06-13 14:56:01 -04:00
Federico Maccaroni c93c6a775d
[PS-589] Added Device Verification section setting for 2FA Email for new device (#2868)
* PS-589 Added Device Verification section for enable/disable the feature of 2FA email on new device login and the api calls for the new endpoint

* PS-589 prettier fix

* PS-589 Fix import typo because of caps

* PS-589 Improved button to use bitButton directive and loading to have the ngIf on the 2fa setup component
2022-06-13 14:13:22 -04:00
Shane Melton 2d72201650
[PS-788] - Item links use `cipherId` in query string (#2880)
* Replace 'cipherId' query param with 'itemId' for linkable ciphers
2022-06-13 07:14:09 -07:00
Oscar Hinton 4f9079dd4f
[PS-801] Re-add dependencies to the cli (#2878) 2022-06-13 15:50:11 +02:00
Robyn MacCallum e8a1c60ed5
Fix filter ‘No Folder’ check (#2895) 2022-06-13 07:16:04 -04:00
Michał Chęciński e12d28d14a
Add root config files to trigger build workflows (#2875)
* Add root js config files to trigger build workflows

* Update to match all files in root except md and txt ones
2022-06-13 09:59:15 +02:00
Thomas Rittson 3b857345bb
Update README and CONTRIBUTING to point to contributing.bitwarden.com (#2771)
Co-authored-by: Oscar Hinton <Hinton@users.noreply.github.com>
2022-06-13 17:34:07 +10:00
github-actions[bot] 84666a7a74
Autosync the updated translations (#2891)
Co-authored-by: github-actions <>
2022-06-10 16:12:59 +02:00
github-actions[bot] 4c1ecc5bdf
Autosync the updated translations (#2890)
Co-authored-by: github-actions <>
2022-06-10 16:12:40 +02:00
github-actions[bot] 2fcd385f0a
Autosync the updated translations (#2882)
Co-authored-by: github-actions <>
2022-06-10 16:11:32 +02:00
Jake Fink 75f05f669f
Feature/manifest v3 migration (#2889)
* migrate manifest to v3

* undo manifest changes for V3

* add separate manifest for v3

* use cross-env
2022-06-10 09:41:34 -04:00
github-actions[bot] 378a1d5a73
Autosync the updated translations (#2883)
Co-authored-by: github-actions <>
2022-06-10 10:54:00 +02:00
github-actions[bot] e4cdf51a3a
Autosync the updated translations (#2884)
Co-authored-by: github-actions <>
2022-06-10 10:51:29 +02:00
Addison Beck 96bd9784b6
[feat] Allow the org badge click event to expand collapsed vault filters (#2885)
* [feat] Allow the org badge click event to expand collapsed vault filters

* [fix] Restore a blank line
2022-06-09 21:51:46 -04:00
Addison Beck 8d87e32ea2
[fix] Recreate web/1700 (#2863)
This is a 1:1 recreation of https://github.com/bitwarden/web/pulls/1700 for bitwarden/clients
2022-06-10 10:10:58 +10:00
Vince Grassia 351bfdede1
Fix Browser Source Code Artifact (#2869) 2022-06-09 12:31:13 -04:00
Andreas Coroiu 7922458fde
Sort organizations before returning all (#2877) 2022-06-09 16:43:35 +01:00
Jake Fink c1b559f2b0
[PS-526] Allow loading accessibility cookie on desktop (#2709)
* add accessibility cookie page

* linting

* add accessibility button to captcha

* add message descriptions and reactive forms

* prettier
2022-06-09 08:14:31 -04:00
Oscar Hinton b376d933e1
Add tailwind as override to resolve conflict (#2873) 2022-06-09 12:51:52 +02:00
Shane Melton 1a0695d366
[PS-787] Emergency access page UI issues (#2864)
* Add loading spinner to emergency access page

* Update options menu to use new triple-dot menu

* Fix broken save button spinner

* Use bitButton directive

* Prettier fix
2022-06-08 13:17:46 -07:00
Matt Gibson d5112cc8cb
[PS-616] [PS-795] Fix/withdraw master password reset without user verification (#2845)
* Limit enroll MPR modal to enrolling

* Withdraw from MPR directly from org options

* [PS-795] Fix Automatic mpr enrollment.

Add reset password key to the accept request

* Linter

* Specify params type in accept components
2022-06-08 14:56:26 -05:00
Micaiah Martin a65d7370d4
Add QA release (#2833) 2022-06-08 12:32:20 -07:00
Vince Grassia 5a7a5a952a
Renaming NSIS Desktop Artifacts (#2867) 2022-06-08 15:23:28 -04:00
github-actions[bot] 656d40a2ca
Bumped desktop version to 2022.5.2 (#2866)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2022-06-08 14:51:27 -04:00
Vince Grassia e1039edaeb
Fix extName for the 'fil' locale (#2865) 2022-06-08 14:00:31 -04:00
Vince Grassia ce017125e1
Add 'libs' to build workflow event paths (#2861) 2022-06-08 13:53:35 -04:00