Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions services/huaweicloud-obs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,11 @@ http = { workspace = true }
log = { workspace = true }
percent-encoding = { workspace = true }
reqsign-core = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }

[dev-dependencies]
bytes = { workspace = true }
env_logger = { workspace = true }
reqsign-file-read-tokio = { workspace = true }
reqsign-http-send-reqwest = { workspace = true }
Expand Down
15 changes: 15 additions & 0 deletions services/huaweicloud-obs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,21 @@ The default credential provider reads `HUAWEI_CLOUD_ACCESS_KEY_ID` and
`HUAWEI_CLOUD_SECRET_ACCESS_KEY`, with an optional
`HUAWEI_CLOUD_SECURITY_TOKEN`.

## Changelog: credential expiry

`Credential` now has an absolute `expires_at: Option<Timestamp>` field.
`Credential::new` keeps its original three-argument, no-expiry behavior; use
`Credential::with_expires_at` when the expiration is known. The added public
field means existing struct-literal construction no longer compiles, so
struct-literal callers must switch to `Credential::new` (and
`with_expires_at` where needed).

`AgencyGrant` and `AgencyGranter` issue Huawei Cloud IAM agency temporary
credentials through `Granter<Credential>`. The result carries the exact IAM
`expires_at` and can be passed directly to `RequestSigner`. Known-expiry
credentials are rejected by header signing or presigning when they do not cover
the requested operation deadline.

## Quick Start

```rust,no_run
Expand Down
Loading
Loading