Secret
Class sealed net10.0
Represents a Secret object in a Docker Compose configuration file.
namespace Aspire.Hosting.Docker.Resources.ComposeNodes;
public sealed class Secret{ // ...} 5 members
Remarks
Section titled Remarks A Secret object is used to define sensitive information to be shared with containers, such as passwords, keys, or certificates. These secrets can either be externally managed or provided locally from a specific file.
Constructors1
Section titled ConstructorsProperties4
Section titled PropertiesExternalget; setbool? Indicates whether the secret is managed externally. If set to true, the secret must already exist, as it will not be created or modified.
Fileget; setstring? 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.
Labelsget; setDictionary<string, string> 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.
Nameget; setstring? Gets or sets the name of the secret in the Docker Compose configuration.