Repository navigation
Fix/align specs with implementation #68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 15 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
5ee0d34
fix: cleanup CSR requirements and description
jhateley-godaddy 3da54a9
fix: fix tl eventType enum api-spec
jhateley-godaddy 9d798b4
fix: add missing dnssecVerified field to v2.json
jhateley-godaddy af67e83
fix: fix enum casing for transports and protocols
jhateley-godaddy 83acc91
fix: fix api spec drift from previous commit
jhateley-godaddy 80b6646
fix: align AgentFunction validation with api-spec
jhateley-godaddy 07c1360
fix: align AgentLifecycleStatusFilter validation with api-spec
jhateley-godaddy d270d59
fix: fix lint issue from previous commit
jhateley-godaddy 3df37d7
fix: align spec with metadata hash endpoint validation
jhateley-godaddy 4c1d806
fix: enforce required display name and cap on revoke comments
jhateley-godaddy 890265d
fix: align revocation reason code spec, tl, ra
jhateley-godaddy a7d3353
fix: revert reason code enum to original 7
jhateley-godaddy d440e69
fix: use const for maxCommentsLength
jhateley-godaddy 1c462fe
Merge branch 'main' into fix/align-specs-with-implementation
jhateley-godaddy 2321e9f
Merge branch 'main' into fix/align-specs-with-implementation
jhateley-godaddy 6282964
Merge branch 'main' into fix/align-specs-with-implementation
jhateley-godaddy 20acee6
fix: revert change to historical json schema
jhateley-godaddy 2753911
fix: optional -> must for server cert in registerAgent description
jhateley-godaddy 938d0d2
fix: add test for valid statuses
jhateley-godaddy a2af16f
fix: validate revoke comments length in v2 lane
jhateley-godaddy 7573df4
Merge branch 'main' into fix/align-specs-with-implementation
jhateley-godaddy e34fb89
Merge branch 'main' into fix/align-specs-with-implementation
jhateley-godaddy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Major — this guard needs a twin on the V2 lane (or a home in the shared service).
The declaring spec for this constraint is
spec/api-spec-v2.yaml(AgentRevocationRequest→comments: maxLength: 200) — the exact line issue #59 item 9 cites — butPOST /v2/ans/agents/{agentId}/revoke(internal/ra/handler/lifecycle.go:375-392) decodescommentswith no length check at any layer: the V2 handler validates onlyreason,service.Revokenever readsRevokeInput.Comments, anddomain.Revoke(reason, now)takes no comments parameter. Any value up to the route's 64 KiB body cap returns 200 OK, so the same logical request is 422 on V1 but 200 on V2, and item 9's second half stays open on the only lane whose published spec declares the constraint.Suggested fix: mirror this check in
LifecycleHandler.Revokeafter theMISSING_REASONguard (the constant is already in this package), plus a V2 twin ofTestV1Revoke_CommentsTooLong_422. Alternative worth considering: enforce once inservice.Revoke, sinceRevokeInputalready carries the field for both lanes — that placement makes this class of single-lane miss impossible, the same reasoning that put thedisplayNamecheck indomain.NewRegistration.Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Served historical schemas narrowed while the spec still claims they're verbatim production fetches
-fixed in 20acee6
Register description prose still says server-cert input is "optional"
-fixed in 2753911
Status-filter accept arm has zero test coverage (no test sends a valid non-ALL status through the new switch)
-fixed in 938d0d2
guard needs a twin on the V2 lane (or a home in the shared service)
-fixed in a2af16f