Table of Contents

Class WorkflowSecretInjectionForSecretProvider

Namespace
Invex.Atom.Workflows.Options.Injections
Assembly
Invex.Atom.Workflows.dll

A workflow option that injects a secret needed by an ISecretsProvider itself.

public sealed record WorkflowSecretInjectionForSecretProvider : IBuildOption
Inheritance
object
WorkflowSecretInjectionForSecretProvider
Implements

Examples

new WorkflowDefinition("Build")
{
    Options = [BuildOptions.Inject.SecretForSecretProvider(nameof(AzureKeyVaultAppSecret))],
};

Remarks

Typically created via BuildOptions.Inject.SecretForSecretProvider(name) and added to the workflow's options. It is injected into every step that requires secrets, so that a secrets provider that needs a secret to function (for example, a vault client secret) does not have to look it up itself.

Constructors

WorkflowSecretInjectionForSecretProvider(string)

A workflow option that injects a secret needed by an ISecretsProvider itself.

public WorkflowSecretInjectionForSecretProvider(string SecretName)

Parameters

SecretName string

The name of the secret parameter to inject.

Examples

new WorkflowDefinition("Build")
{
    Options = [BuildOptions.Inject.SecretForSecretProvider(nameof(AzureKeyVaultAppSecret))],
};

Remarks

Typically created via BuildOptions.Inject.SecretForSecretProvider(name) and added to the workflow's options. It is injected into every step that requires secrets, so that a secrets provider that needs a secret to function (for example, a vault client secret) does not have to look it up itself.

Properties

SecretName

The name of the secret parameter to inject.

public string SecretName { get; init; }

Property Value

string