Skip to content

Commit 83ea714

Browse files
committed
Clarify base URL
1 parent bf90868 commit 83ea714

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

text/0000-cargo-asymmetric-tokens.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,11 @@ The claims within the PASETO will include at least:
9797
- The `private-key-subject` if it was set. (The string exactly as set in the `sub` key.)
9898
- If this is a mutation: which one (publish or yank or unyank), the package, the version, the SHA256 checksum of the `.crate` file as stored in the `cksum` in the index. (`mutation`, `name`, `vers`, `cksum` keys respectively.)
9999

100-
The "footer" (which is part of the signature) will be a JSON string in UTF-8 and include the registry base URL (in the `aud` key) and the `key ID` (in the `kid` key).
101-
The `key ID` can be obtained from the public key using the [PASERK IDs](https://github.com/paseto-standard/paserk/blob/master/operations/ID.md) standard.
100+
The "footer" (which is part of the signature) will be a JSON string in UTF-8 and include:
101+
- The URL where cargo got the config.json file (in the `aud` key).
102+
- If this is a registry with an HTTP index, then this is the base URL that all index queries are relative to.
103+
- If this is a registry with a GIT index, it is the URL Cargo used to clone the index.
104+
- The `key ID` (in the `kid` key). Which can be obtained from the public key using the [PASERK IDs](https://github.com/paseto-standard/paserk/blob/master/operations/ID.md) standard.
102105

103106
PASETO includes the message that was signed, so the server does not have to reconstruct the exact string from the request in order to check the signature. The server does need to check that the signature is valid for the string in the PASETO and that the contents of that string matches the request.
104107

0 commit comments

Comments
 (0)