| From: | Dave Page <dpage(at)pgadmin(dot)org> |
|---|---|
| To: | Akshay Joshi <akshay(dot)joshi(at)enterprisedb(dot)com> |
| Cc: | Aditya Toshniwal <aditya(dot)toshniwal(at)enterprisedb(dot)com>, pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org> |
| Subject: | Re: Regarding feature "Option to skip Password-Dialog for identity file" |
| Date: | 2025-09-30 08:10:33 |
| Message-ID: | CA+OCxowBusxm5ivqYnPdRKonuAYfxDyN_0+LuQdLwh30_bhM1Q@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgadmin-hackers |
On Tue, 30 Sept 2025 at 08:37, Akshay Joshi <akshay(dot)joshi(at)enterprisedb(dot)com>
wrote:
>
>
> On Tue, Sep 30, 2025 at 11:56 AM Aditya Toshniwal <
> aditya(dot)toshniwal(at)enterprisedb(dot)com> wrote:
>
>> Hi Akshay,
>>
>> On Tue, Sep 30, 2025 at 11:50 AM Akshay Joshi <
>> akshay(dot)joshi(at)enterprisedb(dot)com> wrote:
>>
>>>
>>>
>>> On Tue, Sep 30, 2025 at 11:41 AM Aditya Toshniwal <
>>> aditya(dot)toshniwal(at)enterprisedb(dot)com> wrote:
>>>
>>>> Hi Akshay,
>>>>
>>>> On Tue, Sep 30, 2025 at 11:36 AM Akshay Joshi <
>>>> akshay(dot)joshi(at)enterprisedb(dot)com> wrote:
>>>>
>>>>>
>>>>>
>>>>> On Tue, Sep 30, 2025 at 11:29 AM Aditya Toshniwal <
>>>>> aditya(dot)toshniwal(at)enterprisedb(dot)com> wrote:
>>>>>
>>>>>> Hi Akshay,
>>>>>>
>>>>>> Even if you show the password dialog for the first time, the above
>>>>>> scenarios are applicable.
>>>>>> For the context of showing the password prompt first time or not -
>>>>>> I'm suggesting we try first and then show the password prompt.
>>>>>>
>>>>>
>>>>> I tried that implementation, but what if the user doesn’t want a
>>>>> password prompt at all when the identity file has no password? Do you think
>>>>> the solution you provided fully meets the user’s requirements?
>>>>>
>>>> It will work the same as the existing flow. Users can proceed without
>>>> entering any password.
>>>>
>>>
>>> That’s exactly what the user doesn’t want. The feature request has a
>>> clear subject line: *“Option to skip Password-Dialog for identity
>>> file.”* Similar requests have been raised by other users in the past,
>>> which we closed as duplicates.
>>>
>> The request is to skip the password initially when connecting if an
>> identity file is used. Subsequent prompts cannot be avoided if the
>> connection fails.
>> Later this can be improved further in future once sshtunnel provide more
>> details.
>>
> I’m not convinced by this solution. Could you explain what issues you see
> with the approach I proposed? To me, it seems simple: if a user has an
> identity file without a password, disable the prompt; if the identity file
> has a password, enable the prompt. Straightforward.
> I’ll wait for Dave or others to share their thoughts on this.
>
I'd prefer to try to handle this more as Aditya suggests, to avoid having
an additional config option. However, it certainly sounds like the ssh
library makes this impractical and potentially confusing, so I think the
cleanest and most usable solution is likely to add the "Prompt for
password" checkbox that Akshay suggests.
--
Dave Page
pgAdmin: https://www.pgadmin.org
PostgreSQL: https://www.postgresql.org
pgEdge: https://www.pgedge.com
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Aditya Toshniwal | 2025-10-03 10:22:12 | Re: Assistance Required: Code Folding and Line Numbers Not Appearing in pgAdmin 4 (v9.8) |
| Previous Message | Akshay Joshi | 2025-09-30 07:37:31 | Re: Regarding feature "Option to skip Password-Dialog for identity file" |