Skip to content
DocsTry Aspire
DocsTry

Secret

Handle
📦 Aspire.Hosting.Docker v13.4.0
interface Secret {
external: boolean;
file: string;
labels: Dict<string,string>;
name: string;
}

Properties

propertyexternalbooleanget · set
Indicates whether the secret is managed externally. If set to true, the secret must already exist, as it will not be created or modified.
propertyfilestringget · set
Represents the file path associated with the secret. This specifies the location of the file on the host system that will be used as the source for the secret in the container.
propertylabelsDict<string,string>get · set
Gets or sets a collection of key-value pairs representing metadata or additional information associated with the secret. These labels can be used for categorization, identification, or other purposes as determined by the user.
propertynamestringget · set
Gets or sets the name of the secret in the Docker Compose configuration.