Skip to content

Service Account file credentials support#39

Merged
vgvoleg merged 1 commit into
mainfrom
sa_file_credentials
May 12, 2026
Merged

Service Account file credentials support#39
vgvoleg merged 1 commit into
mainfrom
sa_file_credentials

Conversation

@vgvoleg
Copy link
Copy Markdown
Member

@vgvoleg vgvoleg commented May 12, 2026

No description provided.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds support for loading YDB Service Account credentials from a JSON file path, extending existing credential preparation logic in ydb_dbapi to cover an additional configuration style.

Changes:

  • Add service_account_file handling in prepare_credentials() to build ServiceAccountCredentials from a file.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread ydb_dbapi/utils.py Outdated
Comment on lines +161 to +163
service_account_file = credentials.get("service_account_file")
if service_account_file:
return ydb.iam.ServiceAccountCredentials.from_file(service_account_file)
@vgvoleg vgvoleg force-pushed the sa_file_credentials branch from ebcb833 to 0197b70 Compare May 12, 2026 15:32
@vgvoleg vgvoleg merged commit 8b6f234 into main May 12, 2026
6 checks passed
@vgvoleg vgvoleg deleted the sa_file_credentials branch May 12, 2026 16:03
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