mirror of
https://github.com/fleetdm/fleet
synced 2026-05-03 03:17:21 +00:00
Closes: https://github.com/fleetdm/confidential/issues/4057 Changes: - Added the contents of the fleet-vulnerability-dashboard repo to ee/vulnerability-dashboard - Added a github workflow to deploy the vulnerability dashboard on Heroku - Added a github workflow to test changes to the vulnerability-dashboard - Updated the website's custom configuration to enable auto-approvals/review requests to files in the ee/vulnerability-dashboard folder
66 lines
2.1 KiB
JavaScript
66 lines
2.1 KiB
JavaScript
/**
|
|
* OperatingSystem.js
|
|
*
|
|
* @description :: A model definition represents a database table/collection.
|
|
* @docs :: https://sailsjs.com/docs/concepts/models-and-orm/models
|
|
*/
|
|
|
|
module.exports = {
|
|
|
|
attributes: {
|
|
|
|
// ╔═╗╦═╗╦╔╦╗╦╔╦╗╦╦ ╦╔═╗╔═╗
|
|
// ╠═╝╠╦╝║║║║║ ║ ║╚╗╔╝║╣ ╚═╗
|
|
// ╩ ╩╚═╩╩ ╩╩ ╩ ╩ ╚╝ ╚═╝╚═╝
|
|
name: {
|
|
type: 'string',
|
|
description: 'The name of the operating system',
|
|
extendedDescription: 'this value is called name_only in the Fleet API',
|
|
required: true,
|
|
},
|
|
|
|
fullName: {
|
|
type: 'string',
|
|
description: 'The name and version of the operating system.',
|
|
extendedDescription: 'this value is called name in the Fleet API',
|
|
unique: true,
|
|
required: true,
|
|
},
|
|
|
|
platform: {
|
|
type: 'string',
|
|
description: 'The platform of this operating system.',
|
|
required: true,
|
|
},
|
|
|
|
versionName: {
|
|
type: 'string',
|
|
extendedDescription: 'this comes from the version in the Fleet API',
|
|
required: true,
|
|
},
|
|
|
|
lastReportedHostCount: {
|
|
type: 'number',
|
|
description: 'The last reported number of hosts using this operating system.',
|
|
required: true,
|
|
},
|
|
|
|
isCompliant: {
|
|
type: 'boolean',
|
|
description: 'Wheter this operating system version has been explicitly set as compliant',
|
|
defaultsTo: false,
|
|
},
|
|
|
|
// ╔═╗╔╦╗╔╗ ╔═╗╔╦╗╔═╗
|
|
// ║╣ ║║║╠╩╗║╣ ║║╚═╗
|
|
// ╚═╝╩ ╩╚═╝╚═╝═╩╝╚═╝
|
|
|
|
|
|
// ╔═╗╔═╗╔═╗╔═╗╔═╗╦╔═╗╔╦╗╦╔═╗╔╗╔╔═╗
|
|
// ╠═╣╚═╗╚═╗║ ║║ ║╠═╣ ║ ║║ ║║║║╚═╗
|
|
// ╩ ╩╚═╝╚═╝╚═╝╚═╝╩╩ ╩ ╩ ╩╚═╝╝╚╝╚═╝
|
|
hosts: { collection: 'Host', via: 'operatingSystem', description: 'All hosts that are currently using this operating system.' },
|
|
},
|
|
|
|
};
|
|
|