ecluse:ecluse-core
Safe HaskellNone
LanguageGHC2021

Ecluse.Core.Server.Pipeline.Tarball.Private

Description

The trusted leg of the artifact path: read the private origin under the caller's credential.

An access refusal commits the local error and never relays upstream's body, so a private 401 or 403 cannot be answered from the public registry. Any other miss falls through to the caller.

Synopsis

Documentation

data PrivateLeg received Source #

The private leg's answer: the response it committed, or why it did not answer.

streamPrivateArtifact :: ArtifactRequest response -> Maybe ClientCredential -> Handler (PrivateLeg ResponseReceived) Source #

Read the private origin, committing a response or reporting the miss that ends the leg.

privateMetadataMiss :: MetadataError -> Maybe OriginMiss Source #

The miss a private metadata failure leaves the artifact path, or Nothing for an explicit access refusal. An identity fault settles the request, because this path renders no 502 for one.