Skip to content

feat: JWT auth, minimal ClickHouse Cloud CI #215

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
May 12, 2025
Merged

feat: JWT auth, minimal ClickHouse Cloud CI #215

merged 6 commits into from
May 12, 2025

Conversation

slvrtrn
Copy link
Contributor

@slvrtrn slvrtrn commented Apr 23, 2025

Summary

JWT auth is a new ClickHouse Cloud feature, introduced in January 2025.

  • Added Client::with_access_token, slightly reworking the internal auth implementation.
  • Client::with_user and Client::with_password will panic if called after Client::with_access_token (and vice versa).
  • insert and query will use appropriate headers based on the authentication method.
  • Added a minimal ClickHouse Cloud setup for CI JWT tests in GHA

Closes #183

Checklist

  • Unit tests
  • Integration tests
  • A human-readable description of the changes was provided so that we can include it in CHANGELOG later

@slvrtrn slvrtrn changed the title feat: JWT auth feat: JWT auth, minimal ClickHouse Cloud CI Apr 23, 2025
@slvrtrn slvrtrn requested a review from Copilot April 23, 2025 18:31
Copilot

This comment was marked as resolved.

@slvrtrn slvrtrn requested review from serprex, loyd and mshustov April 23, 2025 18:33
@slvrtrn slvrtrn marked this pull request as ready for review April 23, 2025 18:37
@slvrtrn slvrtrn merged commit 0fdd733 into main May 12, 2025
6 checks passed
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.

Support JWT auth
2 participants