-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsecurity_policy.yml
157 lines (148 loc) · 3.96 KB
/
security_policy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
pc_ip: valid-pc-ip
# Specify a user with permission to make API calls.
pc_credential: pc_user # credential reference from "vaults" in global.yml file
#Create
security_policies:
- name: Example-AZ01-Calm
description: Example Security Policy
allow_ipv6_traffic: true # true/ false # Policy rules apply only to IPv4 Traffic and all IPv6 traffic are blocked by default.
hitlog: true # true/ false # Log traffic flow hits on the policy rules
# Only app rules are supported for now
app_rule:
policy_mode: MONITOR # APPLY/MONITOR
# Secure this app
target_group:
categories:
AppType: AZ01LAMP01
inbounds:
- categories:
AppTier:
- WEB
address:
name: Calm
protocol:
service:
name: ssh
- categories:
AppTier:
- APP
udp:
- start_port: 82
end_port: 8080
address:
name: Calm
protocol:
service:
name: ssh
- categories:
AppTier:
- DB
address:
name: Calm
protocol:
service:
name: ssh
outbounds:
- address:
name: NVD_AD
protocol:
service:
name: dns
#Delete
security_policies:
- name: Example-AZ01-Calm
- name: Example-AZ02
######################################## SCHEMA DOCUMENTATION ########################################
### ---CREATE SCHEMA --- ###
# security_policies:
# type: list
# required: false
# schema:
# type: dict
# schema:
# name:
# type: string
# required: true
# description:
# type: string
# app_rule:
# type: dict
# schema:
# policy_mode:
# type: string
# required: true
# allowed:
# - MONITOR
# - APPLY
# target_group:
# type: dict
# schema:
# categories:
# type: dict
# required: true
# schema:
# AppType:
# type: string
# inbounds:
# type: list
# schema:
# type: dict
# schema:
# address:
# type: dict
# schema:
# name:
# type: string
# categories:
# type: dict
# keyschema:
# type: string
# valueschema:
# type: list
# protocol:
# type: dict
# schema:
# service:
# type: dict
# schema:
# name:
# type: string
# outbounds:
# type: list
# schema:
# type: dict
# schema:
# address:
# type: dict
# schema:
# name:
# type: string
# categories:
# type: dict
# keyschema:
# type: string
# valueschema:
# type: list
# protocol:
# type: dict
# schema:
# service:
# type: dict
# schema:
# name:
# type: string
# allow_ipv6_traffic:
# type: boolean
# hitlog:
# type: boolean
#
### ---DELETE SCHEMA --- ###
# security_policies:
# type: list
# schema:
# type: dict
# schema:
# name:
# type: string
#
####################################################################################################