governance.LIVE_STATUSconstno test imports itconst LIVE_STATUS: RelationThe relation that says, for each machine and table asked, whether it answered.
The tables of osquery that a question over the live fleet may name, as data: each is an allow-list of the columns that may be read, so that the text sent to a machine is made here from these names and never from what a person wrote. A table is added by a change to this list and a review. What can hold a secret (a command line, an environment) is not here; what makes a request or writes a file is not here either.
import { OSQUERY_TABLES, osqueryRelation } from "./osquery.ts";
osqueryRelation("processes")?.name; // "osquery_processes"governance.LIVE_STATUSconstno test imports itconst LIVE_STATUS: RelationThe relation that says, for each machine and table asked, whether it answered.
governance.OSQUERY_PREFIXconstno test imports itconst OSQUERY_PREFIX: "osquery_"The prefix of the relation of an osquery table.
governance.OSQUERY_TABLESconstno test imports itconst OSQUERY_TABLES: readonly OsqueryTable[]Every table that may be read, in the order query tables lists them.
governance.osqueryRelationfunctionno test imports itfunction osqueryRelation(table: string): Relation | undefinedThe relation of a table, with the columns that say which machine and when added in front, as a question sees it.
governance.osquerySelectfunctionno test imports itfunction osquerySelect(table: string, limit: number): string | undefinedThe SELECT sent to a machine for a table: the columns of the list and a limit, made from the list alone.
governance.osqueryTablesNamedfunctionno test imports itfunction osqueryTablesNamed(sql: string): readonly string[]The tables of osquery the question names (a table named osquery_<name> that may be read), in order and once each; a name with the prefix that is not on the list is not one.
governance.OsqueryTabletypeno test imports ittype OsqueryTable = { readonly table: string; readonly summary: string; readonly columns: readonly (readonly [string, ColumnType])[] };A table of osquery that may be read.
LIVE_STATUSconstconst LIVE_STATUS: RelationThe relation that says, for each machine and table asked, whether it answered.
OSQUERY_PREFIXconstno test imports itconst OSQUERY_PREFIX: "osquery_"The prefix of the relation of an osquery table.
OSQUERY_TABLESconstconst OSQUERY_TABLES: readonly OsqueryTable[]Every table that may be read, in the order query tables lists them.
osqueryRelationfunctionfunction osqueryRelation(table: string): Relation | undefinedThe relation of a table, with the columns that say which machine and when added in front, as a question sees it.
osquerySelectfunctionfunction osquerySelect(table: string, limit: number): string | undefinedThe SELECT sent to a machine for a table: the columns of the list and a limit, made from the list alone.
osqueryTablesNamedfunctionfunction osqueryTablesNamed(sql: string): readonly string[]The tables of osquery the question names (a table named osquery_<name> that may be read), in order and once each; a name with the prefix that is not on the list is not one.
OsqueryTabletypeno test imports ittype OsqueryTable = { readonly table: string; readonly summary: string; readonly columns: readonly (readonly [string, ColumnType])[] };A table of osquery that may be read.