Documentation
¶
Overview ¶
Package security will be the security module: indexing, scanning, SBOMs, findings, watches, Catalog and Curation admission.
Role ¶
security module, module root. Only app imports a module root; other modules reach security through security/api (decision 0044, dependency rules).
Inputs ¶
None yet. Planned: the Deps that app passes to New.
Outputs ¶
None yet. Planned: module.go with New(Deps), and the module's Curation gate, which app registers on artifacts (target layout, lines 713-714 and 801-802). The module's layers are its subpackages: api, the seven core packages and the five adapters.
References ¶
- Context map, security row, as https://github.com/weaveplatform/artifactweave/issues/958 records it: owns indexing, scanning, SBOMs, findings, watches, Catalog and Curation admission; phases P26 and P27.
- Target layout: docs/research/architecture-options/5-modular-monolith.md, "Full package tree", lines 85-104 and 358-359.
- Decision 0044: docs/research/decisions/0044-modular-monolith-migration.md, "Placeholders" and "Composition and HTTP".
- Plan: docs/implementation/plan.md#p26-security-scanning-and-intelligence, #p27-advanced-security-and-curation.
Status ¶
Placeholder: implemented by P26, P27.
Directories
¶
| Path | Synopsis |
|---|---|
|
adapters
|
|
|
engine
Package engine will connect the analysis engines that the security module runs.
|
Package engine will connect the analysis engines that the security module runs. |
|
feed
Package feed will read vulnerability and license intelligence feeds.
|
Package feed will read vulnerability and license intelligence feeds. |
|
graphql
Package graphql will serve the security module's GraphQL endpoints.
|
Package graphql will serve the security module's GraphQL endpoints. |
|
http
Package securityhttp will serve the security module's REST endpoints.
|
Package securityhttp will serve the security module's REST endpoints. |
|
sql
Package sql will store the security module's records in the shared database.
|
Package sql will store the security module's records in the shared database. |
|
Package api will be the security module's published interface.
|
Package api will be the security module's published interface. |
|
core
|
|
|
analysis
Package analysis will run vulnerability and license analysis.
|
Package analysis will run vulnerability and license analysis. |
|
catalog
Package catalog will hold Catalog: package metadata with its labels and licenses.
|
Package catalog will hold Catalog: package metadata with its labels and licenses. |
|
curation
Package curation will hold Curation admission policy: which packages may enter through remote repositories, with exceptions and audited decisions.
|
Package curation will hold Curation admission policy: which packages may enter through remote repositories, with exceptions and audited decisions. |
|
graph
Package graph will build dependency and component graphs.
|
Package graph will build dependency and component graphs. |
|
index
Package index will index artifacts, builds and releases for scanning.
|
Package index will index artifacts, builds and releases for scanning. |
|
sbom
Package sbom will import and export software bills of materials.
|
Package sbom will import and export software bills of materials. |
|
watch
Package watch will hold security policies, watches, violations and ignore decisions.
|
Package watch will hold security policies, watches, violations and ignore decisions. |
Click to show internal directories.
Click to hide internal directories.