Skip to content

fix(ext-tester): inject the --connect password like the app does - #1628

Merged
ZhuchkaTriplesix merged 3 commits into
devfrom
issue/1487-tester-inject-credentials
Oct 16, 2026
Merged

ZhuchkaTriplesix merged 3 commits into
devfrom
issue/1487-tester-inject-credentials

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Found by testing the real ClickHouse driver (QueryaHub/clickhouse-query-ext 1.0.2) for the extension registry: it connected to the test database but failed AUTHENTICATION_FAILED although the credentials work. The driver reads its password only from system.injectCredentials (the app's way: bridge.injectCredentials before db.connect, no password in the connect payload), and the harness put it into db.connect only.

  • The harness sends system.injectCredentials {connectionId, password} before db.connect when --connect has a non-empty password, and leaves password out of the connect params. No password: no call, no new check.
  • system.injectCredentials is a recommended method (protocol since 0.4.11): a plugin without it only warns, but then db.connect shows the real consequence.
  • Tests: injected before connect and absent from the payload, nothing without a password, warning without the method. Docs and CHANGELOG.

The released testers (up to 0.4.19) still behave the old way; the registry's CI uses the released tester, so the ClickHouse record waits for the release that carries this. Not run locally; CI decides.

…tials, like the app (#1487)

A driver that takes its password only from the injected secret (the ClickHouse
driver) could not authenticate under the tester: the password was in the
db.connect payload, which such a driver ignores. The harness now injects it
first and leaves it out of db.connect.
@github-actions github-actions Bot added bug Something isn't working enhancement New feature or request tests Theme parser epic P3 Low priority / Polish & Enhancements labels Oct 16, 2026
@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit d9f207e into dev Oct 16, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request P3 Low priority / Polish & Enhancements tests Theme parser epic

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant