Skip to content
Docs Try Aspire

WindowsSecurityContextOptionsV1 Properties

Class Properties 4 members
Represents the Windows-specific security context options for a container or pod in Kubernetes.
GmsaCredentialSpec Section titled GmsaCredentialSpec string
Gets or sets the contents of the GMSA (Group Managed Service Account) credential specification. This property provides the serialized credential spec details used for configuring and authorizing Windows containers to use a GMSA in Kubernetes environments.
public string GmsaCredentialSpec { get; set; }
GmsaCredentialSpecName Section titled GmsaCredentialSpecName string
Gets or sets the name of the GMSA (Group Managed Service Account) credential specification to be used for configuring Windows security context for a container.
public string GmsaCredentialSpecName { get; set; }
This property identifies the GMSA credential spec configuration by name, which is often used to configure the access permissions and identity under which a Windows container operates. The GMSA Credential Spec Name should correspond to a previously configured GMSA resource in the system.
HostProcess Section titled HostProcess nullable bool?
Gets or sets a value indicating whether the container should run as a Host Process. When set to true, it enables the container to run with permissions on the host machine, effectively allowing operations similar to a process running directly on the host. This setting is platform-specific and primarily applicable for Windows-based containers.
public bool? HostProcess { get; set; }
RunAsUserName Section titled RunAsUserName string
Specifies the username of the account to run the process as, within the context of a Windows container.
public string RunAsUserName { get; set; }
This property is used to set the user identity when executing a process under a specific Windows Security Context. Ensure the specified username exists and has the appropriate permissions within the container.