Skip to main content

run_upstream_command

Function run_upstream_command 

Source
pub async fn run_upstream_command(
    command: UpstreamCommand,
    reader: &mut impl BufRead,
    palette: Palette,
    config: &Config,
    database: Arc<Database>,
) -> Result<(), CliError>
Expand description

Resolves which profile’s [signer.relay] a command should act on.

signer is a per-profile section, but this command read config.signer.relay — the global base every profile overlays, which nothing serves from. An operator who configured the upstream only under [profiles.le].signer.relay was told “directory_url is not set”, which was simply false; and if a different upstream happened to be configured globally, register would write the account key and .kid sidecar for the