Files
pruefwerk/compliance-agent/src/api/handlers/mod.rs
T
Sharang ParnerkarandClaude Opus 5.5 5ec891fa28
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Agent integration (pull_request) Successful in 5m16s
CI / Check (pull_request) Successful in 22m0s
feat(supplier): the portal invites a supplier for one component (#1027)
Phase 3 of the supplier SBOM epic: the platform API the portal calls with its
service token to invite a supplier, list the tenant's invites and withdraw one.

- An invite is kept in the tenant's own database (`supplier_invites`), so the
  tenant export and erasure cover it, the supplier's address included. The
  portal owns the secret link and the mail and keys its link by the invite id.
- Only a supplier component (a target with `supplier`) can be invited for;
  any other answers 422, an unknown target or tenant 404, and a lookup in an
  unknown tenant creates no database.
- An invite is valid for 90 days and its state is `active`, `expired` or
  `withdrawn`; a second withdrawal keeps the first.
- Deleting a target deletes its invites.
- The portal's target list names each supplier component's `supplier`.

The upload through an invite follows in its own PR.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9
2026-11-18 11:35:50 +01:00

49 lines
968 B
Rust

pub mod admin;
pub mod chat;
pub mod cve_history;
pub mod cve_matrix;
pub mod dast;
pub mod demo_seed;
pub mod dto;
pub mod evidence;
pub mod finding_breakdown;
pub mod finding_groups;
pub mod findings;
pub mod git_source;
pub mod graph;
pub mod health;
pub mod help_chat;
pub mod inbox;
pub mod issues;
pub mod licenses;
pub mod machine;
pub mod manual_findings;
pub mod mcp_servers;
pub mod mcp_tokens;
pub mod metering;
pub mod notifications;
pub mod onboarding;
pub mod oscal;
pub mod pentest_handlers;
pub mod platform;
pub mod projects;
pub use pentest_handlers as pentest;
pub mod sbom;
pub mod sbom_ecosystems;
pub mod scan_changes;
pub mod scans;
pub mod supplier;
pub mod supplier_invites;
pub mod support;
pub mod target_input;
pub mod vex;
pub mod werkbank_jobs;
// Re-export all handler functions so routes.rs can use `handlers::function_name`
pub use dto::*;
pub use findings::*;
pub use health::*;
pub use issues::*;
pub use sbom::*;
pub use scans::*;