get_configurations_with_analysis

Function get_configurations_with_analysis 

Source
pub async fn get_configurations_with_analysis(
    infra: &InfraContext<'_>,
    token: &str,
    params: &GetConfigurationParams,
) -> Result<Vec<ConfigurationAnalysis>, Error>
Expand description

Like get_configurations but pairs every row with a safe_to_delete verdict by fetching CFS components and running the pure crate::service::analysis::build_configuration_analysis linker.

The verdict is CFS-components-only: a configuration is unsafe if any CFS component lists it as its desired_config. The endpoint does not check whether any BSS-referenced image was built from the configuration; skipping the BSS and IMS fetches keeps this listing fast and avoids the upstream-proxy resets that fanning out four heavy fetches has been prone to.