feat: report bounded verified access dependency readiness
Assistant: codex Assistant-Model: gpt-6-astra Assistant-Session: 01a0e747-8f27-7242-8df8-8bc44f88c929
This commit is contained in:
parent
7f0dc78607
commit
c0383c9c2b
9 changed files with 294 additions and 17 deletions
|
|
@ -29,7 +29,7 @@ from hub_core.runtime.workload_projection import (
|
|||
WorkloadProjectionService,
|
||||
)
|
||||
from hub_core.runtime.workload_projection_routes import create_workload_projection_router
|
||||
from hub_core.security.boundary import AccessBoundary, AccessController, FactSource
|
||||
from hub_core.security.boundary import AccessBoundary, AccessController, FactSource, ACCESS_DEPENDENCIES
|
||||
from hub_core.security.config import SecuritySettings
|
||||
from hub_core.security.browser import BrowserSettings, BrowserSessions, create_browser_router
|
||||
|
||||
|
|
@ -173,7 +173,10 @@ def create_app(
|
|||
**await workload_projection.readiness_checks(),
|
||||
}
|
||||
if resolved_settings.enforce_access:
|
||||
dependency_checks["access_profile"] = "ok" if access_controller else "unavailable"
|
||||
dependency_checks.update(access_controller.readiness_checks() if access_controller else {
|
||||
**{"access_" + name: "unavailable" for name in ACCESS_DEPENDENCIES},
|
||||
"access_profile": "unavailable",
|
||||
})
|
||||
if callable(getattr(resolved_store, "deliver_outcomes", None)):
|
||||
dependency_checks["outcome_delivery"] = (await resolved_store.outcome_readiness()) if outcome_delivery else "unavailable"
|
||||
ready = resolved_settings.is_ready(resolved_store.backend_name) and all(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue