Repository navigation
v0.7.0: request interception point for authentication; ost 0.23.19 - #20
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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): aRequestInterceptorthe 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:Range,If-Range, the other conditionals,Host, framing/encoding/connection headers, andUser-Agentcannot 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;AccessDenied, sends nothing, and is not retried. A malformed header from the interceptor isInvalidArgument, and nothing is sent. No added value or exception text reaches a message, identity, or cache key.TransportFingerprintnow includes the interceptor identity, so a retained reader is never handed across interceptors. Supplying an interceptor to a stage throughArResolverContextis not part of this change. It is recorded as outstanding.AssetSpec::requiredAuthorizationanswers401unlessAuthorizationmatches, andRequestRecord::authorizationrecords the header.ost-source-ci.ymlis regenerated byost ci generate github. The generator adds aost library pullstep andintent_flags/up_tomatrix fields. The OpenUSD 26.08 runtime pins are unchanged: the26.08-gl-linux-x86_64,26.08-metal-macos-arm64, and26.08-gl-windows-x86_64tags on ghcr.io still resolve to the pinned OCI digests, and 26.08 is the newest version published.Scope and risk
usdAssetHttp(RequestInterceptor,InterceptedRequest,RequestHeader,IsInterceptableHeader,kMaxInterceptedHeaderBytes). With no interceptor (the default) behavior is unchanged.Validation
usdAssetHttp_interceptionandusdAssetHttp_protocollocally against a stub transport (this container has no libcurl headers). Both pass under-fsanitize=address,undefined, andinterceptionalso passes under-fsanitize=thread.SameOriginguard fails 13 checks inusdAssetHttp_interception.core-ci.yml, plugin Windows lane, ost source CI). No libcurl or OpenUSD is available locally.ost ci validateandost plugin test --workspace --graph-onlywith ost 0.23.19 both report valid (1 bundle, 4 libraries, 5 library edges).Documentation and tests
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 intest_configuration.Review checklist
Generated by Claude Code