Skip to content

QuickAccess: edit a resource, and update an existing resource when a password changes - #63

Open
bartkummel wants to merge 3 commits into
passbolt:masterfrom
bartkummel:feature/14934_QuickAccess-edit-resource
Open

bartkummel wants to merge 3 commits into
passbolt:masterfrom
bartkummel:feature/14934_QuickAccess-edit-resource

Conversation

@bartkummel

@bartkummel bartkummel commented Nov 19, 2026 •

Copy link
Copy Markdown

QuickAccess: edit a resource, and update an existing resource when a password changes

This pull request is a (multiple allowed):

  • bug fix
  • change of existing behavior
  • new feature

Checklist

  • User stories are present (given, when, then format)
  • Unit tests are passing
  • Selenium tests are passing (not run, see below)
  • Check style is not triggering new error or warning

Companion pull request on the browser extension: passbolt/passbolt_browser_extension#301

Related requests

Community thread Covered by
14934 - Edit a resource from the QuickAccess Edit button and edit page
7589 - Keep the old password accessible Current password kept at hand, saved screen, separate window
14824 - More user friendly password updates Generator on an existing resource, previous password kept until done
14869 / PB-55116 - Update the existing entry Update instead of duplicate on autosave, change-password form fix

User stories

Edit from the QuickAccess

  • Given I can update a resource and I am online, when I open it in the QuickAccess, then I see an edit button.
  • Given I only have read access, or I am offline, when I open the resource, then I do not see the edit button.
  • Given I edit a resource, when I click on the dice, then a new password following the organisation policy is generated, and the current password stays visible and copyable below it.
  • Given I changed the password, when I save, then the previous and the new password stay available until I click on done.
  • Given I edit a resource in the toolbar popup, when I click on the "separate window" button, then the form opens in a window that does not close when I click on the website (not available on Safari, nor once I changed something in the form).
  • Given I edit in the toolbar popup and I changed the password, when I try to copy the unsaved new password, then I cannot, because the popup would close and lose it.
  • Given the resource is shared, when I save a new password, then I first see who will receive it and have to confirm, as in the vault. If the permissions changed meanwhile, the save is refused.
  • Given I only change the name, URL or username, when I save, then the secret is not re-encrypted.
  • Given the password is very weak or in a data breach, when I save, then I am warned and have to save again to confirm.

Update an existing resource

  • Given I generated a password with the in-form menu on a website I already have an updatable password for (same URL, same or empty username), when I submit the form, then I am offered to update that resource instead of creating a new one.
  • Given several resources match, when the prompt opens, then I can choose which one to update.
  • Given I prefer a new resource, when I click on "Save as a new password instead", then the usual create form opens.
  • Given a change password form (current, new and confirmation fields), when I submit it, then the new password is proposed, not the current one (bug fix).

What you did

  • ResourceEditService (src/shared/services/resourceEdit): loads a resource with its decrypted secret and saves it following the vault edit workflow rules: keyring synchronisation and permission snapshot before saving, secret only re-encrypted when changed, recipients confirmation with drift detection for shared resources, personal flag, password expiry. The vault EditResource dialog now reuses its custom fields merge and expiration date helpers instead of keeping its own copies.
  • ResourceEditPage (QuickAccess route /resources/edit/:id) and the edit button on ResourceViewPage. Only the name, main URL, username and password are editable; note, TOTP, custom fields, additional URLs and icon are kept as is.
  • UpdateResource in the autosave prompt, with findUpdateCandidates matching on URL (CanSuggestService) and username.
  • InFormCredentialsFormField.submittedPassword: change password forms now submit the new password.
  • New edit-resource bootstrap feature to open the edit page in a detached window.

Tests: 76 suites / 1542 tests pass for src/react-quickaccess, src/react-web-integration, src/shared/services/resourceEdit and the vault edit dialog and permission workflow. ESLint is clean. Selenium tests were not run. New strings are added to en-UK only.

Known limitations:

  • The update offer only appears when the existing autosave prompt does, that is after the in-form generator filled the form.
  • The recipients confirmation in the QuickAccess is a read-only list; changing the permissions still requires the vault.
  • No CHANGELOG entry, as entries use internal PB references.

🤖 Generated with Claude Code

bartkummel and others added 3 commits November 19, 2026 08:41
Extract the resource edition rules of the vault so they can be reused by the
QuickAccess:
- load a resource with its decrypted secret, merging the custom fields;
- save it like the vault edit workflow does: synchronise the keyring and take
  a permission snapshot before saving, only re-encrypt the secret when it
  changed, ask to confirm the recipients of a shared resource whose secret
  changed (with drift detection), set the personal flag and update the
  expiration date according to the password expiry settings.

The vault EditResource dialog now uses the shared custom fields merge and
expiration date helpers instead of its own copies.

Refs community.passbolt.com/t/14934

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Add an edit button on the QuickAccess resource view, for users with update
  or owner permission while online.
- Add an edit page to change the name, URL, username and password, with the
  password generator following the organisation password policy. Other
  properties (note, TOTP, custom fields, additional URLs, icon) are kept.
- Keep the current password visible and copyable while changing it, and both
  the previous and the new password after saving, until the user is done.
- Let the user move the edit form to a separate window that does not close
  when switching to the website (not on Safari).
- Ask to confirm the recipients before saving a new password of a shared
  resource, as the vault does.

Refs community.passbolt.com/t/14934, /t/7589, /t/14824

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…word

When the autosave prompt opens and the user can update one or more resources
matching the website URL and username, offer to update it with the new
password instead of creating a duplicate. The user can pick the resource when
several match, or still save the credentials as a new resource.

Also fix the autosave of change password forms (current, new and
confirmation fields): the new password is now submitted instead of the
current one.

Refs PB-55116, community.passbolt.com/t/14869

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@CLAassistant

CLAassistant commented Nov 19, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@bartkummel

Copy link
Copy Markdown
Author

The second CLA comment is a duplicate; the license/cla check passes, so I assume it's just a glitch that the 2nd comment doesn't get updated.

@bartkummel
bartkummel marked this pull request as ready for review November 19, 2026 07:59

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants