Skip to content

Conversation

@ivanauth
Copy link

Summary

Add Go fuzz tests for ObjectID, Namespace, Relation, and CaveatName validation to help ensure the regex-based validation logic doesn't panic on arbitrary input.

Fixes #103

Changes

  • Add FuzzObjectID - tests extended object ID validation
  • Add FuzzNamespace - tests namespace/object type validation
  • Add FuzzRelation - tests relation name validation
  • Add FuzzCaveatName - tests caveat name validation

Testing

# Run seed corpus tests
go test -v ./proto/authzed/api/validation_test/... -run "Fuzz" -fuzz=none

# Run actual fuzzing (5 seconds)
go test ./proto/authzed/api/validation_test/... -fuzz=FuzzObjectID -fuzztime=5s

Add Go fuzz tests for ObjectID, Namespace, Relation, and CaveatName
validation. These tests help ensure the regex-based validation logic
doesn't panic on arbitrary input.

Signed-off-by: ivanauth <ivan@authzed.com>
@ivanauth ivanauth requested a review from a team as a code owner November 25, 2025 19:26
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.

add fuzzing test for the new extended object ID

1 participant