apache / apache/arrow

[C++][Arrow Flight SQL ODBC] Find co-located TLS certificate

Open
#47,630 0 comments 0 reactions 0 assignees View on GitHub
Component: C++ Component: FlightRPC Type: enhancement
Dominant language
C++
Stars
17.1k
Forks
4.3k
Avg merge
3d 13h
Merged PRs (30d)
88

Description

### Describe the enhancement requested

AC:
- ODBC should find the TLS certificate if it is co-located with the driver. The codebase should find module path of the ODBC driver dll and use the module path as default when user does not pass `trustedCerts` in the connection string.
- Suggestion: One possibility is to use `whereami` library for this.

Code to change:
https://github.com/apache/arrow/blob/ed36107ad869dd0db5c33a7c3e5484f66a461a4f/cpp/src/arrow/flight/sql/odbc/flight_sql/flight_sql_connection.cc#L153-L155

Suggested function to use to find module path:
https://github.com/apache/arrow/blob/ed36107ad869dd0db5c33a7c3e5484f66a461a4f/cpp/src/arrow/flight/sql/odbc/odbcabstraction/utils.cc#L69

Parent issue: https://github.com/apache/arrow/issues/30622

### Component(s)

C++, FlightRPC

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.