Skip to content
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

refactor(cubesql): Make Postgres authentication extensible #8709

Merged
merged 1 commit into from
Sep 18, 2024

Conversation

MazterQyou
Copy link
Member

Check List

  • Tests has been run in packages where changes made if available
  • Linter has been run for changed code
  • Tests for the changes have been added if not covered yet
  • Docs have been added / updated if required

Description of Changes Made

This PR refactors pg-srv, making authentication request methods and message tag parsing to be extendable. It also adds PostgresAuthService to be able to extend the auth process.

@MazterQyou MazterQyou requested a review from a team as a code owner September 14, 2024 13:59
Copy link

codecov bot commented Sep 14, 2024

Codecov Report

Attention: Patch coverage is 72.60274% with 40 lines in your changes missing coverage. Please review.

Project coverage is 82.61%. Comparing base (7096242) to head (f79fff6).
Report is 19 commits behind head on master.

Files with missing lines Patch % Lines
rust/cubesql/cubesql/src/sql/postgres/shim.rs 62.00% 19 Missing ⚠️
...ubesql/cubesql/src/sql/postgres/pg_auth_service.rs 73.91% 12 Missing ⚠️
rust/cubesql/pg-srv/src/buffer.rs 78.12% 7 Missing ⚠️
rust/cubesql/cubesql/src/config/mod.rs 83.33% 1 Missing ⚠️
rust/cubesql/pg-srv/src/protocol.rs 88.88% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8709      +/-   ##
==========================================
- Coverage   82.62%   82.61%   -0.02%     
==========================================
  Files         212      213       +1     
  Lines       77343    77407      +64     
==========================================
+ Hits        63906    63949      +43     
- Misses      13437    13458      +21     
Flag Coverage Δ
cubesql 82.61% <72.60%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

vercel bot commented Sep 14, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

8 Skipped Deployments
Name Status Preview Comments Updated (UTC)
examples-angular-dashboard ⬜️ Ignored (Inspect) Visit Preview Sep 14, 2024 3:21pm
examples-react-d3 ⬜️ Ignored (Inspect) Visit Preview Sep 14, 2024 3:21pm
examples-react-dashboard ⬜️ Ignored (Inspect) Visit Preview Sep 14, 2024 3:21pm
examples-react-data-table ⬜️ Ignored (Inspect) Visit Preview Sep 14, 2024 3:21pm
examples-react-highcharts ⬜️ Ignored (Inspect) Visit Preview Sep 14, 2024 3:21pm
examples-react-material-ui ⬜️ Ignored (Inspect) Visit Preview Sep 14, 2024 3:21pm
examples-react-pivot-table ⬜️ Ignored (Inspect) Visit Preview Sep 14, 2024 3:21pm
examples-vue-query-builder ⬜️ Ignored (Inspect) Visit Preview Sep 14, 2024 3:21pm

@MazterQyou MazterQyou force-pushed the cubesql/auth-methods branch 3 times, most recently from b06862d to b3a13ec Compare September 14, 2024 15:14
@ovr ovr merged commit 2bb9aa3 into master Sep 18, 2024
65 checks passed
@ovr ovr deleted the cubesql/auth-methods branch September 18, 2024 12:17
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.

2 participants