fail startup when the quick connect store is unreachable
ci/woodpecker/push/ci Pipeline failed
ci/woodpecker/pr/ci Pipeline failed

Read the configured quick connect store during InitializeServices and abort
startup, with a log line naming valkey, instead of coming up and failing on
the first request that needs the store.
This commit is contained in:
2026-09-26 19:09:24 +10:00
parent 2a09108d4f
commit a99ca458bf
4 changed files with 299 additions and 5 deletions
@@ -21,8 +21,9 @@ public static class QuickConnectStoreServiceCollectionExtensions
/// <remarks>
/// The connection string is only set for a multi-instance deployment, which is the only shape where
/// the initiate, authorize and exchange legs of one flow can land on different instances. Set but
/// unreachable is a misconfigured deployment rather than a single-instance one, so it fails rather
/// than quietly handing out a store the other instances cannot see.
/// unreachable is a misconfigured deployment rather than a single-instance one, so the store is read
/// once during startup and an unreachable one stops the server coming up, rather than quietly handing
/// out a store the other instances cannot see.
/// </remarks>
/// <param name="serviceCollection">The service collection.</param>
/// <param name="configuration">The configuration to read the Redis connection string from.</param>