Repository navigation
docs: fix three auth errors in the catalog and two other docs - #1298
Open
LeeroyHannigan wants to merge 1 commit into
Open
LeeroyHannigan wants to merge 1 commit into
LeeroyHannigan wants to merge 1 commit into
Conversation
The error catalog in docs/design/01-requirements.md named IncompleteSignature by its Rust variant. ExtendDB and DynamoDB send the type IncompleteSignatureException (measured in us-east-1 on 21 Nov 2026). The catalog also said that UnrecognizedClientException covers a signature mismatch. ExtendDB answers a signature mismatch with InvalidSignatureException, which had no row. DynamoDB answered a signature mismatch with that type and HTTP 400 when measured on 23 Oct 2026. The catalog now names IncompleteSignatureException and has a row for InvalidSignatureException. It says that UnrecognizedClientException answers an invalid access key or security token. The error list of docs/design/05-component-auth-v3.md gets the same changes, with colons in place of its dashes. docs/manuals/05-admin-guide.md names InvalidSignatureException where it named SignatureDoesNotMatch. The MissingAuthenticationToken row stays as it is, because #1290 changes it for #1075. Fixes #1293.
LeeroyHannigan
marked this pull request as ready for review
November 23, 2026 11:27
LeeroyHannigan
requested review from
amrith,
c33howard,
demohan,
eliseong,
hitesh96db,
jcshepherd,
navareamol,
pdf-amzn and
robinnsc
as code owners
November 23, 2026 11:27
navareamol
reviewed
Dec 2, 2026
navareamol
left a comment
Collaborator
There was a problem hiding this comment.
- The new UnrecognizedClientException row covers only an invalid access key or session credentials, but
validate_timestampin crates/auth/src/sigv4/verify.rs (lines 182 to 185) still answers UnrecognizedClientException "Signature expired" for an X-Amz-Date more than 15 minutes from the server clock. Neither the new row nor the new InvalidSignatureException row covers that case, while the description says each changed line agrees with every place in crates/auth that builds these errors. Could you add the clock case to the row, or say in the description that it is left for #889 and #805? - In docs/manuals/05-admin-guide.md the heading is now InvalidSignatureException, but the text under it still says the secret key does not match and to recreate the access key. The code also sends InvalidSignatureException when the credential scope names another region, service or date (
check_scope, verify.rs lines 62 to 76), which your new catalog row says too. I think a client set to the wrong region would be sent to recreate a key that works. Could the text name the region and service of the client as the first thing to check? - The description still says the row for a missing Authorization header stays because #1290 changes it. #1290 is merged, so on main that row already reads 400. Could you reword it? The branch is 45 commits behind main and CI ran on the old base; a trial merge with main here has no conflict.
I will approve once the clock case is covered or deferred in the description and the admin guide text matches the error.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The error catalog in
docs/design/01-requirements.mdnow gives three auth errors as ExtendDB sends them:IncompleteSignaturebecomesIncompleteSignatureException, the type on the wire.InvalidSignatureException, HTTP 400, for a signature or credential scope that does not match the request.UnrecognizedClientExceptioncovers an invalid access key or security token. Before, the row also gave it a signature mismatch.The error list of
docs/design/05-component-auth-v3.mdgets the same changes, with colons in place of its dashes.docs/manuals/05-admin-guide.mdnamesInvalidSignatureExceptionwhere it namedSignatureDoesNotMatch, which is the error code of S3.The
MissingAuthenticationTokenrow stays as it is, because #1290 changes it for #1075.The base of this PR is #1294.
Fixes #1293
Why
error_typeincrates/core/src/error/mod.rsgives these type names, and the server sends them:IncompleteSignatureExceptionfor a malformedAuthorizationheader. DynamoDB sends the same type, measured in us-east-1 on 21 Nov 2026.InvalidSignatureExceptionfor a signature that does not match, and for a credential scope of another region, service or date (crates/auth/src/sigv4/verify.rs). DynamoDB sent the same type with HTTP 400 when measured on 23 Oct 2026, astests/test_auth_error_fidelity.pyrecords.UnrecognizedClientExceptionfor an unknown or inactive access key and for a wrong or missing session token (crates/auth/src/lib.rs).Testing done
Docs only: +10 -8 lines in three markdown files. Nothing in the change compiles.
Each changed line agrees with
error_type,status_codeand every place incrates/auththat builds these errors. The catalog stays in alphabetical order, also after a merge with #1290.This PR adds one conflict hunk each with #530 and #537, in the error list of
docs/design/05-component-auth-v3.md. Those PRs change the dashes of the same lines to colons. The resolution keeps this PR's lines. The PR merges cleanly with #1290.Not in this PR: the order of the SigV4 checks in
docs/manuals/10-security-model.md, and two docs that give a wrong cause for an auth error (#1297).Checklist
cargo test --workspace)cargo fmt --check)cargo clippy -- -W clippy::pedantic)Storagetrait, auth model, on-diskformat, or public CLI surface, an RFC has been accepted or is linked
below. Otherwise, an ADR captures the decision (link below).
ADR / RFC: n/a
By submitting this pull request, I confirm that my contribution is made under
the terms of the Apache License 2.0 and I agree to the Developer Certificate of
Origin (DCO). See CONTRIBUTING.md for details.