Skip to content

Commit 5753194

Browse files
authored
Merge pull request #814 from jhowardmsft/credentialspec
Windows: Add CredentialSpec
2 parents 1de23f7 + 5a9490a commit 5753194

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed

config-windows.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,14 @@ The following parameters can be specified:
9494
}
9595
}
9696
```
97+
98+
## <a name="configWindowsCredentialSpec" />Credential Spec
99+
100+
You can configure a container's group Managed Service Account (gMSA) via the OPTIONAL `credentialspec` field of the Windows configuration.
101+
The `credentialspec` is a JSON object whose properties are implementation-defined.
102+
For more information about gMSAs, see [Active Directory Service Accounts for Windows Containers][gMSAOverview].
103+
For more information about tooling to generate a gMSA, see [Deployment Overview][gMSATooling].
104+
105+
106+
[gMSAOverview]: https://aka.ms/windowscontainers/manage-serviceaccounts
107+
[gMSATooling]: https://aka.ms/windowscontainers/credentialspec-tools

schema/config-windows.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@
6565
}
6666
}
6767
}
68+
},
69+
"credentialspec": {
70+
"id": "https://opencontainers.org/schema/bundle/windows/credentialspec",
71+
"type": "object"
6872
}
6973
}
7074
}

specs-go/config.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,8 @@ type SolarisAnet struct {
432432
type Windows struct {
433433
// Resources contains information for handling resource constraints for the container.
434434
Resources *WindowsResources `json:"resources,omitempty"`
435+
// CredentialSpec contains a JSON object describing a group Managed Service Account (gMSA) specification.
436+
CredentialSpec interface{} `json:"credentialspec,omitempty"`
435437
}
436438

437439
// WindowsResources has container runtime resource constraints for containers running on Windows.

0 commit comments

Comments
 (0)