passbolt-browser-extension 5.2.0 → 5.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (115) hide show
  1. package/CHANGELOG.md +79 -1
  2. package/Gruntfile.js +1 -1
  3. package/RELEASE_NOTES.md +27 -71
  4. package/doc/browser-extension-class-diagram.md +9 -0
  5. package/package.json +5 -5
  6. package/src/all/_locales/sl/messages.json +2 -2
  7. package/src/all/background_page/controller/clipboard/cancelClipboardContentFlushController.js +51 -0
  8. package/src/all/background_page/controller/clipboard/cancelClipboardContentFlushController.test.js +46 -0
  9. package/src/all/background_page/controller/clipboard/copyTemporarilyToClipboardController.js +53 -0
  10. package/src/all/background_page/controller/clipboard/copyTemporarilyToClipboardController.test.js +47 -0
  11. package/src/all/background_page/controller/clipboard/{clipboardController.js → copyToClipboardController.js} +8 -8
  12. package/src/all/background_page/controller/clipboard/copyToClipboardController.test.js +47 -0
  13. package/src/all/background_page/controller/extension/getExtensionVersionController.test.js +1 -1
  14. package/src/all/background_page/controller/metadata/getOrFindMetadataKeysSettingsController.js +53 -0
  15. package/src/all/background_page/controller/metadata/getOrFindMetadataKeysSettingsController.test.js +106 -0
  16. package/src/all/background_page/controller/resource/updateResourceLocalStorageByFolderParentIdController.js +70 -0
  17. package/src/all/background_page/controller/resource/updateResourceLocalStorageByFolderParentIdController.test.js +78 -0
  18. package/src/all/background_page/controller/share/shareOneFolderController.test.js +2 -1
  19. package/src/all/background_page/controller/share/shareResourcesController.test.js +1 -1
  20. package/src/all/background_page/controller/user/deleteDryRunUserController.js +73 -0
  21. package/src/all/background_page/controller/user/deleteDryRunUserController.test.js +129 -0
  22. package/src/all/background_page/controller/user/deleteUserController.js +76 -0
  23. package/src/all/background_page/controller/user/deleteUserController.test.js +141 -0
  24. package/src/all/background_page/event/actionLogEvents.js +5 -12
  25. package/src/all/background_page/event/appEvents.js +33 -0
  26. package/src/all/background_page/event/findAllForActionLogController.js +58 -0
  27. package/src/all/background_page/event/findAllForActionLogController.test.js +43 -0
  28. package/src/all/background_page/event/quickAccessEvents.js +32 -0
  29. package/src/all/background_page/event/resourceEvents.js +11 -0
  30. package/src/all/background_page/event/userEvents.js +7 -20
  31. package/src/all/background_page/event/webIntegrationEvents.js +11 -0
  32. package/src/all/background_page/model/actionLog/{actionLogModel.js → findActionLogService.js} +25 -5
  33. package/src/all/background_page/model/actionLog/findActionLogService.test.js +61 -0
  34. package/src/all/background_page/model/comment/commentModel.js +5 -5
  35. package/src/all/background_page/model/entity/actionLog/actionLogsCollection.test.data.js +18 -0
  36. package/src/all/background_page/model/entity/actionLog/defaultActionLogEntity.test.data.js +34 -0
  37. package/src/all/background_page/model/entity/resource/resourcesCollection.js +25 -0
  38. package/src/all/background_page/model/entity/resource/resourcesCollection.test.js +34 -0
  39. package/src/all/background_page/model/import/resources/resourcesKdbxImportParser.test.js +0 -1
  40. package/src/all/background_page/model/user/userModel.js +0 -60
  41. package/src/all/background_page/pagemod/appPagemod.js +0 -2
  42. package/src/all/background_page/pagemod/appPagemod.test.js +2 -6
  43. package/src/all/background_page/service/alarm/globalAlarmService.js +2 -0
  44. package/src/all/background_page/service/api/actionLog/{actionLogService.js → actionLogApiService.js} +5 -4
  45. package/src/all/background_page/service/api/actionLog/actionLogApiService.test.js +55 -0
  46. package/src/all/background_page/service/api/comment/{commentService.js → commentApiService.js} +6 -7
  47. package/src/all/background_page/service/api/comment/commentApiService.test.js +122 -0
  48. package/src/all/background_page/service/api/resource/resourceService.js +1 -0
  49. package/src/all/background_page/service/auth/postLogoutService.js +2 -0
  50. package/src/all/background_page/service/auth/postLogoutService.test.js +4 -1
  51. package/src/all/background_page/service/browser/browserService.js +22 -0
  52. package/src/all/background_page/service/clipboard/clipboardProviderService.js +40 -0
  53. package/src/all/background_page/service/clipboard/clipboardProviderService.test.js +61 -0
  54. package/src/all/background_page/service/clipboard/copyToClipboardService.js +123 -0
  55. package/src/all/background_page/service/clipboard/copyToClipboardService.test.js +174 -0
  56. package/src/all/background_page/service/resource/findAndUpdateResourcesLocalStorageService.js +52 -1
  57. package/src/all/background_page/service/resource/findAndUpdateResourcesLocalStorageService.test.js +100 -0
  58. package/src/all/background_page/service/resource/findResourcesService.js +53 -19
  59. package/src/all/background_page/service/resource/findResourcesService.test.js +191 -0
  60. package/src/all/background_page/service/resourceType/updateResourceTypesService.test.js +1 -1
  61. package/src/all/background_page/service/share/shareResourceService.test.js +1 -1
  62. package/src/all/background_page/service/user/deleteUserService.js +97 -0
  63. package/src/all/background_page/service/user/deleteUserService.test.js +178 -0
  64. package/src/all/locales/de-DE/common.json +2 -2
  65. package/src/all/locales/es-ES/common.json +2 -2
  66. package/src/all/locales/fr-FR/common.json +5 -5
  67. package/src/all/locales/it-IT/common.json +2 -2
  68. package/src/all/locales/ja-JP/common.json +2 -2
  69. package/src/all/locales/ko-KR/common.json +2 -2
  70. package/src/all/locales/lt-LT/common.json +2 -2
  71. package/src/all/locales/nl-NL/common.json +2 -2
  72. package/src/all/locales/pl-PL/common.json +5 -5
  73. package/src/all/locales/pt-BR/common.json +2 -2
  74. package/src/all/locales/ro-RO/common.json +2 -2
  75. package/src/all/locales/ru-RU/common.json +2 -2
  76. package/src/all/locales/sl-SI/common.json +33 -33
  77. package/src/all/locales/sv-SE/common.json +2 -2
  78. package/src/all/locales/uk-UA/common.json +3 -3
  79. package/src/chrome/manifest.json +1 -1
  80. package/src/chrome/polyfill/clipboard/edgeBackgroundPageClipboardService.js +31 -0
  81. package/src/chrome/polyfill/clipboard/edgeBackgroundPageClipboardService.test.js +51 -0
  82. package/src/chrome-mv3/index.js +3 -3
  83. package/src/chrome-mv3/manifest.json +1 -1
  84. package/src/chrome-mv3/offscreens/{fetch.html → offscreen.html} +1 -1
  85. package/src/chrome-mv3/offscreens/{fetch.js → offscreen.js} +2 -2
  86. package/src/chrome-mv3/offscreens/service/clipboard/writeClipobardOffscreenService.js +54 -0
  87. package/src/chrome-mv3/offscreens/service/clipboard/writeClipobardOffscreenService.test.js +56 -0
  88. package/src/chrome-mv3/offscreens/service/network/fetchOffscreenService.js +36 -44
  89. package/src/chrome-mv3/offscreens/service/network/fetchOffscreenService.test.data.js +0 -1
  90. package/src/chrome-mv3/offscreens/service/network/fetchOffscreenService.test.js +90 -120
  91. package/src/chrome-mv3/offscreens/service/offscreen/handleOffscreenRequestService.js +85 -0
  92. package/src/chrome-mv3/offscreens/service/offscreen/handleOffscreenRequestService.test.js +99 -0
  93. package/src/chrome-mv3/polyfill/clipboardOffscreenPolyfill.js +19 -0
  94. package/src/chrome-mv3/serviceWorker/service/clipboard/requestClipboardOffscreenService.js +51 -0
  95. package/src/chrome-mv3/serviceWorker/service/clipboard/requestClipboardOffscreenService.test.js +70 -0
  96. package/src/chrome-mv3/serviceWorker/service/clipboard/responseClipboardOffscreenService.js +25 -0
  97. package/src/chrome-mv3/serviceWorker/service/clipboard/responseClipboardOffscreenService.test.data.js +21 -0
  98. package/src/chrome-mv3/serviceWorker/service/clipboard/responseClipboardOffscreenService.test.js +33 -0
  99. package/src/chrome-mv3/serviceWorker/service/network/requestFetchOffscreenService.js +25 -50
  100. package/src/chrome-mv3/serviceWorker/service/network/requestFetchOffscreenService.test.js +16 -39
  101. package/src/chrome-mv3/serviceWorker/service/network/responseFetchOffscreenService.js +14 -45
  102. package/src/chrome-mv3/serviceWorker/service/network/responseFetchOffscreenService.test.js +5 -37
  103. package/src/chrome-mv3/serviceWorker/service/offscreen/createOffscreenDocumentService.js +43 -0
  104. package/src/chrome-mv3/serviceWorker/service/offscreen/createOffscreenDocumentService.test.js +48 -0
  105. package/src/chrome-mv3/serviceWorker/service/offscreen/handleOffscreenResponseService.js +119 -0
  106. package/src/chrome-mv3/serviceWorker/service/offscreen/handleOffscreenResponseService.test.js +159 -0
  107. package/src/firefox/manifest.json +1 -1
  108. package/src/safari/manifest.json +1 -1
  109. package/test/jest.setup.js +4 -0
  110. package/test/mocks/mockNavigatorClipboard.js +40 -0
  111. package/test/mocks/mockWebExtensionPolyfill.js +2 -1
  112. package/{webpack-offscreens.fetch.config.js → webpack-offscreens.config.js} +1 -1
  113. package/webpack.service-worker.config.js +1 -0
  114. package/src/all/background_page/controller/clipboard/clipboardController.test.js +0 -68
  115. package/src/all/background_page/event/clipboardEvents.js +0 -28
package/CHANGELOG.md CHANGED
@@ -4,6 +4,82 @@ This project adheres to [Semantic Versioning](http://semver.org/).
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [5.3.2] - 2025-07-17
8
+ ### Added
9
+ - PB-25265 Flush clipboard strategy
10
+ - PB-43095 Display the metadata issue in the HealthCheck served by the UI
11
+ - PB-43403 Search resources should take into account available custom fields information in the web application
12
+
13
+ ### Improved
14
+ - PB-43474 As LU I should be able to clear the search field with a button
15
+
16
+ ### Fixed
17
+ - PB-43916 Fix hitting the key enter on the search fields
18
+ - PB-43996 Users should access encrypted metadata section of the administration guide on the help site when clicking on the documentation CTA from the sidebar
19
+
20
+ ### Maintenance
21
+ - PB-43491 The resource activities should use a service worker service to request the service worker
22
+ - PB-43496 The user should be notified if an error occurs while displaying additional resource activities
23
+ - PB-43501 Cover ActionLogService API service and rename class as per naming convention
24
+ - PB-43502 Move logic of ActionLogModel into FindActionLogService
25
+ - PB-43506 Move logic of event passbolt.actionlogs.find-all-for into its dedicated Controller
26
+ - PB-43738 Create DeleteUserService to call the userService deleteDryRun
27
+ - PB-43739 Create DeleteDryRunUserController to call the DeleteUserService
28
+ - PB-43750 An unexpected error should be displayed on delete user
29
+ - PB-43904 Add a service to request or send data CommentsServiceWorkerService
30
+ - PB-43907 Add tests for commentService API service and rename the service class as per naming convention
31
+ - PB-43938 Create a GetOrFindMetadataKeysSettingsController to retrieve the metadata keys settings
32
+ - PB-43940 Create a MetadataKeysSettingsLocalStorageContextProvider to retrieve the metadata keys settings
33
+
34
+ ## [5.3.0] - 2025-06-09
35
+
36
+ ### Added
37
+ - PB-43269 Create the entity CustomFieldEntity
38
+ - PB-43271 Create the entity collection CustomFieldsCollection
39
+ - PB-43273 Create the entity SecretDataV5StandaloneCustomFieldsCollection
40
+ - PB-43275 Update the resource types schema definitions
41
+ - PB-43277 Update the ResourceMetadataEntity
42
+ - PB-43278 Update the ResourceFormEntity
43
+ - PB-43279 Update the Secret Entities
44
+ - PB-43283 Display a new entry the create/edit dialog to set custom fields on the left sidebar and the menu
45
+ - PB-43284 Create the CustomFieldForm for the create/edit dialog
46
+ - PB-43285 Handle the CustomFieldForm warnings and limitation
47
+ - PB-43286 Update create/edit resource to select secret custom fields for a standalone custom fields
48
+ - PB-43287 Display the Custom Fields section on the right sidebar
49
+ - PB-43289 Display standalone custom fields in the component DisplayResourceCreationMenu
50
+ - PB-43290 Display standalone custom fields in the component DisplayResourcesWorkspaceMainMenu
51
+ - PB-43291 Display the URIs section in the right sidebar
52
+ - PB-43374 Add validation on keys and values of each elements of custom fields for the resource form entity
53
+ - PB-43377 Add set collection into entity v2
54
+ - PB-43145 Find a list of resources based on IDs and that are suitable for local storage from the API
55
+ - PB-43146 Find a list of resources based on a parent folder id and that are suitable for the local storage from the API
56
+ - PB-43133 Display padding below tags in resource workspace left sidebar
57
+ - PB-42185 The folder caret that expands or collapses folders in the tree should have a larger clickable area to make it easier to use
58
+ - PB-43222 Improve the group dialog to match the new share dimensions
59
+ - PB-43147 Find and update resources based on parent folder id for the local storage
60
+ - PB-43148 Create a connector for finding resources based on a parent id for the styleguide to call it later
61
+ - PB-43149 Create a ResourcesServiceWorkerService to call the service worker for resource related operations
62
+ - PB-43150 Implement the optimised call in the Styleguide when filtering by a folder
63
+ - PB-43151 Optimise the data retrieved from the API such that updates are not done if unnecessary
64
+ - PB-43156 Clarify implications for backups and other devices before changing the passphrase in the user settings workspace
65
+ - PB-43489 Display unexpected error if there is any issue during the secret decryption
66
+
67
+ ### Fixed
68
+ - PB-43109 Fix: from the sidebar when upgrade from v4 to v5 goes wrong the error message in the notification
69
+ - PB-43118 Hide the "Share metadata keys" button in the users workspace action bar for the current signed-in user
70
+ - PB-43215 Fix account recovery creator name
71
+ - PB-43063 Fix group edit dialog double warning message has broken UI
72
+ - PB-43117 Hide the "Share metadata keys" button in the users workspace action bar after sharing missing metadata keys with a user
73
+ - PB-43064 Fix group edit dialog can show a mix of error and warning messages
74
+ - PB-43150: fix folder not being reloaded
75
+ - PB-43424 Clicking on the "open in a new tab” call to action in the quick application should open the resource url in a new tab
76
+ - PB-43108 Display attention required icon on "metadata keys" label in the user details sidebar if the user is not having access to some metadata keys
77
+ - PB-43217 The default icon stroke width is too thick in the grid and doesn't match the custom icons
78
+ - PB-43220 Copy URL field action button lacks padding and is broken in the SSO settings
79
+ - PB-43168 Align vertically resources workspace select check-boxes
80
+ - PB-43211 The feedback message notifying the administrator when a metadata key has been shared with a user contains a typo
81
+ - PB-43471 Center vertically the icon on the create and edit dialog
82
+
7
83
  ## [5.2.0] - 2025-06-04
8
84
 
9
85
  ### Added
@@ -2229,7 +2305,9 @@ self registration settings option in the left-side bar
2229
2305
  - AP: User with plugin installed
2230
2306
  - LU: Logged in user
2231
2307
 
2232
- [Unreleased]: https://github.com/passbolt/passbolt_browser_extension/compare/v5.2.0...HEAD
2308
+ [Unreleased]: https://github.com/passbolt/passbolt_browser_extension/compare/v5.3.2...HEAD
2309
+ [5.3.2]: https://github.com/passbolt/passbolt_browser_extension/compare/v5.3.0...v5.3.2
2310
+ [5.3.0]: https://github.com/passbolt/passbolt_browser_extension/compare/v5.2.0...v5.3.0
2233
2311
  [5.2.0]: https://github.com/passbolt/passbolt_browser_extension/compare/v5.1.1...v5.2.0
2234
2312
  [5.1.1]: https://github.com/passbolt/passbolt_browser_extension/compare/v5.1.0...v5.1.1
2235
2313
  [5.1.0]: https://github.com/passbolt/passbolt_browser_extension/compare/v5.0.1...v5.1.0
package/Gruntfile.js CHANGED
@@ -119,7 +119,7 @@ module.exports = function (grunt) {
119
119
  service_worker: {
120
120
  files: [
121
121
  { expand: true, cwd: path.src_chrome_mv3, src: 'serviceWorker.js', dest: path.build + 'serviceWorker' },
122
- { expand: true, cwd: `${path.src_chrome_mv3}/offscreens`, src: 'fetch.html', dest: `${path.build}/offscreens` }
122
+ { expand: true, cwd: `${path.src_chrome_mv3}/offscreens`, src: 'offscreen.html', dest: `${path.build}/offscreens` },
123
123
  ]
124
124
  },
125
125
  web_accessible_resources: {
package/RELEASE_NOTES.md CHANGED
@@ -1,81 +1,37 @@
1
- Song: https://youtu.be/ZA2JknKrCbM?si=H-rta-dE_IVIqm45
1
+ Release song: https://www.youtube.com/watch?v=-GxmblM_jss
2
2
 
3
- Passbolt v5.2.0 is now available. This version introduces the long-awaited metadata properties for v5 resources (beta): users can set a custom icon for a resource and associate multiple URIs with it. The release also ships with numerous bug fixes. For full details, please see the changelog.
3
+ Passbolt v5.3.2 is a security release designed to strengthen the security posture of your organization. It introduces a clipboard flushing feature, adds safeguards around SSO settings, and addresses issues related to encrypted metadata.
4
4
 
5
- As always, we warmly invite the community to test these new features before the production release, and we thank everyone for their valuable feedback and bug reports.
5
+ The new clipboard flush timer lets you copy secrets just long enough to use them; clipboard data is automatically cleared when the countdown (30s) expires, significantly reducing the risk of accidental exposure or leaks from forgotten clipboard content.
6
+
7
+ Additionally, SSO admin-settings edit endpoints of self-hosted instances can now be locked, reducing potential exposure to scans if an administrator account is compromised. You can verify if this protection is active, and get instructions on how to set it up, by running the health check via the server command line.
8
+
9
+ This update also resolves several encrypted metadata issues, moving the feature closer to general availability. Organizations can now enable encrypted metadata even if users have imported their own more complex keys (e.g. keys that were set to expire at some point), streamlining adoption for advanced users. Admin changes are smoother too: if the original metadata-enabling administrator leaves, newly invited users will still receive the metadata key automatically, removing the need for manual distribution. Lastly, users who owned shared resources using the new encrypted metadata format can now be deleted without issue, as ownership transfer is now handled correctly during the deletion process.
10
+
11
+ A big thank you to all testers who helped refine these features. If you’re new to any of them, we welcome your feedback on the community forum or through your usual support channels!
6
12
 
7
13
  ### Added
8
- - PB-42936 Translate the application into Ukrainian
9
- - PB-42897 Upgrade resource to v5 from information panel
10
- - PB-42896 PB-42896 Display an “Upgrade Resource to v5” card in the information panel
11
- - PB-42895 Upgrade v4 password string resources to v5 default
12
- - PB-42894 Upgrade a single v4 resource to v5
13
- - PB-42860 Translate the application into Slovenian
14
- - PB-42796 Add a limit for multiple URIs
15
- - PB-42788 As a user I can access the resource appearance customization from the create/edit
16
- - PB-42704 Display missing metadata keys information in the user sidebar
17
- - PB-42658 Refresh the users local storage after sharing missing metadata keys
18
- - PB-42598 Retrieve missing_metadata_keys_ids information when retrieving signed-in user details with the getOrFindMe method of the UserModel
19
- - PB-42590 Write the background color and icon ID into KDBX files
20
- - PB-42589 Read the background color and icon ID from KDBX files
21
- - PB-42588 Adapt the ResourceIcon component to handle IconEntity
22
- - PB-42587 Add the AddResourceAppearance form part for the resource dialog
23
- - PB-42586 Add the ‘appearance’ metadata field in the resource dialog
24
- - PB-42585 Add IconEntity as an associated entity in MetadataEntity
25
- - PB-42584 Create IconEntity to hold custom icon and color information
26
- - PB-42570 Create a method canSuggestUris using canSuggestUri
27
- - PB-42543 Allow users to navigate to the additional URIs from the SelectResourceForm
28
- - PB-42536 Allow user to add additional URIs from the Create and Edit Resource v5 dialogs
29
- - PB-42534 Display resource additional URIs badge in the filtered resource of the QuickApplication
30
- - PB-42533 Display resource additional URIs badge in the suggested resource of the QuickApplication
31
- - PB-42530 Display resource additional URIs in the details of a resource of the QuickApplication
32
- - PB-42529 Display resource additional URIs badge in the browsed resource of the QuickApplication
33
- - PB-42528 Display resource additional URIs badge in the resource details sidebar
34
- - PB-42527 Display resource additional URIs badge in the resources grid
35
- - PB-42526 Create the ResourceUrisBadge component to handle resource additional URIs badge and the tooltip displaying them
36
- - PB-42130 Add shareMetadataKeyPrivate event to AppEvents
37
- - PB-42129 Create ShareMetadataKeyPrivateController and use ShareMetadataKeyPrivateService to perform the action
38
- - PB-42127 Create ShareMetadataKeyPrivateService and implement shareMissing method
39
- - PB-42114 Add create or share method to metadata private key api service
40
- - PB-42368 Update EncryptOne method from EncryptMetadataPrivateKeysService to allow encryption without signature
41
- - PB-42134 Update DisplayUsersContextualMenu to display a Share metadata keys action if key is missing
42
- - PB-42133 Update DisplayUserWorkspaceActions to display a Share metadata keys action if key is missing
43
- - PB-42132 Implement Dialog confirmation when administrator wants to share keys with an user
44
- - PB-42131 Add share method into metadataKeysServiceWorkerService to perform the UI action
45
- - PB-42126 Add cloneForSharing method into MetadataPrivateKeyEntity
46
- - PB-42124 Create ShareMetadataPrivateKeysCollection
47
- - PB-42110 Update userModel updateLocalStorage method to include missing_metadata_keys_ids option
48
- - PB-42109 Add missing_metadata_keys_ids property to UserEntity
49
- - PB-41617 Add comfortable grid
50
- - PB-39042 Display upgrade resource to v5 card
14
+ - PB-25265 Flush clipboard strategy
15
+ - PB-43095 Display the metadata issue in the HealthCheck served by the UI
16
+ - PB-43403 Search resources should take into account available custom fields information in the web application
51
17
 
52
18
  ### Improved
53
- - PB-42883 Improve performance by skipping the decryption of unchanged metadata.
54
- - PB-41654 Transform workspaces shifter into a dropdown
55
- - PB-42184 Increase the share dialog width to accommodate longer strings from translations or user names
19
+ - PB-43474 As LU I should be able to clear the search field with a button
56
20
 
57
21
  ### Fixed
58
- - PB-43161 Fix: dragging resources or folder should display any error
59
- - PB-43008 Fix dragging v5 resources into shared folders should trigger the share strategy on the resource
60
- - PB-42985 Translate the button manage account in the profile dropdown
61
- - PB-42789 Fix userAvatar on userInformationPanel with attention required svg
62
- - PB-42702 Fix contains missing_metadata_keys_ids miss match
63
- - PB-42606 Fix the Quick App Login form CTA spinner should not be displayed over the text of the button
64
- - PB-42272 Fix display v5 resource metadata in the grid when filtering by group
65
- - PB-42077 Update navigation menu icon width
66
- - PB-41649 Re-align components in the left sidebar
67
- - PB-41643 Remove TOTP MFA (profile workspace) border around the QR code and card
68
- - PB-41642 Update Turn off MFA primary button to be red
22
+ - PB-43916 Fix hitting the key enter on the search fields
23
+ - PB-43996 Users should access encrypted metadata section of the administration guide on the help site when clicking on the documentation CTA from the sidebar
69
24
 
70
25
  ### Maintenance
71
- - PB-43012 Change authentication_token parameter to token for get the user key policies endpoint
72
- - PB-42790 Replace legacy Icon by SVG
73
- - PB-42572 Update Quickaccess HomePage to use the canSuggestUris
74
- - PB-42571 Update isSuggestion in resource entity to use canSuggestUris
75
- - PB-42569 Create and merge canSuggestUri into a service
76
- - PB-42978 Check object_type is defined and valid before metadata encryption
77
-
78
- ### Security
79
- - PB-42700 Upgrade vulnerable library undici and lockfile-lint-api
80
- - PB-42391 Update Papaparse library
81
-
26
+ - PB-43491 The resource activities should use a service worker service to request the service worker
27
+ - PB-43496 The user should be notified if an error occurs while displaying additional resource activities
28
+ - PB-43501 Cover ActionLogService API service and rename class as per naming convention
29
+ - PB-43502 Move logic of ActionLogModel into FindActionLogService
30
+ - PB-43506 Move logic of event passbolt.actionlogs.find-all-for into its dedicated Controller
31
+ - PB-43738 Create DeleteUserService to call the userService deleteDryRun
32
+ - PB-43739 Create DeleteDryRunUserController to call the DeleteUserService
33
+ - PB-43750 An unexpected error should be displayed on delete user
34
+ - PB-43904 Add a service to request or send data CommentsServiceWorkerService
35
+ - PB-43907 Add tests for commentService API service and rename the service class as per naming convention
36
+ - PB-43938 Create a GetOrFindMetadataKeysSettingsController to retrieve the metadata keys settings
37
+ - PB-43940 Create a MetadataKeysSettingsLocalStorageContextProvider to retrieve the metadata keys settings
@@ -48,6 +48,11 @@ classDiagram
48
48
  +exec() Promise
49
49
  }
50
50
 
51
+ class UpdateResourceLocalStorageByFolderParentIdController{
52
+ event "passbolt.resources.update-local-storage-for-parent-folder"
53
+ +exec(string parentFolderId) Promise
54
+ }
55
+
51
56
  %% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
52
57
  %% Resources services
53
58
  %% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -62,6 +67,7 @@ classDiagram
62
67
 
63
68
  class FindAndUpdateResourcesLocalStorageService {
64
69
  +findAndUpdateAll(FindAndUpdateResourcesLocalStorageOptions) Promise~ResourcesCollection~
70
+ +findAndUpdateAllByParentFolderId(uuid parentFolderId, string passphrase) Promise~ResourcesCollection~
65
71
  +findAndUpdateByIsSharedWithGroup(uuid groupId) Promise~ResourcesCollection~
66
72
  }
67
73
 
@@ -79,6 +85,8 @@ classDiagram
79
85
  +findAllByIdsWithPermissions(array~uuid~ resourcesIds) Promise~ResourcesCollection~
80
86
  +findAllByIsSharedWithGroupForLocalStorage(uuid groupId) Promise~ResourcesCollection~
81
87
  +findAllForDecrypt(array~uuid~ resourceIds) Promise~ResourcesCollection~
88
+ +findAllByIdsForLocalStorage(Array~uuid~ resourcesIds) Promise~ResourcesCollection~
89
+ +findAllByParentFolderIdForLocalStorage(string uuid) Promise~ResourcesCollection~
82
90
  +findOneById(string uuid, object contains) Promise~ResourceEntity~
83
91
  +findOneByIdForDetails(string uuid) Promise~ResourceEntity~
84
92
  }
@@ -1065,6 +1073,7 @@ classDiagram
1065
1073
  UpdateAllResourcesLocalStorageController*--FindAndUpdateResourcesLocalStorageService
1066
1074
  %% UpdateResourceController*--GetPassphraseService
1067
1075
  UpdateResourceController*--UpdateResourceService
1076
+ UpdateResourceLocalStorageByFolderParentIdController *--FindAndUpdateResourcesLocalStorage
1068
1077
  style CreateResourceController fill:#D2E0FB
1069
1078
  style ExportResourcesFileController fill:#D2E0FB
1070
1079
  style FindAllIdsByIsSharedWithGroupController fill:#D2E0FB
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "passbolt-browser-extension",
3
- "version": "5.2.0",
3
+ "version": "5.3.2",
4
4
  "license": "AGPL-3.0",
5
5
  "copyright": "Copyright 2025 Passbolt SA",
6
6
  "description": "Passbolt web extension for the open source password manager for teams",
@@ -22,7 +22,7 @@
22
22
  "locutus": "~2.0.9",
23
23
  "openpgp": "^6.1.1",
24
24
  "papaparse": "^5.5.2",
25
- "passbolt-styleguide": "^5.2.2",
25
+ "passbolt-styleguide": "^5.3.2",
26
26
  "react": "17.0.2",
27
27
  "react-dom": "17.0.2",
28
28
  "secrets-passbolt": "github:passbolt/secrets.js#v2.0.1",
@@ -80,7 +80,7 @@
80
80
  "scripts": {
81
81
  "build": "npx grunt build",
82
82
  "build:background-page": "webpack --config webpack.background-page.config.js",
83
- "build:service-worker": "webpack --config webpack.service-worker.config.js; webpack --config webpack-offscreens.fetch.config.js",
83
+ "build:service-worker": "webpack --config webpack.service-worker.config.js; webpack --config webpack-offscreens.config.js",
84
84
  "build:content-scripts": "npm run build:content-scripts:app; npm run build:content-scripts:browser-integration; npm run build:content-scripts:public-website",
85
85
  "build:content-scripts:app": "webpack --config webpack-content-scripts.config.js",
86
86
  "build:content-scripts:browser-integration": "webpack --config webpack-content-scripts.browser-integration.config.js",
@@ -89,7 +89,7 @@
89
89
  "build:web-accessible-resources:app": "webpack --config webpack-data.config.js; webpack --config webpack-data.download.config.js",
90
90
  "build:web-accessible-resources:browser-integration": "webpack --config webpack-data.in-form-call-to-action.config.js; webpack --config webpack-data.in-form-menu.config.js",
91
91
  "dev:build:background-page": "webpack --env debug=true --config webpack.background-page.config.js",
92
- "dev:build:service-worker": "webpack --env debug=true --config webpack.service-worker.config.js; webpack --env debug=true --config webpack-offscreens.fetch.config.js",
92
+ "dev:build:service-worker": "webpack --env debug=true --config webpack.service-worker.config.js; webpack --env debug=true --config webpack-offscreens.config.js",
93
93
  "dev:build:content-scripts": "npm run dev:build:content-scripts:app; npm run dev:build:content-scripts:browser-integration; npm run dev:build:content-scripts:public-website",
94
94
  "dev:build:content-scripts:app": "webpack --env debug=true --config webpack-content-scripts.config.js",
95
95
  "dev:build:content-scripts:browser-integration": "webpack --env debug=true --config webpack-content-scripts.browser-integration.config.js",
@@ -112,7 +112,7 @@
112
112
  "lint:eslint-fix": "eslint -c .eslintrc.json --ext js --ext jsx --fix src",
113
113
  "i18n:externalize": "i18next -c ./i18next-parser.config.js",
114
114
  "test": "npm run test:unit",
115
- "test:unit": "jest --no-cache ./src/all/ ./src/chrome-mv3/",
115
+ "test:unit": "jest --no-cache ./src/all/ ./src/chrome-mv3/ ./src/chrome/",
116
116
  "test:coverage": "jest --no-cache ./src/all/ ./src/chrome-mv3/ --coverage",
117
117
  "test:ci:coverage": "npm run test:coverage -- --runInBand"
118
118
  }
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "appName": {
3
- "message": "Passbolt - upravljalnik gesel z odprto kodo",
3
+ "message": "Passbolt - Odprtokodni upravitelj gesel",
4
4
  "description": "The application name of the extension, displayed in the web store. 45 characters max."
5
5
  },
6
6
  "appDescription": {
7
- "message": "Razširitev Passbolt za upravljalnik gesel z odprto kodo za ekipe.",
7
+ "message": "Razširitev Passbolt za odprtokodnega upravitelja gesel za ekipe.",
8
8
  "description": "The description of the extension, displayed in the web store. 85 characters max."
9
9
  }
10
10
  }
@@ -0,0 +1,51 @@
1
+ /**
2
+ * Passbolt ~ Open source password manager for teams
3
+ * Copyright (c) Passbolt SA (https://www.passbolt.com)
4
+ *
5
+ * Licensed under GNU Affero General Public License version 3 of the or any later version.
6
+ * For full copyright and license information, please see the LICENSE.txt
7
+ * Redistributions of files must retain the above copyright notice.
8
+ *
9
+ * @copyright Copyright (c) Passbolt SA (https://www.passbolt.com)
10
+ * @license https://opensource.org/licenses/AGPL-3.0 AGPL License
11
+ * @link https://www.passbolt.com Passbolt(tm)
12
+ * @since 5.3.2
13
+ */
14
+
15
+ import CopyToClipboardService from "../../service/clipboard/copyToClipboardService";
16
+
17
+ export default class CancelClipboardContentFlushController {
18
+ /**
19
+ * CancelClipboardContentFlushController constructor
20
+ * @param {Worker} worker
21
+ * @param {string} requestId uuid
22
+ */
23
+ constructor(worker, requestId) {
24
+ this.worker = worker;
25
+ this.requestId = requestId;
26
+ this.copyToClipboardService = new CopyToClipboardService();
27
+ }
28
+
29
+ /**
30
+ * Wrapper of exec function to run it with worker.
31
+ * @return {Promise<void>}
32
+ */
33
+ async _exec() {
34
+ try {
35
+ await this.exec();
36
+ this.worker.port.emit(this.requestId, "SUCCESS");
37
+ } catch (error) {
38
+ console.error(error);
39
+ this.worker.port.emit(this.requestId, "ERROR", error);
40
+ }
41
+ }
42
+
43
+ /**
44
+ * Cancel flushing of the clipboard content
45
+ *
46
+ * @return {Promise<void>}
47
+ */
48
+ async exec() {
49
+ await this.copyToClipboardService.clearAlarm();
50
+ }
51
+ }
@@ -0,0 +1,46 @@
1
+ /**
2
+ * Passbolt ~ Open source password manager for teams
3
+ * Copyright (c) Passbolt SA (https://www.passbolt.com)
4
+ *
5
+ * Licensed under GNU Affero General Public License version 3 of the or any later version.
6
+ * For full copyright and license information, please see the LICENSE.txt
7
+ * Redistributions of files must retain the above copyright notice.
8
+ *
9
+ * @copyright Copyright (c) Passbolt SA (https://www.passbolt.com)
10
+ * @license https://opensource.org/licenses/AGPL-3.0 AGPL License
11
+ * @link https://www.passbolt.com Passbolt(tm)
12
+ * @since 5.3.2
13
+ */
14
+
15
+ import {v4 as uuidv4} from 'uuid';
16
+ import CancelClipboardContentFlushController from './cancelClipboardContentFlushController';
17
+
18
+ describe('CancelClipboardContentFlushController', () => {
19
+ describe('constructor', () => {
20
+ it('should set the worker and requestId properties', () => {
21
+ expect.assertions(2);
22
+
23
+ const worker = {port: {}};
24
+ const requestId = uuidv4();
25
+ const controller = new CancelClipboardContentFlushController(worker, requestId);
26
+
27
+ expect(controller.worker).toBe(worker);
28
+ expect(controller.requestId).toBe(requestId);
29
+ });
30
+ });
31
+
32
+ describe('exec', () => {
33
+ it('should call copyTemporarily of the right service', async() => {
34
+ expect.assertions(1);
35
+
36
+ const toCopy = "text";
37
+ const controller = new CancelClipboardContentFlushController();
38
+
39
+ jest.spyOn(controller.copyToClipboardService, "clearAlarm").mockImplementation(() => {});
40
+
41
+ await controller.exec(toCopy);
42
+
43
+ expect(controller.copyToClipboardService.clearAlarm).toHaveBeenCalledTimes(1);
44
+ });
45
+ });
46
+ });
@@ -0,0 +1,53 @@
1
+ /**
2
+ * Passbolt ~ Open source password manager for teams
3
+ * Copyright (c) Passbolt SA (https://www.passbolt.com)
4
+ *
5
+ * Licensed under GNU Affero General Public License version 3 of the or any later version.
6
+ * For full copyright and license information, please see the LICENSE.txt
7
+ * Redistributions of files must retain the above copyright notice.
8
+ *
9
+ * @copyright Copyright (c) Passbolt SA (https://www.passbolt.com)
10
+ * @license https://opensource.org/licenses/AGPL-3.0 AGPL License
11
+ * @link https://www.passbolt.com Passbolt(tm)
12
+ * @since 5.3.2
13
+ */
14
+
15
+ import CopyToClipboardService from "../../service/clipboard/copyToClipboardService";
16
+
17
+ export default class CopyTemporarilyToClipboardController {
18
+ /**
19
+ * CopyTemporarilyToClipboardController constructor
20
+ * @param {Worker} worker
21
+ * @param {string} requestId uuid
22
+ */
23
+ constructor(worker, requestId) {
24
+ this.worker = worker;
25
+ this.requestId = requestId;
26
+ this.copyToClipboardService = new CopyToClipboardService();
27
+ }
28
+
29
+ /**
30
+ * Wrapper of exec function to run it with worker.
31
+ * @param text {string} The text to copy
32
+ * @return {Promise<void>}
33
+ */
34
+ async _exec(text) {
35
+ try {
36
+ await this.exec(text);
37
+ this.worker.port.emit(this.requestId, "SUCCESS");
38
+ } catch (error) {
39
+ console.error(error);
40
+ this.worker.port.emit(this.requestId, "ERROR", error);
41
+ }
42
+ }
43
+
44
+ /**
45
+ * Temporarily copy text to clipboard
46
+ *
47
+ * @param text {string} The text to copy
48
+ * @return {Promise<void>}
49
+ */
50
+ async exec(text) {
51
+ await this.copyToClipboardService.copyTemporarily(text);
52
+ }
53
+ }
@@ -0,0 +1,47 @@
1
+ /**
2
+ * Passbolt ~ Open source password manager for teams
3
+ * Copyright (c) Passbolt SA (https://www.passbolt.com)
4
+ *
5
+ * Licensed under GNU Affero General Public License version 3 of the or any later version.
6
+ * For full copyright and license information, please see the LICENSE.txt
7
+ * Redistributions of files must retain the above copyright notice.
8
+ *
9
+ * @copyright Copyright (c) Passbolt SA (https://www.passbolt.com)
10
+ * @license https://opensource.org/licenses/AGPL-3.0 AGPL License
11
+ * @link https://www.passbolt.com Passbolt(tm)
12
+ * @since 5.3.2
13
+ */
14
+
15
+ import {v4 as uuidv4} from 'uuid';
16
+ import CopyTemporarilyToClipboardController from './copyTemporarilyToClipboardController';
17
+
18
+ describe('CopyTemporarilyToClipboardController', () => {
19
+ describe('constructor', () => {
20
+ it('should set the worker and requestId properties', () => {
21
+ expect.assertions(2);
22
+
23
+ const worker = {port: {}};
24
+ const requestId = uuidv4();
25
+ const controller = new CopyTemporarilyToClipboardController(worker, requestId);
26
+
27
+ expect(controller.worker).toBe(worker);
28
+ expect(controller.requestId).toBe(requestId);
29
+ });
30
+ });
31
+
32
+ describe('exec', () => {
33
+ it('should call copyTemporarily of the right service', async() => {
34
+ expect.assertions(2);
35
+
36
+ const toCopy = "text";
37
+ const controller = new CopyTemporarilyToClipboardController();
38
+
39
+ jest.spyOn(controller.copyToClipboardService, "copyTemporarily").mockImplementation(() => {});
40
+
41
+ await controller.exec(toCopy);
42
+
43
+ expect(controller.copyToClipboardService.copyTemporarily).toHaveBeenCalledTimes(1);
44
+ expect(controller.copyToClipboardService.copyTemporarily).toHaveBeenCalledWith(toCopy);
45
+ });
46
+ });
47
+ });
@@ -12,21 +12,23 @@
12
12
  * @since 3.9.0
13
13
  */
14
14
 
15
+ import CopyToClipboardService from "../../service/clipboard/copyToClipboardService";
15
16
 
16
- class ClipboardController {
17
+ export default class CopyToClipboardController {
17
18
  /**
18
- * ClipboardController constructor
19
+ * CopyToClipboardController constructor
19
20
  * @param {Worker} worker
20
21
  * @param {string} requestId uuid
21
22
  */
22
23
  constructor(worker, requestId) {
23
24
  this.worker = worker;
24
25
  this.requestId = requestId;
26
+ this.copyToClipboardService = new CopyToClipboardService();
25
27
  }
26
28
 
27
29
  /**
28
30
  * Wrapper of exec function to run it with worker.
29
- * @param text {object} The text to copy
31
+ * @param text {string} The text to copy
30
32
  * @return {Promise<void>}
31
33
  */
32
34
  async _exec(text) {
@@ -42,12 +44,10 @@ class ClipboardController {
42
44
  /**
43
45
  * Copy text to clipboard
44
46
  *
45
- * @param text {object} The text to copy
46
- * @return {Void}
47
+ * @param text {string} The text to copy
48
+ * @return {Promise<void>}
47
49
  */
48
50
  async exec(text) {
49
- await navigator.clipboard.writeText(text);
51
+ await this.copyToClipboardService.copy(text);
50
52
  }
51
53
  }
52
-
53
- export default ClipboardController;
@@ -0,0 +1,47 @@
1
+ /**
2
+ * Passbolt ~ Open source password manager for teams
3
+ * Copyright (c) 2023 Passbolt SA (https://www.passbolt.com)
4
+ *
5
+ * Licensed under GNU Affero General Public License version 3 of the or any later version.
6
+ * For full copyright and license information, please see the LICENSE.txt
7
+ * Redistributions of files must retain the above copyright notice.
8
+ *
9
+ * @copyright Copyright (c) 2023 Passbolt SA (https://www.passbolt.com)
10
+ * @license https://opensource.org/licenses/AGPL-3.0 AGPL License
11
+ * @link https://www.passbolt.com Passbolt(tm)
12
+ * @since 3.9.0
13
+ */
14
+
15
+ import {v4 as uuidv4} from 'uuid';
16
+ import CopyToClipboardController from './copyToClipboardController';
17
+
18
+ describe('CopyToClipboardController', () => {
19
+ describe('constructor', () => {
20
+ it('should set the worker and requestId properties', () => {
21
+ expect.assertions(2);
22
+
23
+ const worker = {port: {}};
24
+ const requestId = uuidv4();
25
+ const controller = new CopyToClipboardController(worker, requestId);
26
+
27
+ expect(controller.worker).toBe(worker);
28
+ expect(controller.requestId).toBe(requestId);
29
+ });
30
+ });
31
+
32
+ describe('exec', () => {
33
+ it('should call copy on the right service', async() => {
34
+ expect.assertions(2);
35
+
36
+ const toCopy = "text";
37
+ const controller = new CopyToClipboardController();
38
+
39
+ jest.spyOn(controller.copyToClipboardService, "copy").mockImplementation(() => {});
40
+
41
+ await controller.exec(toCopy);
42
+
43
+ expect(controller.copyToClipboardService.copy).toHaveBeenCalledTimes(1);
44
+ expect(controller.copyToClipboardService.copy).toHaveBeenCalledWith(toCopy);
45
+ });
46
+ });
47
+ });
@@ -22,7 +22,7 @@ describe("GetExtensionVersionController", () => {
22
22
  const version = await controller.exec();
23
23
 
24
24
  expect.assertions(1);
25
- await expect(version).toEqual("v3.6.0");
25
+ expect(version).toEqual("5.3.0");
26
26
  });
27
27
  });
28
28
  });