4b24c988ad
* refactor(authz): move extract_header_token into authz Move the extract_header_token method into the authz package so that it can be shared by the query path. The method is renamed to reflect the fact that it can now also extract a token from gRPC metadata. The extract_token function is now a little more generic to allow it to be used with HTTP header values and gRPC metadata values. * feat(service_grpc_flight): JDBC compatible Handshake While testing some JDBC based clients we found that some, Tableau in this case, cannot be configured with authoriztion tokens. In these cases we need to be able to support username/password. The approach taken is to ignore the username and make the token the password. This is the same approach being taken throughout the product. To facilitate this the Flight RPC Handshake command has been extended to look for Basic authorization credentials and respond with the appropriate Bearer authorization header. While adding end-to-end tests the subprocess commands were causing a deadlock. These have been changed to using the tonic::process module. There are also some small changes to the JDBC test application where the hardcoded values were clashing with the authorization parameters. * fix: lint * chore: apply suggestions from code review Co-authored-by: Andrew Lamb <alamb@influxdata.com> * chore: review suggestion --------- Co-authored-by: Andrew Lamb <alamb@influxdata.com> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |