-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: password is removed from DB if registry is modified without chec…
…king the change password option (#2875) resolves #2874 **Changes:** Added a new mutation `ContainerRegistryEditorModalModifyWithoutPasswordMutation` to handle registry modifications when the password remains unchanged. This prevents sending unnecessary password data during updates. **Implementation Details:** - Created a separate mutation path for registry modifications without password changes - Updated the `handleSave` function to use the appropriate mutation based on whether the password was modified - Added loading state tracking for the new mutation in the modal's confirm button **Rationale:** This change improves security by not transmitting password data when it hasn't been modified, following the principle of least privilege. **Checklist:** - [x] Mention to the original issue - [ ] Documentation - [x] Minium required manager version: 24.09 - [x] Specific setting for review: refer issue - [ ] Minimum requirements to check during review - [ ] Test case(s) to demonstrate the difference of before/after **Testing Requirements:** 1. Verify registry updates work when password is not modified 2. Confirm password updates still function when modified 3. Check error handling for both mutation paths
- Loading branch information
Showing
1 changed file
with
87 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters