Documentation
¶
Index ¶
Constants ¶
const ManagementAudience = "https://management.azure.com/"
ManagementAudience is the Azure Resource Manager audience. A token for it is a live ARM credential for whatever identity minted it.
Variables ¶
This section is empty.
Functions ¶
func ConfiguredRunnerAudience ¶
ConfiguredRunnerAudience returns a Nuon app audience, or empty when the value is unset or not an api://<client-id> audience.
func ExpectedRunnerAudience ¶
ExpectedRunnerAudience is the audience ctl-api verifies a runner token against. presented is the unverified aud claim; it only picks between the ARM audience and the configured Nuon audience, both server-controlled. The ARM audience stays accepted until every live runner requests the Nuon audience, because dropping it first logs them out.
func RunnerAuthResource ¶
RunnerAuthResource is the IMDS resource a runner should request. An empty value keeps the ARM audience. Anything else has to be that audience or a Nuon app audience.
Types ¶
This section is empty.