Skip to content

v0.7.0: request interception point for authentication; ost 0.23.19 - #20

Merged
piggy-penguin merged 4 commits into
mainfrom
claude/stoic-archimedes-xhog1n
Nov 3, 2026
Merged

piggy-penguin merged 4 commits into
mainfrom
claude/stoic-archimedes-xhog1n

Conversation

@piggy-penguin

Copy link
Copy Markdown
Member

Summary

The next phase-7 row of the roadmap: the authentication seam of design policy §4.3, with no provider behind it. Also moves the OpenStrata pin to the latest release.

  • HttpOptions::interceptor (usdAssetHttp): a RequestInterceptor the backend asks, for every request and every attempt, which headers to add. The rules that keep a credential from leaking are enforced below the seam rather than left to each provider:
    • consulted only for the origin the asset was opened at (scheme, host, effective port). A redirect to another origin, and every read of an asset whose open ended there, is sent bare and the interceptor is not asked;
    • asked after the destination policy has judged the hop, so a redirect to an instance-metadata address never reaches a provider;
    • Range, If-Range, the other conditionals, Host, framing/encoding/connection headers, and User-Agent cannot be set. A name must be a token and a value non-empty with no CR/LF/NUL/other control character, so a header cannot split the request. At most 16 KiB may be added, with one header per name;
    • a decline (or an exception) is AccessDenied, sends nothing, and is not retried. A malformed header from the interceptor is InvalidArgument, and nothing is sent. No added value or exception text reaches a message, identity, or cache key.
  • Resolver: TransportFingerprint now includes the interceptor identity, so a retained reader is never handed across interceptors. Supplying an interceptor to a stage through ArResolverContext is not part of this change. It is recorded as outstanding.
  • Fixture server: AssetSpec::requiredAuthorization answers 401 unless Authorization matches, and RequestRecord::authorization records the header.
  • ost 0.23.19: the bootstrap pin moves from 0.22.10 and ost-source-ci.yml is regenerated by ost ci generate github. The generator adds a ost library pull step and intent_flags/up_to matrix fields. The OpenUSD 26.08 runtime pins are unchanged: the 26.08-gl-linux-x86_64, 26.08-metal-macos-arm64, and 26.08-gl-windows-x86_64 tags on ghcr.io still resolve to the pinned OCI digests, and 26.08 is the newest version published.

Scope and risk

  • Public API addition to usdAssetHttp (RequestInterceptor, InterceptedRequest, RequestHeader, IsInterceptableHeader, kMaxInterceptedHeaderBytes). With no interceptor (the default) behavior is unchanged.
  • Security-relevant: the origin scope and the reserved-header and value rules are the point of the change. Each has a test that fails without it.
  • The regenerated ost workflow is the riskiest part, because 0.23 adds a step. CI is the check.

Validation

  • Narrowest tests while iterating: built usdAssetHttp_interception and usdAssetHttp_protocol locally against a stub transport (this container has no libcurl headers). Both pass under -fsanitize=address,undefined, and interception also passes under -fsanitize=thread.
  • Mutation check: removing the SameOrigin guard fails 13 checks in usdAssetHttp_interception.
  • Complete core suite: delegated to CI (core-ci.yml, plugin Windows lane, ost source CI). No libcurl or OpenUSD is available locally.
  • ost ci validate and ost plugin test --workspace --graph-only with ost 0.23.19 both report valid (1 bundle, 4 libraries, 5 library edges).
usdAssetHttp/interception: ok   (ASan+UBSan, TSan)
usdAssetHttp/protocol: ok       (ASan+UBSan)
Matrix openstrata.ci.yaml: 6 cell(s), structure OK

Documentation and tests

  • New libs/usd-asset-http/tests/test_interception.cpp, a case in the corpus projection over a real socket, a fixture self-test, and a fingerprint case in test_configuration.
  • Updated the module README, CAPABILITY_MATRIX, RESOLVER.md §6, DESIGN_POLICY §17, the roadmap, implementation status, CHANGELOG, and the ost version references.
  • No change to requests or bytes when no interceptor is set, so no baseline change.

Review checklist

  • Preserves the core boundary and adds no format knowledge.
  • No credentials, private URLs, customer data, or generated build output. Test tokens are placeholders.
  • Read the contribution guide.

Generated by Claude Code

Design policy §4.3, as a seam with no provider: HttpOptions::interceptor
is asked, per request and per attempt, which headers to add. The rules
that keep a credential from leaking live in the backend rather than in
each provider: it is consulted only for the origin the asset was opened
at, after the destination policy has judged the hop; protocol-owned
headers and request-splitting values are refused, additions are bounded
at 16 KiB, a decline is AccessDenied with nothing sent, and nothing it
adds reaches a message, identity, or cache key.

The fixture server can require an Authorization value and records it, so
the corpus projection proves the header reaches a real origin through
libcurl. The resolver keys retained opens by interceptor identity.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JQZ6z6UMUkSavJvgX19Tn8
The canonical OpenUSD 26.08 runtime leaves were re-resolved against
ghcr.io and still name the pinned digests, so the runtime pins are
unchanged; 26.08 remains the newest published version.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JQZ6z6UMUkSavJvgX19Tn8
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JQZ6z6UMUkSavJvgX19Tn8
…check

ost 0.23's `runtime validate` builds and runs a find_package(pxr)
consumer, which on Linux dies loading libpython3.13.so.1.0 unless the
pinned setup-python step put one on the loader path. The workspace cells
already declared host_python for the same reason; the bundle cells now do.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JQZ6z6UMUkSavJvgX19Tn8
@piggy-penguin
piggy-penguin marked this pull request as ready for review November 3, 2026 08:53
@piggy-penguin
piggy-penguin merged commit fb3595f into main Nov 3, 2026
12 checks passed
@snkmcb
snkmcb deleted the claude/stoic-archimedes-xhog1n branch November 3, 2026 08:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants