How guacsec/guac works
Main Components Identification
a) Input Layer:
• Document Collectors (files, GCS, S3, OCI, GitHub)
• Supported Input Formats (CycloneDX, SPDX, SLSA, OpenVEX, etc.)
• Collection Subsystem (pkg/collectsub)
b) Processing Layer:
• Document Processors (pkg/handler/processor)
• Ingestor Component (pkg/ingestor)
• Parser System (pkg/ingestor/parser)
• Verification System (pkg/ingestor/verifier)
c) Storage Layer:
• Multiple Backend Support
• Key-value stores (Redis, TiKV)
• Graph databases (Neo4j, ArangoDB)
• SQL databases (PostgreSQL with Ent)
• Assembler Component (pkg/assembler)
d) API Layer:
• GraphQL API (pkg/assembler/graphql)
• REST API (pkg/guacrest)
• Client Libraries
Component Details
For each major component, include:
• Component name
• Primary function
• Supported formats/protocols
• Key interfaces
[External Sources] → [Collectors] → [Document Processors]
• ↓ ↓ ↓
[File Systems] [Format Detection] [Parser System]
[Ingestor] → [Parser] → [Verifier]
• ↓ ↓ ↓
[Document Processing Pipeline]
[Assembler] → [Backend Abstraction Layer]
• ↓ ↓
[GraphQL/REST] → [Multiple Backends]
Additional Elements
Include:
• Version information
• Backend support status indicators
• Key integration points
• Security verification flows
Implementation Notes
• Maintain consistent spacing and alignment
• Clear labels and annotations
• Version information
• Document all external dependencies
Remember to indicate the experimental/supported status of different backends and include the security verification points throughout the system.