-
Notifications
You must be signed in to change notification settings - Fork 25
FIX: Access Token Issue (EntraID Auth) #285
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
Conversation
📊 Code Coverage Report
Diff CoverageDiff: main...HEAD, staged and unstaged changes
Summary
mssql_python/pybind/connection/connection.cppLines 172-180 172 SQLRETURN Connection::setAttribute(SQLINTEGER attribute, py::object value) {
173 LOG("Setting SQL attribute");
174 SQLPOINTER ptr = nullptr;
175 SQLINTEGER length = 0;
! 176 static std::string buffer; // to hold sensitive data temporarily
177
178 if (py::isinstance<py::int_>(value)) {
179 int intValue = value.cast<int>();
180 ptr = reinterpret_cast<SQLPOINTER>(static_cast<uintptr_t>(intValue)); 📋 Files Needing Attention📉 Files with overall lowest coverage (click to expand)mssql_python.pybind.connection.connection.cpp: 68.3%
mssql_python.ddbc_bindings.py: 68.5%
mssql_python.pybind.ddbc_bindings.cpp: 69.3%
mssql_python.pybind.connection.connection_pool.cpp: 78.9%
mssql_python.cursor.py: 79.7%
mssql_python.connection.py: 81.7%
mssql_python.helpers.py: 84.7%
mssql_python.auth.py: 85.3%
mssql_python.type.py: 86.8%
mssql_python.pooling.py: 87.5% 🔗 Quick Links
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR reintroduces a static buffer as a temporary hotfix for an access token issue, addressing GitHub Issue #286. The change modifies how sensitive data is stored temporarily during SQL attribute setting.
- Converts a local string buffer to a static buffer for holding sensitive data
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Work Item / Issue Reference
Summary
Reintroduce Static Buffer as a temporary hotfix, will keep a new task to remove static tokens.