readiness follows a cached store check instead of a constant or a login per probe
This commit is contained in:
parent
2eacb83b21
commit
b0239914b8
1 changed files with 369 additions and 40 deletions
|
|
@ -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.
|
||||
///
|
||||
|
|
|
|||
Loading…
Reference in a new issue