Skip to content

fix(connections): import DBeaver username from credentials-config.json (#1355)#1366

Merged
datlechin merged 2 commits into
mainfrom
fix/1355-dbeaver-import-username
May 21, 2026
Merged

fix(connections): import DBeaver username from credentials-config.json (#1355)#1366
datlechin merged 2 commits into
mainfrom
fix/1355-dbeaver-import-username

Conversation

@datlechin
Copy link
Copy Markdown
Member

Fixes #1355.

Importing connections from DBeaver left the username empty. The importer read the user from data-sources.json's configuration block, but DBeaver 6.1.3+ stores the username in the encrypted credentials-config.json under #connection.user, not there. The value was decrypted and parsed but never read onto the connection.

Changes

  • Read the username from credentials-config.json #connection.user, falling back to data-sources.json configuration.user (used by admin/env-template configs).
  • Load the credentials file regardless of the "include passwords" choice. The username is connection metadata, not a secret; password import stays gated on that choice.

Tests

Added 4 tests: username from credentials, username imported when passwords are excluded, fallback to configuration.user, and credentials-wins precedence. All pass.

@datlechin datlechin merged commit 1f5f8cb into main May 21, 2026
2 checks passed
@datlechin datlechin deleted the fix/1355-dbeaver-import-username branch May 21, 2026 05:51
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.

Username lost when importing connections from DBeaver

1 participant