Syfter
A fork of syfter hardened for multi-team, large-scale SBOM management. Adds authentication, rate limiting, response caching, recursive SBOM extraction, dependency graph parsing, RPM dependency tracking, cross-product tracing, container attestation indexing, and query performance fixes for 20M+ package deployments.
What This Fork Adds
| Capability | Upstream | This Fork |
|---|---|---|
| Authentication | None | API key auth (SHA-256, DB-backed) + OIDC bearer token dual auth |
| Rate limiting | None | Per-key token bucket (60/min queries, 10/min uploads) |
| Response caching | None | In-process cache with auto-invalidation on mutations |
| SBOM import | None | Auto-detect and import SPDX 2.x, CycloneDX 1.x, or syft-json SBOMs |
| Package-list import | None | Import JSON arrays or CSV package lists without a full SBOM |
| Recursive SBOM extraction | None | Flatten nested CycloneDX sub-components and SPDX CONTAINS relationships |
| Dependency graph parsing | None | CycloneDX dependencies and SPDX DEPENDS_ON edges, auto-discovers transitive packages |
| RPM dependency tracking | None | 504M requires/provides relationships, queryable by package or dependency name |
| Cross-product tracing | None | syfter trace follows a package from RHEL repos through UBI base images into layered containers |
| VULCAN analysis | None | CVE impact analysis with container layer deduplication and tracker recommendations |
| Scan tagging | None | Tag scans for grouping by customer, product line, or team |
| CID tag enforcement | None | Require CID- prefixed tags on upload (configurable) |
| Attestation indexing | None | Cosign SLSA provenance and SPDX document attestation metadata |
| Component relationships | None | Product-to-product composition mappings |
| Web dashboard | None | Browser-based SBOM browsing and import |
| Products list | N+1 COUNT queries | LATERAL join -- 16s to 0.4s |
| Package search | Full table scan + sort | Subquery-first with COLLATE "C" index -- 30s timeout to 0.2s |
| Dependency search | N/A | Composite index + PK sort -- < 1s across 504M rows |
| Stats endpoint | 5x COUNT(*) on large tables | Materialized view -- 16s to 97ms |
| Job queue | Async with FK violations | Removed -- direct upload only |
All upstream features (scanning, SBOM enrichment, export, container layer tracking) are preserved.
Current Scale
Tested in production with:
- 20.8 million packages
- 504 million RPM dependency relationships
- 7,557 products (RPM repos + container images + middleware)
- 1,038 cosign attestation records
- All query endpoints < 2 seconds
Install the CLI
macOS
uv tool install "git+https://github.com/north-echo/syfter@develop"
Or with pip:
pip install "git+https://github.com/north-echo/syfter@develop"
Linux
pip install "git+https://github.com/north-echo/syfter@develop"
If you hit PEP 668 restrictions, use pipx or uv:
pipx install "git+https://github.com/north-echo/syfter@develop"
Verify
syfter --version
If syfter is not found, ensure ~/.local/bin is in your PATH:
export PATH="$HOME/.local/bin:$PATH"
Note: If you previously installed the upstream
syfterfromvdanen/syfteror PyPI, uninstall it first (uv tool uninstall syfterorpip uninstall syfter). This fork adds auth, tracing, and dependency commands that the upstream CLI does not have.
Configure
Set two environment variables and you're ready to go:
export SYFTER_SERVER=https://your-server.example.com
export SYFTER_API_KEY=your-api-key
Verify:
syfter stats
CLI Usage
# Search for packages (% is a wildcard)
syfter query -n "openssl%"
syfter query -n "curl%" -p rhel -v 10.0 --json
# List products
syfter products
# List packages in a product
syfter list -p rhel -v 10.0 -t packages
# Trace a package across the product stack (RHEL -> UBI -> layered containers)
syfter trace openssl-libs
# Query RPM dependencies
syfter deps openssl-libs # what requires openssl-libs?
syfter deps --package curl --type requires # what does curl require?
syfter deps openssl-libs -p rhel -v 9.6 # scoped to a product
# Import an SBOM (SPDX, CycloneDX, or syft-json)
syfter import sbom.spdx.json -p myproduct -v 1.0
syfter import sbom.cdx.json -p myproduct -v 1.0 --tag CID-001
# Package version frequency analysis
syfter frequency openssl-libs
# Export SBOMs
syfter export -p rhel -v 10.0 -f spdx-json -o rhel.spdx.json
syfter export -p rhel -v 10.0 -f cyclonedx-json -o rhel.cdx.json
# Scan and upload
syfter scan /path/to/rpms -p rhel -v 10.1
# Component relationships
syfter relationships
# Check CVE exposure
syfter vulns -p ubi9 -v 9.7
# Delete a product
syfter delete -p myproduct -v 1.0
For full command help: syfter --help or syfter <command> --help.
Server Quick Start
# Start the server
SYFTER_AUTH_ENABLED=true \
SYFTER_ADMIN_API_KEY=$(python3 -c "import secrets; print(secrets.token_hex(32))") \
SYFTER_DB_TYPE=postgresql \
SYFTER_PG_HOST=localhost \
SYFTER_PG_PASSWORD=changeme \
python -m uvicorn server.main:app --host 0.0.0.0 --port 8000
# Health check (no auth required)
curl http://localhost:8000/health
# Create a team key
curl -X POST http://localhost:8000/api/v1/admin/keys/ \
-H "X-API-Key: $SYFTER_ADMIN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"team_name": "security"}'
API Endpoints
All endpoints require API key authentication via X-API-Key header except /health.
Query
GET /health-- Health check (no auth)GET /api/v1/query/stats-- Database statistics (cached)GET /api/v1/query/packages?name=<pattern>-- Package search (LIKE patterns)GET /api/v1/query/dependencies?package_name=&dependency_type=-- RPM dependency searchGET /api/v1/query/provenance/{product}/{version}?package_name=-- Cross-product provenanceGET /api/v1/products-- Product listing (paginated, cached)
Container Layers
GET /api/v1/layers/{product}/{version}-- Layer chain for a containerGET /api/v1/layers/{product}/{version}/packages?layer_type=base-- Packages by layerGET /api/v1/layers/{product}/{version}/base-image-- Base image identificationPOST /api/v1/layers/enrich-- Batch layer enrichment
Attestations
GET /api/v1/products/{product}/{version}/attestations-- Cosign attestation metadata
Relationships
GET /api/v1/relationships/-- List component relationshipsPOST /api/v1/relationships/-- Create relationshipDELETE /api/v1/relationships/{id}-- Delete relationship
Admin
POST /api/v1/admin/keys/-- Create API keyGET /api/v1/admin/keys/-- List API keysDELETE /api/v1/admin/keys/{id}-- Revoke API key
VULCAN (CVE Impact Analysis)
POST /api/v1/vulcan/analyze-- Analyze CVE impact across component and layer boundariesGET /api/v1/vulcan/analyses-- List stored analyses (filter by status, CVE, component)GET /api/v1/vulcan/analyses/{id}-- Get analysis with full tracker detailPOST /api/v1/vulcan/analyses/{id}/resolve-- Mark analysis resolvedDELETE /api/v1/vulcan/analyses/{id}-- Delete analysis
Tags
GET /api/v1/tags-- List all tags with scan countsDELETE /api/v1/tags/{id}-- Delete a tagGET /api/v1/scans/{id}/tags-- List tags on a scanPOST /api/v1/scans/{id}/tags-- Add tags to a scanDELETE /api/v1/scans/{id}/tags/{tag_name}-- Remove a tag
Upload
POST /api/v1/scans/upload-- Upload scan results (multipart, supportsdependencies_json,image_layers_json,attestation_json,tags)POST /api/v1/scans/import-- Import SBOM in any supported format (SPDX 2.x, CycloneDX 1.x, syft-json)POST /api/v1/scans/import-packages-- Import a plain package list (JSON array or CSV)
Configuration
All settings via environment variables (same as upstream, plus these):
| Variable | Default | Description |
|---|---|---|
SYFTER_AUTH_ENABLED |
true |
Enable API key authentication |
SYFTER_ADMIN_API_KEY |
-- | Seed key for initial admin access |
SYFTER_AUTH_CACHE_TTL |
60 |
Auth validation cache TTL (seconds) |
SYFTER_RATE_LIMIT_ENABLED |
true |
Enable per-key rate limiting |
SYFTER_RATE_LIMIT_QUERY |
60 |
Query requests per minute per key |
SYFTER_RATE_LIMIT_QUERY_BURST |
20 |
Query burst allowance |
SYFTER_RATE_LIMIT_UPLOAD |
10 |
Upload requests per minute per key |
SYFTER_RATE_LIMIT_UPLOAD_BURST |
5 |
Upload burst allowance |
SYFTER_CACHE_STATS_TTL |
300 |
Stats cache TTL (seconds) |
SYFTER_CACHE_PRODUCTS_TTL |
300 |
Products cache TTL (seconds) |
SYFTER_OIDC_ISSUER_URL |
-- | OIDC issuer URL for bearer token auth (e.g. Keycloak realm) |
SYFTER_OIDC_CLIENT_ID |
syfter-api |
OIDC client ID for token validation |
SYFTER_REQUIRE_CID_TAG |
false |
Require at least one CID- prefixed tag on upload |
SYFTER_SKIP_FILE_INDEX_THRESHOLD |
100000 |
Auto-skip file indexing above this package count |
Set SYFTER_AUTH_ENABLED=false for local development without keys.
Database Indexes
For large-scale deployments (1M+ packages), these indexes are critical:
-- LIKE prefix queries + ORDER BY (the COLLATE "C" is essential)
CREATE INDEX idx_package_name_c ON packages (name COLLATE "C");
-- LIKE via text_pattern_ops (used by the index scan filter)
CREATE INDEX idx_package_name_pattern ON packages (name text_pattern_ops);
-- Foreign key lookups for product-scoped counts
CREATE INDEX idx_packages_product_id ON packages (product_id);
CREATE INDEX idx_scan_product ON scans (product_id);
-- Dependency queries (package-scoped + type filter)
CREATE INDEX idx_dep_package_type ON dependencies (package_id, dependency_type);
Deployment
This fork is designed for OpenShift/Kubernetes. The container image is built from podman/Containerfile.
A typical deployment includes:
- Syfter API (Deployment with oauth2-proxy sidecar for browser OIDC)
- PostgreSQL (StatefulSet)
- Keycloak (OIDC provider for browser access)
- AWS S3 via IRSA (SBOM object storage)
Upstream PRs
| PR | Description | Status |
|---|---|---|
| #3 | Remote URL scanning | Merged |
| #4 | Server-side remote scanning | Merged |
| #5 | Gzip validation fix | Merged |
| #6 | Jobs FK cleanup on scan replacement | Merged |
| #7 | API key auth support in CLI | Merged |
| #8 | Package version filter for queries | Merged |
| #9 | CLI restructure, trace command, dependency tracking, OOM fix | Merged |
| #17 | Dependency query PK sort fix | Closed |
| #18 | README update and dependency query fix | Merged |
| #22 | Develop branch install instructions | Merged |
| #23 | Scanning infrastructure, SBOM import, frequency endpoint | Open |
| #24 | Enterprise features: tags, VULCAN, dashboard, layers, auth | Merged |
| #25 | Fix 9 CVEs in starlette and python-multipart | Open |
| #26 | Tag support for SBOM import endpoint and CLI | Open |
| #27 | Tags in import endpoint and package query response | Open |
License
Apache License 2.0 -- same as upstream syfter.
Credits
Based on syfter by Vincent Danen.
Metadata
Release files for syfter 0.9.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| syfter-0.9.2.0.tar.gz | 130.6 kB | Without provenance | Details for syfter-0.9.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| syfter-0.9.2.0-py3-none-any.whl | Python 3 | none | any | Details for syfter-0.9.2.0-py3-none-any.whl |
Total release size: 259.3 kB
Release files / syfter-0.9.2.0.tar.gz
| Download URL | syfter-0.9.2.0.tar.gz |
|---|---|
| Size | 130.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
45a5e8062edb86a9651a49d27fa945cac708a981eaef31df87533f13100ed34c
|
|
BLAKE2b-256 checksum How to use checksums |
9d29155d2dfeb3bde033946252d561731d9051fd982a31555b46b4eded725ffa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / syfter-0.9.2.0-py3-none-any.whl
| Download URL | syfter-0.9.2.0-py3-none-any.whl |
|---|---|
| Size | 128.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
58bc16dc8e0c0dddd45da31018578927d64616fca9ca34ce86e16f38ee3b1f38
|
|
BLAKE2b-256 checksum How to use checksums |
f72a2cd3e30be37c1506d90fc0f4a3bd13baed8e2c5312c6a526f1846bd6e8e6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for syfter 0.9.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.