Skip to content

Fixed some various low hanging issues#109

Open
kommendorkapten wants to merge 2 commits intomainfrom
improvements
Open

Fixed some various low hanging issues#109
kommendorkapten wants to merge 2 commits intomainfrom
improvements

Conversation

@kommendorkapten
Copy link
Member

No description provided.

@kommendorkapten kommendorkapten requested review from a team and jkbschmid as code owners January 22, 2026 08:31
Copilot AI review requested due to automatic review settings January 22, 2026 08:31
Copy link
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

This PR addresses several low-level issues across multiple components, focusing on improved error handling, input validation, and test infrastructure enhancements.

Changes:

  • Added trust domain validation with comprehensive test coverage
  • Improved error messages throughout the codebase for better debugging
  • Added security protections including request body size limits
  • Refactored test infrastructure to support configurable propagation delays

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
pkg/verifier/verifier_test.go New comprehensive test suite for trust domain validation
pkg/verifier/verifier.go Added trust domain validation function and integrated it into GHVerifier
pkg/verifier/multi.go Improved error messages in getIssuer function
pkg/fetcher/bundle.go Enhanced error messages, added layer validation, and implemented size limits for bundle reading
pkg/cainjector/injector_test.go Updated test to use new test-friendly API with configurable delay
pkg/cainjector/injector.go Refactored to support configurable propagation delays and improved documentation
cmd/aaop/aaop.go Added request body size limit and improved error handling with sanitized error messages

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@kommendorkapten kommendorkapten marked this pull request as draft January 26, 2026 09:49
Copy link
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

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@kommendorkapten kommendorkapten marked this pull request as ready for review January 26, 2026 12:25
// validTrustDomain validates that a trust domain contains only safe
// characters. Trust domains should be alphanumeric with hyphens, similar
// to DNS labels.
func validTrustDomain(td string) bool {
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we use some regex matching here?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, that's fair. Maybe easier to work with.

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