In the UI it would be nice to duplicate the selected connection, in the menu "With Selected". 

The copy would be set with the same name plus some suffix (_copy, _1, whatever) and it is useful for when you have a connection with all equal fields except something in a particular one. 
airflow/www/views.py
"""Formats hidden fields"""
        key = self.get('key')  
        val = self.get('val')  
        if secrets_masker.should_hide_value_for_key(key):
            return Markup('*' * 8)
        if val:
            return val
        else:
            return Markup('<span class="label label-danger">Invalid</span>')
    formatters_columns = {
        'val': hidden_field_formatter,
    }
    validators_columns = {'key': [validators.DataRequired()]}
    def prefill_form(self, form, request_id):  
        if secrets_masker.should_hide_value_for_key(form.key.data):
            form.val.data = '*' * 8
    @action('muldelete', 'Delete', 'Are you sure you want to delete selected records?', single=False)
    def action_muldelete(self, items):