diff --git a/agent/grpc-external/services/resource/write.go b/agent/grpc-external/services/resource/write.go index ec39f3a12a85d..eb66f355ff1c1 100644 --- a/agent/grpc-external/services/resource/write.go +++ b/agent/grpc-external/services/resource/write.go @@ -59,7 +59,7 @@ func (s *Server) Write(ctx context.Context, req *pbresource.WriteRequest) (*pbre } // Check the user sent the correct type of data. - if !req.Resource.Data.MessageIs(reg.Proto) { + if req.Resource.Data != nil && !req.Resource.Data.MessageIs(reg.Proto) { got := strings.TrimPrefix(req.Resource.Data.TypeUrl, "type.googleapis.com/") return nil, status.Errorf( @@ -272,8 +272,6 @@ func (s *Server) validateWriteRequest(req *pbresource.WriteRequest) (*resource.R field = "resource" case req.Resource.Id == nil: field = "resource.id" - case req.Resource.Data == nil: - field = "resource.data" } if field != "" { diff --git a/proto-public/pbauth/v1alpha1/computed_traffic_permission.proto b/proto-public/pbauth/v1alpha1/computed_traffic_permission.proto deleted file mode 100644 index cad98b8fe27bd..0000000000000 --- a/proto-public/pbauth/v1alpha1/computed_traffic_permission.proto +++ /dev/null @@ -1,10 +0,0 @@ -syntax = "proto3"; - -package hashicorp.consul.auth.v1alpha1; - -import "pbauth/v1alpha1/traffic_permissions.proto"; - -message ComputedTrafficPermission { - repeated Permission allow_permissions = 1; - repeated Permission deny_permissions = 2; -} \ No newline at end of file