-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: PolicyEngineExpressionLanguage - PEEL support added
- Loading branch information
Showing
87 changed files
with
7,809 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"id": "polAct1", | ||
"version": "1.2.3", | ||
"description": "This is a managed PolicyActionClear", | ||
"labels": [ | ||
"label1" | ||
], | ||
"key": "foo", | ||
"failOnMissingKey": true, | ||
"type": "clear" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"key": "foo", | ||
"failOnMissingKey": true, | ||
"type": "clear" | ||
} |
20 changes: 20 additions & 0 deletions
20
examples/policy-action/policy-action-json-merge-managed.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"id": "polAct1", | ||
"version": "1.2.3", | ||
"description": "This is a managed PolicyActionJsonMerge", | ||
"labels": [ | ||
"label1" | ||
], | ||
"key": "someJson", | ||
"source": { | ||
"id": "polVar1", | ||
"refType": "PolicyVariableRef" | ||
}, | ||
"merge": { | ||
"type": "string", | ||
"value": "{\"foo\":\"baz\"}" | ||
}, | ||
"failOnMissingKey": true, | ||
"failOnNullSource": true, | ||
"type": "jsonMerge" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"key": "someJson", | ||
"source": { | ||
"type": "string", | ||
"value": "{\"foo\":\"bar\"}" | ||
}, | ||
"merge": { | ||
"type": "string", | ||
"value": "{\"foo\":\"baz\"}" | ||
}, | ||
"type": "jsonMerge" | ||
} |
20 changes: 20 additions & 0 deletions
20
examples/policy-action/policy-action-json-patch-managed.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"id": "polAct1", | ||
"version": "1.2.3", | ||
"description": "This is a managed PolicyActionJsonPatch", | ||
"labels": [ | ||
"label1" | ||
], | ||
"key": "someJson", | ||
"source": { | ||
"id": "polVar1", | ||
"refType": "PolicyVariableRef" | ||
}, | ||
"patch": { | ||
"type": "string", | ||
"value": "[{\"op\":\"replace\",\"path\":\"/foo\",\"value\":[\"bar\"]}]" | ||
}, | ||
"failOnMissingKey": true, | ||
"failOnNullSource": true, | ||
"type": "jsonPatch" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"key": "someJson", | ||
"source": { | ||
"type": "string", | ||
"value": "{\"foo\":[\"bar\",\"baz\"],\"foo2\":\"baz\"}" | ||
}, | ||
"patch": { | ||
"type": "string", | ||
"value": "[{\"op\":\"replace\",\"path\":\"/foo\",\"value\":[\"bar\"]}]" | ||
}, | ||
"type": "jsonPatch" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"key": "foo", | ||
"value": { | ||
"resolvers": [ | ||
{ | ||
"id": "birthdayResolver", | ||
"refType": "PolicyVariableResolverRef" | ||
} | ||
] | ||
}, | ||
"failOnMissingKey": true, | ||
"failOnNullSource": true, | ||
"type": "save" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"id": "polAct1", | ||
"version": "1.2.3", | ||
"description": "This is a managed PolicyActionSave", | ||
"labels": [ | ||
"label1" | ||
], | ||
"key": "foo", | ||
"value": { | ||
"resolvers": [ | ||
{ | ||
"id": "birthdayResolver", | ||
"refType": "PolicyVariableResolverRef" | ||
} | ||
] | ||
}, | ||
"failOnMissingKey": true, | ||
"failOnNullSource": true, | ||
"type": "save" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"key": "foo", | ||
"value": { | ||
"type": "string", | ||
"value": "bar" | ||
}, | ||
"failOnExistingKey": true, | ||
"type": "save" | ||
} |
Oops, something went wrong.