mirror of
https://github.com/fleetdm/fleet
synced 2026-04-21 13:37:30 +00:00
Update platform value for ChromeOS tables, Update Fleet website to use new value, and regenerate schema JSON (#12091)
Changes: - Updated the `platform` value for osquery tables and columns that support chromeos to be `chrome` (Previously `chromeos`) - Updated `get-exteneded-osquery-schema.js` to use the new `platform` value - Updated the Fleet website to use the `chrome` `platform`. - Regenerated `schema/osquery_fleet_schema.json` with ChromeOS tables.
This commit is contained in:
parent
179dc240ad
commit
01106d05a6
13 changed files with 575 additions and 289 deletions
File diff suppressed because it is too large
Load diff
|
|
@ -3,7 +3,7 @@ platforms:
|
|||
- darwin
|
||||
- windows
|
||||
- linux
|
||||
- chromeos
|
||||
- chrome
|
||||
description: Installed extensions (plugins) for [Chromium-based](https://en.wikipedia.org/wiki/Chromium_(web_browser)) browsers, including [Google Chrome](https://en.wikipedia.org/wiki/Google_Chrome), [Edge](https://en.wikipedia.org/wiki/Microsoft_Edge), [Brave](https://en.wikipedia.org/wiki/Brave_(web_browser)), [Opera](https://en.wikipedia.org/wiki/Opera_(web_browser)), and [Yandex](https://en.wikipedia.org/wiki/Yandex_Browser).
|
||||
examples: >-
|
||||
List Chrome extensions by user and profile which have full access to HTTPS
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
name: geolocation
|
||||
evented: false
|
||||
platforms:
|
||||
- chromeos
|
||||
- chrome
|
||||
description: Last reported geolocation
|
||||
columns:
|
||||
- name: ip
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
name: network_interfaces
|
||||
evented: false
|
||||
platforms:
|
||||
- chromeos
|
||||
- chrome
|
||||
description: Uses the `chrome.enterprise.networkingAttributes` API to read information about the host's current network.
|
||||
columns:
|
||||
- name: mac
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ platforms:
|
|||
- darwin
|
||||
- linux
|
||||
- windows
|
||||
- chromeos
|
||||
- chrome
|
||||
examples: >-
|
||||
See the OS version as well as the CPU architecture in use (X86 vs ARM for
|
||||
example)
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ platforms:
|
|||
- darwin
|
||||
- windows
|
||||
- linux
|
||||
- chromeos
|
||||
- chrome
|
||||
columns:
|
||||
- name: pid
|
||||
platforms:
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ platforms:
|
|||
- windows
|
||||
- darwin
|
||||
- linux
|
||||
- chromeos
|
||||
- chrome
|
||||
columns:
|
||||
- name: cpu_subtype
|
||||
platforms:
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ platforms:
|
|||
- darwin
|
||||
- windows
|
||||
- linux
|
||||
- chromeos
|
||||
- chrome
|
||||
examples: >-
|
||||
List users that have interactive access via a shell that isn't false.
|
||||
|
||||
|
|
@ -49,7 +49,7 @@ columns:
|
|||
type: string
|
||||
description: Email
|
||||
platforms:
|
||||
- chromeos
|
||||
- chrome
|
||||
- name: type
|
||||
platforms:
|
||||
- windows
|
||||
|
|
|
|||
|
|
@ -149,7 +149,7 @@ module.exports = {
|
|||
for(let platform of columnHasFleetOverrides.platforms) {
|
||||
if(platform === 'darwin') {
|
||||
platformWithNormalizedNames.push('macOS');
|
||||
} else if(platform === 'chromeos') {
|
||||
} else if(platform === 'chrome') {
|
||||
platformWithNormalizedNames.push('ChromeOS');
|
||||
} else {
|
||||
platformWithNormalizedNames.push(_.capitalize(platform));
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ parasails.registerPage('osquery-table-details', {
|
|||
'darwin': 'macOS',
|
||||
'linux': 'Linux',
|
||||
'windows': 'Windows',
|
||||
'chromeos': 'ChromeOS',
|
||||
'chrome': 'ChromeOS',
|
||||
'all': 'All platforms'
|
||||
},
|
||||
},
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@
|
|||
<div class="dropdown-item d-block"
|
||||
@click="clickFilterByPlatform('darwin')">macOS</div>
|
||||
<div class="dropdown-item d-block"
|
||||
@click="clickFilterByPlatform('chromeos')">ChromeOS</div>
|
||||
@click="clickFilterByPlatform('chrome')">ChromeOS</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="d-flex">
|
||||
|
|
@ -73,7 +73,7 @@
|
|||
<img class="mx-2" style="height: 25px" src="/images/os-macos-dark-24x24@2x.png" alt="macOS logo" v-if="_.includes(tableToDisplay.platforms, 'darwin')">
|
||||
<img class="mx-2" style="height: 24px" src="/images/os-windows-dark-24x24@2x.png" alt="Windows logo" v-if="_.includes(tableToDisplay.platforms, 'windows')">
|
||||
<img class="mx-2" style="height: 24px" src="/images/os-linux-dark-24x24@2x.png" alt="Linux logo" v-if="_.includes(tableToDisplay.platforms, 'linux')">
|
||||
<img class="mx-2" style="height: 25px" src="/images/os-chromeos-dark-24x24@2x.png" alt="macOS logo" v-if="_.includes(tableToDisplay.platforms, 'chromeos')">
|
||||
<img class="mx-2" style="height: 25px" src="/images/os-chromeos-dark-24x24@2x.png" alt="macOS logo" v-if="_.includes(tableToDisplay.platforms, 'chrome')">
|
||||
</div>
|
||||
<%- partial(path.relative(path.dirname(__filename), path.resolve( sails.config.appPath, path.join(sails.config.builtStaticContent.compiledPagePartialsAppPath, tableToDisplay.htmlId)))) %>
|
||||
</div>
|
||||
|
|
|
|||
2
website/views/pages/query-detail.ejs
vendored
2
website/views/pages/query-detail.ejs
vendored
|
|
@ -37,7 +37,7 @@
|
|||
<img class="d-inline-flex ml-3 ml-md-0 mr-md-3" src="/images/os-macos-dark-24x24@2x.png" alt="macOS" v-if="query.platform.includes('darwin')"/>
|
||||
<img class="d-inline-flex ml-3 ml-md-0 mr-md-3" src="/images/os-windows-dark-24x24@2x.png" alt="Windows" v-if="query.platform.includes('windows')"/>
|
||||
<img class="d-inline-flex ml-3 ml-md-0 mr-md-3" src="/images/os-linux-dark-24x24@2x.png" alt="Linux" v-if="query.platform.includes('linux')"/>
|
||||
<img class="d-inline-flex ml-3 ml-md-0 mr-md-3" src="/images/os-chromeos-dark-24x24@2x.png" alt="ChromeOS" v-if="query.platform.includes('chromeos')"/>
|
||||
<img class="d-inline-flex ml-3 ml-md-0 mr-md-3" src="/images/os-chromeos-dark-24x24@2x.png" alt="ChromeOS" v-if="query.platform.includes('chrome')"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
8
website/views/pages/query-library.ejs
vendored
8
website/views/pages/query-library.ejs
vendored
|
|
@ -33,7 +33,7 @@
|
|||
<option value="darwin">macOS</option>
|
||||
<option value="windows">Windows</option>
|
||||
<option value="linux">Linux</option>
|
||||
<option value="chromeos">ChromeOS</option>
|
||||
<option value="chrome">ChromeOS</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -63,7 +63,7 @@
|
|||
<p class="d-inline-flex flex-wrap px-2 mb-0">compatible with</p>
|
||||
<button class="btn btn-secondary btn-sm dropdown-toggle p-0" type="button"
|
||||
id="dropdownMenuSelectPlatform" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
{{selectedPlatform === 'windows' ? 'Windows' : selectedPlatform === 'darwin' ? 'macOS' : selectedPlatform === 'linux' ? 'Linux' : selectedPlatform === 'chromeos' ? 'ChromeOS' : selectedPlatform}}
|
||||
{{selectedPlatform === 'windows' ? 'Windows' : selectedPlatform === 'darwin' ? 'macOS' : selectedPlatform === 'linux' ? 'Linux' : selectedPlatform === 'chrome' ? 'ChromeOS' : selectedPlatform}}
|
||||
</button>
|
||||
<div class="dropdown-menu p-2" aria-labelledby="dropdownMenuSelectPlatform">
|
||||
<button class="dropdown-item" type="button" @click="clickSelectPlatform('all platforms')">all platforms</button>
|
||||
|
|
@ -71,7 +71,7 @@
|
|||
<button class="dropdown-item" type="button"
|
||||
@click="clickSelectPlatform('windows')">Windows</button>
|
||||
<button class="dropdown-item" type="button" @click="clickSelectPlatform('linux')">Linux</button>
|
||||
<button class="dropdown-item" type="button" @click="clickSelectPlatform('chromeos')">ChromeOS</button>
|
||||
<button class="dropdown-item" type="button" @click="clickSelectPlatform('chrome')">ChromeOS</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -132,7 +132,7 @@
|
|||
v-if="query.platform.includes('linux')" />
|
||||
<img class="d-inline-flex mr-1 mr-ms-0 ml-sm-1 ml-md-2 logo"
|
||||
src="/images/os-chromeos-dark-24x24@2x.png" alt="Linux"
|
||||
v-if="query.platform.includes('chromeos')" />
|
||||
v-if="query.platform.includes('chrome')" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in a new issue