Skip to content

Add credential cache#63

Open
samansmink wants to merge 7 commits intoduckdb:mainfrom
samansmink:pr-tweaks
Open

Add credential cache#63
samansmink wants to merge 7 commits intoduckdb:mainfrom
samansmink:pr-tweaks

Conversation

@samansmink
Copy link
Copy Markdown
Collaborator

Small tweaks to original PR: #58 by @UriSaShavit

Reopened because i can't push directly to that one, and our current test suite is not super external-contributor friendly since we can't really test this in the local minio right now

samansmink and others added 6 commits December 4, 2025 17:02
- Created UCTableCredentialManager singleton class to centralize AWS temp credentials caching logic
- Removed ~70 lines of duplicated code between uc_catalog.cpp and uc_table_entry.cpp
- Replaced global variables (table_secret_mutexes, mutex_map_mutex, secret_expiration_times) with private members of credential manager
- Extracted magic number (5 minutes) into named constant REFRESH_SAFETY_MARGIN_MS
- Fixed secret_caching.test to attach catalog with DEFAULT_SCHEMA and correct expected results

This addresses PR feedback about code duplication and global variable usage.
liko9 added a commit to liko9/unity_catalog that referenced this pull request Jan 29, 2026
Adds UCTableCredentialManager to cache temporary credentials for Unity Catalog tables, reducing API calls and improving performance. Includes thread-safe credential refresh with expiration checking.

Resolved conflicts with time travel support changes from PR duckdb#67.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
liko9 added a commit to liko9/unity_catalog that referenced this pull request Jan 29, 2026
Synced with upstream PR duckdb#70 (step up to v1.5-variegata).
Resolved conflicts in unity_catalog.cpp - kept credential_manager from PR duckdb#63.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
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