pub struct Site {
pub backend: BackendTechnology,
pub shasta_base_url: String,
pub k8s: Option<K8sDetails>,
pub root_ca_cert_file: String,
pub token_exchange: Option<TokenExchangeConfig>,
}Expand description
Connection details for a single ALPS site (CSM or OCHAMI instance).
The Vault URL used by handlers requiring vault (sat-file, session,
console, logs) is derived at startup from
[sites.X.k8s.authentication.vault] base_url. The vault secret path
is derived from a hard-coded prefix and the site name. Neither is
configured here.
Fields§
§backend: BackendTechnologyWhich backend implementation this site uses (csm or ochami).
shasta_base_url: StringBase URL of the backend API (e.g. https://api.alps.cscs.ch).
k8s: Option<K8sDetails>Optional Kubernetes connection details, required by handlers that stream CFS session logs or attach to consoles.
root_ca_cert_file: StringPath (absolute or relative to the config dir) of the backend’s
root CA certificate, used to verify TLS to shasta_base_url.
token_exchange: Option<TokenExchangeConfig>How to exchange the caller’s CSCS Keycloak token for a token this site accepts. Required: the server refuses to start without it.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Site
impl<'de> Deserialize<'de> for Site
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for Site
impl RefUnwindSafe for Site
impl Send for Site
impl Sync for Site
impl Unpin for Site
impl UnsafeUnpin for Site
impl UnwindSafe for Site
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
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