Skip to content

dbeaver/dbeaver#39426 Fix ask about password#40719

Open
IvanGorshechnikov wants to merge 3 commits intodevelfrom
dbeaver/dbeaver#39426-fix-aws-iam-password
Open

dbeaver/dbeaver#39426 Fix ask about password#40719
IvanGorshechnikov wants to merge 3 commits intodevelfrom
dbeaver/dbeaver#39426-fix-aws-iam-password

Conversation

@IvanGorshechnikov
Copy link
Copy Markdown
Contributor

Closes #39426

Copilot AI review requested due to automatic review settings April 8, 2026 06:56
@IvanGorshechnikov IvanGorshechnikov marked this pull request as draft April 8, 2026 06:56
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes the incorrect authentication prompt shown for AWS RDS IAM auth by allowing auth models to supply custom credential prompt fields (e.g., access key + secret key) instead of always showing a single “password” field.

Changes:

  • Added DBPAuthPromptField / DBPAuthPromptInfo to represent multi-field credential prompts and results.
  • Extended DBPPlatformUI (and Desktop/Console implementations) with a new promptUserCredentials(..., List<DBPAuthPromptField>, ...) overload.
  • Updated BaseAuthDialog to render either the legacy username/password controls or a dynamic list of credential fields, and updated DataSourceDescriptor to prompt using auth-model-defined properties.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
plugins/org.jkiss.dbeaver.ui.editors.connection/src/org/jkiss/dbeaver/ui/dialogs/BaseAuthDialog.java Adds support for rendering and collecting custom credential fields in the auth dialog.
plugins/org.jkiss.dbeaver.registry/src/org/jkiss/dbeaver/registry/DataSourceDescriptor.java Adds auth-model-driven prompting for required credential properties and wires it into connection flow.
plugins/org.jkiss.dbeaver.model/src/org/jkiss/dbeaver/runtime/ui/DBPPlatformUI.java Adds a new UI API overload to prompt for multiple credential fields.
plugins/org.jkiss.dbeaver.model/src/org/jkiss/dbeaver/runtime/ui/console/ConsoleUserInterface.java Implements the new overload (non-interactive mode throws).
plugins/org.jkiss.dbeaver.model/src/org/jkiss/dbeaver/model/connection/DBPAuthPromptInfo.java New model class to return prompted field values + save flag.
plugins/org.jkiss.dbeaver.model/src/org/jkiss/dbeaver/model/connection/DBPAuthPromptField.java New model class describing a prompted credential field.
plugins/org.jkiss.dbeaver.model/src/org/jkiss/dbeaver/model/access/DBAAuthModelPromptProperties.java New interface for auth models to declare which properties must be prompted during connect.
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/core/DesktopUI.java Implements the new UI overload by opening BaseAuthDialog with custom fields.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@IvanGorshechnikov IvanGorshechnikov marked this pull request as ready for review April 20, 2026 16:04
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.

The authentication prompt asks for password instead of AWS access and secret keys

2 participants