feat: Add OpenStack Keystone authentication service#690
Open
benroeder wants to merge 1 commit intoapache:mainfrom
Open
feat: Add OpenStack Keystone authentication service#690benroeder wants to merge 1 commit intoapache:mainfrom
benroeder wants to merge 1 commit intoapache:mainfrom
Conversation
Add reqsign-openstack-keystone crate implementing Keystone v3 password authentication for OpenStack services. This enables OpenDAL's Swift backend to use reqsign for credential management instead of inline auth. Contributes to apache#685 (reqsign-swift checklist item).
This was referenced Feb 23, 2026
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
reqsign-openstack-keystonecrate implementing Keystone v3 password authenticationreqsignumbrella crate behind theopenstackfeature flagThis enables OpenDAL's Swift backend to use reqsign for credential management instead of inline Keystone auth code. Contributes to #685 (
reqsign-swiftchecklist item).Context: Xuanwo requested this move during review of apache/opendal#7216.
What's included
Credential types (
credential.rs):Credentialwith token, expiry, and service catalogCatalogEntry/Endpointtypes with serde deserializationendpoint()andendpoint_in_region()for catalog lookupSigningCredentialimpl with 2-minute expiry grace periodRequest signing (
sign_request.rs):RequestSignerinsertsX-Auth-Tokenheader (marked sensitive)Credential providers (
provide_credential/):KeystoneCredentialProvider— POST to{auth_url}/auth/tokens, extracts token fromX-Subject-Tokenheader, parses expiry + service catalogEnvCredentialProvider— readsOPENSTACK_AUTH_URL,OPENSTACK_USERNAME,OPENSTACK_PASSWORD, etc.DefaultCredentialProvider— credential chain (env vars for now)Testing (27 tests total):
Signerround-trip with token caching, region filteringTest plan
cargo fmt --all -- --checkcargo clippy --workspace --all-targets --all-features -- -D warningscargo test --workspace --no-fail-fast(all 27 openstack-keystone tests + full workspace green)