Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions fbs-schema/policy.fbs
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@ include "nodes.fbs";

namespace dd.wls;

/// unfortunetly flatbuffers doesnt support fixed size arrays in go so we can't use it
/// the solution is to split it into two unsigned longs :(
/// this should be populate after caculation, and removed prior to verification.
struct UUID { hi:ulong; lo:ulong; }

/// Represents a policy that contains rules and actions.
/// The rules are represented as a tree structure where each node can be a leaf (with an evaluator) or a root (with child nodes).
table Policy {
Expand All @@ -23,9 +18,10 @@ table Policy {
rules: NodeTypeWrapper; // this is a tree
/// The actions are taken post evaluation of the policy.
actions: [Action];
/// 128 bit UUID represented as 16 raw bytes
/// this can be used to verify integrity (but NOT origin - this is not a signature!)
id:UUID;
/// Stable identifier for this policy, used to attribute an evaluation outcome
/// back to its source. For Remote Config policies this is the rule's UUID;
/// for hardcoded/built-in policies it is the sentinel "hardcoded".
id:string;
/// used to track the version number of this policy
version: long=0;
}
Expand Down
21 changes: 9 additions & 12 deletions go/schema/dd/wls/Policy.go

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

44 changes: 0 additions & 44 deletions go/schema/dd/wls/UUID.go

This file was deleted.

Loading