Skip to content

Commit 83a4ed2

Browse files
committedJun 26, 2020
chore(addon): Fix gitignore for js/build dir
When I moved this all into a monorepo, I added a .gitignore file for python, but that gitignore accidentally ignored a critical static js directory that was created by add-on builder. This changes the .gitignore file and adds the directory back in.
1 parent a59d730 commit 83a4ed2

File tree

6 files changed

+569
-1
lines changed

6 files changed

+569
-1
lines changed
 

‎Splunk_TA_paloalto/.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,5 @@ bin/eventgen_kvstore_loader.py
9292
README/eventgen.conf.spec
9393
bin/cred-init.json
9494

95-
!app.manifest
95+
!app.manifest
96+
!appserver/static/js/build

‎Splunk_TA_paloalto/appserver/static/js/build/1.1.js

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Splunk_TA_paloalto/appserver/static/js/build/common.js

+185
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Splunk_TA_paloalto/appserver/static/js/build/configuration_page.js

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,379 @@
1+
{
2+
"meta": {
3+
"name": "Splunk_TA_paloalto",
4+
"displayName": "Palo Alto Networks Add-on",
5+
"version": "6.2.0",
6+
"apiVersion": "3.0.0",
7+
"restRoot": "Splunk_TA_paloalto"
8+
},
9+
"pages": {
10+
"configuration": {
11+
"title": "Configuration",
12+
"description": "Set up your add-on",
13+
"tabs": [
14+
{
15+
"name": "account",
16+
"title": "Account",
17+
"table": {
18+
"header": [
19+
{
20+
"field": "name",
21+
"label": "Account name"
22+
},
23+
{
24+
"field": "username",
25+
"label": "Username"
26+
}
27+
],
28+
"actions": [
29+
"edit",
30+
"delete",
31+
"clone"
32+
]
33+
},
34+
"entity": [
35+
{
36+
"field": "name",
37+
"label": "Account name",
38+
"type": "text",
39+
"required": true,
40+
"help": "Enter a unique name for this account.",
41+
"validators": [
42+
{
43+
"type": "string",
44+
"minLength": 1,
45+
"maxLength": 50,
46+
"errorMsg": "Length of Account name should be between 1 and 50"
47+
},
48+
{
49+
"type": "regex",
50+
"pattern": "^[a-zA-Z]\\w*$",
51+
"errorMsg": "Account name must start with a letter and followed by alphabetic letters, digits or underscores."
52+
}
53+
]
54+
},
55+
{
56+
"field": "username",
57+
"label": "Username",
58+
"type": "text",
59+
"required": true,
60+
"help": "Enter the username for this account.",
61+
"options": {
62+
"placeholder": "Enter the username here"
63+
},
64+
"validators": [
65+
{
66+
"type": "string",
67+
"minLength": 1,
68+
"maxLength": 200,
69+
"errorMsg": "Length of username should be between 1 and 200"
70+
}
71+
]
72+
},
73+
{
74+
"field": "password",
75+
"label": "Password",
76+
"type": "text",
77+
"encrypted": true,
78+
"required": true,
79+
"help": "Enter the password for this account.",
80+
"validators": [
81+
{
82+
"type": "string",
83+
"minLength": 1,
84+
"maxLength": 8192,
85+
"errorMsg": "Length of password should be between 1 and 8192"
86+
}
87+
]
88+
}
89+
]
90+
},
91+
{
92+
"name": "proxy",
93+
"title": "Proxy",
94+
"entity": [
95+
{
96+
"field": "proxy_enabled",
97+
"label": "Enable",
98+
"type": "checkbox"
99+
},
100+
{
101+
"field": "proxy_type",
102+
"label": "Proxy Type",
103+
"type": "singleSelect",
104+
"options": {
105+
"disableSearch": true,
106+
"autoCompleteFields": [
107+
{
108+
"label": "http",
109+
"value": "http"
110+
},
111+
{
112+
"label": "socks4",
113+
"value": "socks4"
114+
},
115+
{
116+
"label": "socks5",
117+
"value": "socks5"
118+
}
119+
]
120+
},
121+
"defaultValue": "http"
122+
},
123+
{
124+
"field": "proxy_url",
125+
"label": "Host",
126+
"type": "text",
127+
"validators": [
128+
{
129+
"type": "string",
130+
"minLength": 0,
131+
"maxLength": 4096,
132+
"errorMsg": "Max host length is 4096"
133+
}
134+
]
135+
},
136+
{
137+
"field": "proxy_port",
138+
"label": "Port",
139+
"type": "text",
140+
"validators": [
141+
{
142+
"type": "number",
143+
"range": [
144+
1,
145+
65535
146+
]
147+
}
148+
]
149+
},
150+
{
151+
"field": "proxy_username",
152+
"label": "Username",
153+
"type": "text",
154+
"validators": [
155+
{
156+
"type": "string",
157+
"minLength": 0,
158+
"maxLength": 50,
159+
"errorMsg": "Max length of username is 50"
160+
}
161+
]
162+
},
163+
{
164+
"field": "proxy_password",
165+
"label": "Password",
166+
"type": "text",
167+
"encrypted": true,
168+
"validators": [
169+
{
170+
"type": "string",
171+
"minLength": 0,
172+
"maxLength": 8192,
173+
"errorMsg": "Max length of password is 8192"
174+
}
175+
]
176+
},
177+
{
178+
"field": "proxy_rdns",
179+
"label": "Remote DNS resolution",
180+
"type": "checkbox"
181+
}
182+
],
183+
"options": {
184+
"saveValidator": "function(formData) { if(!formData.proxy_enabled || formData.proxy_enabled === '0') {return true; } if(!formData.proxy_url) { return 'Proxy Host can not be empty'; } if(!formData.proxy_port) { return 'Proxy Port can not be empty'; } return true; }"
185+
}
186+
},
187+
{
188+
"name": "logging",
189+
"title": "Logging",
190+
"entity": [
191+
{
192+
"field": "loglevel",
193+
"label": "Log level",
194+
"type": "singleSelect",
195+
"options": {
196+
"disableSearch": true,
197+
"autoCompleteFields": [
198+
{
199+
"label": "DEBUG",
200+
"value": "DEBUG"
201+
},
202+
{
203+
"label": "INFO",
204+
"value": "INFO"
205+
},
206+
{
207+
"label": "WARNING",
208+
"value": "WARNING"
209+
},
210+
{
211+
"label": "ERROR",
212+
"value": "ERROR"
213+
},
214+
{
215+
"label": "CRITICAL",
216+
"value": "CRITICAL"
217+
}
218+
]
219+
},
220+
"defaultValue": "INFO"
221+
}
222+
]
223+
}
224+
]
225+
},
226+
"inputs": {
227+
"title": "Inputs",
228+
"description": "Manage your data inputs",
229+
"table": {
230+
"header": [
231+
{
232+
"field": "name",
233+
"label": "Name"
234+
},
235+
{
236+
"field": "interval",
237+
"label": "Interval"
238+
},
239+
{
240+
"field": "index",
241+
"label": "Index"
242+
},
243+
{
244+
"field": "disabled",
245+
"label": "Status"
246+
}
247+
],
248+
"moreInfo": [
249+
{
250+
"field": "name",
251+
"label": "Name"
252+
},
253+
{
254+
"field": "interval",
255+
"label": "Interval"
256+
},
257+
{
258+
"field": "index",
259+
"label": "Index"
260+
},
261+
{
262+
"field": "disabled",
263+
"label": "Status"
264+
},
265+
{
266+
"field": "api_key_id",
267+
"label": "API Key ID"
268+
},
269+
{
270+
"field": "api_key",
271+
"label": "API Key"
272+
}
273+
],
274+
"actions": [
275+
"edit",
276+
"enable",
277+
"delete",
278+
"clone"
279+
]
280+
},
281+
"services": [
282+
{
283+
"name": "cortex_xdr",
284+
"title": "Cortex XDR",
285+
"entity": [
286+
{
287+
"field": "name",
288+
"label": "Name",
289+
"type": "text",
290+
"help": "Enter a unique name for the data input",
291+
"required": true,
292+
"validators": [
293+
{
294+
"type": "regex",
295+
"pattern": "^[a-zA-Z]\\w*$",
296+
"errorMsg": "Input Name must start with a letter and followed by alphabetic letters, digits or underscores."
297+
},
298+
{
299+
"type": "string",
300+
"minLength": 1,
301+
"maxLength": 100,
302+
"errorMsg": "Length of input name should be between 1 and 100"
303+
}
304+
]
305+
},
306+
{
307+
"field": "interval",
308+
"label": "Interval",
309+
"type": "text",
310+
"required": true,
311+
"help": "Time interval of input in seconds.",
312+
"validators": [
313+
{
314+
"type": "regex",
315+
"pattern": "^\\-[1-9]\\d*$|^\\d*$",
316+
"errorMsg": "Interval must be an integer."
317+
}
318+
]
319+
},
320+
{
321+
"field": "index",
322+
"label": "Index",
323+
"type": "singleSelect",
324+
"defaultValue": "default",
325+
"options": {
326+
"endpointUrl": "data/indexes",
327+
"blackList": "^_.*$",
328+
"createSearchChoice": true
329+
},
330+
"required": true,
331+
"validators": [
332+
{
333+
"type": "string",
334+
"minLength": 1,
335+
"maxLength": 80,
336+
"errorMsg": "Length of index name should be between 1 and 80."
337+
}
338+
]
339+
},
340+
{
341+
"field": "api_key_id",
342+
"label": "API Key ID",
343+
"help": "",
344+
"required": true,
345+
"type": "text",
346+
"validators": [
347+
{
348+
"type": "string",
349+
"minLength": 0,
350+
"maxLength": 8192,
351+
"errorMsg": "Max length of text input is 8192"
352+
}
353+
],
354+
"options": {
355+
"placeholder": "1"
356+
}
357+
},
358+
{
359+
"field": "api_key",
360+
"label": "API Key",
361+
"help": "",
362+
"required": true,
363+
"type": "text",
364+
"encrypted": true,
365+
"validators": [
366+
{
367+
"type": "string",
368+
"minLength": 0,
369+
"maxLength": 8192,
370+
"errorMsg": "Max length of password is 8192"
371+
}
372+
]
373+
}
374+
]
375+
}
376+
]
377+
}
378+
}
379+
}

‎Splunk_TA_paloalto/appserver/static/js/build/inputs_page.js

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
Please sign in to comment.