Repository navigation
Conversation
Align identity CSR validation and certificate issuance with ANS-2 section 3 (agentnameservice/ans-spec#102). Require one matching URI/DNS SAN and validate the optional CN; preserve the DNS SAN in issued certificates. Update existing fixtures and demo CSR generators. Validation: crypto, certificate-adapter, and RA suites passed. Local DNSid/ANS integration passed authentication, payout, negative-proof, and retirement anchoring checks; final CLI verification hit HTTP 429. Full make check is blocked by the pinned linter's incompatibility with Go 1.27 export data. Signed-off-by: Ben Guidarelli <ben.guidarelli@identity.digital>
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.
Related issue
Refs agentnameservice/ans-spec#102, which requires identity certificates to carry both the agent-host DNS SAN and the versioned ANSName URI SAN.
Summary
Preserve the validated DNS SAN when issuing identity certificates. Require identity CSRs to contain exactly one matching DNS SAN and URI SAN, with an optional Common Name matching the agent host.
Update existing test fixtures and demo CSR generators. URI-only CSRs and mismatched Common Names previously accepted will now be rejected.
Testing
go test ./internal/crypto/... ./internal/adapter/cert/... ./internal/ra/...make check: formatting and vet passed; the pinned linter cannot read Go 1.27 export data. Coverage validation was not reached.AI assistance
Assisted-by: pi (gpt-6.1-sol)
Checklist
git commit -s) certifying the DCO