Skip to content

fix: GA-023/024/025 core hardening#61

Merged
beonde merged 2 commits intomainfrom
fix/ga-core-hardening-t1
Apr 17, 2026
Merged

fix: GA-023/024/025 core hardening#61
beonde merged 2 commits intomainfrom
fix/ga-core-hardening-t1

Conversation

@beonde
Copy link
Copy Markdown
Member

@beonde beonde commented Apr 17, 2026

GA Remediation — Core Hardening (T1)

GA-023: Fix docs/README version drift

  • Update version references from v1.0.2/v2.2.0 to v2.6.0
  • Fix install command to use /v2 module path
  • Fix import paths in docs to include /v2
  • Update Go prerequisite from 1.21+ to 1.25+

GA-024: Unregister stub gRPC services

  • Remove RegistryService and RevocationService from gRPC registration
  • Both are TODO-only stubs that return misleading success responses
  • Services retained in codebase for future implementation (GA+1)

GA-025: Add timeout to CLI validate URL fetch

  • Replace http.Get with http.Client using configurable --timeout flag
  • Add context.WithTimeout for cancellation support
  • Check HTTP status code before reading body

Tests pass: go test ./internal/rpc/ ./cmd/capiscio/

GA-023: Fix docs/README version drift
  - Update version references from v1.0.2/v2.2.0 to v2.6.0
  - Fix install command to use /v2 module path
  - Fix import paths in docs to include /v2
  - Update Go prerequisite from 1.21+ to 1.25+

GA-024: Unregister stub gRPC services
  - Remove RegistryService and RevocationService from gRPC registration
  - Both are TODO-only stubs; registering them is misleading
  - Services retained in codebase for future implementation

GA-025: Add timeout to CLI validate URL fetch
  - Replace http.Get with http.Client using configurable --timeout flag
  - Add context.WithTimeout for cancellation support
  - Check HTTP status code before reading body
Copilot AI review requested due to automatic review settings April 17, 2026 20:28
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 17, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

GA remediation hardening for CapiscIO Core by aligning docs with the current v2 module/version, removing misleading stub gRPC service registrations, and making the CLI validate command’s URL fetch safer via timeouts/status checks.

Changes:

  • Update docs/README version references to v2.6.0 and correct install/module/import path guidance for /v2.
  • Stop registering stub-only RegistryService and RevocationService in the gRPC server.
  • Add --timeout, context.WithTimeout, and HTTP status checking for capiscio validate when fetching an Agent Card from a URL.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 6 comments.

File Description
internal/rpc/server.go Removes registration of stub-only gRPC services (Registry/Revocation) to avoid misleading “success” behavior.
cmd/capiscio/validate.go Replaces http.Get with request+client timeout handling and checks HTTP status before reading the body.
docs/index.md Updates release/version/install and import path examples to the /v2 module path and Go 1.25+.
README.md Updates release/version and install command to use the /v2 module path.

Comment thread cmd/capiscio/validate.go Outdated
Comment thread cmd/capiscio/validate.go
Comment thread cmd/capiscio/validate.go Outdated
Comment thread README.md
Comment thread README.md
Comment thread docs/index.md
- Use Cobra command context as parent for timeout (respects SIGINT)
- Limit URL response body to 10MB to prevent memory exhaustion
@beonde beonde merged commit bcfcbc2 into main Apr 17, 2026
5 checks passed
@beonde beonde deleted the fix/ga-core-hardening-t1 branch April 17, 2026 21:30
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