Skip to content

docs(api): clarify V2 verification ownership errors - #158

Merged
kperry-godaddy merged 4 commits into
agentnameservice:mainfrom
bchen-godaddy:docs/v2-verify-ownership-status
Nov 30, 2026
Merged

kperry-godaddy merged 4 commits into
agentnameservice:mainfrom
bchen-godaddy:docs/v2-verify-ownership-status

Conversation

@bchen-godaddy

Copy link
Copy Markdown
Contributor

Summary

  • Document 403 AGENT_NOT_OWNED for V2 verify-acme and verify-dns when the agent exists but belongs to another caller.
  • Limit 404 descriptions to missing agents; no runtime behavior changes.

Validation

  • OpenAPI YAML parsed successfully.
  • git diff --check upstream/main...HEAD passed.
  • Focused ownership middleware tests passed (2 tests).

Closes #157

🤖 Generated with Claude Code

Refs: agentnameservice#157

Signed-off-by: Bin Chen <bin@registry.godaddy>
Copilot AI balanced review requested due to automatic review settings November 11, 2026 06:18

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 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_OWNED for both verify-acme and verify-dns when another caller owns the agent.
  • Limits 404 descriptions to missing agents and preserves existing ErrorResponse schema references.
File Description
spec/​api-spec-v2.yaml Corrects ownership-related response descriptions for both V2 verification operations.

Review effort: Balanced

@chou-godaddy chou-godaddy left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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.

Comment thread spec/api-spec-v2.yaml Resolved
Refs: agentnameservice#157
Signed-off-by: Bin Chen <bin@registry.godaddy>
@bchen-godaddy
bchen-godaddy requested review from a team as code owners November 20, 2026 04:54
@bchen-godaddy

Copy link
Copy Markdown
Contributor Author

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?

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

  • ans-spec (in its api/api-spec-v2.yaml) and
  • the Java SDK reference spec (ans-sdk-java/ans-sdk-api/spec/api-spec.yaml)

So that same wording changes will be applied.

@chou-godaddy

Copy link
Copy Markdown

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 main? @kperry-godaddy, could you take the maintainer review once it’s updated?

@kperry-godaddy kperry-godaddy left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

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.

@kperry-godaddy
kperry-godaddy merged commit 78cc661 into agentnameservice:main Nov 30, 2026
3 checks passed
@github-project-automation github-project-automation Bot moved this from Triage to Done in Agent Name Service Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Clarify 403 ownership errors for V2 verify-acme and verify-dns

4 participants