pub async fn validate_profile(
profile: &Profile,
secret: Option<&Secret>,
_pool: &Arc<ClientPool>,
) -> 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.
The pool parameter is accepted for API symmetry and future use; the
compat path constructs a fresh client to avoid registering a transient
profile into the shared pool.
Always returns Ok(report). SDK-level probe failures are captured inside
the ValidationReport as ok = false + error. The Err path is
reserved for future catastrophic conditions (e.g. missing required config).