@fuzdev/fuz_app 0.180.0 → 0.181.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/CLAUDE.md +14 -14
- package/dist/actions/action_rpc.d.ts +14 -5
- package/dist/actions/action_rpc.d.ts.map +1 -1
- package/dist/actions/action_rpc.js +53 -46
- package/dist/actions/action_types.d.ts +15 -12
- package/dist/actions/action_types.d.ts.map +1 -1
- package/dist/actions/perform_action.d.ts +4 -4
- package/dist/actions/perform_action.d.ts.map +1 -1
- package/dist/actions/perform_action.js +6 -6
- package/dist/actions/register_action_ws.d.ts +6 -2
- package/dist/actions/register_action_ws.d.ts.map +1 -1
- package/dist/actions/register_action_ws.js +14 -3
- package/dist/actions/ws_socket_session.js +1 -1
- package/dist/auth/CLAUDE.md +36 -30
- package/dist/auth/account_actions.d.ts.map +1 -1
- package/dist/auth/account_actions.js +18 -1
- package/dist/auth/account_queries.d.ts +69 -0
- package/dist/auth/account_queries.d.ts.map +1 -1
- package/dist/auth/account_queries.js +82 -0
- package/dist/auth/account_route_schema.d.ts +26 -16
- package/dist/auth/account_route_schema.d.ts.map +1 -1
- package/dist/auth/account_route_schema.js +10 -24
- package/dist/auth/account_routes.d.ts +4 -6
- package/dist/auth/account_routes.d.ts.map +1 -1
- package/dist/auth/account_routes.js +86 -66
- package/dist/auth/admin_actions.d.ts.map +1 -1
- package/dist/auth/admin_actions.js +63 -14
- package/dist/auth/api_token_queries.d.ts +16 -7
- package/dist/auth/api_token_queries.d.ts.map +1 -1
- package/dist/auth/api_token_queries.js +18 -18
- package/dist/auth/audit_log_route_schema.d.ts +1 -1
- package/dist/auth/audit_log_route_schema.d.ts.map +1 -1
- package/dist/auth/audit_log_routes.d.ts +1 -1
- package/dist/auth/audit_log_routes.d.ts.map +1 -1
- package/dist/auth/audit_log_routes.js +10 -12
- package/dist/auth/audit_log_schema.js +4 -4
- package/dist/auth/bearer_auth.d.ts +4 -3
- package/dist/auth/bearer_auth.d.ts.map +1 -1
- package/dist/auth/bearer_auth.js +35 -31
- package/dist/auth/bootstrap_account.d.ts +65 -37
- package/dist/auth/bootstrap_account.d.ts.map +1 -1
- package/dist/auth/bootstrap_account.js +115 -66
- package/dist/auth/bootstrap_route_schema.d.ts +6 -2
- package/dist/auth/bootstrap_route_schema.d.ts.map +1 -1
- package/dist/auth/bootstrap_route_schema.js +7 -2
- package/dist/auth/bootstrap_routes.d.ts +50 -33
- package/dist/auth/bootstrap_routes.d.ts.map +1 -1
- package/dist/auth/bootstrap_routes.js +109 -87
- package/dist/auth/bootstrap_token_store.d.ts +60 -0
- package/dist/auth/bootstrap_token_store.d.ts.map +1 -0
- package/dist/auth/bootstrap_token_store.js +39 -0
- package/dist/auth/credential_headers.d.ts +71 -0
- package/dist/auth/credential_headers.d.ts.map +1 -0
- package/dist/auth/credential_headers.js +100 -0
- package/dist/auth/daemon_token.d.ts +13 -1
- package/dist/auth/daemon_token.d.ts.map +1 -1
- package/dist/auth/daemon_token.js +14 -2
- package/dist/auth/daemon_token_middleware.d.ts +10 -11
- package/dist/auth/daemon_token_middleware.d.ts.map +1 -1
- package/dist/auth/daemon_token_middleware.js +27 -29
- package/dist/auth/deps.d.ts +0 -11
- package/dist/auth/deps.d.ts.map +1 -1
- package/dist/auth/invite_queries.d.ts +18 -0
- package/dist/auth/invite_queries.d.ts.map +1 -1
- package/dist/auth/invite_queries.js +24 -0
- package/dist/auth/request_context.d.ts +26 -5
- package/dist/auth/request_context.d.ts.map +1 -1
- package/dist/auth/request_context.js +17 -10
- package/dist/auth/role_grant_offer_action_specs.d.ts +1 -1
- package/dist/auth/role_grant_offer_action_specs.d.ts.map +1 -1
- package/dist/auth/role_grant_offer_action_specs.js +3 -2
- package/dist/auth/role_grant_offer_actions.d.ts.map +1 -1
- package/dist/auth/role_grant_offer_actions.js +37 -14
- package/dist/auth/role_grant_offer_ddl.d.ts +7 -1
- package/dist/auth/role_grant_offer_ddl.d.ts.map +1 -1
- package/dist/auth/role_grant_offer_ddl.js +9 -2
- package/dist/auth/role_grant_offer_queries.d.ts +56 -3
- package/dist/auth/role_grant_offer_queries.d.ts.map +1 -1
- package/dist/auth/role_grant_offer_queries.js +93 -8
- package/dist/auth/role_grant_queries.d.ts +7 -0
- package/dist/auth/role_grant_queries.d.ts.map +1 -1
- package/dist/auth/role_grant_queries.js +8 -0
- package/dist/auth/session_cookie.d.ts +105 -25
- package/dist/auth/session_cookie.d.ts.map +1 -1
- package/dist/auth/session_cookie.js +124 -15
- package/dist/auth/session_middleware.d.ts +83 -54
- package/dist/auth/session_middleware.d.ts.map +1 -1
- package/dist/auth/session_middleware.js +92 -66
- package/dist/auth/session_queries.d.ts +64 -4
- package/dist/auth/session_queries.d.ts.map +1 -1
- package/dist/auth/session_queries.js +53 -4
- package/dist/auth/signup_route_schema.d.ts +5 -5
- package/dist/auth/signup_route_schema.d.ts.map +1 -1
- package/dist/auth/signup_route_schema.js +4 -4
- package/dist/auth/signup_routes.d.ts.map +1 -1
- package/dist/auth/signup_routes.js +17 -14
- package/dist/auth/token_scope.d.ts +5 -7
- package/dist/auth/token_scope.d.ts.map +1 -1
- package/dist/auth/token_scope.js +5 -8
- package/dist/dev/setup.d.ts +6 -1
- package/dist/dev/setup.d.ts.map +1 -1
- package/dist/dev/setup.js +42 -34
- package/dist/hono_context.d.ts +21 -0
- package/dist/hono_context.d.ts.map +1 -1
- package/dist/hono_context.js +17 -0
- package/dist/http/CLAUDE.md +150 -43
- package/dist/http/auth_shape.d.ts +3 -3
- package/dist/http/common_routes.js +1 -1
- package/dist/http/db_routes.d.ts +4 -3
- package/dist/http/db_routes.d.ts.map +1 -1
- package/dist/http/db_routes.js +14 -14
- package/dist/http/dev_route_error_check.d.ts +6 -3
- package/dist/http/dev_route_error_check.d.ts.map +1 -1
- package/dist/http/dev_route_error_check.js +6 -3
- package/dist/http/dev_set_cookie_check.d.ts +53 -0
- package/dist/http/dev_set_cookie_check.d.ts.map +1 -0
- package/dist/http/dev_set_cookie_check.js +80 -0
- package/dist/http/error_schemas.d.ts +36 -1
- package/dist/http/error_schemas.d.ts.map +1 -1
- package/dist/http/error_schemas.js +39 -2
- package/dist/http/header_lines.d.ts +42 -0
- package/dist/http/header_lines.d.ts.map +1 -0
- package/dist/http/header_lines.js +80 -0
- package/dist/http/host.d.ts +12 -9
- package/dist/http/host.d.ts.map +1 -1
- package/dist/http/host.js +25 -20
- package/dist/http/origin.d.ts +7 -22
- package/dist/http/origin.d.ts.map +1 -1
- package/dist/http/origin.js +11 -25
- package/dist/http/proxy.d.ts +1 -0
- package/dist/http/proxy.d.ts.map +1 -1
- package/dist/http/proxy.js +3 -0
- package/dist/http/request_headers.d.ts +95 -0
- package/dist/http/request_headers.d.ts.map +1 -0
- package/dist/http/request_headers.js +110 -0
- package/dist/http/request_target.d.ts +134 -0
- package/dist/http/request_target.d.ts.map +1 -0
- package/dist/http/request_target.js +193 -0
- package/dist/http/route_error_check.d.ts +4 -11
- package/dist/http/route_error_check.d.ts.map +1 -1
- package/dist/http/route_error_check.js +4 -21
- package/dist/http/route_result.d.ts +127 -23
- package/dist/http/route_result.d.ts.map +1 -1
- package/dist/http/route_result.js +97 -19
- package/dist/http/route_spec.d.ts +298 -82
- package/dist/http/route_spec.d.ts.map +1 -1
- package/dist/http/route_spec.js +548 -71
- package/dist/http/simple_request.d.ts +19 -14
- package/dist/http/simple_request.d.ts.map +1 -1
- package/dist/http/simple_request.js +17 -29
- package/dist/http/surface.d.ts +2 -0
- package/dist/http/surface.d.ts.map +1 -1
- package/dist/http/surface.js +4 -1
- package/dist/realtime/outbound_budget.d.ts +1 -2
- package/dist/realtime/outbound_budget.d.ts.map +1 -1
- package/dist/realtime/outbound_budget.js +1 -2
- package/dist/realtime/sse.d.ts +47 -17
- package/dist/realtime/sse.d.ts.map +1 -1
- package/dist/realtime/sse.js +115 -93
- package/dist/realtime/sse_constants.d.ts +7 -1
- package/dist/realtime/sse_constants.d.ts.map +1 -1
- package/dist/realtime/sse_constants.js +12 -1
- package/dist/realtime/sse_registry.d.ts +3 -3
- package/dist/realtime/sse_registry.js +3 -3
- package/dist/runtime/deps.d.ts +20 -4
- package/dist/runtime/deps.d.ts.map +1 -1
- package/dist/runtime/mock.d.ts +7 -1
- package/dist/runtime/mock.d.ts.map +1 -1
- package/dist/runtime/mock.js +33 -3
- package/dist/runtime/node.d.ts.map +1 -1
- package/dist/runtime/node.js +2 -1
- package/dist/runtime/secure_file.d.ts +71 -10
- package/dist/runtime/secure_file.d.ts.map +1 -1
- package/dist/runtime/secure_file.js +91 -11
- package/dist/server/app_backend.d.ts +0 -8
- package/dist/server/app_backend.d.ts.map +1 -1
- package/dist/server/app_backend.js +1 -3
- package/dist/server/app_server.d.ts +28 -17
- package/dist/server/app_server.d.ts.map +1 -1
- package/dist/server/app_server.js +52 -34
- package/dist/server/serve_fact_route.d.ts.map +1 -1
- package/dist/server/serve_fact_route.js +49 -45
- package/dist/server/static.d.ts +20 -0
- package/dist/server/static.d.ts.map +1 -1
- package/dist/server/static.js +56 -8
- package/dist/server/unmatched_route.d.ts +42 -0
- package/dist/server/unmatched_route.d.ts.map +1 -0
- package/dist/server/unmatched_route.js +64 -0
- package/dist/testing/CLAUDE.md +404 -1200
- package/dist/testing/app_server.d.ts +3 -1
- package/dist/testing/app_server.d.ts.map +1 -1
- package/dist/testing/app_server.js +4 -10
- package/dist/testing/auth_apps.d.ts.map +1 -1
- package/dist/testing/auth_apps.js +2 -1
- package/dist/testing/cross_backend/account_lifecycle.d.ts +11 -4
- package/dist/testing/cross_backend/account_lifecycle.d.ts.map +1 -1
- package/dist/testing/cross_backend/account_lifecycle.js +277 -6
- package/dist/testing/cross_backend/build_test_backend_paths.d.ts +4 -1
- package/dist/testing/cross_backend/build_test_backend_paths.d.ts.map +1 -1
- package/dist/testing/cross_backend/build_test_backend_paths.js +1 -1
- package/dist/testing/cross_backend/capabilities.d.ts +68 -5
- package/dist/testing/cross_backend/capabilities.d.ts.map +1 -1
- package/dist/testing/cross_backend/capabilities.js +20 -4
- package/dist/testing/cross_backend/cell_gated_create.js +1 -1
- package/dist/testing/cross_backend/conformance_case.d.ts +63 -21
- package/dist/testing/cross_backend/conformance_case.d.ts.map +1 -1
- package/dist/testing/cross_backend/conformance_table.d.ts +54 -12
- package/dist/testing/cross_backend/conformance_table.d.ts.map +1 -1
- package/dist/testing/cross_backend/conformance_table.js +179 -23
- package/dist/testing/cross_backend/cookie_attributes.js +1 -1
- package/dist/testing/cross_backend/create_dual_spawn_global_setup.d.ts +7 -1
- package/dist/testing/cross_backend/create_dual_spawn_global_setup.d.ts.map +1 -1
- package/dist/testing/cross_backend/create_dual_spawn_global_setup.js +3 -3
- package/dist/testing/cross_backend/credential_conformance.d.ts +196 -0
- package/dist/testing/cross_backend/credential_conformance.d.ts.map +1 -0
- package/dist/testing/cross_backend/credential_conformance.js +296 -0
- package/dist/testing/cross_backend/credential_conformance.json +1284 -0
- package/dist/testing/cross_backend/credential_conformance_wire.d.ts +40 -0
- package/dist/testing/cross_backend/credential_conformance_wire.d.ts.map +1 -0
- package/dist/testing/cross_backend/credential_conformance_wire.js +293 -0
- package/dist/testing/cross_backend/credential_header_robustness.d.ts +1 -3
- package/dist/testing/cross_backend/credential_header_robustness.d.ts.map +1 -1
- package/dist/testing/cross_backend/credential_header_robustness.js +24 -55
- package/dist/testing/cross_backend/credential_wire.d.ts +112 -0
- package/dist/testing/cross_backend/credential_wire.d.ts.map +1 -0
- package/dist/testing/cross_backend/credential_wire.js +188 -0
- package/dist/testing/cross_backend/default_backend_configs.d.ts.map +1 -1
- package/dist/testing/cross_backend/default_backend_configs.js +22 -2
- package/dist/testing/cross_backend/default_spine_surface.js +1 -1
- package/dist/testing/cross_backend/differential.d.ts +1 -1
- package/dist/testing/cross_backend/differential.d.ts.map +1 -1
- package/dist/testing/cross_backend/differential.js +3 -2
- package/dist/testing/cross_backend/differential_normalize.d.ts +23 -6
- package/dist/testing/cross_backend/differential_normalize.d.ts.map +1 -1
- package/dist/testing/cross_backend/differential_normalize.js +11 -5
- package/dist/testing/cross_backend/full_spine_mount.d.ts +1 -0
- package/dist/testing/cross_backend/full_spine_mount.d.ts.map +1 -1
- package/dist/testing/cross_backend/full_spine_mount.js +7 -0
- package/dist/testing/cross_backend/identity_parity.d.ts.map +1 -1
- package/dist/testing/cross_backend/identity_parity.js +4 -0
- package/dist/testing/cross_backend/in_process_setup.d.ts.map +1 -1
- package/dist/testing/cross_backend/in_process_setup.js +78 -4
- package/dist/testing/cross_backend/login_security.d.ts.map +1 -1
- package/dist/testing/cross_backend/login_security.js +13 -10
- package/dist/testing/cross_backend/peer_ping_ws.d.ts +1 -1
- package/dist/testing/cross_backend/peer_ping_ws.js +2 -2
- package/dist/testing/cross_backend/request_header_conformance.d.ts +174 -0
- package/dist/testing/cross_backend/request_header_conformance.d.ts.map +1 -0
- package/dist/testing/cross_backend/request_header_conformance.js +196 -0
- package/dist/testing/cross_backend/request_header_conformance.json +1158 -0
- package/dist/testing/cross_backend/request_header_conformance_wire.d.ts +39 -0
- package/dist/testing/cross_backend/request_header_conformance_wire.d.ts.map +1 -0
- package/dist/testing/cross_backend/request_header_conformance_wire.js +284 -0
- package/dist/testing/cross_backend/request_target_conformance.d.ts +298 -0
- package/dist/testing/cross_backend/request_target_conformance.d.ts.map +1 -0
- package/dist/testing/cross_backend/request_target_conformance.js +186 -0
- package/dist/testing/cross_backend/request_target_conformance.json +3765 -0
- package/dist/testing/cross_backend/request_target_conformance_wire.d.ts +32 -0
- package/dist/testing/cross_backend/request_target_conformance_wire.d.ts.map +1 -0
- package/dist/testing/cross_backend/request_target_conformance_wire.js +278 -0
- package/dist/testing/cross_backend/role_grant_offer_lifecycle.d.ts.map +1 -1
- package/dist/testing/cross_backend/role_grant_offer_lifecycle.js +173 -1
- package/dist/testing/cross_backend/role_grant_offer_notification_ws.d.ts.map +1 -1
- package/dist/testing/cross_backend/role_grant_offer_notification_ws.js +2 -1
- package/dist/testing/cross_backend/rpc_adversarial.d.ts +6 -4
- package/dist/testing/cross_backend/rpc_adversarial.d.ts.map +1 -1
- package/dist/testing/cross_backend/rpc_adversarial.js +5 -2
- package/dist/testing/cross_backend/rust_spine_consumer_surface.d.ts +6 -7
- package/dist/testing/cross_backend/rust_spine_consumer_surface.d.ts.map +1 -1
- package/dist/testing/cross_backend/rust_spine_consumer_surface.js +4 -5
- package/dist/testing/cross_backend/session_cap.d.ts.map +1 -1
- package/dist/testing/cross_backend/session_cap.js +56 -29
- package/dist/testing/cross_backend/session_cookie_effect.d.ts +43 -0
- package/dist/testing/cross_backend/session_cookie_effect.d.ts.map +1 -0
- package/dist/testing/cross_backend/session_cookie_effect.js +103 -0
- package/dist/testing/cross_backend/session_login.d.ts +24 -0
- package/dist/testing/cross_backend/session_login.d.ts.map +1 -0
- package/dist/testing/cross_backend/session_login.js +31 -0
- package/dist/testing/cross_backend/setup.d.ts +117 -0
- package/dist/testing/cross_backend/setup.d.ts.map +1 -1
- package/dist/testing/cross_backend/setup.js +193 -9
- package/dist/testing/cross_backend/simple_request.d.ts.map +1 -1
- package/dist/testing/cross_backend/simple_request.js +5 -0
- package/dist/testing/cross_backend/spine_suites.d.ts +9 -1
- package/dist/testing/cross_backend/spine_suites.d.ts.map +1 -1
- package/dist/testing/cross_backend/spine_suites.js +88 -5
- package/dist/testing/cross_backend/spine_surface_constants.d.ts +1 -1
- package/dist/testing/cross_backend/spine_surface_constants.d.ts.map +1 -1
- package/dist/testing/cross_backend/spine_surface_constants.js +1 -0
- package/dist/testing/cross_backend/sse_round_trip.d.ts +8 -5
- package/dist/testing/cross_backend/sse_round_trip.d.ts.map +1 -1
- package/dist/testing/cross_backend/sse_round_trip.js +205 -64
- package/dist/testing/cross_backend/testing_backdoor.d.ts.map +1 -1
- package/dist/testing/cross_backend/testing_backdoor.js +5 -2
- package/dist/testing/cross_backend/testing_credential_read.d.ts +165 -0
- package/dist/testing/cross_backend/testing_credential_read.d.ts.map +1 -0
- package/dist/testing/cross_backend/testing_credential_read.js +175 -0
- package/dist/testing/cross_backend/testing_reset_actions.d.ts +19 -0
- package/dist/testing/cross_backend/testing_reset_actions.d.ts.map +1 -1
- package/dist/testing/cross_backend/testing_reset_actions.js +22 -6
- package/dist/testing/cross_backend/token_lifetime.d.ts.map +1 -1
- package/dist/testing/cross_backend/token_lifetime.js +58 -2
- package/dist/testing/cross_backend/transport_composition.d.ts +2 -4
- package/dist/testing/cross_backend/transport_composition.d.ts.map +1 -1
- package/dist/testing/cross_backend/transport_composition.js +13 -10
- package/dist/testing/cross_backend/ts_spine_backend_config.d.ts.map +1 -1
- package/dist/testing/cross_backend/ts_spine_backend_config.js +5 -3
- package/dist/testing/cross_backend/ws_endpoint.d.ts +11 -1
- package/dist/testing/cross_backend/ws_endpoint.d.ts.map +1 -1
- package/dist/testing/cross_backend/ws_endpoint.js +19 -2
- package/dist/testing/cross_backend/ws_role_gated.d.ts.map +1 -1
- package/dist/testing/cross_backend/ws_role_gated.js +2 -3
- package/dist/testing/cross_backend/ws_round_trip.d.ts.map +1 -1
- package/dist/testing/cross_backend/ws_round_trip.js +28 -12
- package/dist/testing/cross_backend/xfail.d.ts +44 -11
- package/dist/testing/cross_backend/xfail.d.ts.map +1 -1
- package/dist/testing/cross_backend/xfail.js +68 -23
- package/dist/testing/data_exposure.d.ts.map +1 -1
- package/dist/testing/data_exposure.js +4 -3
- package/dist/testing/integration.d.ts +1 -2
- package/dist/testing/integration.d.ts.map +1 -1
- package/dist/testing/integration.js +14 -8
- package/dist/testing/integration_helpers.d.ts +50 -3
- package/dist/testing/integration_helpers.d.ts.map +1 -1
- package/dist/testing/integration_helpers.js +87 -9
- package/dist/testing/middleware.d.ts +2 -0
- package/dist/testing/middleware.d.ts.map +1 -1
- package/dist/testing/middleware.js +9 -2
- package/dist/testing/round_trip.d.ts +6 -2
- package/dist/testing/round_trip.d.ts.map +1 -1
- package/dist/testing/round_trip.js +17 -6
- package/dist/testing/rpc_envelope_cases.d.ts.map +1 -1
- package/dist/testing/rpc_envelope_cases.js +7 -0
- package/dist/testing/rpc_helpers.d.ts +4 -2
- package/dist/testing/rpc_helpers.d.ts.map +1 -1
- package/dist/testing/rpc_helpers.js +6 -1
- package/dist/testing/rpc_round_trip.d.ts +13 -2
- package/dist/testing/rpc_round_trip.d.ts.map +1 -1
- package/dist/testing/rpc_round_trip.js +25 -6
- package/dist/testing/schema_generators.d.ts +2 -2
- package/dist/testing/schema_generators.d.ts.map +1 -1
- package/dist/testing/schema_generators.js +4 -4
- package/dist/testing/stubs.d.ts +2 -2
- package/dist/testing/stubs.d.ts.map +1 -1
- package/dist/testing/stubs.js +8 -8
- package/dist/testing/transports/fetch_transport.d.ts +6 -3
- package/dist/testing/transports/fetch_transport.d.ts.map +1 -1
- package/dist/testing/transports/fetch_transport.js +31 -19
- package/dist/testing/transports/raw_http.d.ts +61 -1
- package/dist/testing/transports/raw_http.d.ts.map +1 -1
- package/dist/testing/transports/raw_http.js +61 -1
- package/dist/testing/transports/ws_raw_client.d.ts +20 -0
- package/dist/testing/transports/ws_raw_client.d.ts.map +1 -1
- package/dist/testing/transports/ws_raw_client.js +10 -4
- package/dist/testing/transports/ws_transport.d.ts +21 -1
- package/dist/testing/transports/ws_transport.d.ts.map +1 -1
- package/dist/testing/transports/ws_transport.js +58 -20
- package/package.json +1 -1
|
@@ -21,7 +21,7 @@ import '../assert_dev_env.js';
|
|
|
21
21
|
*
|
|
22
22
|
* @module
|
|
23
23
|
*/
|
|
24
|
-
import { array, literal, parse, string, strip_object } from '@fuzdev/fuz_schema/schema.ts';
|
|
24
|
+
import { array, boolean, literal, number, parse, string, strip_object } from '@fuzdev/fuz_schema/schema.ts';
|
|
25
25
|
import { USERNAME_LENGTH_MAX, Uuid } from '../../primitive_schemas.js';
|
|
26
26
|
import { format_issues } from '../../schema_issues.js';
|
|
27
27
|
import { DAEMON_TOKEN_HEADER } from '../../auth/daemon_token.js';
|
|
@@ -251,6 +251,64 @@ export const capture_migration_tracker = async (handle) => capture_via_daemon(ha
|
|
|
251
251
|
export const EXPIRED_SESSION_OFFSET_SECONDS = -60;
|
|
252
252
|
/** Structural subset of `_testing_mint_session`'s output. */
|
|
253
253
|
const MintSessionResponseShape = strip_object({ session_cookie: string });
|
|
254
|
+
/**
|
|
255
|
+
* The seconds `mint_expired_token` pulls a token's expiry in to — over
|
|
256
|
+
* `_testing_shorten_credential_expiry` cross-process, with its statement
|
|
257
|
+
* in-process — the backdoor's floor
|
|
258
|
+
* (`TESTING_SHORTEN_CREDENTIAL_EXPIRY_MIN_SECONDS`, which this module does not
|
|
259
|
+
* import: its module carries the in-process backend), so the wait is as short
|
|
260
|
+
* as the backdoor allows; a floor raised past it fails the call loud.
|
|
261
|
+
*/
|
|
262
|
+
export const EXPIRED_TOKEN_SHORTEN_SECONDS = 1;
|
|
263
|
+
/**
|
|
264
|
+
* How long `mint_expired_token` waits after the shorten answers, on both
|
|
265
|
+
* fixtures: the row's `expires_at` is `EXPIRED_TOKEN_SHORTEN_SECONDS` past the
|
|
266
|
+
* database's `NOW()` of a statement that ran before the answer, so once this
|
|
267
|
+
* much has passed on the same clock the row is expired when the token is sent.
|
|
268
|
+
* The margin covers the timer firing early by its rounding.
|
|
269
|
+
*/
|
|
270
|
+
export const EXPIRED_TOKEN_WAIT_MS = EXPIRED_TOKEN_SHORTEN_SECONDS * 1000 + 50;
|
|
271
|
+
/** The account id an `account_verify` answer names, all a liveness check reads of it. */
|
|
272
|
+
const VerifyResponseShape = strip_object({ id: string });
|
|
273
|
+
/**
|
|
274
|
+
* Prove a credential authenticates — `account_verify` answers 200 as the
|
|
275
|
+
* expected account — before a fixture accessor kills it. A revoked or expired
|
|
276
|
+
* credential reaches the same lookup a never-issued one does, so without this
|
|
277
|
+
* a `mint_revoked_*` that minted nothing (or a token that never worked) would
|
|
278
|
+
* pass every row its principal backs; with it, the principal's refusal can
|
|
279
|
+
* only come from the revocation or the expiry.
|
|
280
|
+
*
|
|
281
|
+
* @param options - the transport, endpoint, credential and expected account
|
|
282
|
+
* @throws Error naming the accessor when the credential does not answer as the account
|
|
283
|
+
*/
|
|
284
|
+
export const assert_credential_authenticates = async (options) => {
|
|
285
|
+
const { transport, rpc_path, headers, account_id, accessor } = options;
|
|
286
|
+
if (transport.cookies().length > 0) {
|
|
287
|
+
throw new Error(`${accessor}: the liveness check's transport carries a cookie jar of its own, which would ` +
|
|
288
|
+
`answer for the credential — pass a fresh one`);
|
|
289
|
+
}
|
|
290
|
+
const response = await transport(rpc_path, {
|
|
291
|
+
method: 'POST',
|
|
292
|
+
headers: { 'Content-Type': 'application/json', ...headers },
|
|
293
|
+
body: JSON.stringify({ jsonrpc: '2.0', method: 'account_verify', id: 'account_verify' })
|
|
294
|
+
});
|
|
295
|
+
const body = (await response.json().catch(() => undefined));
|
|
296
|
+
const parsed = parse(VerifyResponseShape, body?.result);
|
|
297
|
+
if (response.status !== 200 || !parsed.ok || parsed.value.id !== account_id) {
|
|
298
|
+
throw new Error(`${accessor}: the credential did not authenticate as account ${account_id} before it was ` +
|
|
299
|
+
`killed — account_verify answered ${response.status} ${JSON.stringify(body)}`);
|
|
300
|
+
}
|
|
301
|
+
};
|
|
302
|
+
/** Structural subset of `account_token_create`'s output that the revoked-token mint reads. */
|
|
303
|
+
const MintTokenResponseShape = strip_object({ token: string, id: string });
|
|
304
|
+
/** Structural subset of `account_session_list`'s output that the revoked-session mint reads. */
|
|
305
|
+
const SessionListResponseShape = strip_object({
|
|
306
|
+
sessions: array(strip_object({ id: string, is_current: boolean }))
|
|
307
|
+
});
|
|
308
|
+
/** Structural subset of `account_*_revoke`'s output. */
|
|
309
|
+
const RevokeResponseShape = strip_object({ revoked: literal(true) });
|
|
310
|
+
/** Structural subset of `_testing_shorten_credential_expiry`'s output. */
|
|
311
|
+
const ShortenResponseShape = strip_object({ api_tokens: number });
|
|
254
312
|
/** Structural subset of `_testing_reset`'s output. */
|
|
255
313
|
const TestingResetResponseShape = strip_object({
|
|
256
314
|
account: strip_object({ id: Uuid, username: string }),
|
|
@@ -265,6 +323,67 @@ const TestingResetResponseShape = strip_object({
|
|
|
265
323
|
})),
|
|
266
324
|
extra_actors: array(strip_object({ id: Uuid, name: string }))
|
|
267
325
|
});
|
|
326
|
+
/**
|
|
327
|
+
* Match a `_testing_reset` answer's seeded accounts and actors to the request,
|
|
328
|
+
* by username (as the spines store it, lowercase) and by actor name — never by
|
|
329
|
+
* position. Every spine implements the backdoor itself, so a seed it drops,
|
|
330
|
+
* duplicates, renames, or reorders must fail the setup rather than hand a test
|
|
331
|
+
* the wrong account or none.
|
|
332
|
+
*
|
|
333
|
+
* @param backend_name - the backend that answered, for the error
|
|
334
|
+
* @param requested - the usernames and actor names the reset asked for
|
|
335
|
+
* @param seeded - the reset's `extra_accounts` and `extra_actors`
|
|
336
|
+
* @throws Error naming the backend and each missing, unexpected, or duplicated seed
|
|
337
|
+
*/
|
|
338
|
+
export const match_testing_reset_seeds = (backend_name, requested, seeded) => {
|
|
339
|
+
const problems = [];
|
|
340
|
+
if (seeded.extra_accounts.length !== requested.usernames.length) {
|
|
341
|
+
problems.push(`requested ${requested.usernames.length} extra_accounts, got ${seeded.extra_accounts.length}`);
|
|
342
|
+
}
|
|
343
|
+
if (seeded.extra_actors.length !== requested.actor_names.length) {
|
|
344
|
+
problems.push(`requested ${requested.actor_names.length} extra_actors, got ${seeded.extra_actors.length}`);
|
|
345
|
+
}
|
|
346
|
+
const by_username = new Map();
|
|
347
|
+
for (const s of seeded.extra_accounts) {
|
|
348
|
+
const { username } = s.account;
|
|
349
|
+
if (by_username.has(username))
|
|
350
|
+
problems.push(`extra account '${username}' seeded twice`);
|
|
351
|
+
else
|
|
352
|
+
by_username.set(username, s);
|
|
353
|
+
}
|
|
354
|
+
const extra_accounts = {};
|
|
355
|
+
for (const username of requested.usernames) {
|
|
356
|
+
const key = username.toLowerCase();
|
|
357
|
+
const s = by_username.get(key);
|
|
358
|
+
if (!s) {
|
|
359
|
+
problems.push(`extra account '${username}' missing (no seed with username '${key}')`);
|
|
360
|
+
continue;
|
|
361
|
+
}
|
|
362
|
+
by_username.delete(key);
|
|
363
|
+
extra_accounts[username] = s;
|
|
364
|
+
}
|
|
365
|
+
for (const username of by_username.keys()) {
|
|
366
|
+
problems.push(`extra account '${username}' seeded but not requested`);
|
|
367
|
+
}
|
|
368
|
+
const unclaimed_actors = [...seeded.extra_actors];
|
|
369
|
+
const extra_actors = [];
|
|
370
|
+
for (const name of requested.actor_names) {
|
|
371
|
+
const index = unclaimed_actors.findIndex((a) => a.name === name);
|
|
372
|
+
const [actor] = index === -1 ? [] : unclaimed_actors.splice(index, 1);
|
|
373
|
+
if (!actor) {
|
|
374
|
+
problems.push(`extra actor '${name}' missing`);
|
|
375
|
+
continue;
|
|
376
|
+
}
|
|
377
|
+
extra_actors.push(actor);
|
|
378
|
+
}
|
|
379
|
+
for (const a of unclaimed_actors) {
|
|
380
|
+
problems.push(`extra actor '${a.name}' seeded but not requested`);
|
|
381
|
+
}
|
|
382
|
+
if (problems.length > 0) {
|
|
383
|
+
throw new Error(`_testing_reset(${backend_name}) seeds don't match the request: ${problems.join('; ')}`);
|
|
384
|
+
}
|
|
385
|
+
return { extra_accounts, extra_actors };
|
|
386
|
+
};
|
|
268
387
|
/**
|
|
269
388
|
* Fire the `_testing_reset` RPC action over the keeper's daemon-token
|
|
270
389
|
* channel. Wipes the DB, re-seeds a fresh keeper (with any
|
|
@@ -286,6 +405,10 @@ const fire_testing_reset = async (handle, options) => {
|
|
|
286
405
|
if (!parsed.ok) {
|
|
287
406
|
throw new Error(`_testing_reset(${handle.config.name}) returned unexpected result: ${JSON.stringify(raw)} (${format_issues(parsed.issues)})`);
|
|
288
407
|
}
|
|
408
|
+
const matched = match_testing_reset_seeds(handle.config.name, {
|
|
409
|
+
usernames: (options.extra_accounts ?? []).map((spec) => spec.username),
|
|
410
|
+
actor_names: options.extra_actors ?? []
|
|
411
|
+
}, parsed.value);
|
|
289
412
|
return {
|
|
290
413
|
keeper: {
|
|
291
414
|
account: parsed.value.account,
|
|
@@ -293,8 +416,8 @@ const fire_testing_reset = async (handle, options) => {
|
|
|
293
416
|
api_token: parsed.value.api_token,
|
|
294
417
|
session_cookie: parsed.value.session_cookie
|
|
295
418
|
},
|
|
296
|
-
extra_accounts:
|
|
297
|
-
extra_actors:
|
|
419
|
+
extra_accounts: matched.extra_accounts,
|
|
420
|
+
extra_actors: matched.extra_actors
|
|
298
421
|
};
|
|
299
422
|
};
|
|
300
423
|
/**
|
|
@@ -545,12 +668,8 @@ export const default_cross_process_setup = (handle, options) => {
|
|
|
545
668
|
return to_test_account(other, cookie_name);
|
|
546
669
|
};
|
|
547
670
|
const extra_accounts = {};
|
|
548
|
-
for (
|
|
549
|
-
|
|
550
|
-
const seeded = seeded_extras[i];
|
|
551
|
-
if (!spec || !seeded)
|
|
552
|
-
continue;
|
|
553
|
-
extra_accounts[spec.username] = to_test_account(seeded, cookie_name);
|
|
671
|
+
for (const [username, seeded] of Object.entries(seeded_extras)) {
|
|
672
|
+
extra_accounts[username] = to_test_account(seeded, cookie_name);
|
|
554
673
|
}
|
|
555
674
|
// Per-test transport — fresh jar carrying the new keeper's cookie
|
|
556
675
|
// so requests authenticate as the keeper without callers having to
|
|
@@ -587,6 +706,71 @@ export const default_cross_process_setup = (handle, options) => {
|
|
|
587
706
|
`${JSON.stringify(raw)} (${format_issues(parsed.issues)})`);
|
|
588
707
|
}
|
|
589
708
|
return `${cookie_name}=${parsed.value.session_cookie}`;
|
|
709
|
+
},
|
|
710
|
+
mint_revoked_session: async () => {
|
|
711
|
+
// a second keeper session over the production login, so the
|
|
712
|
+
// fixture's own keeper session is not the one revoked
|
|
713
|
+
const session_transport = create_fetch_transport({ base_url: handle.config.base_url });
|
|
714
|
+
const login = await session_transport(login_path, {
|
|
715
|
+
method: 'POST',
|
|
716
|
+
headers: { 'Content-Type': 'application/json' },
|
|
717
|
+
body: JSON.stringify({
|
|
718
|
+
username: keeper.account.username,
|
|
719
|
+
password: DEFAULT_TEST_PASSWORD
|
|
720
|
+
})
|
|
721
|
+
});
|
|
722
|
+
if (!login.ok) {
|
|
723
|
+
const body = await login.text().catch(() => '<unreadable>');
|
|
724
|
+
throw new Error(`mint_revoked_session: login(${handle.config.name}) failed: status=${login.status} body=${body}`);
|
|
725
|
+
}
|
|
726
|
+
await login.arrayBuffer().catch(() => undefined);
|
|
727
|
+
const session_cookie = extract_cookie_value(session_transport, cookie_name, handle.config.name);
|
|
728
|
+
await assert_credential_authenticates({
|
|
729
|
+
transport: create_fetch_transport({ base_url: handle.config.base_url, origin: null }),
|
|
730
|
+
rpc_path: handle.config.rpc_path,
|
|
731
|
+
headers: { cookie: `${cookie_name}=${session_cookie}` },
|
|
732
|
+
account_id: keeper.account.id,
|
|
733
|
+
accessor: 'mint_revoked_session'
|
|
734
|
+
});
|
|
735
|
+
const listed = parse_capture_answer('account_session_list', SessionListResponseShape, await rpc_via_transport(session_transport, handle.config.rpc_path, 'account_session_list', undefined, handle.config.name));
|
|
736
|
+
const current = listed.sessions.find((session) => session.is_current);
|
|
737
|
+
if (!current) {
|
|
738
|
+
throw new Error(`mint_revoked_session: account_session_list(${handle.config.name}) marked no session current`);
|
|
739
|
+
}
|
|
740
|
+
parse_capture_answer('account_session_revoke', RevokeResponseShape, await rpc_via_transport(session_transport, handle.config.rpc_path, 'account_session_revoke', { session_id: current.id }, handle.config.name));
|
|
741
|
+
return `${cookie_name}=${session_cookie}`;
|
|
742
|
+
},
|
|
743
|
+
mint_revoked_token: async () => {
|
|
744
|
+
const minted = parse_capture_answer('account_token_create', MintTokenResponseShape, await rpc_via_transport(keeper_transport, handle.config.rpc_path, 'account_token_create', {
|
|
745
|
+
name: 'conformance revoked token',
|
|
746
|
+
scope: { kind: 'full' },
|
|
747
|
+
lifetime: { kind: 'eternal' }
|
|
748
|
+
}, handle.config.name));
|
|
749
|
+
await assert_credential_authenticates({
|
|
750
|
+
transport: create_fetch_transport({ base_url: handle.config.base_url, origin: null }),
|
|
751
|
+
rpc_path: handle.config.rpc_path,
|
|
752
|
+
headers: { authorization: `Bearer ${minted.token}` },
|
|
753
|
+
account_id: keeper.account.id,
|
|
754
|
+
accessor: 'mint_revoked_token'
|
|
755
|
+
});
|
|
756
|
+
parse_capture_answer('account_token_revoke', RevokeResponseShape, await rpc_via_transport(keeper_transport, handle.config.rpc_path, 'account_token_revoke', { token_id: minted.id }, handle.config.name));
|
|
757
|
+
return minted.token;
|
|
758
|
+
},
|
|
759
|
+
mint_expired_token: async () => {
|
|
760
|
+
const other = await create_account();
|
|
761
|
+
await assert_credential_authenticates({
|
|
762
|
+
transport: create_fetch_transport({ base_url: handle.config.base_url, origin: null }),
|
|
763
|
+
rpc_path: handle.config.rpc_path,
|
|
764
|
+
headers: { authorization: `Bearer ${other.api_token}` },
|
|
765
|
+
account_id: other.account.id,
|
|
766
|
+
accessor: 'mint_expired_token'
|
|
767
|
+
});
|
|
768
|
+
const shortened = parse_capture_answer('_testing_shorten_credential_expiry', ShortenResponseShape, await rpc_via_transport(refreshed_handle.keeper_daemon_transport, handle.config.rpc_path, '_testing_shorten_credential_expiry', { account_id: other.account.id, seconds: EXPIRED_TOKEN_SHORTEN_SECONDS }, handle.config.name, { [DAEMON_TOKEN_HEADER]: handle.daemon_token }));
|
|
769
|
+
if (shortened.api_tokens < 1) {
|
|
770
|
+
throw new Error(`mint_expired_token: _testing_shorten_credential_expiry(${handle.config.name}) shortened no token`);
|
|
771
|
+
}
|
|
772
|
+
await new Promise((resolve) => setTimeout(resolve, EXPIRED_TOKEN_WAIT_MS));
|
|
773
|
+
return other.api_token;
|
|
590
774
|
}
|
|
591
775
|
};
|
|
592
776
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"simple_request.d.ts","sourceRoot":"","sources":["../../../src/lib/testing/cross_backend/simple_request.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"simple_request.d.ts","sourceRoot":"","sources":["../../../src/lib/testing/cross_backend/simple_request.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAkC9B,OAAO,KAAK,EAAE,wBAAwB,EAAe,MAAM,YAAY,CAAC;AAOxE,mDAAmD;AACnD,MAAM,WAAW,6BAA8B,SAAQ,wBAAwB;IAC9E,kFAAkF;IAClF,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,oFAAoF;IACpF,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;CAC9B;AAaD,eAAO,MAAM,mCAAmC,GAC/C,SAAS,6BAA6B,KACpC,IAuHF,CAAC"}
|
|
@@ -14,6 +14,11 @@ import '../assert_dev_env.js';
|
|
|
14
14
|
* forged request, which the origin allowlist alone admits when it's a
|
|
15
15
|
* wildcard — and a refused request must leave that session untouched.
|
|
16
16
|
*
|
|
17
|
+
* Boundaries: `application/json` with a charset is dispatched; a vendor
|
|
18
|
+
* `+json` type, `application/octet-stream` and an empty type are refused; a
|
|
19
|
+
* bodyless JSON logout with no session reaches the auth check (401), while an
|
|
20
|
+
* untyped one is 415 first.
|
|
21
|
+
*
|
|
17
22
|
* Runs both legs via the shared `setup_test` protocol: in-process
|
|
18
23
|
* (`auth/simple_request_parity.db.test.ts`) and cross-process
|
|
19
24
|
* (`cross_backend/spine_suites.cross.test.ts`). Every spine has the gate,
|
|
@@ -13,6 +13,8 @@ import type { BackendCapabilities } from './capabilities.js';
|
|
|
13
13
|
import { type CellGrantRoleCrossTestOptions } from './cell_grant_role.js';
|
|
14
14
|
import { type CookieAttributesCrossTestOptions } from './cookie_attributes.js';
|
|
15
15
|
import { type CredentialDeadlineCrossTestOptions } from './credential_deadline.js';
|
|
16
|
+
import { type CredentialConformanceCrossTestOptions } from './credential_conformance.js';
|
|
17
|
+
import { type CredentialConformanceWireCrossTestOptions } from './credential_conformance_wire.js';
|
|
16
18
|
import { type CredentialHeaderRobustnessCrossTestOptions } from './credential_header_robustness.js';
|
|
17
19
|
import { type FactServingCrossTestOptions } from './fact_serving.js';
|
|
18
20
|
import { type IdentityParityCrossTestOptions } from './identity_parity.js';
|
|
@@ -22,6 +24,8 @@ import { type OriginScopeCrossTestOptions } from './origin_scope.js';
|
|
|
22
24
|
import { type PeerPingWsTestOptions } from './peer_ping_ws.js';
|
|
23
25
|
import { type QueryShapeCrossTestOptions } from './query_shape.js';
|
|
24
26
|
import { type ReadyCrossTestOptions } from './ready.js';
|
|
27
|
+
import { type RequestHeaderConformanceWireCrossTestOptions } from './request_header_conformance_wire.js';
|
|
28
|
+
import { type RequestTargetConformanceWireCrossTestOptions } from './request_target_conformance_wire.js';
|
|
25
29
|
import { type RoleGrantOfferEnumerationCrossTestOptions } from './role_grant_offer_enumeration.js';
|
|
26
30
|
import { type RoleGrantOfferLifecycleCrossTestOptions } from './role_grant_offer_lifecycle.js';
|
|
27
31
|
import { type RoleGrantOfferNotificationWsTestOptions } from './role_grant_offer_notification_ws.js';
|
|
@@ -53,7 +57,7 @@ import { type CrossProcessWsTestOptions } from './ws_round_trip.js';
|
|
|
53
57
|
* guard test holds it, with `STANDALONE_CROSS_SUITES`, to every module that
|
|
54
58
|
* exports a `describe_*` suite, so a new suite fails until it is registered.
|
|
55
59
|
*/
|
|
56
|
-
export declare const SUITE_NAMES: readonly ["account_lifecycle", "actor_lookup", "app_settings", "body_size", "body_size_smuggling", "cell_crud", "cell_gated_create", "cell_grant_role", "cell_grant_steward", "cell_moderate", "cell_ref_admission", "cell_relations", "cookie_attributes", "credential_deadline", "credential_header_robustness", "fact_serving", "identity_parity", "origin", "origin_conformance", "origin_scope", "peer_ping_ws", "query_shape", "ready", "role_grant_offer_enumeration", "role_grant_offer_lifecycle", "role_grant_offer_notification_ws", "role_grant_participation", "role_grant_role_grammar", "rooms_ws", "rpc_adversarial", "session_cap", "session_cookie_codec", "simple_request", "sse_round_trip", "standard", "testing_backdoor", "token_lifetime", "token_scope_surface", "transport_composition", "ws_connection_cap", "ws_envelope", "ws_inbound_dispatch", "ws_outbound_overflow", "ws_role_gated", "ws_round_trip"];
|
|
60
|
+
export declare const SUITE_NAMES: readonly ["account_lifecycle", "actor_lookup", "app_settings", "body_size", "body_size_smuggling", "cell_crud", "cell_gated_create", "cell_grant_role", "cell_grant_steward", "cell_moderate", "cell_ref_admission", "cell_relations", "cookie_attributes", "credential_conformance", "credential_conformance_wire", "credential_deadline", "credential_header_robustness", "fact_serving", "identity_parity", "origin", "origin_conformance", "origin_scope", "peer_ping_ws", "query_shape", "ready", "request_header_conformance_wire", "request_target_conformance_wire", "role_grant_offer_enumeration", "role_grant_offer_lifecycle", "role_grant_offer_notification_ws", "role_grant_participation", "role_grant_role_grammar", "rooms_ws", "rpc_adversarial", "session_cap", "session_cookie_codec", "simple_request", "sse_round_trip", "standard", "testing_backdoor", "token_lifetime", "token_scope_surface", "transport_composition", "ws_connection_cap", "ws_envelope", "ws_inbound_dispatch", "ws_outbound_overflow", "ws_role_gated", "ws_round_trip"];
|
|
57
61
|
/** A shipped single-backend cross suite, named by its module. */
|
|
58
62
|
export type SuiteName = (typeof SUITE_NAMES)[number];
|
|
59
63
|
/** A shipped suite module `describe_spine_cross_suites` leaves out. */
|
|
@@ -86,6 +90,8 @@ export interface SuiteOptionsMap {
|
|
|
86
90
|
cell_ref_admission: RpcPathCapabilityGatedCrossSuiteOptions;
|
|
87
91
|
cell_relations: RpcPathCapabilityGatedCrossSuiteOptions;
|
|
88
92
|
cookie_attributes: CookieAttributesCrossTestOptions;
|
|
93
|
+
credential_conformance: CredentialConformanceCrossTestOptions;
|
|
94
|
+
credential_conformance_wire: CredentialConformanceWireCrossTestOptions;
|
|
89
95
|
credential_deadline: CredentialDeadlineCrossTestOptions;
|
|
90
96
|
credential_header_robustness: CredentialHeaderRobustnessCrossTestOptions;
|
|
91
97
|
fact_serving: FactServingCrossTestOptions;
|
|
@@ -96,6 +102,8 @@ export interface SuiteOptionsMap {
|
|
|
96
102
|
peer_ping_ws: PeerPingWsTestOptions;
|
|
97
103
|
query_shape: QueryShapeCrossTestOptions;
|
|
98
104
|
ready: ReadyCrossTestOptions;
|
|
105
|
+
request_header_conformance_wire: RequestHeaderConformanceWireCrossTestOptions;
|
|
106
|
+
request_target_conformance_wire: RequestTargetConformanceWireCrossTestOptions;
|
|
99
107
|
role_grant_offer_enumeration: RoleGrantOfferEnumerationCrossTestOptions;
|
|
100
108
|
role_grant_offer_lifecycle: RoleGrantOfferLifecycleCrossTestOptions;
|
|
101
109
|
role_grant_offer_notification_ws: RoleGrantOfferNotificationWsTestOptions;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spine_suites.d.ts","sourceRoot":"","sources":["../../../src/lib/testing/cross_backend/spine_suites.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"spine_suites.d.ts","sourceRoot":"","sources":["../../../src/lib/testing/cross_backend/spine_suites.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AA0F9B,OAAO,EAA2B,KAAK,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACvF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAmC,KAAK,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAClG,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,EAEN,KAAK,gCAAgC,EACrC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEN,KAAK,2BAA2B,EAChC,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAEN,KAAK,2BAA2B,EAChC,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAkC,KAAK,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAC/F,OAAO,EAEN,KAAK,iCAAiC,EACtC,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAG7D,OAAO,EAIN,KAAK,6BAA6B,EAClC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CAAC,SAAS,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC,KACpD,IAgBF,CAAC;AAEF;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,8BAA8B,GAC1C,eAAe,mBAAmB,EAClC,QAAQ,aAAa,CAAC,cAAc,CAAC,KACnC,IAiCF,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,2BAA2B,GACvC,QAAQ,sCAAsC,EAC9C,SAAS,uBAAuB,KAC9B,IAoCF,CAAC"}
|
|
@@ -55,8 +55,9 @@ import '../assert_dev_env.js';
|
|
|
55
55
|
* `SPINE_SUITES_REQUIRED_BACKDOORS` (the per-test reset and the audit
|
|
56
56
|
* barrier), `_testing_put_fact` when it declares `fact_serving`, and
|
|
57
57
|
* `_testing_room_evict` when it declares `rooms`; the call throws otherwise. A
|
|
58
|
-
* suite every case of which drives another backdoor (`
|
|
59
|
-
* `origin_conformance`, `ws_outbound_overflow`) skips
|
|
58
|
+
* suite every case of which drives another backdoor (`credential_conformance`,
|
|
59
|
+
* `credential_deadline`, `origin_conformance`, `ws_outbound_overflow`) skips
|
|
60
|
+
* itself on a backend not
|
|
60
61
|
* declaring it, shown like an exclude with a reason
|
|
61
62
|
* naming the backdoor — so an exclude, override or `exclude_cases` entry for
|
|
62
63
|
* it is refused as dead.
|
|
@@ -91,6 +92,9 @@ import { describe_cell_ref_admission_cross_tests } from './cell_ref_admission.js
|
|
|
91
92
|
import { describe_cell_relations_cross_tests } from './cell_relations.js';
|
|
92
93
|
import { describe_cookie_attributes_cross_tests } from './cookie_attributes.js';
|
|
93
94
|
import { describe_credential_deadline_cross_tests } from './credential_deadline.js';
|
|
95
|
+
import { describe_credential_conformance_cross_tests } from './credential_conformance.js';
|
|
96
|
+
import { describe_credential_conformance_wire_cross_tests } from './credential_conformance_wire.js';
|
|
97
|
+
import { create_credential_wire_seed } from './credential_wire.js';
|
|
94
98
|
import { describe_credential_header_robustness_cross_tests } from './credential_header_robustness.js';
|
|
95
99
|
import { describe_fact_serving_cross_tests } from './fact_serving.js';
|
|
96
100
|
import { describe_identity_parity_cross_tests } from './identity_parity.js';
|
|
@@ -100,6 +104,8 @@ import { describe_origin_scope_cross_tests } from './origin_scope.js';
|
|
|
100
104
|
import { describe_peer_ping_ws_tests } from './peer_ping_ws.js';
|
|
101
105
|
import { describe_query_shape_cross_tests } from './query_shape.js';
|
|
102
106
|
import { describe_ready_cross_tests } from './ready.js';
|
|
107
|
+
import { describe_request_header_conformance_wire_cross_tests } from './request_header_conformance_wire.js';
|
|
108
|
+
import { describe_request_target_conformance_wire_cross_tests } from './request_target_conformance_wire.js';
|
|
103
109
|
import { describe_role_grant_offer_enumeration_cross_tests, OFFER_GRANTOR_USERNAME } from './role_grant_offer_enumeration.js';
|
|
104
110
|
import { describe_role_grant_offer_lifecycle_cross_tests } from './role_grant_offer_lifecycle.js';
|
|
105
111
|
import { describe_role_grant_offer_notification_ws_tests } from './role_grant_offer_notification_ws.js';
|
|
@@ -145,6 +151,8 @@ export const SUITE_NAMES = [
|
|
|
145
151
|
'cell_ref_admission',
|
|
146
152
|
'cell_relations',
|
|
147
153
|
'cookie_attributes',
|
|
154
|
+
'credential_conformance',
|
|
155
|
+
'credential_conformance_wire',
|
|
148
156
|
'credential_deadline',
|
|
149
157
|
'credential_header_robustness',
|
|
150
158
|
'fact_serving',
|
|
@@ -155,6 +163,8 @@ export const SUITE_NAMES = [
|
|
|
155
163
|
'peer_ping_ws',
|
|
156
164
|
'query_shape',
|
|
157
165
|
'ready',
|
|
166
|
+
'request_header_conformance_wire',
|
|
167
|
+
'request_target_conformance_wire',
|
|
158
168
|
'role_grant_offer_enumeration',
|
|
159
169
|
'role_grant_offer_lifecycle',
|
|
160
170
|
'role_grant_offer_notification_ws',
|
|
@@ -314,14 +324,50 @@ const SUITE_ENTRIES = {
|
|
|
314
324
|
required: { setup_test: true, capabilities: true, base_url: true, ws_path: true },
|
|
315
325
|
backdoors: ['_testing_shorten_credential_expiry']
|
|
316
326
|
},
|
|
317
|
-
|
|
327
|
+
credential_conformance: {
|
|
328
|
+
derive: (c) => ({
|
|
329
|
+
setup_test: c.setup(),
|
|
330
|
+
cookie_name: c.config.cookie_name,
|
|
331
|
+
cookie_keys: c.handle.config.env.SECRET_FUZ_COOKIE_KEYS ?? '',
|
|
332
|
+
daemon_token: c.handle.daemon_token,
|
|
333
|
+
rpc_path: c.config.rpc_path
|
|
334
|
+
}),
|
|
335
|
+
describe: describe_credential_conformance_cross_tests,
|
|
336
|
+
required: { setup_test: true, cookie_name: true, cookie_keys: true, daemon_token: true },
|
|
337
|
+
backdoors: ['_testing_credential_read']
|
|
338
|
+
},
|
|
339
|
+
credential_conformance_wire: {
|
|
340
|
+
// the session and the API token on accounts of their own, so the account
|
|
341
|
+
// a request authenticates as says which credential did; `ws_required_roles`
|
|
342
|
+
// lets each of them, and the keeper behind the daemon token, open a
|
|
343
|
+
// socket where the upgrade is role-gated
|
|
318
344
|
derive: (c) => ({
|
|
345
|
+
setup_test: c.setup(create_credential_wire_seed(c.options.ws_required_roles)),
|
|
346
|
+
capabilities: c.config.capabilities,
|
|
319
347
|
base_url: c.config.base_url,
|
|
348
|
+
cookie_name: c.config.cookie_name,
|
|
349
|
+
cookie_keys: c.handle.config.env.SECRET_FUZ_COOKIE_KEYS ?? '',
|
|
350
|
+
daemon_token: c.handle.daemon_token,
|
|
320
351
|
rpc_path: c.config.rpc_path,
|
|
321
|
-
|
|
352
|
+
ws_path: c.config.ws_path
|
|
353
|
+
}),
|
|
354
|
+
describe: describe_credential_conformance_wire_cross_tests,
|
|
355
|
+
required: {
|
|
356
|
+
setup_test: true,
|
|
357
|
+
capabilities: true,
|
|
358
|
+
base_url: true,
|
|
359
|
+
cookie_name: true,
|
|
360
|
+
cookie_keys: true,
|
|
361
|
+
daemon_token: true
|
|
362
|
+
}
|
|
363
|
+
},
|
|
364
|
+
credential_header_robustness: {
|
|
365
|
+
derive: (c) => ({
|
|
366
|
+
base_url: c.config.base_url,
|
|
367
|
+
rpc_path: c.config.rpc_path
|
|
322
368
|
}),
|
|
323
369
|
describe: describe_credential_header_robustness_cross_tests,
|
|
324
|
-
required: { base_url: true
|
|
370
|
+
required: { base_url: true }
|
|
325
371
|
},
|
|
326
372
|
fact_serving: {
|
|
327
373
|
// the multi-actor setup reaches the fallthrough a single-actor keeper can't
|
|
@@ -377,6 +423,43 @@ const SUITE_ENTRIES = {
|
|
|
377
423
|
describe: describe_ready_cross_tests,
|
|
378
424
|
required: { setup_test: true, capabilities: true }
|
|
379
425
|
},
|
|
426
|
+
request_header_conformance_wire: {
|
|
427
|
+
// the credential accounts, so the account a request authenticates as
|
|
428
|
+
// says which credential did
|
|
429
|
+
derive: (c) => ({
|
|
430
|
+
setup_test: c.setup(create_credential_wire_seed(c.options.ws_required_roles)),
|
|
431
|
+
capabilities: c.config.capabilities,
|
|
432
|
+
base_url: c.config.base_url,
|
|
433
|
+
cookie_name: c.config.cookie_name,
|
|
434
|
+
daemon_token: c.handle.daemon_token,
|
|
435
|
+
rpc_path: c.config.rpc_path,
|
|
436
|
+
ws_path: c.config.ws_path
|
|
437
|
+
}),
|
|
438
|
+
describe: describe_request_header_conformance_wire_cross_tests,
|
|
439
|
+
required: {
|
|
440
|
+
setup_test: true,
|
|
441
|
+
capabilities: true,
|
|
442
|
+
base_url: true,
|
|
443
|
+
cookie_name: true,
|
|
444
|
+
daemon_token: true
|
|
445
|
+
}
|
|
446
|
+
},
|
|
447
|
+
request_target_conformance_wire: {
|
|
448
|
+
// the keeper holds the upgrade's roles, so its session can open a socket
|
|
449
|
+
// (it already holds the builtin ones)
|
|
450
|
+
derive: (c) => ({
|
|
451
|
+
setup_test: c.setup({
|
|
452
|
+
extra_keeper_roles: (c.options.ws_required_roles ?? []).filter((role) => role !== ROLE_KEEPER && role !== ROLE_ADMIN)
|
|
453
|
+
}),
|
|
454
|
+
capabilities: c.config.capabilities,
|
|
455
|
+
base_url: c.config.base_url,
|
|
456
|
+
rpc_path: c.config.rpc_path,
|
|
457
|
+
ws_path: c.config.ws_path,
|
|
458
|
+
sse_path: c.config.sse_path
|
|
459
|
+
}),
|
|
460
|
+
describe: describe_request_target_conformance_wire_cross_tests,
|
|
461
|
+
required: { setup_test: true, capabilities: true, base_url: true }
|
|
462
|
+
},
|
|
380
463
|
role_grant_offer_enumeration: {
|
|
381
464
|
// a sibling actor for the wrong-persona arm, and a single-actor admin
|
|
382
465
|
// grantor (the keeper can't offer to itself)
|
|
@@ -25,7 +25,7 @@ export declare const TESTING_ACTION_AUTH: {
|
|
|
25
25
|
* fuz_app's spine binary mounts, so an action added there fails until it is
|
|
26
26
|
* listed here.
|
|
27
27
|
*/
|
|
28
|
-
export declare const TESTING_BACKDOOR_METHODS: readonly ["_testing_reset", "_testing_drain_effects", "_testing_mint_session", "_testing_put_fact", "_testing_flood_notifications", "_testing_schema_snapshot", "_testing_migration_tracker", "_testing_action_manifest", "_testing_origin_check", "_testing_shorten_credential_expiry", "_testing_room_evict"];
|
|
28
|
+
export declare const TESTING_BACKDOOR_METHODS: readonly ["_testing_reset", "_testing_drain_effects", "_testing_mint_session", "_testing_put_fact", "_testing_flood_notifications", "_testing_schema_snapshot", "_testing_migration_tracker", "_testing_action_manifest", "_testing_origin_check", "_testing_credential_read", "_testing_shorten_credential_expiry", "_testing_room_evict"];
|
|
29
29
|
/** A `_testing_*` backdoor the shipped cross suites know — see `TESTING_BACKDOOR_METHODS`. */
|
|
30
30
|
export type TestingBackdoorMethod = (typeof TESTING_BACKDOOR_METHODS)[number];
|
|
31
31
|
/** RPC endpoint mount path — matches the binary's `/api/rpc`. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spine_surface_constants.d.ts","sourceRoot":"","sources":["../../../src/lib/testing/cross_backend/spine_surface_constants.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AA4B9B;;;;;;;;GAQG;AACH,eAAO,MAAM,mBAAmB;;;;CAIF,CAAC;AAE/B;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,wBAAwB,
|
|
1
|
+
{"version":3,"file":"spine_surface_constants.d.ts","sourceRoot":"","sources":["../../../src/lib/testing/cross_backend/spine_surface_constants.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AA4B9B;;;;;;;;GAQG;AACH,eAAO,MAAM,mBAAmB;;;;CAIF,CAAC;AAE/B;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,wBAAwB,6UAa3B,CAAC;AAEX,8FAA8F;AAC9F,MAAM,MAAM,qBAAqB,GAAG,CAAC,OAAO,wBAAwB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE9E,iEAAiE;AACjE,eAAO,MAAM,cAAc,aAAa,CAAC;AAEzC,+EAA+E;AAC/E,eAAO,MAAM,aAAa,YAAY,CAAC;AAEvC;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,iBAAiB,CAAC;AAExD,wBAAwB;AACxB,eAAO,MAAM,wBAAwB,uBAAuB,CAAC;AAE7D,yBAAyB;AACzB,eAAO,MAAM,yBAAyB,wBAAwB,CAAC;AAE/D,kCAAkC;AAClC,eAAO,MAAM,2BAA2B,0BAA0B,CAAC;AAEnE,iCAAiC;AACjC,eAAO,MAAM,yBAAyB,wBAAwB,CAAC;AAE/D,yBAAyB;AACzB,eAAO,MAAM,yBAAyB,wBAAwB,CAAC;AAE/D,yEAAyE;AACzE,eAAO,MAAM,4BAA4B,2BAA2B,CAAC;AAErE;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,4BAA4B,CAAC;AAExD;;;;;;;GAOG;AACH,eAAO,MAAM,8BAA8B,QAAc,CAAC;AAE1D;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB,gBAAgB,CAAC;AAEpD;;;;;;;;;GASG;AACH,eAAO,MAAM,sBAAsB,gBAAgB,CAAC;AAEpD;;;;;;;;;GASG;AACH,eAAO,MAAM,wBAAwB,kBAAkB,CAAC;AAExD;;;;;;GAMG;AACH,eAAO,MAAM,yBAAyB,EAAE,aAAa,CAAC,MAAM,CAG1D,CAAC;AAEH;;;;;;;;;;GAUG;AACH,eAAO,MAAM,yBAAyB,EAAE,GAAwD,CAAC;AAEjG;;;;;;;GAOG;AACH,eAAO,MAAM,4BAA4B,iCAAiC,CAAC;AAE3E;;;;;;;GAOG;AACH,eAAO,MAAM,6BAA6B,kCAAkC,CAAC;AAE7E;;;;;;GAMG;AACH,eAAO,MAAM,kCAAkC,uCAAuC,CAAC;AAEvF;;;;;;GAMG;AACH,eAAO,MAAM,2BAA2B,gCAAgC,CAAC;AAEzE;;;;;;GAMG;AACH,eAAO,MAAM,yBAAyB,8BAA8B,CAAC;AAErE;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,6BAA6B,CAAC"}
|
|
@@ -18,11 +18,12 @@ export interface CrossProcessSseTestOptions {
|
|
|
18
18
|
/** SSE stream path on the backend. Defaults to `/api/admin/audit/stream`. */
|
|
19
19
|
readonly sse_path?: string;
|
|
20
20
|
/**
|
|
21
|
-
* RPC endpoint path (e.g. `/api/rpc`)
|
|
22
|
-
* close-on-revoke
|
|
23
|
-
* `
|
|
24
|
-
*
|
|
25
|
-
*
|
|
21
|
+
* RPC endpoint path (e.g. `/api/rpc`). The data-frame case and every
|
|
22
|
+
* close-on-revoke case drive their revocation over it, and prove their
|
|
23
|
+
* streams admitted with an `app_settings_update` written over it; they are
|
|
24
|
+
* skipped without it. The cap case runs either way, proving its streams
|
|
25
|
+
* by broadcast frames only with it. Every use needs the standard account +
|
|
26
|
+
* admin actions mounted on the endpoint.
|
|
26
27
|
*/
|
|
27
28
|
readonly rpc_path?: string;
|
|
28
29
|
/** Origin for the stream request. Defaults to `base_url`. */
|
|
@@ -34,6 +35,8 @@ export interface CrossProcessSseTestOptions {
|
|
|
34
35
|
* skips the case.
|
|
35
36
|
*/
|
|
36
37
|
readonly max_per_scope?: number | null;
|
|
38
|
+
/** REST login route path, for the session-scoped close case's second session. Default `/api/account/login`. */
|
|
39
|
+
readonly login_path?: string;
|
|
37
40
|
/** REST logout route path, for the logout close case. Default `/api/account/logout`. */
|
|
38
41
|
readonly logout_path?: string;
|
|
39
42
|
/** REST password-change route path, for its close case. Default `/api/account/password`. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sse_round_trip.d.ts","sourceRoot":"","sources":["../../../src/lib/testing/cross_backend/sse_round_trip.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"sse_round_trip.d.ts","sourceRoot":"","sources":["../../../src/lib/testing/cross_backend/sse_round_trip.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAmG9B,OAAO,EAAE,KAAK,mBAAmB,EAAW,MAAM,mBAAmB,CAAC;AAGtE,OAAO,KAAK,EAAE,SAAS,EAAe,MAAM,YAAY,CAAC;AAWzD,4DAA4D;AAC5D,MAAM,WAAW,0BAA0B;IAC1C;;;;;;OAMG;IACH,QAAQ,CAAC,UAAU,EAAE,SAAS,CAAC;IAC/B,wEAAwE;IACxE,QAAQ,CAAC,YAAY,EAAE,mBAAmB,CAAC;IAC3C,2EAA2E;IAC3E,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,6EAA6E;IAC7E,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B;;;;;;;OAOG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,6DAA6D;IAC7D,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB;;;;;OAKG;IACH,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvC,+GAA+G;IAC/G,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,wFAAwF;IACxF,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,4FAA4F;IAC5F,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;CAChC;AAwID;;;;;;GAMG;AACH,eAAO,MAAM,gCAAgC,GAAI,SAAS,0BAA0B,KAAG,IA4VtF,CAAC"}
|