Module ephemeral_env

Module ephemeral_env 

Source
Expand description

Ephemeral CFS environment provisioning — launches a temporary IMS customize container booted from an existing IMS image and returns its SSH hostname.

Unlike most service modules this one bypasses the backend dispatcher and talks to CSM via [csm_rs::ShastaClient] directly: the IMS jobs.customize API is CSM-specific and isn’t exposed through manta-backend-dispatcher. The handler is wired only on the CSM site.

Flow:

  1. Read the JWT’s preferred_username claim.
  2. Look the user’s public SSH key up in IMS — registered keys are keyed by username on the IMS side.
  3. POST an IMS customize job referencing image_id and the key id.
  4. Extract the SSH hostname from the response and return it.

Functions§

exec
Launch an ephemeral IMS customize container against image_id and return its SSH hostname.