mirror of
https://github.com/hanzoai/cloud.git
synced 2026-11-23 21:00:04 +00:00
Port all applicable OSS core framework, web console, and secret-detection fixes into github.com/hanzoai/cloud while preserving the strict public/OSS module boundary (zero private imports, plans, or secrets): - OIDC Discovery 1.0 & multi-issuer trust (sdk/discovery.go, sdk/oidctest, sdk/brand, sdk/auth_identity.go, sdk/config.go, sdk/deps.go, sdk/durable.go, sdk/token_validator.go, sdk/middleware_identity.go): trust issuers and JWKS named by each brand's discovery document; propagate VerifiedIdentity.Issuer, VerifiedIdentity.BillingAccount, and CallerIssuer. - Delegated-token liveness & confined sub-scopes (sdk/delegation.go, sdk/confined.go, sdk/middleware_identity.go, sdk/delegation_confined_test.go): never negative-cache IAM introspection active=false answers for 30s; allow /v1/decisions and opt-in confined `research` and `workflow:gpu` sub-scopes (blocking grants/authorize and non-gpu namespaces). - Unified fault fingerprinting & job-ID normalization (sdk/fault, sdk/errmap.go, sdk/hooks.go): RFC 9457 fingerprint extension member on all non-2xx responses, hex/alnum job-ID normalization, and ReportFault(fault.Fault) hook. - Tier & plan peer normalization (sdk/peers.go, sdk/tier_peer.go, sdk/tier_plan.go, sdk/tier_peer_test.go): add PlanOf/Plan(), check Plan in TierAllows, and normalize composite "<org>/<user>" namespaces to "<org>". - Shared retry helper (sdk/retry), S3 bucket affix clamping (sdk/object/naming.go), and system-role prompt separation test (sdk/infer/http_test.go). - Web console strict MIME pinning & no-store 404s (webui.go, webui_test.go): pin .js/.mjs/.cjs/.css/.wasm/.json/.map/.svg MIME types for distroless images and return uncached 404 for missing bundler chunks under assets/, _next/static/, _astro/, and _app/immutable/. - Secret detection catalog upgrade (clients/security/detect): expand to 26 rules with excludePrefixes and unit tests. - Dependencies & CI: bump github.com/hanzoai/iam v1.34.198 and github.com/hanzoai/tasks v1.53.12 (both served by proxy.golang.org); run the CI check job on pull requests to main.