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/volcengine-tos/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,12 @@ http = { workspace = true }
log = { workspace = true }
percent-encoding = { workspace = true }
reqsign-core = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }

[dev-dependencies]
anyhow = { workspace = true }
bytes = { workspace = true }
env_logger = { workspace = true }
reqsign-file-read-tokio = { workspace = true }
reqsign-http-send-reqwest = { workspace = true }
Expand Down
20 changes: 20 additions & 0 deletions services/volcengine-tos/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,26 @@ This crate supports both header authentication and presigned query
authentication. Its default credential provider reads credentials from the
environment.

## STS AssumeRole

`AssumeRoleGrant` and `AssumeRoleGranter` consume an existing Volcengine
credential and issue a temporary TOS credential with the exact STS
`ExpiredTime`. Install the granter explicitly through `reqsign_core::Granter`;
the default credential chain is unchanged.

## Changelog

- `Credential` now has an `expires_at` field for the absolute expiration
returned by STS. `Credential::new` and `Credential::with_session_token` keep
their previous behavior and leave expiration unset; use
`Credential::with_expires_at` for temporary credentials constructed by hand.
- Adding `expires_at` breaks struct-literal construction. Callers that build
`Credential` with a struct literal must switch to the constructors. The
existing constructors remain available and keep their previous behavior.
- `RequestSigner` now enforces the credential's absolute expiration through the
full presigned URL lifetime. Header signing continues to check the signing
time.

## Quick Start

```rust,no_run
Expand Down
Loading
Loading