Closed rrahimm closed 5 months ago
Audit Logs when creating policy from GUI
{
"name": "TEST_MANUAL1",
"type": "zoneBasedFW",
"description": "TEST",
"definition": {
"defaultAction": {
"type": "drop"
},
"sequences": [
{
"sequenceId": 1,
"sequenceName": "Rule_1",
"baseAction": "inspect",
"sequenceType": "zoneBasedFW",
"match": {
"entries": [
{
"field": "sourceDataPrefixList",
"ref": "a3296f92-21ad-42f6-8d7b-d519b855a9f8"
}
]
},
"actions": []
}
],
"entries": [
{
"sourceZone": "self",
"destinationZone": "25808b61-7596-4f68-97de-546b172d4796"
}
]
},
"mode": "security",
"optimized": "false"
}
Audit logs when creating policy through Terraform Provider zone_based_fw_policy_definition
Note the additional definition keyword after sequences.
{
"type": "zoneBasedFW",
"name": "Example",
"description": "My description",
"mode": "security",
"definition": {
"entries": [
{
"sourceZone": "self",
"destinationZone": "e1c1758b-07d5-4a1a-ac1b-0e5720dfdf90"
}
],
"defaultAction": {
"type": "pass"
},
"sequences": [
{
"sequenceId": 1,
"sequenceName": "RULE_1",
"baseAction": "inspect",
"sequenceType": "zoneBasedFW",
"definition": {
"match": {
"entries": [
{
"field": "sourceGeoLocation",
"value": "AGO"
}
]
},
"actions": [
{
"type": "log"
}
]
}
}
]
}
}
Fixed in v0.3.10.
We are unable to create a fully fit policy using zone_based_fw_policy_definition
when we use zone_based_fw_policy_definition to create a policy, only the name and description come in the UI.
The rules, zone_pairs, default_action etc., doesn't populate.