namespace ErsatzTV.Core.Scheduling.ScriptedScheduling;
///
/// The credential a scripted-playout program presents when it calls back into
/// /api/v1/scripted/playout/build/{buildId} (ersatztv#913, decision
/// api.scripted-build-token). mints one per build, hands it to
/// the program in , and the global API authorization filter accepts it in
/// — for that build's endpoints only, and only while the build is running.
///
public static class ScriptedBuildToken
{
///
/// The request header the program sends the token in. A custom header, so — like the machine
/// X-Api-Key — a browser cannot attach it cross-origin, and a token-authenticated mutation needs
/// no CSRF header.
///
public const string HeaderName = "X-Scripted-Build-Token";
///
/// The environment variable the token is delivered in. Not a command-line argument: the argument list is
/// logged at Information level and is visible to every local user through the process table, and a new
/// positional argument would shift the user's own arguments (the ones after mode) by one.
///
public const string EnvironmentVariable = "ETV_SCRIPTED_BUILD_TOKEN";
}