Repository navigation
docs(api): clarify V2 verification ownership errors - #158
kperry-godaddy merged 4 commits into
Conversation
Refs: agentnameservice#157 Signed-off-by: Bin Chen <bin@registry.godaddy>
There was a problem hiding this comment.
🟢 Approval recommended
The V2 verification API documentation clarification has no active review issues.
No open issues 🎉
What changed in this PR
Clarifies the V2 verification API documentation to match existing ownership checks, addressing #157 without changing runtime behavior.
Changes:
- Documents
403 AGENT_NOT_OWNEDfor both verify-acme and verify-dns when another caller owns the agent. - Limits
404descriptions to missing agents and preserves existingErrorResponseschema references.
| File | Description |
|---|---|
spec/api-spec-v2.yaml |
Corrects ownership-related response descriptions for both V2 verification operations. |
Review effort: Balanced
chou-godaddy
left a comment
There was a problem hiding this comment.
The revised 403/404 descriptions match the ownership middleware; the two existing write-ownership tests pass. Please sync the bundled RA spec before merging, as described in the inline note.
For follow-up, ans-spec/api/api-spec-v2.yaml and Java’s ans-sdk-api/spec/api-spec.yaml still say a non-owner receives 404. Could we track the matching clarification in those repositories and have a spec maintainer confirm the intended split? These description-only edits introduce no SDK runtime change. The existing error-body/schema mismatch remains separate work under #153.
Refs: agentnameservice#157 Signed-off-by: Bin Chen <bin@registry.godaddy>
Good catch, thanks, @chou-godaddy. The bundled RA spec is now synced in this PR (in the latest commit 9a8010d). Once this PR gets merged, I can open separate docs-only PRs for
So that same wording changes will be applied. |
|
Thanks, Bin. I checked the updated commit and the bundled RA spec now matches the canonical copy. That addresses my earlier review finding. The ans-spec and Java wording updates can follow separately as planned. Could you bring the branch up to date with |
kperry-godaddy
left a comment
There was a problem hiding this comment.
The 403 and 404 descriptions on verify-acme and verify-dns now match what the service returns: 403 AGENT_NOT_OWNED when the agent belongs to another caller, 404 AGENT_NOT_FOUND when it does not exist. The canonical spec and the bundled RA copy are identical at this head.
One follow-up, not for this PR: five other write routes use the same ownership check and still describe 403 as only "Authorization failed" (POST certificates/server, POST and DELETE certificates/server/renewal, POST certificates/server/renewal/verify-acme, POST certificates/identity). They could take the same wording in one docs PR.
Summary
403 AGENT_NOT_OWNEDfor V2 verify-acme and verify-dns when the agent exists but belongs to another caller.404descriptions to missing agents; no runtime behavior changes.Validation
git diff --check upstream/main...HEADpassed.Closes #157
🤖 Generated with Claude Code