Skip to content

Commit c9dad8e

Browse files
committed
re-added checkpoint with new name
1 parent bf0a979 commit c9dad8e

File tree

4 files changed

+779
-0
lines changed

4 files changed

+779
-0
lines changed

checkpoint/1.0.0/Dockerfile

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Base our app image off of the WALKOFF App SDK image
2+
FROM frikky/shuffle:app_sdk as base
3+
4+
# We're going to stage away all of the bloat from the build tools so lets create a builder stage
5+
FROM base as builder
6+
7+
# Install all alpine build tools needed for our pip installs
8+
RUN apk --no-cache add --update alpine-sdk libffi libffi-dev musl-dev openssl-dev
9+
10+
# Install all of our pip packages in a single directory that we can copy to our base image later
11+
RUN mkdir /install
12+
WORKDIR /install
13+
COPY requirements.txt /requirements.txt
14+
RUN pip install --prefix="/install" -r /requirements.txt
15+
16+
# Switch back to our base image and copy in all of our built packages and source code
17+
FROM base
18+
COPY --from=builder /install /usr/local
19+
COPY src /app
20+
21+
# Install any binary dependencies needed in our final image
22+
# RUN apk --no-cache add --update my_binary_dependency
23+
24+
# Finally, lets run our app!
25+
WORKDIR /app
26+
CMD python app.py --log-level DEBUG

checkpoint/1.0.0/api.yaml

Lines changed: 326 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,326 @@
1+
app_version: 1.0.0
2+
name: Checkpoint
3+
description: add description
4+
contact_info:
5+
name: "@davedhaval"
6+
url: https://infopercept.com
7+
8+
tags:
9+
- Firewall
10+
categories:
11+
- Testing
12+
authentication:
13+
required: true
14+
parameters:
15+
- name: ip_addr
16+
description: The management server IP
17+
example: "192.168.44.121"
18+
required: true
19+
schema:
20+
type: string
21+
- name: user
22+
description: User name
23+
example: "admin"
24+
required: true
25+
schema:
26+
type: string
27+
- name: password
28+
description: password
29+
example: "******"
30+
required: true
31+
schema:
32+
type: string
33+
actions:
34+
- name: list_packages
35+
description: Executes the install-policy on a given list of targets.
36+
parameters:
37+
- name: ssl_verify
38+
description: Set ssl verification
39+
example: "False"
40+
options:
41+
- true
42+
- false
43+
returns:
44+
schema:
45+
type: string
46+
- name: install_policy
47+
description: Executes the install-policy on a given list of targets.
48+
parameters:
49+
- name: policy_package
50+
description: Policy package identified by the name or UID.
51+
required: true
52+
multiline: false
53+
example: 'INTERNET'
54+
schema:
55+
type: string
56+
- name: targets
57+
description: On what targets to execute this command. Targets may be identified by their name, or object unique identifier.
58+
required: true
59+
multiline: false
60+
example: 'INTERNET'
61+
schema:
62+
type: string
63+
- name: ssl_verify
64+
description: Set ssl verification
65+
example: "False"
66+
options:
67+
- true
68+
- false
69+
required: true
70+
schema:
71+
type: string
72+
returns:
73+
schema:
74+
type: string
75+
- name: add_host
76+
description: Create new object.
77+
parameters:
78+
- name: host_list
79+
description: List of hosts
80+
required: true
81+
multiline: false
82+
example: 'INTERNET'
83+
schema:
84+
type: array
85+
- name: ssl_verify
86+
description: Set ssl verification
87+
example: "False"
88+
options:
89+
- true
90+
- false
91+
returns:
92+
schema:
93+
type: string
94+
- name: add_hosts_from_file
95+
description: Takes text file (comma seperated) as input and loads IPs from that file into a list and makes host in checkpoint for all of those IPs and add them into single group.
96+
parameters:
97+
- name: file_id
98+
description: file id
99+
required: true
100+
multiline: false
101+
example: 'file id'
102+
schema:
103+
type: string
104+
- name: ssl_verify
105+
description: Set ssl verification
106+
example: "False"
107+
options:
108+
- true
109+
- false
110+
returns:
111+
schema:
112+
type: string
113+
- name: show_hosts
114+
description: Retrieve all hosts
115+
parameters:
116+
- name: ssl_verify
117+
description: Set ssl verification
118+
example: "False"
119+
options:
120+
- true
121+
- false
122+
returns:
123+
schema:
124+
type: string
125+
- name: delete_host
126+
description: Delete host.
127+
parameters:
128+
- name: host_name
129+
description: Host name.
130+
required: true
131+
multiline: false
132+
example: 'Host name'
133+
schema:
134+
type: string
135+
- name: ssl_verify
136+
description: Set ssl verification
137+
example: "False"
138+
options:
139+
- true
140+
- false
141+
returns:
142+
schema:
143+
type: string
144+
- name: show_access_rule
145+
description: Retrieve existing object using object name or uid.
146+
parameters:
147+
- name: name
148+
description: Access rule name
149+
required: true
150+
multiline: false
151+
example: 'INTERNET'
152+
schema:
153+
type: string
154+
- name: layer
155+
description: Layer that the rule belongs to identified by the name or UID.
156+
required: true
157+
multiline: false
158+
example: 'INTERNET'
159+
schema:
160+
type: string
161+
- name: ssl_verify
162+
description: Set ssl verification
163+
example: "False"
164+
options:
165+
- true
166+
- false
167+
returns:
168+
schema:
169+
type: string
170+
- name: add_access_rule
171+
description: Create new access rule
172+
parameters:
173+
- name: name
174+
description: Access rule name
175+
required: true
176+
multiline: false
177+
example: 'INTERNET'
178+
schema:
179+
type: string
180+
- name: layer
181+
description: Layer that the rule belongs to identified by the name or UID.
182+
required: true
183+
multiline: false
184+
example: 'INTERNET'
185+
schema:
186+
type: string
187+
- name: position
188+
description: Position in the rulebase.
189+
required: true
190+
multiline: false
191+
example: 'INTERNET'
192+
schema:
193+
type: string
194+
- name: ssl_verify
195+
description: Set ssl verification
196+
example: "False"
197+
options:
198+
- true
199+
- false
200+
returns:
201+
schema:
202+
type: string
203+
- name: show_groups
204+
description: List all network groups
205+
parameters:
206+
- name: ssl_verify
207+
description: Set ssl verification
208+
example: "False"
209+
options:
210+
- true
211+
- false
212+
returns:
213+
schema:
214+
type: string
215+
- name: create_group
216+
description: Create a new group
217+
parameters:
218+
- name: name
219+
description: Network group name
220+
required: true
221+
multiline: false
222+
example: 'BLOCK_IP'
223+
schema:
224+
type: string
225+
- name: members
226+
description: List of Network objects identified by the name or UID.
227+
required: false
228+
multiline: false
229+
example: 'INTERNET'
230+
schema:
231+
type: string
232+
- name: ssl_verify
233+
description: Set ssl verification
234+
example: "False"
235+
options:
236+
- true
237+
- false
238+
returns:
239+
schema:
240+
type: string
241+
- name: add_hosts_to_group
242+
description: Adds list of hosts to network group
243+
parameters:
244+
- name: name
245+
description: Network group name
246+
required: true
247+
multiline: false
248+
example: 'BLOCK_IP'
249+
schema:
250+
type: string
251+
- name: members
252+
description: List of Network objects identified by the name or UID.
253+
required: true
254+
multiline: false
255+
example: '["192.168.xx.xx","192.168.xx.xx"]'
256+
schema:
257+
type: string
258+
- name: ssl_verify
259+
description: Set ssl verification
260+
example: "False"
261+
options:
262+
- true
263+
- false
264+
returns:
265+
schema:
266+
type: string
267+
- name: show_access_rulebase
268+
description: Shows the entire Access Rules layer. This layer is divided into sections.
269+
parameters:
270+
- name: name
271+
description: name
272+
required: true
273+
multiline: false
274+
example: 'BLOCK_IP'
275+
schema:
276+
type: string
277+
- name: ssl_verify
278+
description: Set ssl verification
279+
example: "False"
280+
options:
281+
- true
282+
- false
283+
returns:
284+
schema:
285+
type: string
286+
- name: set_access_rule
287+
description: Edit exsiting access rule
288+
parameters:
289+
- name: name
290+
description: name
291+
required: true
292+
multiline: false
293+
example: 'BLOCK_IP'
294+
schema:
295+
type: string
296+
- name: layer
297+
description: name
298+
required: true
299+
multiline: false
300+
example: 'BLOCK_IP'
301+
schema:
302+
type: string
303+
- name: action
304+
description: Set ssl verification
305+
example: "False"
306+
options:
307+
- Accept
308+
- Drop
309+
- name: destination
310+
description: destination
311+
required: true
312+
multiline: false
313+
example: 'BLOCK_IP'
314+
schema:
315+
type: string
316+
- name: ssl_verify
317+
description: Set ssl verification
318+
example: "False"
319+
options:
320+
- true
321+
- false
322+
returns:
323+
schema:
324+
type: string
325+
326+
large_image: data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxIHBhUSBxIWExUVFh8aGBgYFiIgGRgdFxsbHRYYGCAeHygiGx0lHR0aIjEjJSkrLi46Gh8zODMuNygtMCsBCgoKDg0OGxAQGy0lHyItLzItLi0tLS0vLy0tLy0rLS0tLS0tLS0tLS0vLS0tLS0tLS0tLS0tLS0tLS0tLS0tLf/AABEIAOAA4AMBEQACEQEDEQH/xAAcAAEAAQUBAQAAAAAAAAAAAAAABgECAwQHBQj/xABHEAACAQMCAwUFAwUMCwAAAAAAAQIDBBEFEgYhMQcTQVFhIjJxgZFCUqEIVJOxsh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xtIUa9LT6VG4c6VOEZvOZKKy89eZO/Gl7ZL2jUz4bRCgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP//Z

checkpoint/1.0.0/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
requests==2.25.1

0 commit comments

Comments
 (0)