From 51e6f1ee0392dc9b2c268b3f6acd0b5725c44adf Mon Sep 17 00:00:00 2001 From: joshua-roberts Date: Mon, 16 Dec 2024 11:07:10 -0500 Subject: [PATCH] remove bytes fields in protobuf (#175) --- src/main/proto/epp.proto | 7 ++++++- src/main/proto/pdp.proto | 12 ++++++++++-- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/src/main/proto/epp.proto b/src/main/proto/epp.proto index 777f2e18..1d1f8731 100644 --- a/src/main/proto/epp.proto +++ b/src/main/proto/epp.proto @@ -4,11 +4,16 @@ option java_multiple_files = true; option java_package = "gov.nist.csd.pm.epp.proto"; option java_outer_classname = "EPPProto"; +message OperandEntry { + string name = 1; + repeated string value = 2; +} + message EventContext { string user = 1; string process = 2; string opName = 3; - map operands = 4; + repeated OperandEntry operands = 4; } message EPPResponse {} diff --git a/src/main/proto/pdp.proto b/src/main/proto/pdp.proto index 146c7c54..1e4b8088 100644 --- a/src/main/proto/pdp.proto +++ b/src/main/proto/pdp.proto @@ -1,5 +1,7 @@ syntax = "proto3"; +import "epp.proto"; + option java_multiple_files = true; option java_package = "gov.nist.csd.pm.pdp.proto"; option java_outer_classname = "PDPProto"; @@ -9,8 +11,14 @@ message ResourceOperationRequest { string target = 2; } +message Node { + string name = 1; + string type = 2; + map properties = 3; +} + message ResourceOperationResponse { - bytes node = 1; + Node node = 1; } service ResourcePDP { @@ -19,7 +27,7 @@ service ResourcePDP { message AdminOperationRequest { string opName = 1; - map operands = 2; + repeated OperandEntry operands = 2; } message AdminOperationResponse {}