core/

directory
v0.1.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2026 License: Apache-2.0

Directories

Path Synopsis
api
Package api holds the server side generated from api/openapi.json.
Package api holds the server side generated from api/openapi.json.
apigen command
Command apigen prepares api/openapi.json for ogen and writes the role table.
Command apigen prepares api/openapi.json for ogen and writes the role table.
apijson
Package apijson turns a module's own value into a generated API type through its JSON form, the one way handlers that keep their own structs answer: the generated decoder rejects anything that does not fit the OpenAPI schema, so a drift fails loudly.
Package apijson turns a module's own value into a generated API type through its JSON form, the one way handlers that keep their own structs answer: the generated decoder rejects anything that does not fit the OpenAPI schema, so a drift fails loudly.
oas
routes
Package routes maps every operationId of the contract to its method, path, minimum role and module.
Package routes maps every operationId of the contract to its method, path, minimum role and module.
Package apierr is the one way to build an API error (docs/API_CONVENTIONS.md section 3.1).
Package apierr is the one way to build an API error (docs/API_CONVENTIONS.md section 3.1).
Package apkver reads and orders Alpine package releases: apk's version format, "10.2_p1-r1" = upstream 10.2p1 (the _p1 suffix), Alpine's package revision 1.
Package apkver reads and orders Alpine package releases: apk's version format, "10.2_p1-r1" = upstream 10.2p1 (the _p1 suffix), Alpine's package revision 1.
Package audit appends to and verifies core_audit, the hash-chained audit log (docs/DATA_MODEL.md section 5.3, core CONTRACT INV-2, POST-3).
Package audit appends to and verifies core_audit, the hash-chained audit log (docs/DATA_MODEL.md section 5.3, core CONTRACT INV-2, POST-3).
Package auth is the sign-in library of the core module: argon2id passwords, cookie sessions with CSRF tokens (implementing server.Authenticator), TOTP and email two-step codes, the login rate limit, the Login flow of core INV-8 and the user and two-step rules of INV-7.
Package auth is the sign-in library of the core module: argon2id passwords, cookie sessions with CSRF tokens (implementing server.Authenticator), TOTP and email two-step codes, the login rate limit, the Login flow of core INV-8 and the user and two-step rules of INV-7.
authtest
Package authtest builds a ready auth.Service for tests: a migrated SQLite database, a fake clock, a fake code mailer and cheap argon2 parameters.
Package authtest builds a ready auth.Service for tests: a migrated SQLite database, a fake clock, a fake code mailer and cheap argon2 parameters.
Package chain implements the tamper-evident hash chains shared by core_audit, ai_activity and resp_log.
Package chain implements the tamper-evident hash chains shared by core_audit, ai_activity and resp_log.
chainhead
Package chainhead reads and moves the recorded head of a hash chain (core_chain_head, issue #17).
Package chainhead reads and moves the recorded head of a hash chain (core_chain_head, issue #17).
Package conn is the store of connections to devices and services: HTTP APIs, SSH, RESTCONF, automation platforms and MCP servers that response actions and, later, the AI reach.
Package conn is the store of connections to devices and services: HTTP APIs, SSH, RESTCONF, automation platforms and MCP servers that response actions and, later, the AI reach.
cliban
Package cliban is the list of command lines that a step which must only read may not hold, and that no template may hold at all (the list is data, cli-ban.json, never Go literals).
Package cliban is the list of command lines that a step which must only read may not hold, and that no template may hold at all (the list is data, cli-ban.json, never Go literals).
conntest
Package conntest holds the fakes that the tests of core/conn, modules/core and cmd/vedette connect to: an HTTPS server, an SSH server and an MCP server, in process, on 127.0.0.1.
Package conntest holds the fakes that the tests of core/conn, modules/core and cmd/vedette connect to: an HTTPS server, an SSH server and an MCP server, in process, on 127.0.0.1.
internal/cred
Package cred is the one place that names the secret purpose of a connection credential, seals it and decrypts it.
Package cred is the one place that names the secret purpose of a connection credential, seals it and decrypts it.
internal/transport
Package transport opens the connections of core/conn to devices and services: HTTPS, SSH and MCP over streamable HTTP.
Package transport opens the connections of core/conn to devices and services: HTTPS, SSH and MCP over streamable HTTP.
read
Package read is the only way the AI reaches a device through a connection (core INV-23, ai INV-14): the read tools of a connection, listed and called.
Package read is the only way the AI reaches a device through a connection (core INV-23, ai INV-14): the read tools of a connection, listed and called.
write
Package write is the only path by which Vedette changes a device through a connection (response FORBID-1): one step of an approved response action, sent over the transport of the connection's kind.
Package write is the only path by which Vedette changes a device through a connection (response FORBID-1): one step of an approved response action, sent over the transport of the connection's kind.
Package debver compares Debian package versions ("1:9.6p1-3ubuntu13.5") the way dpkg does: Debian Policy §5.6.12, https://www.debian.org/doc/debian-policy/ch-controlfields.html#version .
Package debver compares Debian package versions ("1:9.6p1-3ubuntu13.5") the way dpkg does: Debian Policy §5.6.12, https://www.debian.org/doc/debian-policy/ch-controlfields.html#version .
Package domainfence is the executors' half of the domain fence: the check the scan container's worker (nmap, nuclei) and vedette-host (ZAP, OpenVAS) make on their own, right before a tool starts on a public address that is not the box's own egress, because a name under a verified domain resolves to it.
Package domainfence is the executors' half of the domain fence: the check the scan container's worker (nmap, nuclei) and vedette-host (ZAP, OpenVAS) make on their own, right before a tool starts on a public address that is not the box's own egress, because a name under a verified domain resolves to it.
proofat
Package proofat is the one bound of where a domain's ownership record may sit: on the domain itself or on a parent name of it down to its registered domain, the name one label below the longest public suffix of the Public Suffix List with both its sections (ICANN's com and co.uk, and the private ddns.net, github.io, s3.amazonaws.com).
Package proofat is the one bound of where a domain's ownership record may sit: on the domain itself or on a parent name of it down to its registered domain, the name one label below the longest public suffix of the Public Suffix List with both its sections (ICANN's com and co.uk, and the private ddns.net, github.io, s3.amazonaws.com).
Package egressip asks three public "what is my IP" services which address the box leaves the Internet through, and says which IPv4 addresses are public.
Package egressip asks three public "what is my IP" services which address the box leaves the Internet through, and says which IPv4 addresses are public.
Package events is the in-process event bus modules use to tell each other that something happened (feeds.source.fetched, findings.finding.created, core.module.enabled, ...).
Package events is the in-process event bus modules use to tell each other that something happened (feeds.source.fetched, findings.finding.created, core.module.enabled, ...).
Package exec is the only place Vedette starts external processes (SYS-1, core PRE-4/POST-4).
Package exec is the only place Vedette starts external processes (SYS-1, core PRE-4/POST-4).
exectest
Package exectest helps tests that run fake programs (a fake nmap, apt, systemctl…) through core/exec.
Package exectest helps tests that run fake programs (a fake nmap, apt, systemctl…) through core/exec.
Package jobs is the in-process job scheduler (docs/ARCHITECTURE.md section 4, core IMPACT "jobs").
Package jobs is the in-process job scheduler (docs/ARCHITECTURE.md section 4, core IMPACT "jobs").
Package lifecycle keeps what other modules hold about a device consistent with the inventory, in the inventory's own write transaction.
Package lifecycle keeps what other modules hold about a device consistent with the inventory, in the inventory's own write transaction.
Package localnet says which IPv4 addresses can belong to a customer's own network, the networks Vedette may watch and scan (setup, Settings › Scanning › Safety, nmap and nuclei targets, the LAN device of a logged connection): the private ranges of RFC 1918 (10/8, 172.16/12, 192.168/16) and the shared address space of RFC 6598 (100.64.0.0/10: carrier-grade NAT inside an ISP or a company network, Tailscale).
Package localnet says which IPv4 addresses can belong to a customer's own network, the networks Vedette may watch and scan (setup, Settings › Scanning › Safety, nmap and nuclei targets, the LAN device of a logged connection): the private ranges of RFC 1918 (10/8, 172.16/12, 192.168/16) and the shared address space of RFC 6598 (100.64.0.0/10: carrier-grade NAT inside an ISP or a company network, Tailscale).
Package logexport builds the file of GET /core/logs/export (S-CORE-6, core INV-13): the log categories of the box in one JSON or CSV download.
Package logexport builds the file of GET /core/logs/export (S-CORE-6, core INV-13): the log categories of the box in one JSON or CSV download.
Package modreg is the module registry: which modules exist (MANIFEST.yaml), which are on (core_module), and the rules for turning them on and off (core CONTRACT INV-1, INV-3, INV-4).
Package modreg is the module registry: which modules exist (MANIFEST.yaml), which are on (core_module), and the rules for turning them on and off (core CONTRACT INV-1, INV-3, INV-4).
Package netguard holds the address facts every outbound guard of Vedette shares (a webhook, a feed, a SIEM forward, an AI provider): the cloud instance-metadata endpoints that are not link-local, the metadata service's names, and the IPv4 address an IPv6 transition form carries (NAT64, 6to4, IPv4-compatible), so that a guard judges both.
Package netguard holds the address facts every outbound guard of Vedette shares (a webhook, a feed, a SIEM forward, an AI provider): the cloud instance-metadata endpoints that are not link-local, the metadata service's names, and the IPv4 address an IPv6 transition form carries (NAT64, 6to4, IPv4-compatible), so that a guard judges both.
Package observe is the narrow interface through which sensors and agents (sensor-passive, sensor-active, agent-intake, scan) report what they saw about devices to the inventory without importing it (modules talk through interfaces in core/).
Package observe is the narrow interface through which sensors and agents (sensor-passive, sensor-active, agent-intake, scan) report what they saw about devices to the inventory without importing it (modules talk through interfaces in core/).
Package orgtime writes times for people: every date and time a page, an alert, an email or an AI fact shows is in the organization's time zone (Settings › General), the zone the web uses too, so one moment reads as the same day everywhere.
Package orgtime writes times for people: every date and time a page, an alert, an email or an AI fact shows is in the organization's time zone (Settings › General), the zone the web uses too, so one moment reads as the same day everywhere.
Package pdftext reads the text of a PDF in a child process with limits (issue #324).
Package pdftext reads the text of a PDF in a child process with limits (issue #324).
pdftexttest
Package pdftexttest lets the tests of any package that calls pdftext.PDFText (the AI knowledge base, say) run a real PDF child.
Package pdftexttest lets the tests of any package that calls pdftext.PDFText (the AI knowledge base, say) run a real PDF child.
pdftexttest/child command
Command child is the PDF reader child for tests (pdftexttest.BuildChild builds it without the race detector, which reserves more address space than RLIMIT_AS allows).
Command child is the PDF reader child for tests (pdftexttest.BuildChild builds it without the race detector, which reserves more address space than RLIMIT_AS allows).
Package pkgrel says whether two readings of a software's release are the same release written with more or less detail: a scan banner's "10.2", an upstream "10.2p1", Alpine's "10.2_p1-r1", Debian's "1:10.2p1-2ubuntu3.8", RPM's "8.7p1-38.el9".
Package pkgrel says whether two readings of a software's release are the same release written with more or less detail: a scan banner's "10.2", an upstream "10.2p1", Alpine's "10.2_p1-r1", Debian's "1:10.2p1-2ubuntu3.8", RPM's "8.7p1-38.el9".
Package pki is the small certificate authority core runs for its own sensors: an ECDSA P-256 CA, the server leaf of the sensor listener, the 7-day client leaves of the two sensor roles, the table of live serials, renewal at a third of the lifetime left, and the writer that hands a role its bundle through a volume.
Package pki is the small certificate authority core runs for its own sensors: an ECDSA P-256 CA, the server leaf of the sensor listener, the 7-day client leaves of the two sensor roles, the table of live serials, renewal at a third of the lifetime left, and the writer that hands a role its bundle through a volume.
Package productid is the one product identity of Vedette.
Package productid is the one product identity of Vedette.
Package progress is the one shape of "how far is it" for the long jobs a customer waits on (#830): a scan of a device, the scan of a public IP, its OpenVAS step.
Package progress is the one shape of "how far is it" for the long jobs a customer waits on (#830): a scan of a device, the scan of a public IP, its OpenVAS step.
Package run is the one model of every piece of scanning work a person can see: a LAN sweep, a device check, an SNMP read, the vulnerability checks, an exposure scan and its engine steps.
Package run is the one model of every piece of scanning work a person can see: a LAN sweep, a device check, an SNMP read, the vulnerability checks, an exposure scan and its engine steps.
Package schedule is the one model of every schedule a person can set: an exposure target's scans, the vulnerability checks, the LAN sweep, a report, a feed source's refresh, public IP detection, the Wazuh pull.
Package schedule is the one model of every schedule a person can set: an exposure target's scans, the vulnerability checks, the LAN sweep, a report, a feed source's refresh, public IP detection, the Wazuh pull.
Package secrets stores secrets that Vedette must read back (API keys, SMTP passwords, TOTP keys, ...) encrypted with AES-256-GCM in core_secret (docs/DATA_MODEL.md section 5.4).
Package secrets stores secrets that Vedette must read back (API keys, SMTP passwords, TOTP keys, ...) encrypted with AES-256-GCM in core_secret (docs/DATA_MODEL.md section 5.4).
Package selfcheck is the registry of data invariants and the runner behind `vedette selfcheck`.
Package selfcheck is the registry of data invariants and the runner behind `vedette selfcheck`.
Package sensorlink is the wire between core and the sensor containers (docs/specs/sensor-protocol.md): an HTTPS and JSON server for core's second listener (:8444) and the client vedette-sensor uses.
Package sensorlink is the wire between core and the sensor containers (docs/specs/sensor-protocol.md): an HTTPS and JSON server for core's second listener (:8444) and the client vedette-sensor uses.
linktest
Package linktest runs the sensor link the way production does, for tests of the modules on either end: a real core/pki authority with an ephemeral CA, a sensorlink.Server over TLS 1.3 with mutual authentication (httptest), and credentials bundles written to disk for each role so a real sensorlink.Client connects.
Package linktest runs the sensor link the way production does, for tests of the modules on either end: a real core/pki authority with an ephemeral CA, a sensorlink.Server over TLS 1.3 with mutual authentication (httptest), and credentials bundles written to disk for each role so a real sensorlink.Client connects.
Package server builds the http.Handler of /api/v1: panic recovery, request id, security headers, Origin check, body cap, then the route table of the contract drives module gating, authentication, role checks and CSRF before the request reaches the generated ogen server.
Package server builds the http.Handler of /api/v1: panic recovery, request id, security headers, Origin check, body cap, then the route table of the contract drives module gating, authentication, role checks and CSRF before the request reaches the generated ogen server.
servertest
Package servertest holds fakes for tests of code behind core/server: an Authenticator that needs no database and a module gate backed by a map.
Package servertest holds fakes for tests of code behind core/server: an Authenticator that needs no database and a module gate backed by a map.
Package store opens the SQLite database (WAL, one writer plus a reader pool), runs module migrations and provides the transaction helper every write goes through (docs/DATA_MODEL.md section 6 and 7).
Package store opens the SQLite database (WAL, one writer plus a reader pool), runs module migrations and provides the transaction helper every write goes through (docs/DATA_MODEL.md section 6 and 7).
storetest
Package storetest holds helpers for module tests: a real SQLite database in a temp dir and the migration rules of docs/DATA_MODEL.md section 6.
Package storetest holds helpers for module tests: a real SQLite database in a temp dir and the migration rules of docs/DATA_MODEL.md section 6.
Package versionscheme reads the notations vendors write their releases in, and compares two versions only where the notation says they can be compared.
Package versionscheme reads the notations vendors write their releases in, and compares two versions only where the notation says they can be compared.
Package winrel is the table of Windows 10, 11 and Server (2016 and later) releases: the build a machine reports ("10.0.22631"), the name NVD's configurations give the release ("windows_11_23h2", with ranges that end at the patched build, "< 10.0.22631.5189"), its general availability and the releases that take the same monthly update.
Package winrel is the table of Windows 10, 11 and Server (2016 and later) releases: the build a machine reports ("10.0.22631"), the name NVD's configurations give the release ("windows_11_23h2", with ranges that end at the patched build, "< 10.0.22631.5189"), its general availability and the releases that take the same monthly update.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL