generated from amazon-archives/__template_Custom
-
Notifications
You must be signed in to change notification settings - Fork 66
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Description:
Currently, tough and tuftool require http(s) URLs or local file paths for accessing TUF repository targets and metadata. Adding native support for s3:// URIs could extends functionality of the library/tool to support usecases where a TUF repository is only hosted on S3.
Proposal:
Allow s3:// URIs to be used anywhere targets or metadata resources are currently specified, including:
- Repository base URLs in tough client
- Target file locations
- Metadata file locations
- tuftool commands that reference remote resources
Example Usage:
// tough client
let repository = RepositoryLoader::new(
"s3://my-bucket/tuf-repo",
// ...
).load().await?;# tuftool
tuftool download \
--metadata-url s3://my-bucket/tuf-repo/targets \
--target-url s3://my-bucket/tuf-repo/targets \
out-dirAlternatives considered
- Download the entire repo via s3 sync and use
tuftoollocal file transport support.- this isn't feasible for the use-case in mind given the size of large TUF repos
- Use S3 pre-signed URLs
- Keep the status quo
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request