Skip to content

Commit

Permalink
Merge pull request #35 from yaronf/ys-longlines2
Browse files Browse the repository at this point in the history
Use rfcfold for long lines (message sigs section)
  • Loading branch information
yaronf authored Jul 3, 2024
2 parents 20e7488 + 61936db commit e76f818
Show file tree
Hide file tree
Showing 6 changed files with 469 additions and 16 deletions.
18 changes: 2 additions & 16 deletions draft-sheffer-wimse-s2s-protocol.md
Original file line number Diff line number Diff line change
Expand Up @@ -461,12 +461,7 @@ Following is a non-normative example of a signed request and a signed response,
where the caller is using the keys specified in {{example-caller-jwk}}.

~~~ http
GET /gimme-ice-cream?flavor=vanilla HTTP/1.1
Host: example.com
Signature: wimse=:K4dfGnguF5f1L4DKBSp5XeFXosLGj8Y9fiUX06rL/wdOF+x3zTWmsvKWiY0B1oFZaOtm2FHru+YLjdkqa2WfCQ==:
Signature-Input: wimse=("@method" "@request-target" "workload-identity-token");created=1718291357;expires=1718291657;nonce="abcd1111";tag="wimse-service-to-service"
Workload-Identity-Token: aGVhZGVyCg.VGhpcyBpcyBub3QgYSByZWFsIHRva2VuLgo.c2lnbmF0dXJlCg

{::include includes/sigs-request.out}
~~~
{: title="Signed Request"}

Expand All @@ -485,16 +480,7 @@ Assuming that the workload being called has the following keypair:
A signed response would be:

~~~ http
HTTP/1.1 404 Not Found
Connection: close
Content-Digest: sha-256=:47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=:
Content-Type: text/plain
Signature: wimse=:NMrMn3xhI6m9PI8mKVfpnH5qFGcEfuFxiCmsB5PJhGjUHT/5J4612EZwRw3V4kU4gGJmO+ER8RC4DM2HKVOYDQ==:
Signature-Input: wimse=("@status" "workload-identity-token" "content-type" "content-digest" "@method";req "@request-target";req);created=1718295368;expires=1718295670;nonce="abcd2222";tag="wimse-service-to-service"
Workload-Identity-Token: aGVhZGVyCg.VGhpcyBhaW4ndCBvbmUsIHRvby4K.c2lnbmF0dXJlCg

No ice cream today.

{::include includes/sigs-response.out}
~~~
{: title="Signed Response"}

Expand Down
Loading

0 comments on commit e76f818

Please sign in to comment.