Watch
0
0
Fork
You've already forked hyperhive
0

readiness follows a cached store check instead of a constant or a login per probe

This commit is contained in:
maia 2026-11-19 06:07:18 +01:00 • committed by mara
commit b0239914b8

View file

@ -53,6 +53,23 @@ impl Store {
}
impl Store {
/// Logs in and reads nothing: whether the store is reachable and accepts
/// this verifier's certificate.
///
/// # Errors
///
/// When the login fails.
pub async fn check_login(&self) -> anyhow::Result<()> {
swarm_secret_client::SecretStore::connect(
&self.settings,
&self.cert_role,
DEFAULT_CERT_MOUNT,
)
.await
.context("logging in to the secret store")?;
Ok(())
}
/// The object at `path`, `None` when nothing is stored there. Logs in per
/// read, so no token is left to expire inside a long-lived process.
///