Skip to main content

Module common

Module common 

Source
Expand description

Helpers used only by the manta HTTP server (handlers + service layer).

  • app_context โ€” per-request app_context::InfraContext bundle (backend dispatcher + base URLs + TLS material + optional Vault/k8s URLs). Built by super::ServerState::infra_context on every request.
  • jwt_ops โ€” extract name, preferred_username, and realm_access.roles from a bearer JWT without verifying the signature (see the module-level security caveat).
  • vault โ€” HTTP client for the HashiCorp Vault used by handlers that need backend secrets (Gitea token, k8s creds).

Modulesยง

app_context
Server-side runtime infrastructure context.
jwt_ops
JWT decode helpers (relocated to manta_shared::common::jwt_ops).
vault
Vault client used by handlers that need backend-specific secrets (Gitea token for create_session, Kubernetes credentials for the console and log-streaming handlers).