feat(services/swift): add Keystone v3 authentication#7216
Open
benroeder wants to merge 1 commit intoapache:mainfrom
Open
feat(services/swift): add Keystone v3 authentication#7216benroeder wants to merge 1 commit intoapache:mainfrom
benroeder wants to merge 1 commit intoapache:mainfrom
Conversation
Add native Keystone v3 password authentication with automatic token acquisition and refresh. Tokens are refreshed with a 2-minute grace period before expiry. The Swift storage URL can be discovered from the Keystone service catalog or provided explicitly. Two authentication modes: - Static token (existing behavior): provide token and endpoint directly - Keystone v3 (new): provide auth_url, username, password, project_name Backward compatible — existing token-based configs continue to work. Reference: https://docs.openstack.org/keystone/latest/api_curl_examples.html
Xuanwo
reviewed
Feb 23, 2026
| use std::sync::OnceLock; | ||
|
|
||
| /// Authentication mode for Swift. | ||
| pub enum SwiftAuth { |
Member
There was a problem hiding this comment.
I suggest we implement that logic within reqsign: https://github.com/apache/opendal-reqsign. This way, OpenDAL can focus more on storage-side logic.
Contributor
Author
There was a problem hiding this comment.
Ok will look into it
Contributor
Author
There was a problem hiding this comment.
I see that opendal uses v0.16.x branch and main is v0.19.0 should I add it to both ? @Xuanwo
5 tasks
Contributor
Author
|
Update: I've submitted both PRs to opendal-reqsign:
Both add Once the v0.16.x PR is merged and released, I'll update this PR to |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
auth_url,username,password,project_name,user_domain_name,project_domain_namemeadependency for async mutex (same as other OpenDAL services)Reference: https://docs.openstack.org/keystone/latest/api_curl_examples.html
Test plan