Add update functionality for database and cloud storage connections#351
Merged
Edwardvaneechoud merged 2 commits intomainfrom Mar 15, 2026
Merged
Conversation
The Modify button existed in both connection views but always called the create endpoint, which rejected duplicate names. Added PUT endpoints and update service functions that modify existing connections in-place, preserving secrets when fields are left blank. https://claude.ai/code/session_01823mem4d6LxDCJAHuWkpFR
✅ Deploy Preview for flowfile-wasm canceled.
|
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds the ability to update existing database and cloud storage connections, complementing the existing create functionality. The implementation includes backend logic to handle partial updates (especially for sensitive fields like passwords/secrets) and frontend UI improvements to support edit mode.
Key Changes
Backend (flowfile_core)
update_database_connection()function that updates connection details while allowing optional password updates (keeps existing password if not provided)update_cloud_connection()function with helper_update_cloud_secret()to handle selective secret field updates for AWS and Azure credentials/db_connection_liband/cloud_connectionto expose update functionalityencrypt_secretimport to support re-encrypting updated secretsFrontend (flowfile_frontend)
updateDatabaseConnectionApi()andupdateCloudStorageConnectionApi()functions to call the new backend endpointsDatabaseView.vueandCloudConnectionView.vueto route submissions to create or update APIs based on edit mode, and passisEditingprop to form componentsImplementation Details
encrypt_secret()functionhttps://claude.ai/code/session_01823mem4d6LxDCJAHuWkpFR