Skip to content

docs: fix three auth errors in the catalog and two other docs - #1298

Open
LeeroyHannigan wants to merge 1 commit into
fix/1288-error-status-docsfrom
fix/1293-error-catalog-names
Open

LeeroyHannigan wants to merge 1 commit into
fix/1288-error-status-docsfrom
fix/1293-error-catalog-names

Conversation

@LeeroyHannigan

Copy link
Copy Markdown
Collaborator

What

The error catalog in docs/design/01-requirements.md now gives three auth errors as ExtendDB sends them:

  • IncompleteSignature becomes IncompleteSignatureException, the type on the wire.
  • A new row gives InvalidSignatureException, HTTP 400, for a signature or credential scope that does not match the request.
  • UnrecognizedClientException covers 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.md gets the same changes, with colons in place of its dashes. docs/manuals/05-admin-guide.md names InvalidSignatureException where it named SignatureDoesNotMatch, which is the error code of S3.

The MissingAuthenticationToken row stays as it is, because #1290 changes it for #1075.

The base of this PR is #1294.

Fixes #1293

Why

error_type in crates/core/src/error/mod.rs gives these type names, and the server sends them:

  • IncompleteSignatureException for a malformed Authorization header. DynamoDB sends the same type, measured in us-east-1 on 21 Nov 2026.
  • InvalidSignatureException for 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, as tests/test_auth_error_fidelity.py records.
  • UnrecognizedClientException for 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_code and every place in crates/auth that 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

  • I have read CONTRIBUTING.md
  • All tests pass (cargo test --workspace)
  • Code is formatted (cargo fmt --check)
  • Clippy is clean (cargo clippy -- -W clippy::pedantic)
  • I have added or updated tests for new functionality
  • I have updated documentation if behavior changed
  • Breaking changes are noted below (if any)
  • If this changes the wire protocol, Storage trait, auth model, on-disk
    format, 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.

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.

@navareamol navareamol left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. The new UnrecognizedClientException row covers only an invalid access key or session credentials, but validate_timestamp in 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?
  2. 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?
  3. 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

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants