Skip to main content

profile_validate

Function profile_validate 

Source
pub async fn profile_validate(
    profile_id: ProfileId,
    store: State<'_, ProfileStoreHandle>,
    keychain: State<'_, KeychainHandle>,
    pool: State<'_, S3ClientPoolHandle>,
) -> Result<ValidationReport, AppError>
Expand description

Validate a profile by running the appropriate probe.

  • AWS profiles (no endpoint_url): sts:GetCallerIdentity.
  • Compat providers (has endpoint_url): s3:ListBuckets.

On success, persists validated_at via ProfileStore::mark_validated. Returns the full ValidationReport regardless of success/failure.