Skip to content

Commit 69ae829

Browse files
authored
Add a tool to validate HTTP signature message directories (cloudflare#35)
This tool implements the standards documented in https://github.com/thibmeu/http-message-signatures-directory/pull/40/files. It passes validation against the research endpoint: ``` ❯ ./target/debug/http-signature-directory https://http-message-signatures-example.research.cloudflare.com/.well-known/http-message-signatures-directory Extracted the following @authority component: "http-message-signatures-example.research.cloudflare.com" Found the following Signature headers: ["binding0=:wzfnIq2AinWIxg3/IsxkuRmpUKCMUWgy2QyHtlVVJXdKTbGzlr9HH9b1P7JYy2rVtXVajUmtmt+H+uwr7ZRJDA==:"] Found the following Signature-Input headers: ["binding0=(\"@authority\");created=1750179676;keyid=\"poqkLGiymh_W0uP6PZFw-dvez3QJT5SolqXBCW38r0U\";alg=\"ed25519\";expires=1750179976;tag=\"http-message-signatures-directory\""] Analyzing key with thumbprint poqkLGiymh_W0uP6PZFw-dvez3QJT5SolqXBCW38r0U Found Ed25519 key Valid! ``` It is extremely barebones, and can stand to be cleaned up a little later. But it works.
1 parent d72fdec commit 69ae829

File tree

7 files changed

+1839
-130
lines changed

7 files changed

+1839
-130
lines changed

.github/workflows/pullrequest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
run: rustup override set 1.87 && rustup component add clippy rustfmt && rustup target add wasm32-unknown-unknown
5151
- run: cargo fetch
5252
- run: cargo build --all --verbose --exclude plexi-cli --all-features --tests
53-
- run: cargo build --all --verbose --exclude plexi-cli --all-features --tests --target wasm32-unknown-unknown
53+
- run: cargo build --all --verbose --exclude plexi-cli --exclude http-signature-directory --all-features --tests --target wasm32-unknown-unknown
5454
- run: cargo check --tests --examples --benches --all-features
5555
- run: cargo clippy --all-features --all-targets -- -D warnings
5656
- run: cargo fmt --all -- --check

0 commit comments

Comments
 (0)