aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNova Fallen <nfallen@google.com>2024-05-08 12:08:16 -0700
committerCopybara-Service <copybara-worker@google.com>2024-05-08 12:09:26 -0700
commitab714acac6fd110f04bafdc5e2d9908b9f3ab323 (patch)
treee88cbb93b58b7cc90b7efce5f43c4f4d850dc92a
parent396b5f52084f17543dc67499506651fa37326507 (diff)
downloadfederated-compute-ab714acac6fd110f04bafdc5e2d9908b9f3ab323.tar.gz
Add string matcher to access policy proto.
This will be needed to match the aggregation intrinsic URI to ensure the aggregation step is using a DP intrinsic. PiperOrigin-RevId: 631881416
-rw-r--r--fcp/protos/confidentialcompute/access_policy.proto10
1 files changed, 10 insertions, 0 deletions
diff --git a/fcp/protos/confidentialcompute/access_policy.proto b/fcp/protos/confidentialcompute/access_policy.proto
index 659ae37..cc58004 100644
--- a/fcp/protos/confidentialcompute/access_policy.proto
+++ b/fcp/protos/confidentialcompute/access_policy.proto
@@ -104,6 +104,8 @@ message ValueMatcher {
oneof kind {
// Matches a numeric value.
NumberMatcher number_value = 1;
+ // Matches a string value.
+ StringMatcher string_value = 2;
}
// Matchers for a numeric value.
@@ -117,6 +119,14 @@ message ValueMatcher {
double gt = 5; // Matches values > the given value.
}
}
+
+ // Matchers for a string value.
+ message StringMatcher {
+ // If unset, the matcher matches any string value.
+ oneof kind {
+ string eq = 3; // Matches strings equal to the given value.
+ }
+ }
}
// Defines limits on the accesses to a blob. This currently only supports