[dependabot]: Bump OrasProject.Oras from 0.5.0 to 0.8.0 - #2220
Open
dependabot[bot] wants to merge 1 commit into
Open
[dependabot]: Bump OrasProject.Oras from 0.5.0 to 0.8.0#2220dependabot[bot] wants to merge 1 commit into
dependabot[bot] wants to merge 1 commit into
Conversation
--- updated-dependencies: - dependency-name: OrasProject.Oras dependency-version: 0.8.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
Contributor
Author
|
Dependabot could not find a dependency.. Because of this, Dependabot cannot update this pull request. |
Member
|
@dependabot recreate |
Contributor
Author
|
Dependabot could not find a dependency.. Because of this, Dependabot cannot update this pull request. |
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.
Updated OrasProject.Oras from 0.5.0 to 0.8.0.
Release notes
Sourced from OrasProject.Oras's releases.
0.8.0
The NuGet package is available at nuget.org.
Behavioral Changes
Locationis now resolved instead of rejected (#423).BlobStore.GetBlobLocationAsyncpreviously threwHttpIOException("redirect Location header must be an absolute URI")for any redirect whoseLocationheader was a relative reference. It now resolves the reference against the effectiverequest URI, per RFC 9110 §10.2.2,
matching what this library already does for upload sessions in
PushAsyncandMountAsync. NoAPI signatures changed — a path that used to throw now returns a value. Note that a relative
location resolves onto the registry host, so the returned URL may require registry credentials
rather than being the direct storage-backend URL this API is normally used for; the XML docs on
BlobStoreandIBlobLocationProvidernow state this.PlainHttpis enabled (#423).The scheme check previously ran only when
PlainHttpwas disabled, so withPlainHttp = trueaLocationsuch asfile:///c:/secret,javascript:alert(1), or\\host\sharewas returned tothe caller unvalidated. The resolved location must now be HTTPS, or HTTP when
PlainHttpisenabled. The check lives in the remote
BlobStorerather than in theIBlobLocationProvidercontract, so local and third-party implementations remain free to return other schemes.
Bug Fixes
Locationheaders inGetBlobLocationAsync(#423). Registries that emit a relative or
protocol-relative
Locationon a blob-pull redirect — including the common pre-signed-token formsuch as
?token=xyz— no longer fail withHttpIOException. The redirect is resolved against therequest URI and then scheme-validated, and the redirect target itself is never contacted while
obtaining the location.
asyncfrom theTrustedHosts_IsReadOnlytest(#417). The test method had no
awaitoperators, producing
CS1998(async method lacksawait), which is an error underwarnings-as-errors.
Other Changes
All Changes
... (truncated)
0.7.0
The NuGet package is available at nuget.org.
Breaking Changes
Challenge.Schemeenum is now the top-levelChallengeScheme(#415). TheBasic/Bearer/Unknownvalues moved fromChallenge.Schemeto a new top-levelpublic enum ChallengeSchemeinOrasProject.Oras.Registry.Remote.Auth. Replace everyChallenge.Schemereference withChallengeScheme(e.g.Challenge.Scheme.Bearer→ChallengeScheme.Bearer).Challengeis now areadonly record struct, andParseChallengeis replaced byParse/TryParse(#415).Challengechanged from astatichelper class to areadonly record structcarryingChallengeScheme SchemeandIReadOnlyDictionary<string, string>? Parameters. TheParseChallenge(string?)method that returned a(Scheme, Dictionary<string, string>?)tuple wasremoved. Use
Challenge.Parse(header)(throwsFormatExceptionon a malformed challenge) orChallenge.TryParse(header, out var challenge)(non-throwing).ICacheimplementations must switch toChallengeScheme(#415).ICache.TryGetScheme,ICache.SetCache, andICache.TryGetTokennow take (or emit)ChallengeSchemeinstead ofChallenge.Scheme. Any customICacheimplementation must update these signatures to compile.An unterminated quoted parameter value now makes
Challenge.TryParsereturnfalse(instead ofthrowing), and a repeated parameter key keeps its last value instead of throwing.
Challenge.Parsestill throws
FormatExceptionfor a malformed challenge.Bug Fixes below. This only changes behavior when a request carried an SDK-cached bearer token
and standard challenge handling dead-ends; conformant registries are unaffected, and a caller that
sets its own
Authorizationheader opts out of recovery.Migration Guide (v0.6.0 → v0.7.0)
Replace
Challenge.SchemewithChallengeScheme— the enum is now top-level:Update custom
ICacheimplementations to the new enum type on all three members:// before... (truncated)
0.6.0
The NuGet package is available at nuget.org.
Breaking Changes
freshly constructed auth
Clientnow validates the bearer-challenge realm and, by default, onlyallows realms on the same host as the registry (HTTPS; scheme-default or matching port; no
built-in trusted hosts). Registries whose token realm lives on a different host (e.g. Docker Hub:
registry-1.docker.io→auth.docker.io) now require explicit opt-in:ScopeManagerscope state is now partitioned bypartitionId(#404). Six public methods(
GetScopesForHost,GetScopesStringForHost, bothSetActionsForRepositoryoverloads, and bothSetScopeForRegistryoverloads) gained a requiredstring? partitionIdparameter. Passnullto preserve the previous unpartitioned behavior.
byte-for-byte compatible with
oras-go/ Goencoding/json(+is no longer escaped;<,>,&, U+2028 and U+2029 are escaped as Go does). This changes the digest of any manifest whosefields contain those characters — recompute or re-push any digests cached from earlier versions.
to more than 4 MiB now throws
SizeLimitExceededException.Scope.TryParsenow rejects malformed scopestrings that were previously accepted (empty resource type/name/action segments).
Migration Guide (v0.5.0 → v0.6.0)
ScopeManagercalls — the six methods now take apartitionId. Passnullfor theprevious behavior (or a non-null id to isolate scope state per tenant/identity):
registry (Docker Hub, GitLab, NVIDIA NGC, …), add the realm host to
TrustedRealmHostsor supply... (truncated)
Commits viewable in compare view.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)