Skip to main content

ServerConfigError

Enum ServerConfigError 

Source
pub enum ServerConfigError {
Show 67 variants BindAddress(AddrParseError), RootDir(Error), InvalidServerRole, InvalidServerFrontend, MissingServerFrontends, InvalidObjectStorageAdapter, InvalidAuthProvider, MissingS3Bucket, InvalidS3AllowHttp, InvalidS3VirtualHostedStyleRequest, S3CredentialSourceConflict { env: &'static str, file_env: &'static str, }, S3CredentialFile { name: &'static str, source: Error, }, S3CredentialTooLarge { name: &'static str, observed_bytes: u64, maximum_bytes: u64, }, S3CredentialLengthMismatch { name: &'static str, expected_bytes: u64, observed_bytes: u64, }, S3CredentialUtf8 { name: &'static str, }, ChunkSize(ParseIntError), MaxRequestBodyBytes(ParseIntError), ZeroMaxRequestBodyBytes, MaxShardFiles(ParseIntError), ZeroMaxShardFiles, MaxShardXorbs(ParseIntError), ZeroMaxShardXorbs, MaxShardReconstructionTerms(ParseIntError), ZeroMaxShardReconstructionTerms, MaxShardXorbChunks(ParseIntError), ZeroMaxShardXorbChunks, ZeroChunkSize, ZeroUploadMaxInFlightChunks, ZeroTransferMaxInFlightChunks, InvalidReconstructionCacheAdapter, ZeroReconstructionCacheTtlSeconds, ZeroReconstructionCacheMemoryMaxEntries, OciUploadSessionTtl(ParseIntError), ZeroOciUploadSessionTtlSeconds, OciUploadMaxActiveSessions(ParseIntError), ZeroOciUploadMaxActiveSessions, OciRegistryTokenTtl(ParseIntError), ZeroOciRegistryTokenTtlSeconds, OciRegistryTokenMaxInFlightRequests(ParseIntError), ZeroOciRegistryTokenMaxInFlightRequests, EmptyReconstructionCacheRedisUrl, MissingReconstructionCacheRedisUrl, EmptyIndexPostgresUrl, TokenSigningKey(Error), TokenSigningKeySourceConflict { env: &'static str, file_env: &'static str, }, TokenSigningKeyTooLarge { observed_bytes: u64, maximum_bytes: u64, }, TokenSigningKeyLengthMismatch { expected_bytes: u64, observed_bytes: u64, }, ProviderTokenTtl, EmptyTokenSigningKey, MetricsToken(Error), EmptyMetricsToken, MetricsTokenTooLarge { observed_bytes: u64, maximum_bytes: u64, }, MetricsTokenLengthMismatch { expected_bytes: u64, observed_bytes: u64, }, MissingTokenSigningKeyForServedRoutes, EmptyProviderApiKey, ProviderApiKey(Error), ProviderApiKeyTooLarge { observed_bytes: u64, maximum_bytes: u64, }, ProviderApiKeyLengthMismatch { expected_bytes: u64, observed_bytes: u64, }, EmptyProviderTokenIssuer, ZeroProviderTokenTtl, IncompleteProviderTokenConfig, ProviderTokensRequireSigningKey, ChunkSizeTooLarge, InvalidPublicBaseUrl(String), MissingOidcIssuer, MissingJwksUrl, HubRequiresAuth,
}
Expand description

Server configuration loading failure.

Variants§

§

BindAddress(AddrParseError)

The bind address could not be parsed.

§

RootDir(Error)

The local deployment root contained an invalid filesystem component.

§

InvalidServerRole

The server role token was invalid.

§

InvalidServerFrontend

The server frontend token was invalid.

§

MissingServerFrontends

The configured server frontend set was empty.

§

InvalidObjectStorageAdapter

The object-storage adapter token was invalid.

§

InvalidAuthProvider

The auth provider token was invalid.

§

MissingS3Bucket

S3 object storage was selected without a bucket.

§

InvalidS3AllowHttp

S3 object storage was selected with an invalid allow-http flag.

§

InvalidS3VirtualHostedStyleRequest

S3 object storage was selected with an invalid virtual-hosted-style flag.

§

S3CredentialSourceConflict

An S3 credential was provided through both direct env and file indirection.

Fields

§env: &'static str

Direct environment variable name.

§file_env: &'static str

File-indirection environment variable name.

§

S3CredentialFile

An S3 credential file could not be read.

Fields

§name: &'static str

Credential file-indirection environment variable name.

§source: Error

Underlying filesystem failure.

§

S3CredentialTooLarge

An S3 credential file exceeded the bounded parser ceiling.

Fields

§name: &'static str

Credential file-indirection environment variable name.

§observed_bytes: u64

Observed secret file length in bytes.

§maximum_bytes: u64

Maximum accepted secret file length in bytes.

§

S3CredentialLengthMismatch

An S3 credential file changed after validation and was rejected.

Fields

§name: &'static str

Credential file-indirection environment variable name.

§expected_bytes: u64

Validated secret file length in bytes.

§observed_bytes: u64

Observed secret file length in bytes after bounded read.

§

S3CredentialUtf8

An S3 credential file was not valid UTF-8.

Fields

§name: &'static str

Credential file-indirection environment variable name.

§

ChunkSize(ParseIntError)

The chunk size could not be parsed.

§

MaxRequestBodyBytes(ParseIntError)

The maximum request body size could not be parsed.

§

ZeroMaxRequestBodyBytes

The maximum request body size was zero.

§

MaxShardFiles(ParseIntError)

The maximum shard file section count could not be parsed.

§

ZeroMaxShardFiles

The maximum shard file section count was zero.

§

MaxShardXorbs(ParseIntError)

The maximum shard xorb section count could not be parsed.

§

ZeroMaxShardXorbs

The maximum shard xorb section count was zero.

§

MaxShardReconstructionTerms(ParseIntError)

The maximum shard reconstruction term count could not be parsed.

§

ZeroMaxShardReconstructionTerms

The maximum shard reconstruction term count was zero.

§

MaxShardXorbChunks(ParseIntError)

The maximum shard xorb chunk record count could not be parsed.

§

ZeroMaxShardXorbChunks

The maximum shard xorb chunk record count was zero.

§

ZeroChunkSize

The chunk size was zero.

§

ZeroUploadMaxInFlightChunks

The per-upload chunk processing window was zero.

§

ZeroTransferMaxInFlightChunks

The transfer concurrency budget was zero.

§

InvalidReconstructionCacheAdapter

The reconstruction-cache adapter token was invalid.

§

ZeroReconstructionCacheTtlSeconds

The reconstruction-cache TTL was zero.

§

ZeroReconstructionCacheMemoryMaxEntries

The in-memory reconstruction-cache capacity was zero.

§

OciUploadSessionTtl(ParseIntError)

The OCI upload-session TTL could not be parsed.

§

ZeroOciUploadSessionTtlSeconds

The OCI upload-session TTL was zero.

§

OciUploadMaxActiveSessions(ParseIntError)

The OCI upload live-session ceiling could not be parsed.

§

ZeroOciUploadMaxActiveSessions

The OCI upload live-session ceiling was zero.

§

OciRegistryTokenTtl(ParseIntError)

The OCI registry token TTL could not be parsed.

§

ZeroOciRegistryTokenTtlSeconds

The OCI registry token TTL was zero.

§

OciRegistryTokenMaxInFlightRequests(ParseIntError)

The OCI registry token in-flight request ceiling could not be parsed.

§

ZeroOciRegistryTokenMaxInFlightRequests

The OCI registry token in-flight request ceiling was zero.

§

EmptyReconstructionCacheRedisUrl

The Redis reconstruction-cache URL was empty.

§

MissingReconstructionCacheRedisUrl

Redis reconstruction-cache configuration was incomplete.

§

EmptyIndexPostgresUrl

The Postgres metadata URL was empty.

§

TokenSigningKey(Error)

The token signing key file could not be read.

§

TokenSigningKeySourceConflict

The token signing key was provided through both direct env and file indirection.

Fields

§env: &'static str

Direct environment variable name.

§file_env: &'static str

File-indirection environment variable name.

§

TokenSigningKeyTooLarge

The token signing key exceeded the bounded parser ceiling.

Fields

§observed_bytes: u64

Observed secret file length in bytes.

§maximum_bytes: u64

Maximum accepted secret file length in bytes.

§

TokenSigningKeyLengthMismatch

The token signing key changed after validation and was rejected.

Fields

§expected_bytes: u64

Validated secret file length in bytes.

§observed_bytes: u64

Observed secret file length in bytes after bounded read.

§

ProviderTokenTtl

The provider token TTL could not be parsed.

§

EmptyTokenSigningKey

The token signing key was empty.

§

MetricsToken(Error)

The metrics token file could not be read.

§

EmptyMetricsToken

The metrics bearer token was empty.

§

MetricsTokenTooLarge

The metrics bearer token exceeded the bounded parser ceiling.

Fields

§observed_bytes: u64

Observed secret file length in bytes.

§maximum_bytes: u64

Maximum accepted secret file length in bytes.

§

MetricsTokenLengthMismatch

The metrics bearer token changed after validation and was rejected.

Fields

§expected_bytes: u64

Validated secret file length in bytes.

§observed_bytes: u64

Observed secret file length in bytes after bounded read.

§

MissingTokenSigningKeyForServedRoutes

The selected role would expose CAS routes without bearer-token verification.

§

EmptyProviderApiKey

The provider bootstrap key was empty.

§

ProviderApiKey(Error)

The provider bootstrap key file could not be read.

§

ProviderApiKeyTooLarge

The provider bootstrap key exceeded the bounded parser ceiling.

Fields

§observed_bytes: u64

Observed secret file length in bytes.

§maximum_bytes: u64

Maximum accepted secret file length in bytes.

§

ProviderApiKeyLengthMismatch

The provider bootstrap key changed after validation and was rejected.

Fields

§expected_bytes: u64

Validated secret file length in bytes.

§observed_bytes: u64

Observed secret file length in bytes after bounded read.

§

EmptyProviderTokenIssuer

The provider token issuer was empty.

§

ZeroProviderTokenTtl

The provider token TTL was zero.

§

IncompleteProviderTokenConfig

Provider token issuance was only partially configured.

§

ProviderTokensRequireSigningKey

Provider token issuance needs the CAS signing key.

§

ChunkSizeTooLarge

The chunk size exceeds the maximum allowed value.

§

InvalidPublicBaseUrl(String)

The public base URL is not a valid URL.

§

MissingOidcIssuer

OIDC auth provider requires an issuer URL.

§

MissingJwksUrl

JWKS auth provider requires a JWKS URL.

§

HubRequiresAuth

Hub frontend requires an auth provider to be configured.

Trait Implementations§

Source§

impl Debug for ServerConfigError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for ServerConfigError

Source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for ServerConfigError

Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0:

use the Display impl or to_string()

1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<AddrParseError> for ServerConfigError

Source§

fn from(source: AddrParseError) -> Self

Converts to this type from the input type.
Source§

impl From<ParseIntError> for ServerConfigError

Source§

fn from(source: ParseIntError) -> Self

Converts to this type from the input type.
Source§

impl From<ServerConfigError> for ServerError

Source§

fn from(source: ServerConfigError) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ServiceExt for T

Source§

fn follow_redirects(self) -> FollowRedirect<Self>
where Self: Sized,

Follow redirect resposes using the Standard policy. Read more
Source§

fn override_request_header<M>( self, header_name: HeaderName, make: M, ) -> SetRequestHeader<Self, M>
where Self: Sized,

Insert a header into the request. Read more
Source§

fn append_request_header<M>( self, header_name: HeaderName, make: M, ) -> SetRequestHeader<Self, M>
where Self: Sized,

Append a header into the request. Read more
Source§

fn insert_request_header_if_not_present<M>( self, header_name: HeaderName, make: M, ) -> SetRequestHeader<Self, M>
where Self: Sized,

Insert a header into the request, if the header is not already present. Read more
Source§

fn override_response_header<M>( self, header_name: HeaderName, make: M, ) -> SetResponseHeader<Self, M>
where Self: Sized,

Insert a header into the response. Read more
Source§

fn append_response_header<M>( self, header_name: HeaderName, make: M, ) -> SetResponseHeader<Self, M>
where Self: Sized,

Append a header into the response. Read more
Source§

fn insert_response_header_if_not_present<M>( self, header_name: HeaderName, make: M, ) -> SetResponseHeader<Self, M>
where Self: Sized,

Insert a header into the response, if the header is not already present. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more