Skip to content

Commit

Permalink
envoy remote triage: Validate ip address (#2794)
Browse files Browse the repository at this point in the history
  • Loading branch information
scarlettperry authored Sep 19, 2023
1 parent 6577dea commit 0e5812c
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 105 deletions.
2 changes: 1 addition & 1 deletion api/envoytriage/v1/envoytriage_api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ message ReadResponse {
}

message Address {
string host = 1 [ (validate.rules).string.address = true ];
string host = 1 [ (validate.rules).string.ip = true ];
uint32 port = 2 [ (validate.rules).uint32 = {lte : 65535} ];
}

Expand Down
128 changes: 64 additions & 64 deletions backend/api/envoytriage/v1/envoytriage_api.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

48 changes: 8 additions & 40 deletions backend/api/envoytriage/v1/envoytriage_api.pb.validate.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0e5812c

Please sign in to comment.