Skip to content

Antalya 26.6: Cache vended credentials for REST catalogs - #2156

Open
zvonand wants to merge 2 commits into
antalya-26.6from
feature/antalya-26.6/ClickHouse-ClickHouse-pr-107960
Open

Antalya 26.6: Cache vended credentials for REST catalogs#2156
zvonand wants to merge 2 commits into
antalya-26.6from
feature/antalya-26.6/ClickHouse-ClickHouse-pr-107960

Conversation

@zvonand

@zvonand zvonand commented Aug 3, 2026

Copy link
Copy Markdown
Member

Dropped from this backport: the AI dropped these surfaces rather than pulling in a missing prerequisite. Reviewers: confirm each is genuinely optional.

  • catalog auth-state invalidation of the vended credentials cache (cacheCredentials state-snapshot check and the commitSettingsChanges cache clear) - depends on the RestCatalog CatalogState/prepareSettingsChanges machinery not yet on antalya-26.6

Changelog category (leave one):

  • Improvement

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):

Add option to cache vended credentials for REST catalogs; add a setting vended_credentials_cache_ttl (seconds). 300 by default. 0 means no caching (ClickHouse#107960 by @zvonand).

Cherry-picked from ClickHouse#107960.


Now, new vended credentials are requested on each metadata request. This PR adds an (optional) cache for creds with configurable TTL.

zvonand added 2 commits August 3, 2026 19:39
Kept only the source PR's own additions in the conflicted regions; the
surrounding "theirs" context (stateless-worker ProfileEvents, the
`initializeOrLeaveUnavailable` catalog loading path, and the
`ALTER DATABASE ... MODIFY SETTING` / `CatalogState` machinery) belongs to
other upstream PRs that are not on antalya-26.6.

Adapted: DatabaseDataLake::getCatalog reads vended_credentials_cache_ttl from the plain `settings` member, because antalya-26.6 has no MultiVersion<DatabaseDataLakeSettings> database_settings
Dropped: catalog auth-state invalidation of the vended credentials cache (cacheCredentials state-snapshot check and the commitSettingsChanges cache clear) - depends on the RestCatalog CatalogState/prepareSettingsChanges machinery not yet on antalya-26.6
@zvonand zvonand added releasy Created/managed by RelEasy antalya-26.6 ai-resolved Port conflict auto-resolved by Claude labels Aug 3, 2026
@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown

Workflow [PR], commit [9bd22ca]

@zvonand

zvonand commented Aug 4, 2026

Copy link
Copy Markdown
Member Author

@blau-ai

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai-resolved Port conflict auto-resolved by Claude antalya-26.6 releasy Created/managed by RelEasy

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant