Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request fixes #668

Merged
merged 134 commits into from
Apr 25, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
134 commits
Select commit Hold shift + click to select a range
3190308
Fix all subtab navbar padding
pablotr9 Apr 15, 2019
24ba3aa
Add new vizz to agent-general
pablotr9 Apr 15, 2019
c0df758
Change switch style in extensions
adri9valle Apr 15, 2019
2854ba6
Change switch style in the rest of the code
adri9valle Apr 15, 2019
8929af9
Merge branch 'request-fixes' of http://www.github.com/wazuh/wazuh-spl…
adri9valle Apr 15, 2019
ffe08fe
Fix extension switching
adri9valle Apr 15, 2019
8360a0a
Add new vizz
pablotr9 Apr 15, 2019
d3edd75
Merge branch 'request-fixes' of https://github.com/wazuh/wazuh-splunk…
pablotr9 Apr 15, 2019
3de9b9a
Change report icons and added md-tooltip
adri9valle Apr 15, 2019
08976f1
Merge branch 'request-fixes' of http://www.github.com/wazuh/wazuh-spl…
adri9valle Apr 15, 2019
b2de055
Removed style tag, added class
adri9valle Apr 15, 2019
de8937b
Add class for the log switch
adri9valle Apr 15, 2019
79ddfdd
Change fa-download icons
adri9valle Apr 15, 2019
2caba98
Added map to aws
adri9valle Apr 15, 2019
261e183
Change the configuration pencil icon
adri9valle Apr 15, 2019
de36b8e
Change col-resize lib
adri9valle Apr 15, 2019
bd355a1
Improve overwritted rules detection
adri9valle Apr 15, 2019
a8e4097
Add agent-sca vizz
pablotr9 Apr 16, 2019
045678a
Sort tables by count
pablotr9 Apr 16, 2019
4f6729e
Add SCA overview dashboard
pablotr9 Apr 16, 2019
7732db7
Add eye icon to view the file content, added readOnly parameter
adri9valle Apr 16, 2019
58e0c8b
Resolving conflicts
adri9valle Apr 16, 2019
65213a1
Add visualization to ow-sca
pablotr9 Apr 16, 2019
be2d975
Fix aws geomap
pablotr9 Apr 16, 2019
78ef6c0
Show rules and decoders content
adri9valle Apr 16, 2019
b707c8b
Improve style
adri9valle Apr 16, 2019
e75acf4
Prettier
adri9valle Apr 16, 2019
0f86b64
Merge pull request #667 from wazuh/show-file-content
adri9valle Apr 16, 2019
ff98a87
Missing AWS Services configuration
pablotr9 Apr 16, 2019
48fdcef
Merge branch 'request-fixes' of https://github.com/wazuh/wazuh-splunk…
pablotr9 Apr 16, 2019
f967fa2
Split log and commands
adri9valle Apr 16, 2019
9ae2500
Merge branch 'request-fixes' of http://www.github.com/wazuh/wazuh-spl…
adri9valle Apr 16, 2019
1cc76e0
Fix ag-fim icons
adri9valle Apr 16, 2019
a3ecc65
Bump revision
Apr 16, 2019
d5eaf45
Fix remove filter
adri9valle Apr 17, 2019
4fe85d0
Add directive to use eui svgs
adri9valle Apr 17, 2019
889f646
Use directive to set expand svg icons
adri9valle Apr 17, 2019
4b18274
Merge branch 'request-fixes' of http://www.github.com/wazuh/wazuh-spl…
adri9valle Apr 17, 2019
4602ea9
Add tootlip to the svg
adri9valle Apr 17, 2019
22df65d
Change icons in wz-table and other several html files
adri9valle Apr 17, 2019
8091811
Use wz-svg in menu and api
adri9valle Apr 17, 2019
21f337d
Use svg instead of fa-compass
adri9valle Apr 17, 2019
9ece1a6
Fix height
adri9valle Apr 17, 2019
fb55745
Fix clean keys
pablotr9 Apr 17, 2019
4f113c9
Change refresh icons
adri9valle Apr 17, 2019
916ad01
Merge branch 'request-fixes' of http://www.github.com/wazuh/wazuh-spl…
adri9valle Apr 17, 2019
ad166d7
Rename name as container docker
adri9valle Apr 17, 2019
c51b7c1
Change expand icon in docker
adri9valle Apr 17, 2019
45bf0b3
Change icons cdb lists
adri9valle Apr 17, 2019
2825da4
Change download and plus icons
adri9valle Apr 17, 2019
535c0e7
Fix csv download
adri9valle Apr 17, 2019
0bedbe6
Fix breadcrumb-submenu style
pablotr9 Apr 17, 2019
68047cf
Fix ellipsis in tables
adri9valle Apr 17, 2019
ad41974
Merge branch 'request-fixes' of http://www.github.com/wazuh/wazuh-spl…
adri9valle Apr 17, 2019
1969be7
Fix input style cdb list
adri9valle Apr 17, 2019
753a78a
Add loupe to input searchbar
pablotr9 Apr 17, 2019
2566747
Change and fix several styles
adri9valle Apr 17, 2019
866a543
Fix agents sca view
adri9valle Apr 17, 2019
89b1b91
Fix several margins
adri9valle Apr 17, 2019
1fe9c89
Merge branch 'request-fixes' of http://www.github.com/wazuh/wazuh-spl…
adri9valle Apr 17, 2019
7fab3ae
Fix float icon in warning message
adri9valle Apr 17, 2019
5e39372
Change style
adri9valle Apr 17, 2019
87a3778
Add sca navbar
adri9valle Apr 17, 2019
5bb83eb
Fix flick & input loupe icon
pablotr9 Apr 17, 2019
1ed96e8
Fix cluster view
adri9valle Apr 17, 2019
d071dae
Merge branch 'request-fixes' of http://www.github.com/wazuh/wazuh-spl…
adri9valle Apr 17, 2019
c78fa35
Fix flick when hiding a column
pablotr9 Apr 17, 2019
8c29199
Merge
pablotr9 Apr 17, 2019
76b875c
Bump revision
Apr 17, 2019
02f6d11
Remove console.log ow-pm
adri9valle Apr 22, 2019
1329574
Percent while report is generating
pablotr9 Apr 22, 2019
e46e24f
Merge branch 'request-fixes' of http://www.github.com/wazuh/wazuh-spl…
adri9valle Apr 22, 2019
f6b29d2
Fix nosortable table fields
adri9valle Apr 22, 2019
e0e13bb
Add ow-fim vizz
pablotr9 Apr 22, 2019
f9e7627
Merge branch 'request-fixes' of https://github.com/wazuh/wazuh-splunk…
pablotr9 Apr 22, 2019
9f7d1b7
Fix duplicated values in indexed data
adri9valle Apr 22, 2019
316e4e4
Merge branch 'request-fixes' of http://www.github.com/wazuh/wazuh-spl…
adri9valle Apr 22, 2019
c642537
Add ag-audit & ow-audit vizz
pablotr9 Apr 22, 2019
55e3a6a
Merge branch 'request-fixes' of https://github.com/wazuh/wazuh-splunk…
pablotr9 Apr 22, 2019
243f7da
Fix implicit chips
adri9valle Apr 22, 2019
46cdedc
Merge changes
adri9valle Apr 22, 2019
31a301d
Add ow-osquery & ag-osquery vizz
pablotr9 Apr 22, 2019
b9450e3
Change jquery-ui
adri9valle Apr 23, 2019
cf1482c
Fix id width
adri9valle Apr 23, 2019
027bc00
Merge branch 'request-fixes' of http://www.github.com/wazuh/wazuh-spl…
adri9valle Apr 23, 2019
01fa223
Fix show mail configuration
adri9valle Apr 23, 2019
3240067
Merge pull request #672 from wazuh/show-email-conf
adri9valle Apr 23, 2019
c619650
Show appropriate error message for every wrong inserted form field
adri9valle Apr 23, 2019
16cc248
Fix typo
adri9valle Apr 23, 2019
444d151
Fix top menu bar should be updated indicating that there's no API sel…
adri9valle Apr 23, 2019
8d40512
Fix hide/show columns when using keyEquivalence
adri9valle Apr 23, 2019
08c1846
Add fetching data -> ow - Security Information Management
adri9valle Apr 23, 2019
b40f50e
Fix filter when changin between sub-states
adri9valle Apr 23, 2019
3f036c1
Add fetching data -> ow - Auditing and Policy Monitoring
adri9valle Apr 23, 2019
c54a29a
Fix mg-logs style
pablotr9 Apr 23, 2019
da54d5c
Add fetching data -> ow - Threat Detection and Response
adri9valle Apr 23, 2019
a6861f5
Merge branch 'request-fixes' of http://www.github.com/wazuh/wazuh-spl…
adri9valle Apr 23, 2019
6a35563
Fix cluster-monitoring style
pablotr9 Apr 23, 2019
caeda7f
Add fetching data -> ow - Regulatory Compliance
adri9valle Apr 24, 2019
bac190a
Remove unused vizz
pablotr9 Apr 24, 2019
81a0a5d
Merge branch 'request-fixes' of http://www.github.com/wazuh/wazuh-spl…
adri9valle Apr 24, 2019
fe9b261
Add fetching data -> ag - Security Information Management
adri9valle Apr 24, 2019
1f41fa3
Fix osquery table
pablotr9 Apr 24, 2019
8a86988
Fix wz-table-directive keyEquivalences for custom columns
adri9valle Apr 24, 2019
b76848e
Merge branch 'request-fixes' of http://www.github.com/wazuh/wazuh-spl…
adri9valle Apr 24, 2019
1f41e79
Fix fetching data ow-osquery
adri9valle Apr 24, 2019
10a7b6e
Add fetching data -> ag - Regulatory Compliance
adri9valle Apr 24, 2019
ca8901c
Remove button flicks in rules/decoders
pablotr9 Apr 24, 2019
f49995e
Remove duplicated ID
pablotr9 Apr 24, 2019
da9159a
Add fetching data -> ag - Auditing and Policy Monitoring
adri9valle Apr 24, 2019
5a038d2
Add fetching data -> ag - Threat Detection and Response
adri9valle Apr 24, 2019
04598e3
Merge branch 'request-fixes' of http://www.github.com/wazuh/wazuh-spl…
adri9valle Apr 24, 2019
2d19865
Fix when coming back to dashboard and the filters are removed
adri9valle Apr 24, 2019
19ad438
Fix color
adri9valle Apr 24, 2019
9454a46
Fix dropdown style
adri9valle Apr 24, 2019
1956064
Update overview SCA dashboard
pablotr9 Apr 24, 2019
e6a5eb5
Add SingleValue and GaugeChart visualization
pablotr9 Apr 25, 2019
3ac946c
Fix ag-fim filter bar style
pablotr9 Apr 25, 2019
e0e3211
Minor fix ow-sca
pablotr9 Apr 25, 2019
4d6bcd9
Add trellis-layout option to pieChart
pablotr9 Apr 25, 2019
a8dc1e2
Update ag-sca Dashboard
pablotr9 Apr 25, 2019
2e7555a
Add no scans avaible and refresh button ag-sca
adri9valle Apr 25, 2019
ebde0ee
Resolving conflicts
adri9valle Apr 25, 2019
d131239
Change expand icon sca
adri9valle Apr 25, 2019
eebe69c
Add status if the check is not passed
adri9valle Apr 25, 2019
64f5c4e
Show reason why check was not passed
adri9valle Apr 25, 2019
0e2dd4f
Update ag-openscap dashboard
pablotr9 Apr 25, 2019
fab2236
Change title
adri9valle Apr 25, 2019
1a79b3a
Fix ag-ciscat dashboard
pablotr9 Apr 25, 2019
0720b21
Merge branch 'request-fixes' of http://www.github.com/wazuh/wazuh-spl…
adri9valle Apr 25, 2019
14cedb8
Resolving conflicts
adri9valle Apr 25, 2019
7c15460
Added no passed check to SCA general table
adri9valle Apr 25, 2019
e2f9319
Added angular charts to SCA
adri9valle Apr 25, 2019
6fc231f
Added angular chart to agents
adri9valle Apr 25, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 36 additions & 28 deletions SplunkAppForWazuh/appserver/controllers/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,34 +74,42 @@ def getSelfAdminStanza(self):
def clean_keys(self, response):
"""Hide sensible data from API response."""
try:
res = response["data"]
hide = "********"
# Remove agent key
if "internal_key" in res:
res["internal_key"] = hide
# Remove cluster key (/come/cluster)
if "node_type" in res and "key" in res:
res["key"] = hide
# Remove cluster key (/manager/configuration)
if "cluster" in res:
if "node_type" in res["cluster"] and "key" in res["cluster"]:
res["cluster"]["key"] = hide

# Remove AWS keys
if "wmodules" in res:
for wmod in res["wmodules"]:
if "aws-s3" in wmod:
if "buckets" in wmod["aws-s3"]:
for bucket in wmod["aws-s3"]["buckets"]:
bucket["access_key"] = hide
bucket["secret_key"] = hide
# Remove integrations keys
if "integration" in res:
for integ in res["integration"]:
integ["api_key"] = hide
response["data"] = res
return jsonbak.dumps(response)
if "data" in response and type(response["data"]) == dict:
# Remove agent key
if "internal_key" in response["data"]:
response["data"]["internal_key"] = hide

# Remove cluster key (/come/cluster)
if "node_type" in response["data"]:
if "key" in response["data"]:
response["data"]["key"] = hide

# Remove cluster key (/manager/configuration)
if "cluster" in response["data"]:
if "node_type" in response["data"]["cluster"] and "key" in response["data"]["cluster"]:
response["data"]["cluster"]["key"] = hide

# Remove AWS keys
if "wmodules" in response["data"]:
for wmod in response["data"]["wmodules"]:
if "aws-s3" in wmod:
if "buckets" in wmod["aws-s3"]:
for bucket in wmod["aws-s3"]["buckets"]:
bucket["access_key"] = hide
bucket["secret_key"] = hide
if "services" in wmod["aws-s3"]:
for service in wmod["aws-s3"]["services"]:
service["access_key"] = hide
service["secret_key"] = hide

# Remove integrations keys
if "integration" in response["data"]:
for integ in response["data"]["integration"]:
integ["api_key"] = hide
return response
except Exception as e:
self.logger.error("Error while cleaning keys in request response: %s" % (e))
raise e

def format_output(self, arr):
Expand Down Expand Up @@ -187,7 +195,7 @@ def make_request(self, method, url, opt_endpoint, kwargs, auth, verify, counter
return self.make_request(method, url, opt_endpoint, kwargs, auth, verify, counter - 1)
else:
raise Exception("Tried to execute %s %s three times with no success, aborted." % (method, opt_endpoint))
return request
return self.clean_keys(request)
except Exception as e:
self.logger.error("Error while requesting to Wazuh API: %s" % (e))
raise e
Expand Down Expand Up @@ -332,7 +340,7 @@ def csv(self, **kwargs):
opt_base_url = api["data"]["url"]
opt_base_port = api["data"]["portapi"]
opt_endpoint = kwargs['path']
url = opt_base_url + ":" + opt_base_port
url = str(opt_base_url) + ":" + str(opt_base_port)
auth = requestsbak.auth.HTTPBasicAuth(opt_username, opt_password)
verify = False
# init csv writer
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
116 changes: 112 additions & 4 deletions SplunkAppForWazuh/appserver/static/css/styles/common.css
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,13 @@
margin: 0px;
}

.wz-menu-settings{
min-width: 30px;
border-radius: 100px;
margin-left: 5px;
margin-right: 5px !important;
}

.addGroupInput {
max-height: 20px !important;
max-width: 181px !important;
Expand Down Expand Up @@ -428,7 +435,7 @@ div.uil-ring-css {
}

.wz-margin-left-20 {
margin-left: 20px;
margin-left: 20px !important;
}

.wz-margin-left--10 {
Expand Down Expand Up @@ -464,6 +471,9 @@ div.uil-ring-css {
.wz-height-35 {
height: 35px !important;
}
.wz-height-20 {
height: 20px !important;
}

.wz-width-85 {
min-width: 85px;
Expand Down Expand Up @@ -986,7 +996,7 @@ md-dialog{
.edit-cancel-button {
border: none !important;
color: rgb(0, 121, 165) !important;
background: white !important;
background: #fafafa !important;
}

.edit-cancel-button:hover {
Expand Down Expand Up @@ -1094,6 +1104,18 @@ md-toast {
padding-right: 40px !important;
}

.wz-text-truncatable {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}

.wz-text-truncatable-container {
overflow: hidden;
width: auto;
display: grid;
}

span.pass {
background-color: green !important;
color: white !important;
Expand Down Expand Up @@ -1157,7 +1179,7 @@ span.wrong {
}

.table-width-id{
width: 20px !important;
width: 60px !important;
}

.table-width-filename{
Expand Down Expand Up @@ -1525,7 +1547,6 @@ input:focus {
}

#dropDownInput button {
min-width: 100% !important;
border: solid 1px #0079bb !important;
color: #0079bb !important;
background: white !important;
Expand Down Expand Up @@ -1658,6 +1679,17 @@ input:focus {
color: #1278b0 !important;
}

.switch-log {
margin: 5px 10px;
}

.wz-text-align-right {
text-align: right;
}

.table-condensed td {
padding: 5px !important;
}

/* Loading bar */

Expand Down Expand Up @@ -1694,3 +1726,79 @@ input:focus {
to {left: 100%;}
}


/* eui spinner */

.euiLoadingSpinner--medium {
width: 16px;
height: 16px;
border-width: 1px;
}
.euiLoadingSpinner {
display: inline-block;
width: 32px;
height: 32px;
border-radius: 50%;
border: solid 2px #D3DAE6;
border-color: #006BB4 #D3DAE6 #D3DAE6 #D3DAE6;
-webkit-animation: euiLoadingSpinner .6s infinite linear;
animation: euiLoadingSpinner .6s infinite linear;
}


/* Do not show the last resize th */
.table-resizable > thead th:last-child .ui-resizable-handle {
display: none !important;
}


.wz-breadcrumb-margin{
margin-left:10px;
margin-top:12px;
}



label.wz-icon-loupe {
position: relative;
width:100%;
}

label.wz-icon-loupe:before {
content: "";
position: absolute;
left: 10px;
bottom: 0;
width: 20px;
height: 40px;
background: url(/static/app/SplunkAppForWazuh/css/images/loupe.png) no-repeat;
background-size: 18px;
}

label.wz-icon-loupe input {
padding: 0px 35px !important;
width:100%;
}

.float_warning-icon {
margin-bottom: 5px;
margin-right: -5px;
}

.noDot {
list-style-type: none !important;
margin-left: 0px !important;
}

.orange {
color: #ff9999;
}

.gray {
background-color: #5c6773 !important;
}

.center {
margin: 0 auto !important;
text-align: center !important;
}
3 changes: 2 additions & 1 deletion SplunkAppForWazuh/appserver/static/css/styles/component.css
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ md-dialog-actions button {
}

.wz-white-background {
background-color:white !important;
/*background-color:white !important;*/
background-color: #fafafa;
}
/* Custom switch styles */

Expand Down
Loading