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: merge authenticate and authorize api #1360

Merged
merged 4 commits into from
Apr 11, 2023

Conversation

shuiyisong
Copy link
Contributor

I hereby agree to the terms of the GreptimeDB CLA

What's changed and what's your intention?

This pr mainly introduces auth api, which is a simple combination of authenticate and authorize, but allow to be implemented for optimization. In most cases(other than MySQL auth process) it would be much easier to just use auth api.

PostgreSQL, gRPC and HTTP auth process have been refactored to use the new auth api.

Checklist

  • I have written the necessary rustdoc comments.
  • I have added the necessary unit tests and integration tests.

Refer to a related PR or issue link (optional)

@codecov
Copy link

codecov bot commented Apr 11, 2023

Codecov Report

Merging #1360 (2958e8d) into develop (09f003d) will increase coverage by 0.11%.
The diff coverage is 91.04%.

@@             Coverage Diff             @@
##           develop    #1360      +/-   ##
===========================================
+ Coverage    85.49%   85.60%   +0.11%     
===========================================
  Files          514      517       +3     
  Lines        77471    77834     +363     
===========================================
+ Hits         66230    66629     +399     
+ Misses       11241    11205      -36     

Copy link
Contributor

@fengys1996 fengys1996 left a comment

Choose a reason for hiding this comment

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

LGTM

@fengys1996 fengys1996 merged commit d5f0ba4 into GreptimeTeam:develop Apr 11, 2023
@shuiyisong shuiyisong deleted the refactor/auth branch April 17, 2023 09:55
paomian pushed a commit to paomian/greptimedb that referenced this pull request Oct 19, 2023
* chore: add auth api

* chore: update pg using auth api

* chore: update grpc using auth api

* chore: update http using auth api
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.

3 participants