Unverified Commit e20ce0ce authored by David Barsky's avatar David Barsky Committed by GitHub
Browse files

Upstream sigv4 signing module from davidbarsky/sigv4 (#638)

* feature: upstream sigv4 signing module

* Fix clippy error

* Try to remove CRLF line endings to allow tests to pass on Windows.

* Remove trailing semicolon to address `#[warn(semicolon_in_expressions_from_macros)]`

* do find-and-replace for a standalone iam credential
parent 4c9a1e1a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -9,7 +9,8 @@ members = [
    "aws-hyper",
    "aws-inlineable",
    "aws-sig-auth",
    "aws-types"
    "aws-types",
    "aws-sigv4"
]

exclude = ["aws-auth-providers"]
+27 −0
Original line number Diff line number Diff line
[package]
name = "aws-sigv4"
version = "0.1.0"
authors = ["David Barsky <me@davidbarsky.com>"]
edition = "2018"
exclude = [
    "aws-sig-v4-test-suite/*"
]
license = "MIT OR Apache-2.0"
description = "An AWS SigV4 request signer."
repository = "https://github.com/davidbarsky/sigv4"
homepage = "https://github.com/davidbarsky/sigv4"
documentation = "https://docs.rs/aws-sigv4"

[dependencies]
http = "0.2"
http-body = "0.4"
ring = "0.16"
serde = { version = "1", features = ["derive"] }
serde_urlencoded = "0.7"
bytes = "1"
hex = "0.4"
chrono = { version = "0.4", default-features = false, features = ["clock", "std"] }

[dev-dependencies]
pretty_assertions = "0.6"
httparse = "1"
 No newline at end of file
+3 −0
Original line number Diff line number Diff line
## SigV4

This crates implements an incomplete, poorly documented implementation of SigV4 signing. Use at your own risk!
 No newline at end of file
+1 −0
Original line number Diff line number Diff line
AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20210511/us-east-2/lambda/aws4_request, SignedHeaders=host;x-amz-date, Signature=4b93abbcc68be32bd64c18e2c71150660ab4c29bbd6c32a383a7517a88fc1804
 No newline at end of file
+8 −0
Original line number Diff line number Diff line
POST
/2015-03-31/functions/arn%253Aaws%253Alambda%253Aus-west-2%253A892717189312%253Afunction%253Amy-rusty-fun/invocations

host:lambda.us-east-2.amazonaws.com
x-amz-date:20210511T154045Z

host;x-amz-date
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
 No newline at end of file
Loading