diff --git a/controller/api/models.gen.go b/controller/api/models.gen.go index efd5f78fef..48d3d9db27 100644 --- a/controller/api/models.gen.go +++ b/controller/api/models.gen.go @@ -116,6 +116,12 @@ const ( LaunchLayerSecurityGroupTypeVIRTUALIZED LaunchLayerSecurityGroupType = "VIRTUALIZED" ) +// Defines values for NodeAgentTokenSource. +const ( + NodeAgentTokenSourceMetadataService NodeAgentTokenSource = "metadataService" + NodeAgentTokenSourceTokenExchange NodeAgentTokenSource = "tokenExchange" +) + // Defines values for NodeAgentUpgradeStatusPhase. const ( NodeAgentUpgradeStatusPhasePending NodeAgentUpgradeStatusPhase = "Pending" @@ -694,6 +700,9 @@ type CreateNodePoolRequest struct { // ProvisioningMonitorDisabled When true, nodes stuck in provisioning past the timeout are not recycled automatically. ProvisioningMonitorDisabled *bool `json:"provisioningMonitorDisabled,omitempty"` + // RecycleBudget Maximum number of nodes recycled at once. + RecycleBudget *int `json:"recycleBudget,omitempty"` + // Infra Infra provider fields for a node pool. Mutually exclusive with `nico`. Infra *InfraNodePoolProvider `json:"infra,omitempty"` @@ -717,11 +726,11 @@ type CreateNodePoolRequest struct { // Maximum prefix length depends on cluster name length. NodeNamePrefix NodeNamePrefix `json:"nodeNamePrefix"` - // RecycleBudget Maximum number of nodes recycled at once. - RecycleBudget *int `json:"recycleBudget,omitempty"` - // TeleportEnabled Whether Teleport SSH enrollment is enabled for nodes in this pool. When omitted, the server-side default for the site is applied based on pool role. TeleportEnabled *bool `json:"teleportEnabled,omitempty"` + + // NodeAgentConfig Node-agent settings for the pool's nodes. + NodeAgentConfig *NodeAgentSettings `json:"nodeAgentConfig,omitempty"` } // DeleteNodeRequest Optional body of a node delete. @@ -1304,10 +1313,33 @@ type Node struct { // NodeAgentConfig Desired control-plane node-agent configuration. type NodeAgentConfig struct { + // TokenFrom Where new control-plane nodes' agents get their token. + TokenFrom *NodeAgentTokenSource `json:"tokenFrom,omitempty"` + // Version Exact agent release version. An empty value disables agent convergence. Version *string `json:"version,omitempty"` } +// NodeAgentSettings Node-agent settings for a node pool's nodes, independent of the infrastructure +// provider that creates them. Set at creation and cannot be changed. +type NodeAgentSettings struct { + // TokenFrom Where a node's agent gets the token it authenticates to the controller with. + // tokenExchange runs a SPIRE agent on the node and exchanges its JWT-SVID. + // metadataService runs no SPIRE agent: the agent reads an already-exchanged token + // from the DSX metadata service, which the node's infrastructure must provide, and + // requires TLS/JWT with external mTLS. Defaults to tokenExchange. Set at creation + // and cannot be changed. + TokenFrom *NodeAgentTokenSource `json:"tokenFrom,omitempty"` +} + +// NodeAgentTokenSource Where a node's agent gets the token it authenticates to the controller with. +// tokenExchange runs a SPIRE agent on the node and exchanges its JWT-SVID. +// metadataService runs no SPIRE agent: the agent reads an already-exchanged token +// from the DSX metadata service, which the node's infrastructure must provide, and +// requires TLS/JWT with external mTLS. Defaults to tokenExchange. Set at creation +// and cannot be changed. +type NodeAgentTokenSource string + // NodeAgentUpgradeStatus The active agent upgrade and latest retry error. type NodeAgentUpgradeStatus struct { // ErrorMessage Latest failure message while retries continue. @@ -1450,6 +1482,12 @@ type NodePool struct { // TeleportEnabled Whether Teleport SSH enrollment is enabled for nodes in this pool. TeleportEnabled *bool `json:"teleportEnabled,omitempty"` + // NodeAgentConfig Node-agent settings for the pool's nodes. + NodeAgentConfig *NodeAgentSettings `json:"nodeAgentConfig,omitempty"` + + // ObservedNodeCount Observed number of nodes in the pool, including pending and deleting nodes. May exceed desiredNodeCount during a rollout or after a scale-down request. Omitted when not observed. + ObservedNodeCount *int `json:"observedNodeCount,omitempty"` + // Conditions Lifecycle conditions: provisioning, provisioned, deleting. Conditions NodePoolConditions `json:"conditions"` @@ -1471,9 +1509,6 @@ type NodePool struct { // NodeNamePrefix Node names are `--` (four-digit suffix), at most 63 characters in total. NodeNamePrefix NodeNamePrefix `json:"nodeNamePrefix"` - // ObservedNodeCount Observed number of nodes in the pool, including pending and deleting nodes. May exceed desiredNodeCount during a rollout or after a scale-down request. Omitted when not observed. - ObservedNodeCount *int `json:"observedNodeCount,omitempty"` - // ReadyNodeCount Number of nodes in the pool whose observed Kubernetes Ready condition is True. Does not additionally require provisioning completion or schedulability. Omitted when not observed. ReadyNodeCount *int `json:"readyNodeCount,omitempty"` @@ -1526,6 +1561,9 @@ type NodePoolCreateConfig struct { // AutoModeDisabled Disables auto-mode (automatic node recycling). AutoModeDisabled *bool `json:"autoModeDisabled,omitempty"` + // ProvisioningMonitorDisabled When true, nodes stuck in provisioning past the timeout are not recycled automatically. + ProvisioningMonitorDisabled *bool `json:"provisioningMonitorDisabled,omitempty"` + // Infra Infra provider fields for a node pool. Mutually exclusive with `nico`. Infra *InfraNodePoolProvider `json:"infra,omitempty"` @@ -1549,14 +1587,14 @@ type NodePoolCreateConfig struct { // Maximum prefix length depends on cluster name length. NodeNamePrefix NodeNamePrefix `json:"nodeNamePrefix"` - // ProvisioningMonitorDisabled When true, nodes stuck in provisioning past the timeout are not recycled automatically. - ProvisioningMonitorDisabled *bool `json:"provisioningMonitorDisabled,omitempty"` - // RecycleBudget Maximum number of nodes recycled at once. RecycleBudget *int `json:"recycleBudget,omitempty"` // TeleportEnabled Whether Teleport SSH enrollment is enabled for nodes in this pool. When omitted, the server-side default for the site is applied based on pool role. TeleportEnabled *bool `json:"teleportEnabled,omitempty"` + + // NodeAgentConfig Node-agent settings for the pool's nodes. + NodeAgentConfig *NodeAgentSettings `json:"nodeAgentConfig,omitempty"` } // NodeSet Read-only, immutable snapshot of a node pool's configuration at a point in time. @@ -1582,6 +1620,9 @@ type NodeSet struct { // Nico NICo settings in the snapshot. Nico *NicoNodeSetProvider `json:"nico,omitempty"` + // NodeAgentConfig Node-agent settings in the snapshot. + NodeAgentConfig *NodeAgentSettings `json:"nodeAgentConfig,omitempty"` + // NodePoolID Owning node pool. NodePoolID openapi_types.UUID `json:"nodePoolID"` diff --git a/controller/api/openapi.yaml b/controller/api/openapi.yaml index 51c4995561..6d208e8224 100644 --- a/controller/api/openapi.yaml +++ b/controller/api/openapi.yaml @@ -1188,6 +1188,11 @@ components: version: type: string description: Exact agent release version. An empty value disables agent convergence. + tokenFrom: + x-fern-ignore: true + allOf: + - $ref: "#/components/schemas/NodeAgentTokenSource" + description: Where new control-plane nodes' agents get their token. ControlPlaneComponentConfig: description: Arguments for one control-plane component. type: object @@ -1735,6 +1740,27 @@ components: #-------------------------------- # Node Pool #-------------------------------- + NodeAgentTokenSource: + x-fern-ignore: true + type: string + enum: [tokenExchange, metadataService] + description: | + Where a node's agent gets the token it authenticates to the controller with. + tokenExchange runs a SPIRE agent on the node and exchanges its JWT-SVID. + metadataService runs no SPIRE agent: the agent reads an already-exchanged token + from the DSX metadata service, which the node's infrastructure must provide, and + requires TLS/JWT with external mTLS. Defaults to tokenExchange. Set at creation + and cannot be changed. + NodeAgentSettings: + x-fern-ignore: true + type: object + additionalProperties: false + description: | + Node-agent settings for a node pool's nodes, independent of the infrastructure + provider that creates them. Set at creation and cannot be changed. + properties: + tokenFrom: + $ref: "#/components/schemas/NodeAgentTokenSource" CloudInitFile: x-fern-ignore: true description: A file written by cloud-init on CAPI-backed nodes. @@ -1946,6 +1972,12 @@ components: type: boolean description: Whether Teleport SSH enrollment is enabled for nodes in this pool. When omitted, the server-side default for the site is applied based on pool role. x-order: 21 + nodeAgentConfig: + x-fern-ignore: true + allOf: + - $ref: "#/components/schemas/NodeAgentSettings" + description: Node-agent settings for the pool's nodes. + x-order: 22 nico: $ref: "#/components/schemas/NicoNodePoolProvider" launchLayer: @@ -2184,6 +2216,12 @@ components: default: false description: Whether Teleport SSH enrollment is enabled for nodes in this pool. x-order: 27 + nodeAgentConfig: + x-fern-ignore: true + allOf: + - $ref: "#/components/schemas/NodeAgentSettings" + description: Node-agent settings for the pool's nodes. + x-order: 28 nico: allOf: - $ref: "#/components/schemas/NicoNodePoolProvider" @@ -2336,6 +2374,12 @@ components: default: false description: Whether Teleport SSH enrollment is enabled for nodes in this node set. readOnly: true + nodeAgentConfig: + x-fern-ignore: true + allOf: + - $ref: "#/components/schemas/NodeAgentSettings" + description: Node-agent settings in the snapshot. + readOnly: true nico: allOf: - $ref: "#/components/schemas/NicoNodeSetProvider" diff --git a/controller/api/server.gen.go b/controller/api/server.gen.go index 64b00ec3e8..5604d0a489 100644 --- a/controller/api/server.gen.go +++ b/controller/api/server.gen.go @@ -2435,386 +2435,391 @@ func (sh *strictHandler) ListReleases(w http.ResponseWriter, r *http.Request) { // Base64 encoded, gzipped, json marshaled Swagger object var swaggerSpec = []string{ - "H4sIAAAAAAAC/+y963IbN7Yw+ioozq6KnSJpSZadWP5xSpHsRDOxrSMpyd4z9AnBbpDEuAlwA2jJnBlV", - "fe9wzhPuJzm11gK60TdeJNlJ9vjHTCx2N67rfv1nL9GLpVZCOds7+mfPCLvUygr847U2E5mmQsEfiVZO", - "KAf/5MtlJhPupFZP/m41PrbJXCw4/Os/jJj2jnp/elKO/ISe2iffCyWMTF4Zo03v9va230uFTYxcwli9", - "o97VXDCnPwjFroWRUynSPpvkjklnmc0nfxeJYwvukrmwTGnG04W0VmrFTJ6JYe+23/tJ8dzNtZH/EOln", - "W/Zbza55JlM2EdwI47dwwy1bGmGFciId9uAzPyDMdyKMk1NYj7gQStzw7NJxl+Oz5qEYkWiTipRlciqS", - "VZIJZh13gnGVMp27RC8E01PGWVKOOzA0MMMPhr1+b2n0Ep7T/cJOM+FEeuyas/4yF4q5uWB+tjxJhIAV", - "aMOmXGawpX5vqs2Cu95RL4X5nFyIXr/nVkvRO+pZZ6Sa9fq9jwNYu+kdfXPb7+FwZ6ft27wSi6U2PGM3", - "2nyYZvqGnZ0yN+eO6RtlmZtLu36DnVPv3/Z7tOy3Ou2cH6DF6GywzLgSTOlUsImQasaWRifCWpGym+q5", - "0Jh9+tlD2CQTlbPJc5muW9u3t/hyItLmqn6ZCzcXBmcsDgUgS3yEuaTLVoy+ZZMV44rBBXOnTXQaE60z", - "wVU85eFtv7cQ1vKZaM55zCY6V3jXfrDBlCdwDLDb3AA0LBbcrGCOBf/4o1AzN+8d7e8dHK67gr3bfs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j7rvji1e/vnl1dfxjr9+L", - "3mxx2tUb0BF0vN9Aou9v8u/s2dJR32LILvlCMDvnS4GBrdEAde0R3DnteZBGUChx5XO2aMniXUPBp3k2", - "lRTo1h3i4o/IsrkvhnBCVR+BZ2jfauydj8FlXnGE17xcELthv3t1efXrq9ev311c9fq94x9//PXdxa9v", - "3139cPb2+16/98vx2dWvr99d/Hrx6vLdTxcnr1pds3Nt3bvLzv6A33EjBgvheBY692Fuwqg3yvf2nibA", - "8PFfYtQDKG/+fkQ/+ESH8G63tel64ddyHxyNozA7e5FalvAlTwCHMHJsJq+FIkDqI8R5VyukXCwO9vYo", - "7aIaLXv3xq8Rbb4Q0zvTdfy2lQXdZTQcqriB7jSPzwMKFdC8l1hZTSqLYOMO9OxOJigQCCs1dCpEaJ2o", - "GNl8Rqow+mgl2m0+7JhiIUUy1yEYHArpFpkpWK53gdFPy2VNlms9g3sanzvpecX2HF9KLEr7sMlQ+szL", - "5BXAgDdKqhGc81a4LyT6C4n+QqL/t5PoB/EQ1MkzNkGN3ALsUbykfnXb/RIh+iPVQmH6rAFLtZ/s489D", - "/IFMLUZqR+L/sAYXH5wZDpRNxFxis2BKeyyS1CarkfJ6nIovxxsoh77RdtEfA60CynMI6ay/upFC4V44", - "FP5pFoycXQlXifuiCqEq9KtetJeLpkVvMroFhlFs8n4GOK+HtKaHzFdWJjwLukr1bDOO8dBaxY18OLv2", - "NCK8d5+1GZ58aFvYBU8+tC5GKghjXuYZD11N0IMV1gTcfBk2Fb61n8yoeD+vRatwI1UAs+19Fl/kkn8D", - "ueSLJPKHkETWkYvKAewqZNRtdhWFcEdjcJV8tHtnqmZnjAbvU68ioRLKLyhTX9m15E05ZThSx2VCMgK7", - "V8UODiFZ3fDECWOLTGVYoayUsCQ2GqUcHxxulXI88P9am3Jcphl3o2tUxTa2jdKZUE6Bl6PopdJGSu9U", - "00ZCUkiZMtJGGV3ras4WPgoFBLXA78DSm3CFFgEuFTHDD1KlKCnhCirJSHc34fr0VreFU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/421pC9qyWflWTpt", - "Dda0Us2ykvcgnSmaC+MOMjnFXqYUwOMbrSZaESVrD7v2z7aPY6HOicV3zdCVHzetotZ9eH1PG0REaVub", - "p3W0CIz6vMbzXJBNe/udnjQ/9u25mps+afGPA9XH3cq0I8J529izKOZTLrvGOmc8TQ3YJT5B09xvms1T", - "tzvErsoDLXBTvslKgajPCsGADLqYnN4maxXSVWd71qK9apWUVprpDG4Ge9S/s/MaDqMuplviTF0MvX3f", - "KkR0b7squW3cvrdqtIZ9Uu5eZDbHyF+ZsZ9+OjvtDDTbBU4P/BIuhVuzgmB9fPj5nzaqj8Dr0aHEy+u3", - "NQmlPwONe99BpY9nQrmy5fwOIuMpdaFt2emAw6C1hjcNwn3d1YgeS50yGiNIGv7lyABDnt1UWuogXkx5", - "LcxMtFaPuL1ddwY/UfvrruaFcME8Qe5KU/l22QjZGXfCwmJd6OPX3C7+/KarpdaPNELoK+f7W4HFOxM4", - "rsTilcpJlbdtrd9bCDfXaZvbAZtC4iUweonsabWu7I3baswAV3vWNsNp0CktiritMLGV6NnRAvDcNwWf", - "iKk2IrS5pB2R83fILqj5G5MqyXLgXP7Q4iRlP06v3/Nvt2dJczMT7uf10OnhseyKR/qLtAEuNnd788dZ", - "n7C4ybL1WwV0uhD5pCIHtYRZoABSvAUmVl90xiwovVNTlAWF3vpG7P1SX5ZqdpJxuUDnY/xrH8OzV1f6", - "z1qqPvu7lspniUa69suyU35lopHC30MzXZGyRy2k83HUa1/NOqy9UUiKmApjRHpRtprfSWSiI9pFRGJX", - "Jg/ouk7kM2LCM7RM2NzMhK/+s9BGDJZh1ZUO+RM8JSA3zGlm53CyLBPWRu9T492GUOrlvYsC5j7LCYhS", - "/WapnE4x4yPQm7TkGTGxwTygChQ8zGKPCWQE6qYTISJ8heK7TnCDPZHnnNqW+qSgIavukgbxNZtC11M2", - "F1gby1iHwOm/RZ8Gd4wzJxfiJRsHoB3DASif1eArXocFDNlxtZRg+KgE+whBpMWz9v2ow6sPc2JXE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ER3EtFKrv", - "tILvuBXsp4sf8Vs4XqEcpePhmrLS4EGDekSknKHxE76UAAJeo/FeeLvUygo20akMpb0wbovsc0/+brUa", - "+wM4rpjuYM5XaGMuZi2FLK7YD1dX54xAjCEQskd//uUKrpOs2lWwHbO54KkwVL6hAPsC5C0jcwiNRBji", - "G3vU44iA/FpHB0wfUUdeFzbIU09t2BWM5mtZY/N0OSvti4pxu1oshDMyYTybaSPdfIHW99gSTmshjFyx", - "sfi4HBMojW0+GZP5h5S6ymc8TyW2zmLH6UJalBtMHmAnFVNU5ZfCjBTNEA0kJJpuI6yDm5aJYDxBjziW", - "uLk8P3v9+hUAHt7fvxhF/rJ/sQu0f4YiN/8aqX8NBgP8H7x2uLfP/sXeajrrfuGFCRuVigJc4bA44VMI", - "yfVfaMNujFazaJNXc1ECW1FinrPxL7/8MogASxwxIl8lQPhFPWX/wlECBPgwW+gtI52FvDUgyaH+D1Oa", - "8crB4kAjVWK2njhKc2N2ro0bZPI6bKHKfemYgLLwGXzhGK9AXbB1Epa8MkYbi9gB/yp2jSSL8dCWE1vu", - "2zlfiqORGv+TjYJ1bNQ7YqPecRg1mPOpCbtvPepCCNxoNKq2I4QfRj12O65d+RvBUfBoXvaeP1df3SlY", - "mPB0CdHZFXDK4tIWPAP7GkAnd3O47P/OgQwsueELQeXfgdH6sLA+eqjVALv1nZ0+7rM0J/pCe7D9kH2I", - "18Supc48DcukdQX9AkmxJDUFWOyzJx44quQJ1lUCgDdv9pkVggTWYoDDYv9W5yaJTBF44iCz0GXJ4DgQ", - "afHxi9rhAYJnMgn3VNjgYA3hIiNTIqFKuNElVU8PC/nK+l40NNkzvKmfIPydzD8+Co9a4OEqcJkkGWDg", - "gO/UQID/9dfHdqWSudFK5zZiFQCq5KKIfvRbZQd7+9EChbF4JSNFAhAkholUciey1ct6pTrqn1eo7qD1", - "QAl+lUIZikw4MVJt8x34iH+Sj6PDiLo7JWVntSto8DlS4USBPC91lpU1y/ytErcj1RHoRWQah7MzqH8o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X0Bj5/e1tv/VpWE7H4+pUt+9v39/+BvGPW5b5+M+Lh/wjhBq+9plOHE8VWXbh", + "ZKgGFf6RYwrvGEnYiP77pJi/rzF7X2P2vsbsfY3Zu8eYvbtE6pGY+UcLu6vC9boQvBgIr1ugsPybPcjE", + "jCerhwE8ox9awbIdCKmUGIVB9atssAqJltmlSORUJrGGBev/THGCW0pmX+MGfxdxg1ve1v+COEK/0x5E", + "BPb6/3mBheyXaLH9oiSAMAMr0wJ7ClXZSod2UE8hd4lLjLXFigax0QDhjRatabj0BiBfn4WDzFZ9zNqU", + "SjrJM8LDpdaZJTdQkX6z5KtM8xRLyk0LiaM0M/ynaurbVZEtq2A4zfS1GpSMqooCLOGZTDTCTUGpB5PV", + "IEAXsTqsUmFkWik7TZ/2+r3qBL33caWG2rM2jGstAre7U2jLyrgoFvx1+N/Dv1VP6fHw8d5wH7HJ79kf", + "jTbsYHg4PMBH1e1Ui1LgWz0s4+yEgWn/fw/2/v33/cGz96NR+u3D0Wi49u//2v504oLArSbAtQR5gwVx", + "9xq5Tat5acAL1RnDqZNXQ+konft61KuV9xg+fjw8vPejjLzVG8vr/iwN+OLZ2XmxlajibpAcABQG13JJ", + "QY0ARgCvxc8UTZRbEcU5NqXWbyzMwm19EqFShHdvflHajdSUZxmTChkAvL7U2BejWirmONJzsAqED82p", + "pMCP1A+rwEP6tRRSlAmgrDBbFFVnxEeeQMyYVqISPFjbzJChbDTIl94ypP2DfrVmL/wUC3QjVWhpOHEk", + "IEeSYSQrE/dstySN1BamJGA43BWUjX0QYknDeeYk/ynVbKQaVxTu5blfP2XZcheFXRnBP+BVcuwoMRyp", + "/2+uTb7os7ngGXr1vDcPcGVptBMYowISm8wyql1UK0raWcZ5N1L57PdejTnSDHYozTxSUW1mtnVp5s3V", + "mP0jKmsYCjCzEwquc7lRFN6W8YA8bEzH+6IcV2o1fg6QobSLP5tOdyrl/P1uxsp6odk72ymbA21R/pi9", + "0jfCJNwKdvrmkmWgvoPeK/8nF2xZ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ojerv/RWfiOxTrpwG+Hrbv/fb/ngJhmeigUhJkW81", + "WZKl1cDJTfR1YbotWGO4HV4k37I9thAcMf5/cqGc5NkREzyZj1RQBZ02iqHJNfhynI2vtG6hGKnt+evT", + "9XE0CB3wfMjedVYKZ2WB7PUBG3eOqFlPqturZhU0WrUEcewWTFEEFLTM3RE00OB+G4XCg+/9Wu+LqPBq", + "pGk1fgE1xgVHNeoDILTTFIdhG67ldswJ7PipX3VVUd7+gKPv2k/Xq6nciJo+XdGXl00V+s2bN2+8As0e", + "THVuvH5MOvPDflESv6rxAnBrx0vYueJStZUvpd/XHXPrUW5dGhTHbw06DWcP8Xq+Weo66futf4WpqhjO", + "pCqWHLMUb+qpeA/Dhl5zLJ8tRLqZtjFtPAPhnh0hEQttTerhbS40fk3r+kG1tNlaevZ9zVz6WivptKnq", + "1J6Ct0YBYYdXnCbYFVyefICjiodlS24xOAodVrDXUO+b9H6Rljo6+Ik3aOOHwbK6vQ4VXx67mWsriuOL", + "JXI0iMVWR+8GY6dakPuuJDLZqmC1lb36IqHwuTassLzJDOpefJZbfIbngQf5Q57OhGurhk+WpzpMl+fv", + "mPbBY1vyQtDK7co6sWhTxjzQ9Paf/ih7/S20MxqKpVwsICKavfHrw1cYDFPJ2Viv9TyO7NKVJuMbYBnt", + "GYXtGFKdhQL0DHKDoLGKrOeqyWO4u23jAIiSL/BxR2hecAcy7SxuglR3f8f0qqmA9plc8JnwQbUShKpQ", + "AzVwaVBHvX28NWqjhfoVwrisBf7QiqFKTBqwKiASAL1UwmLK6LUwcrpixkfdWD11N9yIz4JDj/da42NL", + "m18RElvj3m26fyNuNpJTKkyyYvprsQx1mTpbzGH9ph12PWmvk4wuk37NyHj0ry1sjJTVE4VTtwUHNQzJ", + "nynKAJGkNdTg8zlBw5xf0BPamJL8c3W/VNXv1OFgWgsLqDiXykHd3VAuBsmJs6WJryQmsOri5ynIPzc1", + "OxdFaMqWCgKksClN4VZq5Q8w3iXqTcFw+f623/o0too13qFPW14qb8yvoDHy+9vbfuvTsJyOx9Wpbt/f", + "vr/dztWyjqfdo+tl//v1rpetl/FJrhiU4pt+iW34eoefws51nqVsIkC2A1CzVUvxp3gwdkso2v8cLoen", + "W7kcrqLAuTV6z5C9bOSiwO+gIs9mRsyo2o5vGkhGnX1WBG/H9/bz2XmIUA9ez1xlwPodruVaZHq5EMpR", + "pjAaiuLss18opxKG8XQlEtC2F2PRuVR4OO7g17h3f4SPYgdHxPAestT295segDvb/b+a8L+a8L+a8P/3", + "33a7jXtbm3aZRjpb5gMKO7G19phPHm/VH5P+MRysb5BZc1gHs/nuxvI/jvn74MuZv2Phe70pPEaU6xZM", + "Kf9mDzIx48nqYUCh6IdW1GlHFAqWJ57ar8oPVWyxzC5FIqcyidkurP/OaFK3NzXN+rsY8z/VeF6tPP9G", + "+31Tu5MWge03vixvEoBCgvCumE5F4tiSS8Og3hlfLgU3xBCCWfIePAE73urhH9E6vt9hDe7yw34Gy/De", + "79AyvOPV73UZkO/XYMx+qZQhovxGcy3MwMpUFHFIgUdY6Sjjy9OBCbeE4DAYMzoTdzFB73e0UG4xR9Zo", + "XJed6LLNBXERqj6BudlLC0UBqJrF8BtbMxljthPeFh6gpHoVdfshrnc3E3pYwN1Nx/trYu7Aodkecdcx", + "flyS925Rd3HNru2C7qxwv8+Yu41ntEXYXUu4XcvNb5zpPkLo1t9MawRdY6l3DgpZP3mjXFtz1i8tF29x", + "S+2gulOhl7tgZjdr+wycbONqvqybMxCMNUtby3c2V6GpUPF271rrBXTyoqU0HgA7yi68VUUhiqjiRbVn", + "YCavBZus0J9RJvM1edCc2595JlOorNFuZQ3uzGgqlltfVJSYnjecYsYvbNEyrkYqV+Ij7CVlfx0+2XvG", + "YIo+s5pJx+Yaa2myBFYyxcohISGaOxrEVGoXtgiOT7HAQ0ftiF/mq0q+Va6M4Mkcebiv1adQD5QpLmyt", + "Tfr77apRbayldHbaMcIdgtyL7bTfWnnnjCt7I4xIvfBGOEaqytif3xiOyGNJ94FjN1e8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WcthqAxJANIufBzY86AgYuVZykSPgQ8NPHL8m24t9ec4WdE/+pWo", + "E4+d76qhDmixJfhBpI5DH2K7L4DgK+ALAG/wjxYU5llUHdEIi71hpSpZUeBQw5E65zOpyu7CaEeHz4J6", + "avOl93AEBcqfJ5QXyYqAHwGdO4FHAriyd8qIRM+U/KdIm7wC3ictKw2C7zsVN/9NmVApBsijGAyEjlAk", + "LMyLuaU92PNwleJjnTtMI0ahE4XgkSoweqFTkXmMOgd29m92npultqKBTOMfX1yxR3opFF/K4YovEHO8", + "uKpAHXo83CsKLNAhFjVJjs/Phiwahi/lo1Qn9hGMcaacML5pB4yT6iRfCOW9hA8ubzgG0L47e1gZgxqo", + "/RNGeCWvhULfFMl2lo3/NepZ5P6j3tGopz+MerfjyufIjf5J2O/rTcYFZkK4V7JiyVwkH6Kxn+w9JpmI", + "x29hPlQR5e/h+k9/Ymckfa/gT1IYitOfYxkNn+tN7YlEStg2luk49EgO6h5wTu7mIM+eRC2CCIZyKsuy", + "FKaRWfC81D0bHxRRMVFAUhgcKA2J7NZjoDNSBFgrlcS+D3QuIun8hVM4gXQYje+13Ehof6FmUgn2APTV", + "h/BBL+qK3tsb7g/3Bhw0TbCCeLjrHfUeD/eGj8l4OEdzw6Ogc8Mfs/akc7o4IAWlgu7trf4H701EsTII", + "0WP4awz2kYKsQFviHlCakzBpv1diMzpdah4CpAvFtEAGcY4HSCRoqofol+kd9ZA6hMylI/qPt1jwliou", + "EExRyNfw/GBvL8SChU60NWUWfivHW2skjTZ54Sch80jdeJMh4S2Cmi3c1+HeftcExYofEaEDJVik9NHj", + "zR+91GYi01QoMj/liwU3K38p5RL6Pcehm/3fe8VFoaNK2xb4OClcgoXWEfqs1kppsjhaJZKIvcG22q44", + "FIEWpIEGKASdY6pNn/EFKInazYWxR0BMCsUg7gD2nKEUr2YjRSxcm9nZ6bjPxlY6cXaKORrj62VydjqG", + "uBiWq5JNjRMlz7N8JhU8Gyk/FBs3wwWHFfkA3676lMbBIj5mM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q9yyRh8WljlMWmDMHjMN5idc2qgq+oaZRQDP1JtUvSbzp6lrNmy9MrnBbQAmp5WjkpatgHs", + "Rko62wlt5Zm8iYuLNA/EhOLE/Uj8DPPUVvVNfT70Q6GIM1JShZCWEA8+9EL/m9LuK7HL7FT6Itu+m65W", + "orlkHzHbXLEPBwp+1viE+/RXBeKkagovfeonyzI5RXrvtWykVVW7SnVRbQvy1ZFYQhYwOyw/CUax2/e3", + "/+8AvuL1uS7WAQA=", } // GetSwagger returns the content of the embedded swagger specification file diff --git a/controller/cmd/worker/main.go b/controller/cmd/worker/main.go index 08b8f50881..c305801f35 100644 --- a/controller/cmd/worker/main.go +++ b/controller/cmd/worker/main.go @@ -385,6 +385,28 @@ func main() { logger.Info("LaunchLayerMachine CRD not installed; skipping the LaunchLayer SPIFFE controller") } + // Publishes a KubeVirt VM node agent's address and identity. Gated on + // CAPK's CRD for the same reason as the LaunchLayer controller above: an + // existing cluster's replacement VMs still need theirs. + kubeVirtCRDInstalled, err := capi.KubeVirtMachineCRDInstalled(k8sControllerManager.GetRESTMapper()) + if err != nil { + logger.Error("Failed to look up the KubevirtMachine CRD", "error", err) + os.Exit(1) + } + if kubeVirtCRDInstalled { + kubeVirtSpiffeController := capi.NewKubeVirtSpiffeController( + k8sControllerManager.GetClient(), + cfg, + logger.With("logger", "kubevirt-spiffe-controller"), + ) + if err := kubeVirtSpiffeController.SetupWithManager(k8sControllerManager); err != nil { + logger.Error("Failed to set up KubeVirt SPIFFE controller", "error", err) + os.Exit(1) + } + } else { + logger.Info("KubevirtMachine CRD not installed; skipping the KubeVirt SPIFFE controller") + } + if cfg.NicoControllersEnabled { nicoCRDInstalled, err := capi.NicoMachineCRDInstalled(k8sControllerManager.GetRESTMapper()) if err != nil { diff --git a/controller/deploy/charts/controller/README.md b/controller/deploy/charts/controller/README.md index 0950002e99..db57883806 100644 --- a/controller/deploy/charts/controller/README.md +++ b/controller/deploy/charts/controller/README.md @@ -186,6 +186,7 @@ working either way; `--namespace` names one outright. | autoscaling.targetCPUUtilizationPercentage | int | `80` | | | capi.rbac.create | bool | `false` | Create RBAC for the controller to watch and patch CAPI-backed infrastructure resources. | | capi.rbac.launchLayer | bool | `true` | Grant RBAC for LaunchLayer's CRDs (launchlayerclusters, launchlayermachines, launchlayermachinetemplates). Only applies when `create` is true. Keep it true while CAPLL's CRDs are installed. | +| capi.rbac.kubeVirt | bool | `false` | Grant RBAC for CAPK's CRDs and the per-VM Services and ClusterSPIFFEIDs. Only applies when `create` is true. | | capi.rbac.nico | bool | `true` | Grant RBAC for NICo's CRDs (nicoclusters, nicomachines). Only applies when `create` is true. Setting it false requires `controllers.nico.enabled: false`. | | cni.allowLegacyCalicoClusterCreation | bool | `false` | Permit new tenant clusters to use the legacy Calico CNI. Existing Calico clusters remain manageable when false. Legacy fleets that still create Calico clusters must set this before upgrading the controller. This compatibility setting is for legacy fleets only. New deployments must use OVN-Kubernetes. | | cni.imageRegistry | string | `""` | Optional OCI registry prefix for CNI component images. Empty uses chart defaults. | @@ -236,6 +237,8 @@ working either way; `--namespace` names one outright. | nodeAgent.externalMTLS.secret.newCertificateKey | string | `""` | Optional Secret key containing the new-form PEM-encoded client certificate chain. Set together with newPrivateKeyKey; leave empty for nodes that only use the original identity. | | nodeAgent.externalMTLS.secret.newPrivateKeyKey | string | `""` | Optional Secret key containing the new-form PEM-encoded client private key. | | nodeAgent.externalMTLS.secret.privateKeyKey | string | `"tls.key"` | Secret key containing the PEM-encoded client private key. | +| nodeAgent.kubeVirt.addressPool | string | `""` | MetalLB address pool for VM node agent Services. Must be reachable from the controller. | +| nodeAgent.kubeVirt.spiffeIDClassName | string | `""` | className of the SPIRE controller manager that issues DSX identities to VMs. | | nodeAgent.readiness.workers | int | `8` | Maximum simultaneous node-agent readiness reconciles. | | nodeAgent.readiness.timeout | string | `"30s"` | Deadline for agent transport setup and version RPC. | | nodeAgent.readiness.interval | string | `"2m"` | Delay after a reconcile before its next periodic check. | diff --git a/controller/deploy/charts/controller/files/controller-config-env.yaml b/controller/deploy/charts/controller/files/controller-config-env.yaml index 4a7f99e8ef..14328f6202 100644 --- a/controller/deploy/charts/controller/files/controller-config-env.yaml +++ b/controller/deploy/charts/controller/files/controller-config-env.yaml @@ -40,6 +40,8 @@ NODE_AGENT_TLS_JWT_SUBJECT_TRUST_DOMAIN: nodeAgent.tlsJWT.subjectTrustDomain NODE_AGENT_TLS_JWT_DSX_IDENTITY_EXCHANGE_URL: nodeAgent.tlsJWT.dsxIdentityExchangeURL NODE_AGENT_TLS_JWT_SUBJECT_TENANT: nodeAgent.tlsJWT.subjectTenant NODE_AGENT_TLS_JWT_SUBJECT_SERVICE: nodeAgent.tlsJWT.subjectService +NODE_AGENT_KUBE_VIRT_SPIFFEID_CLASS_NAME: nodeAgent.kubeVirt.spiffeIDClassName +NODE_AGENT_KUBE_VIRT_ADDRESS_POOL: nodeAgent.kubeVirt.addressPool NODE_AGENT_EXTERNAL_MTLS_ENABLED: nodeAgent.externalMTLSEnabled NKE_OIDC_AUTH_ENABLED: oidc.managementOIDCAuth.enabled diff --git a/controller/deploy/charts/controller/templates/configmap-controller-config.yaml b/controller/deploy/charts/controller/templates/configmap-controller-config.yaml index f6f44571a6..a084f3bfff 100644 --- a/controller/deploy/charts/controller/templates/configmap-controller-config.yaml +++ b/controller/deploy/charts/controller/templates/configmap-controller-config.yaml @@ -108,6 +108,9 @@ data: dsxIdentityExchangeURL: {{ if $tlsJwt.enabled }}{{ required "nodeAgent.tlsJwt.dsxIdentityExchangeURL is required when TLS/JWT is enabled" (trim $tlsJwt.dsxIdentityExchangeURL) | quote }}{{ else }}""{{ end }} subjectTenant: {{ if $tlsJwt.enabled }}{{ required "nodeAgent.tlsJwt.subjectTenant is required when TLS/JWT is enabled" (trim $tlsJwt.subjectTenant) | quote }}{{ else }}""{{ end }} subjectService: {{ if $tlsJwt.enabled }}{{ required "nodeAgent.tlsJwt.subjectService is required when TLS/JWT is enabled" (trim $tlsJwt.subjectService) | quote }}{{ else }}""{{ end }} + kubeVirt: + spiffeIDClassName: {{ trim .Values.nodeAgent.kubeVirt.spiffeIDClassName | quote }} + addressPool: {{ trim .Values.nodeAgent.kubeVirt.addressPool | quote }} externalMTLSEnabled: {{ .Values.nodeAgent.externalMTLS.enabled }} oidc: managementOIDCAuth: diff --git a/controller/deploy/charts/controller/templates/rbac-capi.yaml b/controller/deploy/charts/controller/templates/rbac-capi.yaml index c9a38d369b..97edd596aa 100644 --- a/controller/deploy/charts/controller/templates/rbac-capi.yaml +++ b/controller/deploy/charts/controller/templates/rbac-capi.yaml @@ -77,6 +77,59 @@ rules: - provisionedmachinetemplates.infrastructure.cluster.x-k8s.io verbs: - get + {{- if .Values.capi.rbac.kubeVirt }} + - apiGroups: + - infrastructure.cluster.x-k8s.io + resources: + - kubevirtclusters + - kubevirtmachines + - kubevirtmachinetemplates + verbs: + - create + - delete + - get + - list + - patch + - update + - watch + - apiGroups: + - apiextensions.k8s.io + resources: + - customresourcedefinitions + resourceNames: + - kubevirtclusters.infrastructure.cluster.x-k8s.io + - kubevirtmachines.infrastructure.cluster.x-k8s.io + - kubevirtmachinetemplates.infrastructure.cluster.x-k8s.io + verbs: + - get + # For VMs in the management cluster: the controller creates a Service and a + # ClusterSPIFFEID per VM node, and makes the VM the Service's owner. + - apiGroups: + - kubevirt.io + resources: + - virtualmachines + verbs: + - get + - apiGroups: + - "" + resources: + - services + verbs: + - create + - delete + - get + - patch + - apiGroups: + - spire.spiffe.io + resources: + - clusterspiffeids + verbs: + - create + - delete + - get + - list + - patch + {{- end }} --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding diff --git a/controller/deploy/charts/controller/values.yaml b/controller/deploy/charts/controller/values.yaml index 69269a8191..a0f6d41ba8 100644 --- a/controller/deploy/charts/controller/values.yaml +++ b/controller/deploy/charts/controller/values.yaml @@ -146,6 +146,11 @@ nodeAgent: # -- DSX Identity token-exchange endpoint injected into node-agent bootstrap # arguments when TLS/JWT is enabled. dsxIdentityExchangeURL: "" + kubeVirt: + # -- className of the SPIRE controller manager that issues DSX identities to VMs. + spiffeIDClassName: "" + # -- MetalLB address pool for VM node agent Services. Must be reachable from the controller. + addressPool: "" externalMTLS: # -- Pin an externally managed client certificate transport for newly # created nodes instead of the controller SPIRE X509-SVID. Keep the Secret @@ -442,6 +447,9 @@ capi: # launchlayermachinetemplates). Only applies when `create` is true. # Keep it true while CAPLL's CRDs are installed. launchLayer: true + # -- Grant RBAC for CAPK's CRDs and the per-VM Services and ClusterSPIFFEIDs. + # Only applies when `create` is true. + kubeVirt: false kubeadm: # -- OCI registry kubeadm uses for control-plane component images. diff --git a/controller/docs/configuring-node-agent-tls-jwt.md b/controller/docs/configuring-node-agent-tls-jwt.md index eea3084a79..66b58c25e2 100644 --- a/controller/docs/configuring-node-agent-tls-jwt.md +++ b/controller/docs/configuring-node-agent-tls-jwt.md @@ -75,3 +75,64 @@ DSX Identity exchanges that canonical source identity into The configured `subjectTrustDomain` must equal that exchanged trust domain. SPIFFE-only nodes that do not use DSX Identity exchange retain the legacy `/host/` local identity. + +## Nodes in virtual machines + +CAPI nodes whose machine template is a CAPK `KubevirtMachineTemplate` run as +KubeVirt VMs. By default a VM node runs a SPIRE agent like a bare-metal node. +To have its node agent get its token from the DSX metadata service instead +(`--dsx-identity-metadata-url`), set `tokenFrom: metadataService` in the +control plane's or node pool's `nodeAgentConfig` block when you create it: + +```json +"nodeAgentConfig": { + "tokenFrom": "metadataService" +} +``` + +Such a node runs no SPIRE agent and gets no join token, so it needs TLS/JWT +with external mTLS. The setting can't be changed after creation. + +For each VM node, `KubeVirtSpiffeController` creates these objects in the +cluster the VMs run in, and deletes them with the `KubevirtMachine`: + +- A `LoadBalancer` Service in front of the VM, because its pod address is not + reachable from the controller. The controller dials the agent there. + The VM's `VirtualMachine` owns the Service, so it is also removed when the + VM is. `nodeAgent.kubeVirt.addressPool` sets the MetalLB pool. +- For `metadataService` nodes, a ClusterSPIFFEID registering + `spiffe:///tenant//service//vm/` + for the VM's pod. `nodeAgent.kubeVirt.spiffeIDClassName` must match the + SPIRE controller manager serving the metadata sidecar. + +Both select the pod by the node's UUID, which the controller labels the VM's +pod with, because CAPK's own pod labels carry the node name and node names are +reused. + +`capi.rbac.kubeVirt: true` grants the controller these permissions, and read +access to `VirtualMachines`, in the management cluster. When the `KubevirtCluster` uses `infraClusterSecretRef`, +the identity in that kubeconfig needs them instead. + +The VM template must request the sidecar and use `bridge` binding (the sidecar +does not work with `masquerade`): + +```yaml +spec: + template: + spec: + virtualMachineTemplate: + spec: + template: + metadata: + annotations: + spiffe.nvidia.com/inject-dsx-imds: "true" + spec: + domain: + devices: + interfaces: + - name: default + bridge: {} + networks: + - name: default + pod: {} +``` diff --git a/controller/hack/local-controller-config.yaml b/controller/hack/local-controller-config.yaml index 1b1e0a7d9b..26a53f96c5 100644 --- a/controller/hack/local-controller-config.yaml +++ b/controller/hack/local-controller-config.yaml @@ -70,6 +70,9 @@ nodeAgent: dsxIdentityExchangeURL: "" subjectTenant: "" subjectService: "" + kubeVirt: + spiffeIDClassName: "" + addressPool: "" externalMTLSEnabled: false oidc: managementOIDCAuth: diff --git a/controller/internal/agent/transport.go b/controller/internal/agent/transport.go index 5fdec67cf3..a763393760 100644 --- a/controller/internal/agent/transport.go +++ b/controller/internal/agent/transport.go @@ -29,9 +29,9 @@ import ( ) var ( - // ErrNoAddress reports a dial against a node that has no IP address yet, such - // as a pending node the infrastructure provider has not allocated. - ErrNoAddress = errors.New("node has no IP address") + // ErrNoAddress reports a dial against a node that has no address to dial + // yet, such as a pending node the infrastructure provider has not allocated. + ErrNoAddress = errors.New("node has no address to dial") // errClientCertificateAbsent reports that an optional client certificate file does not exist. errClientCertificateAbsent = errors.New("client certificate file does not exist") @@ -121,10 +121,11 @@ func NewTransport( // Dial opens a connection to the node's agent and returns it with the cleanup // the caller must invoke. func (t *Transport) Dial(ctx context.Context, node db.Node) (*grpc.ClientConn, func(), error) { - if node.IP == "" { + host := node.AgentDialHost() + if host == "" { return nil, nil, ErrNoAddress } - endpoint := net.JoinHostPort(node.IP, t.cfg.NodeAgent.Port) + endpoint := net.JoinHostPort(host, t.cfg.NodeAgent.Port) var closeFuncs []func() error cleanup := func() { diff --git a/controller/internal/agent/transport_test.go b/controller/internal/agent/transport_test.go index a4cda0e81f..11710386d8 100644 --- a/controller/internal/agent/transport_test.go +++ b/controller/internal/agent/transport_test.go @@ -12,9 +12,10 @@ import ( "github.com/dsx-ai-factory/nvke/controller/internal/db" ) -// A node with no IP address has nothing to dial: Dial returns ErrNoAddress for -// every authentication profile, before any credential setup runs. -func TestUnit_DialRejectsNodeWithNoIP(t *testing.T) { +// A node with no address to dial has nothing to dial: Dial returns +// ErrNoAddress for every authentication profile, before any credential setup +// runs. +func TestUnit_DialRejectsNodeWithNoAddress(t *testing.T) { t.Parallel() tests := map[string]db.Node{ "insecure node": {}, @@ -34,3 +35,20 @@ func TestUnit_DialRejectsNodeWithNoIP(t *testing.T) { }) } } + +// A node reachable at a dial address is dialed there before it reports an IP, +// which is the state a node is in between getting an endpoint and registering. +func TestUnit_DialUsesAgentDialAddressBeforeNodeReportsIP(t *testing.T) { + t.Parallel() + transport := &Transport{cfg: config.Config{ + NodeAgent: config.NodeAgentConfig{Port: "15005"}, + }} + + node := db.Node{Capi: &db.CAPINodeProvider{AgentDialAddress: "10.1.0.5"}} + conn, cleanup, err := transport.Dial(t.Context(), node) + require.NoError(t, err) + require.NotNil(t, conn) + t.Cleanup(cleanup) + + require.Equal(t, "10.1.0.5:15005", conn.Target()) +} diff --git a/controller/internal/clients/capi/bootstrap_userdata.go b/controller/internal/clients/capi/bootstrap_userdata.go index be5419b08c..7b7d0ab3f0 100644 --- a/controller/internal/clients/capi/bootstrap_userdata.go +++ b/controller/internal/clients/capi/bootstrap_userdata.go @@ -82,7 +82,7 @@ func (*Client) renderBootstrapUserData( if err != nil { return "", err } - if node.SpireAttestationMethod == db.SpireAttestationMethodJoinToken && spireJoinToken == "" { + if !node.UsesMetadataServiceToken() && node.SpireAttestationMethod == db.SpireAttestationMethodJoinToken && spireJoinToken == "" { return "", fmt.Errorf("spire join token is required when SPIRE attestation method is joinToken") } @@ -90,8 +90,9 @@ func (*Client) renderBootstrapUserData( // read a bundle from, so a node gets neither the bundle nor a SPIRE agent // config. Asking anyway blocks provisioning: the dial fails, the activity // retries forever, and the cluster never leaves Provisioning. + spireAgent := node.SpiffeEnabled && !node.UsesMetadataServiceToken() var trustDomain, trustBundle string - if node.SpiffeEnabled { + if spireAgent { trustDomain, trustBundle, err = deps.GetTrustDomainBundle(ctx, deps.Config) if err != nil { return "", fmt.Errorf("failed to get trust domain and bundle: %w", err) @@ -107,7 +108,7 @@ func (*Client) renderBootstrapUserData( Content: file.Content, }) } - if node.SpiffeEnabled { + if spireAgent { dsxIMDSPluginChecksum := deps.Config.NodeAgent.DSXImds.PluginChecksum if dsxIMDSPluginChecksum == "" { dsxIMDSPluginChecksum = "${DSX_IMDS_PLUGIN_CHECKSUM}" diff --git a/controller/internal/clients/capi/bootstrap_userdata_test.go b/controller/internal/clients/capi/bootstrap_userdata_test.go index 47fb79afdb..76e3b67da6 100644 --- a/controller/internal/clients/capi/bootstrap_userdata_test.go +++ b/controller/internal/clients/capi/bootstrap_userdata_test.go @@ -19,6 +19,7 @@ import ( "github.com/dsx-ai-factory/nvke/controller/internal/clients/shared" "github.com/dsx-ai-factory/nvke/controller/internal/config" + "github.com/dsx-ai-factory/nvke/controller/internal/constants" "github.com/dsx-ai-factory/nvke/controller/internal/db" "github.com/dsx-ai-factory/nvke/controller/internal/utils" ) @@ -41,7 +42,12 @@ func testNodeAgentBootstrapFiles(cfg config.Config, controllerClientCABundle str args = append(args, "--nvke-controller-client-ca-bundle="+config.NodeAgentControllerCAPath) } if node.NodeAgentTLSJWTEnabled { - args = append(args, "--grpc-auth-mode=tls-jwt", "--dsx-identity-exchange-url="+cfg.NodeAgent.TLSJWT.DSXIdentityExchangeURL) + args = append(args, "--grpc-auth-mode=tls-jwt") + if node.UsesMetadataServiceToken() { + args = append(args, "--dsx-identity-metadata-url="+constants.DSXMetadataServiceURL) + } else { + args = append(args, "--dsx-identity-exchange-url="+cfg.NodeAgent.TLSJWT.DSXIdentityExchangeURL) + } } files = append(files, db.CloudInitFile{ Path: config.NodeAgentConfigPath, @@ -100,6 +106,7 @@ func TestUnit_RenderCAPIBootstrapUserData(t *testing.T) { node *db.Node provider db.CAPINodePoolProvider spireJoinToken string + metadataService bool trustDomain string trustBundle string trustBundleError error @@ -233,6 +240,40 @@ func TestUnit_RenderCAPIBootstrapUserData(t *testing.T) { assert.NotContains(t, userData, "sed -E") }, }, + "metadata service identity gets no SPIRE agent and reads its token from the metadata service": { + config: func() config.Config { + cfg := joinTokenSpiffeConfig + cfg.NodeAgent.TLSJWT = config.TLSJWTConfig{Enabled: true, DSXIdentityExchangeURL: "https://identity.example.test/v1/exchange"} + return cfg + }(), + provider: customBootstrap, + metadataService: true, + trustBundleError: errors.New("a node without a SPIRE agent has no bundle to read"), + verify: func(t *testing.T, userData string) { + t.Helper() + assert.NotContains(t, userData, "/etc/spire-agent/agent.conf") + assert.NotContains(t, userData, "/etc/spire-agent/initial-trust-bundle.pem") + assert.Contains(t, userData, "--grpc-auth-mode=tls-jwt --dsx-identity-metadata-url=http://169.254.169.254") + assert.NotContains(t, userData, "--dsx-identity-exchange-url") + assert.Contains(t, userData, "/etc/custom.conf") + }, + }, + "bare-metal TLS JWT node keeps the exchange": { + config: func() config.Config { + cfg := tpmSpiffeConfig + cfg.NodeAgent.TLSJWT = config.TLSJWTConfig{Enabled: true, DSXIdentityExchangeURL: "https://identity.example.test/v1/exchange"} + return cfg + }(), + trustDomain: "example.org", + trustBundle: "bundle", + expectTrustBundleCall: true, + verify: func(t *testing.T, userData string) { + t.Helper() + assert.Contains(t, userData, "/etc/spire-agent/agent.conf") + assert.Contains(t, userData, "--dsx-identity-exchange-url=https://identity.example.test/v1/exchange") + assert.NotContains(t, userData, "--dsx-identity-metadata-url") + }, + }, "existing agent restart is followed by the final restart": { config: config.Config{NodeAgent: config.NodeAgentConfig{Port: "15005", TLSJWT: config.TLSJWTConfig{Enabled: true, DSXIdentityExchangeURL: "https://identity.example.test/v1/exchange"}}}, provider: db.CAPINodePoolProvider{ @@ -298,6 +339,9 @@ func TestUnit_RenderCAPIBootstrapUserData(t *testing.T) { if params.node != nil { node = *params.node } + if params.metadataService { + node.NodeAgentTokenSource = db.NodeAgentTokenSourceMetadataService + } userData, err := (&Client{}).renderBootstrapUserData( context.Background(), diff --git a/controller/internal/clients/capi/kubevirt.go b/controller/internal/clients/capi/kubevirt.go new file mode 100644 index 0000000000..149a4320a6 --- /dev/null +++ b/controller/internal/clients/capi/kubevirt.go @@ -0,0 +1,34 @@ +// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +// SPDX-License-Identifier: Apache-2.0 + +package capi + +import ( + clusterv1 "sigs.k8s.io/cluster-api/api/core/v1beta2" +) + +// CAPK's API, named rather than imported because its Go module pulls in +// KubeVirt's own module tree. +const ( + KubeVirtInfraGroup = "infrastructure.cluster.x-k8s.io" + KubeVirtInfraAPIVersion = "v1alpha1" + KubeVirtMachineKind = "KubevirtMachine" + KubeVirtClusterKind = "KubevirtCluster" + + // KubeVirtMachineNameLabel and KubeVirtMachineNamespaceLabel are what CAPK + // labels a VM's virt-launcher pod with. + KubeVirtMachineNameLabel = "capk.cluster.x-k8s.io/kubevirt-machine-name" + KubeVirtMachineNamespaceLabel = "capk.cluster.x-k8s.io/kubevirt-machine-namespace" + + // NodeIDLabel is what the controller labels a VM's pod with, so a node + // agent's Service and ClusterSPIFFEID can select one node's pod even when + // the node name has been reused. + NodeIDLabel = "nvke.nvidia.com/node-id" +) + +// IsKubeVirtMachineRef reports whether a Machine's infrastructure is a CAPK +// KubevirtMachine, whose node is reached through a load balancer rather than +// at its own IP. +func IsKubeVirtMachineRef(ref clusterv1.ContractVersionedObjectReference) bool { + return ref.APIGroup == KubeVirtInfraGroup && ref.Kind == KubeVirtMachineKind +} diff --git a/controller/internal/clients/capi/machine.go b/controller/internal/clients/capi/machine.go index 765b4902b0..9c70fc3c16 100644 --- a/controller/internal/clients/capi/machine.go +++ b/controller/internal/clients/capi/machine.go @@ -71,14 +71,19 @@ func (c *Client) CreateMachine(ctx context.Context, deps shared.MachineCreateDep if err := applyNicoMachineInstanceLabels(node, cluster, nodePool.ID, infraMachine); err != nil { return err } - + if err := applyKubeVirtMachinePodLabels(node, infraMachine); err != nil { + return err + } if err := deps.K8sClient.Patch(ctx, infraMachine, client.Apply, client.FieldOwner(deps.FieldManagerName), client.ForceOwnership); err != nil { return fmt.Errorf("failed to apply infra machine %s: %w", infraMachine.GetName(), err) } - spireJoinToken, spireAgentAlternateIDPath, err := deps.CreateSpireJoinToken(ctx, node) - if err != nil { - return err + var spireJoinToken, spireAgentAlternateIDPath string + if !node.UsesMetadataServiceToken() { + spireJoinToken, spireAgentAlternateIDPath, err = deps.CreateSpireJoinToken(ctx, node) + if err != nil { + return err + } } userData, err := c.renderBootstrapUserData(ctx, deps, node, nodeSet, spireJoinToken) @@ -146,6 +151,36 @@ func applyNicoMachineInstanceLabels(node db.Node, cluster db.Cluster, nodePoolID return nil } +// applyKubeVirtMachinePodLabels labels a rendered KubevirtMachine's VM pod +// with the node ID, so the node agent's Service and ClusterSPIFFEID can select +// exactly this node's virt-launcher pod. CAPK's own pod labels name the +// KubevirtMachine, whose name is the node name, and node names are reused, so +// without this a recycled name would match the previous node's pod. A no-op +// for any other kind. +func applyKubeVirtMachinePodLabels(node db.Node, infraMachine *unstructured.Unstructured) error { + gv, err := schema.ParseGroupVersion(infraMachine.GetAPIVersion()) + if err != nil { + return fmt.Errorf("parse infrastructure machine apiVersion %q: %w", infraMachine.GetAPIVersion(), err) + } + if gv.Group != KubeVirtInfraGroup || infraMachine.GetKind() != KubeVirtMachineKind { + return nil + } + + path := []string{"spec", "virtualMachineTemplate", "spec", "template", "metadata", "labels"} + labels, _, err := unstructured.NestedStringMap(infraMachine.Object, path...) + if err != nil { + return fmt.Errorf("read KubevirtMachine VM pod labels: %w", err) + } + if labels == nil { + labels = map[string]string{} + } + labels[NodeIDLabel] = node.ID.String() + if err := unstructured.SetNestedStringMap(infraMachine.Object, labels, path...); err != nil { + return fmt.Errorf("set KubevirtMachine VM pod labels: %w", err) + } + return nil +} + // parseManifest parses a caller-supplied infra machine template manifest. // Duplicated from internal/capi.ParseManifest rather than imported: that // package already imports internal/clients for the ClusterScaffold wrapper, diff --git a/controller/internal/clients/capi/machine_test.go b/controller/internal/clients/capi/machine_test.go index 762cef3b54..f0041816c4 100644 --- a/controller/internal/clients/capi/machine_test.go +++ b/controller/internal/clients/capi/machine_test.go @@ -10,6 +10,7 @@ import ( "github.com/google/uuid" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" + "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" "github.com/dsx-ai-factory/nvke/controller/internal/db" ) @@ -54,3 +55,45 @@ func TestClient_renderInfraMachine(t *testing.T) { require.Error(t, err) }) } + +// The selector side of this lives in KubeVirtSpiffeController; without the +// label it writes nothing a Service could select. +func TestUnit_ApplyKubeVirtMachinePodLabels(t *testing.T) { + t.Parallel() + nodeID := uuid.MustParse("3f2a9c11-4b7d-4a0e-8c3f-1d2e5a6b7c80") + + t.Run("labels a KubevirtMachine's VM pod with the node ID", func(t *testing.T) { + t.Parallel() + infraMachine := &unstructured.Unstructured{Object: map[string]any{ + "apiVersion": KubeVirtInfraGroup + "/" + KubeVirtInfraAPIVersion, + "kind": KubeVirtMachineKind, + "spec": map[string]any{"virtualMachineTemplate": map[string]any{ + "spec": map[string]any{"template": map[string]any{ + "metadata": map[string]any{"labels": map[string]any{"keep": "me"}}, + }}, + }}, + }} + + require.NoError(t, applyKubeVirtMachinePodLabels(db.Node{ID: nodeID}, infraMachine)) + + labels, found, err := unstructured.NestedStringMap(infraMachine.Object, + "spec", "virtualMachineTemplate", "spec", "template", "metadata", "labels") + require.NoError(t, err) + require.True(t, found) + require.Equal(t, map[string]string{"keep": "me", NodeIDLabel: nodeID.String()}, labels) + }) + + t.Run("leaves another infrastructure kind alone", func(t *testing.T) { + t.Parallel() + infraMachine := &unstructured.Unstructured{Object: map[string]any{ + "apiVersion": "infrastructure.cluster.x-k8s.io/v1beta1", + "kind": "DockerMachineTemplate", + }} + + require.NoError(t, applyKubeVirtMachinePodLabels(db.Node{ID: nodeID}, infraMachine)) + + _, found, err := unstructured.NestedStringMap(infraMachine.Object, "spec") + require.NoError(t, err) + require.False(t, found) + }) +} diff --git a/controller/internal/clients/capi/node_agent_token_source_test.go b/controller/internal/clients/capi/node_agent_token_source_test.go new file mode 100644 index 0000000000..dfed0391c4 --- /dev/null +++ b/controller/internal/clients/capi/node_agent_token_source_test.go @@ -0,0 +1,108 @@ +// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +// SPDX-License-Identifier: Apache-2.0 + +package capi + +import ( + "context" + "encoding/json" + "errors" + "testing" + + "github.com/google/uuid" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + corev1 "k8s.io/api/core/v1" + "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" + "k8s.io/apimachinery/pkg/runtime" + clusterv1 "sigs.k8s.io/cluster-api/api/core/v1beta2" + "sigs.k8s.io/controller-runtime/pkg/client" + "sigs.k8s.io/controller-runtime/pkg/client/fake" + + "github.com/dsx-ai-factory/nvke/controller/internal/clients/shared" + "github.com/dsx-ai-factory/nvke/controller/internal/config" + "github.com/dsx-ai-factory/nvke/controller/internal/db" + "github.com/dsx-ai-factory/nvke/controller/internal/keys" +) + +// newNodeAgentTokenSourceCreateMachineFixture builds a CreateMachine fixture over a +// provider-neutral machine template: the token source is not specific to any +// infrastructure provider. +func newNodeAgentTokenSourceCreateMachineFixture( + t *testing.T, tokenSource db.NodeAgentTokenSource, +) (client.Client, shared.MachineCreateDeps, db.NodeSet, *[]bool, *int) { + t.Helper() + scheme := runtime.NewScheme() + require.NoError(t, corev1.AddToScheme(scheme)) + require.NoError(t, clusterv1.AddToScheme(scheme)) + template := &unstructured.Unstructured{Object: map[string]any{ + "apiVersion": "infrastructure.cluster.x-k8s.io/v1beta1", "kind": "DockerMachineTemplate", + "metadata": map[string]any{"name": "control-plane", "namespace": "nke-system"}, + "spec": map[string]any{"template": map[string]any{"spec": map[string]any{}}}, + }} + k8sClient := fake.NewClientBuilder().WithScheme(scheme).WithObjects(template).Build() + rawTemplate, err := json.Marshal(template.Object) + require.NoError(t, err) + + nodeSet := db.NodeSet{ + KubernetesVersion: "1.32.1", + NodeAgent: &db.NodeAgentSettings{TokenSource: tokenSource}, + } + nodeSet.SetCapi(db.CAPINodePoolProvider{InfraMachineTemplate: rawTemplate}) + + var metadataServiceArgs []bool + joinTokenCalls := 0 + deps := shared.MachineCreateDeps{ + K8sClient: k8sClient, Namespace: "nke-system", FieldManagerName: "test-controller", + CreateSpireJoinToken: func(context.Context, db.Node) (string, string, error) { + joinTokenCalls++ + return "join-token", "/join-token-spire-agent/host-id/x", nil + }, + NodeAgentBootstrapFiles: func(node db.Node) ([]db.CloudInitFile, error) { + metadataServiceArgs = append(metadataServiceArgs, node.UsesMetadataServiceToken()) + return nil, nil + }, + GetTrustDomainBundle: func(context.Context, config.Config) (string, string, error) { + return "example.org", "bundle", nil + }, + } + return k8sClient, deps, nodeSet, &metadataServiceArgs, &joinTokenCalls +} + +func TestClient_CreateMachine_MetadataServiceToken(t *testing.T) { + t.Parallel() + ctx := context.Background() + k8sClient, deps, nodeSet, metadataServiceArgs, joinTokenCalls := newNodeAgentTokenSourceCreateMachineFixture(t, db.NodeAgentTokenSourceMetadataService) + deps.GetTrustDomainBundle = func(context.Context, config.Config) (string, string, error) { + return "", "", errors.New("a node without a SPIRE agent needs no trust bundle") + } + + node := db.Node{ + ID: uuid.New(), + Name: "cp-0", + SpiffeEnabled: true, + SpireAttestationMethod: db.SpireAttestationMethodJoinToken, + NodeAgentExternalMTLSEnabled: true, + NodeAgentTLSJWTEnabled: true, + NodeAgentTokenSource: db.NodeAgentTokenSourceMetadataService, + } + require.NoError(t, New().CreateMachine(ctx, deps, node, nodeSet, db.NodePool{ControlPlane: true}, db.Cluster{Name: "cluster-a"})) + + assert.Equal(t, []bool{true}, *metadataServiceArgs) + assert.Zero(t, *joinTokenCalls) + machine := &clusterv1.Machine{} + require.NoError(t, k8sClient.Get(ctx, client.ObjectKey{Name: node.Name, Namespace: deps.Namespace}, machine)) + assert.Empty(t, machine.Annotations[keys.MachineSpireAgentSpiffeIDPath.String()]) +} + +func TestClient_CreateMachine_TokenExchangeJoinsWithASpireJoinToken(t *testing.T) { + t.Parallel() + ctx := context.Background() + _, deps, nodeSet, metadataServiceArgs, joinTokenCalls := newNodeAgentTokenSourceCreateMachineFixture(t, "") + + node := db.Node{ID: uuid.New(), Name: "cp-0", SpiffeEnabled: true, SpireAttestationMethod: db.SpireAttestationMethodJoinToken} + require.NoError(t, New().CreateMachine(ctx, deps, node, nodeSet, db.NodePool{ControlPlane: true}, db.Cluster{Name: "cluster-a"})) + + assert.Equal(t, []bool{false}, *metadataServiceArgs) + assert.Equal(t, 1, *joinTokenCalls, "the default token source still mints a join token") +} diff --git a/controller/internal/clients/capi/spireagent.go b/controller/internal/clients/capi/spireagent.go index 5090ec320c..e7c4892e11 100644 --- a/controller/internal/clients/capi/spireagent.go +++ b/controller/internal/clients/capi/spireagent.go @@ -12,8 +12,8 @@ import ( "github.com/dsx-ai-factory/nvke/controller/internal/db" ) -// ValidateNodeAgentProfile accepts every profile: CAPI nodes support each -// SPIRE attestation method and transport. +// ValidateNodeAgentProfile accepts every profile: an operator-supplied machine +// template can render a machine for any of them. func (*Client) ValidateNodeAgentProfile(db.Node, db.NodePool) error { return nil } diff --git a/controller/internal/clients/shared/machine.go b/controller/internal/clients/shared/machine.go index fb41ecba9b..3f7a37a570 100644 --- a/controller/internal/clients/shared/machine.go +++ b/controller/internal/clients/shared/machine.go @@ -261,6 +261,7 @@ func MachineAnnotations(node db.Node) map[string]string { keys.MachineHostID.String(): node.ID.String(), keys.MachineSpireAttestationMethod.String(): string(node.SpireAttestationMethod), keys.MachineSpiffeEnabled.String(): strconv.FormatBool(node.SpiffeEnabled), + keys.MachineAgentTokenSource.String(): string(node.NodeAgentTokenSource.Effective()), clusterv1.ExcludeNodeDrainingAnnotation: "cwe-controlled", clusterv1.ExcludeWaitForNodeVolumeDetachAnnotation: "cwe-controlled", } diff --git a/controller/internal/config/config.go b/controller/internal/config/config.go index 9250508807..ab5bf1ed52 100644 --- a/controller/internal/config/config.go +++ b/controller/internal/config/config.go @@ -90,6 +90,14 @@ type TLSJWTConfig struct { DSXIdentityExchangeURL string `controllerconfig:"nodeAgent.tlsJWT.dsxIdentityExchangeURL"` } +// KubeVirtConfig configures the controller's per-VM resources for KubeVirt VM nodes. +type KubeVirtConfig struct { + SPIFFEIDClassName string `controllerconfig:"nodeAgent.kubeVirt.spiffeIDClassName"` + // AddressPool is the MetalLB pool for VM node agent Services. It must be + // reachable from the controller. + AddressPool string `controllerconfig:"nodeAgent.kubeVirt.addressPool"` +} + // NodeAgentConfig configures connections to and SPIRE attestation for managed node agents. type NodeAgentConfig struct { // Port is the secure port that the NVKE node agent listens on. @@ -105,6 +113,8 @@ type NodeAgentConfig struct { // TLSJWT contains TLS/JWT transport settings. TLSJWT TLSJWTConfig + KubeVirt KubeVirtConfig + // UpdateMethod selects apt or bundle installation for opted-in clusters. UpdateMethod string `controllerconfig:"nodeAgent.updateMethod"` } diff --git a/controller/internal/constants/constants.go b/controller/internal/constants/constants.go index ac72a84a4f..968d4a081c 100644 --- a/controller/internal/constants/constants.go +++ b/controller/internal/constants/constants.go @@ -93,6 +93,7 @@ const ( // controller starts managing DSX IMDS entries too, avoiding SSA ownership churn. FieldManagerNicoSpiffe = "nico-tpm-spiffe-controller" FieldManagerLaunchLayerSpiffe = "launchlayer-spiffe-controller" + FieldManagerKubeVirtSpiffe = "kubevirt-spiffe-controller" FieldManagerMachineSpireEntry = "machine-spire-entry-controller" FieldManagerSpireNicoTPMBootstrapIdentity = "spire-nico-tpm-bootstrap-identity-controller" FieldManagerBootstrapAuthorization = "bootstrap-authorization-controller" @@ -111,6 +112,9 @@ const ( CAPISpireAgentConfigPath = "/etc/spire-agent/agent.conf" CAPISpireTrustBundlePath = "/etc/spire-agent/initial-trust-bundle.pem" + + // DSXMetadataServiceURL is the DSX metadata service address inside a VM. + DSXMetadataServiceURL = "http://169.254.169.254" ) type RebootStatus string diff --git a/controller/internal/controllerconfig/apply.go b/controller/internal/controllerconfig/apply.go index 9eade9ab33..949aad939c 100644 --- a/controller/internal/controllerconfig/apply.go +++ b/controller/internal/controllerconfig/apply.go @@ -121,6 +121,8 @@ func (c *Config) ApplyTo(cfg *config.Config) { cfg.NodeAgent.TLSJWT.DSXIdentityExchangeURL = c.NodeAgent.TLSJWT.DSXIdentityExchangeURL cfg.NodeAgent.TLSJWT.SubjectTenant = c.NodeAgent.TLSJWT.SubjectTenant cfg.NodeAgent.TLSJWT.SubjectService = c.NodeAgent.TLSJWT.SubjectService + cfg.NodeAgent.KubeVirt.SPIFFEIDClassName = c.NodeAgent.KubeVirt.SPIFFEIDClassName + cfg.NodeAgent.KubeVirt.AddressPool = c.NodeAgent.KubeVirt.AddressPool cfg.NodeAgentExternalMTLSEnabled = c.NodeAgent.ExternalMTLSEnabled shared := c.OIDC.ManagementOIDCAuth diff --git a/controller/internal/controllerconfig/config.go b/controller/internal/controllerconfig/config.go index d15fa7985e..36e12d1477 100644 --- a/controller/internal/controllerconfig/config.go +++ b/controller/internal/controllerconfig/config.go @@ -114,11 +114,12 @@ type CredentialMonitoringConfig struct { // config.Config.NodeAgentExternalMTLSEnabled, which shares its NODE_AGENT_ // prefix. Port is left out: the chart has never set it. type NodeAgentConfig struct { - SpireAttestationMethod string `json:"spireAttestationMethod"` - DSXImds DSXImdsConfig `json:"dsxImds"` - TLSJWT TLSJWTConfig `json:"tlsJWT"` - ExternalMTLSEnabled bool `json:"externalMTLSEnabled"` - UpdateMethod string `json:"updateMethod"` + SpireAttestationMethod string `json:"spireAttestationMethod"` + DSXImds DSXImdsConfig `json:"dsxImds"` + TLSJWT TLSJWTConfig `json:"tlsJWT"` + KubeVirt KubeVirtConfig `json:"kubeVirt"` + ExternalMTLSEnabled bool `json:"externalMTLSEnabled"` + UpdateMethod string `json:"updateMethod"` } // DSXImdsConfig mirrors config.DSXImdsConfig. @@ -140,6 +141,12 @@ type TLSJWTConfig struct { SubjectService string `json:"subjectService"` } +// KubeVirtConfig mirrors config.KubeVirtConfig. +type KubeVirtConfig struct { + SPIFFEIDClassName string `json:"spiffeIDClassName"` + AddressPool string `json:"addressPool"` +} + // OIDCConfig carries the management-plane shared provider and the fleet-wide // provider list this design adds. type OIDCConfig struct { diff --git a/controller/internal/controllers/capi/kubevirt_spiffe_controller.go b/controller/internal/controllers/capi/kubevirt_spiffe_controller.go new file mode 100644 index 0000000000..c79b25153f --- /dev/null +++ b/controller/internal/controllers/capi/kubevirt_spiffe_controller.go @@ -0,0 +1,480 @@ +// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +// SPDX-License-Identifier: Apache-2.0 + +package capi + +import ( + "context" + "errors" + "fmt" + "log/slog" + "strconv" + "strings" + "time" + + spirev1alpha1 "github.com/spiffe/spire-controller-manager/api/v1alpha1" + corev1 "k8s.io/api/core/v1" + apierrors "k8s.io/apimachinery/pkg/api/errors" + "k8s.io/apimachinery/pkg/api/meta" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" + "k8s.io/apimachinery/pkg/runtime" + "k8s.io/apimachinery/pkg/runtime/schema" + "k8s.io/apimachinery/pkg/util/intstr" + clientgoscheme "k8s.io/client-go/kubernetes/scheme" + "k8s.io/client-go/rest" + "k8s.io/client-go/tools/clientcmd" + clusterv1 "sigs.k8s.io/cluster-api/api/core/v1beta2" + "sigs.k8s.io/cluster-api/util" + ctrl "sigs.k8s.io/controller-runtime" + "sigs.k8s.io/controller-runtime/pkg/builder" + "sigs.k8s.io/controller-runtime/pkg/client" + "sigs.k8s.io/controller-runtime/pkg/controller/controllerutil" + "sigs.k8s.io/controller-runtime/pkg/handler" + "sigs.k8s.io/controller-runtime/pkg/reconcile" + + capiclient "github.com/dsx-ai-factory/nvke/controller/internal/clients/capi" + "github.com/dsx-ai-factory/nvke/controller/internal/config" + "github.com/dsx-ai-factory/nvke/controller/internal/constants" + "github.com/dsx-ai-factory/nvke/controller/internal/db" + "github.com/dsx-ai-factory/nvke/controller/internal/keys" +) + +const ( + kubeVirtVMAPIVersion = "kubevirt.io/v1" + kubeVirtVMKind = "VirtualMachine" + + // kubeVirtSVIDHint must match the DSX metadata sidecar's --svid-hint. + kubeVirtSVIDHint = "dsx-imds-vm" + + metalLBAddressPoolAnnotation = "metallb.universe.tf/address-pool" + namespaceNameLabel = "kubernetes.io/metadata.name" + + infraKubeconfigSecretKey = "kubeconfig" + infraNamespaceSecretKey = "namespace" + + // kubeVirtAgentFinalizer keeps the KubevirtMachine around long enough to + // delete the objects this controller created in the infra cluster. They + // live in another cluster, so no owner reference reaches them. + kubeVirtAgentFinalizer = "nvke.nvidia.com/kubevirt-agent-endpoint" + + // kubeVirtDialAddressRequeue covers the load balancer assigning an + // address, which happens in the infra cluster and raises no event here. + kubeVirtDialAddressRequeue = 15 * time.Second +) + +func newKubeVirtMachine() *unstructured.Unstructured { + obj := &unstructured.Unstructured{} + obj.SetGroupVersionKind(schema.GroupVersionKind{Group: capiclient.KubeVirtInfraGroup, Version: capiclient.KubeVirtInfraAPIVersion, Kind: capiclient.KubeVirtMachineKind}) + return obj +} + +// KubeVirtSpiffeController gives a KubeVirt VM node's agent an address the +// controller can reach it at, and an identity to present when it gets there. +// +// A VM's pod IP is not routable from here, so the agent is published through a +// LoadBalancer Service in the cluster the VM runs in, and the address lands on +// the Machine for the provisioning workflow to copy onto the node record. A +// node that takes its token from the metadata service also gets a +// ClusterSPIFFEID, so SPIRE issues its virt-launcher pod an SVID. +// +// It is the KubeVirt counterpart of LaunchLayerSpiffeController, but it writes +// to the infra cluster rather than the management cluster, because that is +// where CAPK creates the VMs. +type KubeVirtSpiffeController struct { + k8sClient client.Client + cfg config.Config + logger *slog.Logger + + // newInfraClient defaults to client.New. + newInfraClient func(*rest.Config, client.Options) (client.Client, error) +} + +func NewKubeVirtSpiffeController(k8sClient client.Client, cfg config.Config, logger *slog.Logger) *KubeVirtSpiffeController { + return &KubeVirtSpiffeController{ + k8sClient: k8sClient, + cfg: cfg, + logger: logger, + } +} + +// KubeVirtMachineCRDInstalled reports whether the management cluster serves the +// KubevirtMachine CRD. +func KubeVirtMachineCRDInstalled(mapper meta.RESTMapper) (bool, error) { + return crdInstalled(mapper, schema.GroupVersion{Group: capiclient.KubeVirtInfraGroup, Version: capiclient.KubeVirtInfraAPIVersion}, capiclient.KubeVirtMachineKind) +} + +func (c *KubeVirtSpiffeController) SetupWithManager(mgr ctrl.Manager) error { + return ctrl.NewControllerManagedBy(mgr). + For(newKubeVirtMachine()). + Watches( + &clusterv1.Machine{}, + handler.EnqueueRequestsFromMapFunc(kubeVirtMachineRequestsForMachine), + builder.WithPredicates(machineIdentityWatchPredicate()), + ). + Named("kubevirt-spiffe"). + Complete(c) +} + +func kubeVirtMachineRequestsForMachine(_ context.Context, obj client.Object) []reconcile.Request { + machine, ok := obj.(*clusterv1.Machine) + if !ok || !capiclient.IsKubeVirtMachineRef(machine.Spec.InfrastructureRef) || machine.Spec.InfrastructureRef.Name == "" { + return nil + } + return []reconcile.Request{{NamespacedName: client.ObjectKey{ + Namespace: machine.Namespace, + Name: machine.Spec.InfrastructureRef.Name, + }}} +} + +func (c *KubeVirtSpiffeController) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) { + logger := c.logger.With("namespace", req.Namespace, "kubevirtMachineName", req.Name) + + kubeVirtMachine := newKubeVirtMachine() + if err := c.k8sClient.Get(ctx, req.NamespacedName, kubeVirtMachine); err != nil { + if apierrors.IsNotFound(err) { + return ctrl.Result{}, nil + } + return ctrl.Result{}, fmt.Errorf("failed to get kubevirt machine: %w", err) + } + + machine, err := util.GetOwnerMachine(ctx, c.k8sClient, metav1.ObjectMeta{ + Namespace: kubeVirtMachine.GetNamespace(), + OwnerReferences: kubeVirtMachine.GetOwnerReferences(), + }) + if err != nil { + return ctrl.Result{}, fmt.Errorf("failed to get owner machine: %w", err) + } + + if kubeVirtMachine.GetDeletionTimestamp() != nil { + return ctrl.Result{}, c.reconcileDelete(ctx, logger, kubeVirtMachine, machine) + } + + if machine == nil { + logger.Info("Waiting for Machine controller to set OwnerRef on KubevirtMachine") + return ctrl.Result{}, nil + } + nodeID := keys.MachineHostID.Value(machine.GetAnnotations()) + if nodeID == "" { + logger.Debug("Machine has no host-id annotation, skipping agent endpoint reconciliation") + return ctrl.Result{}, nil + } + tokenSource, tokenSourceSet := keys.MachineAgentTokenSource.Get(machine.GetAnnotations()) + if !tokenSourceSet { + logger.Info("Waiting for the agent token source annotation to be set on Machine", "nodeID", nodeID) + return ctrl.Result{}, nil + } + + // The finalizer goes on before the first infra-cluster write, so a VM + // deleted mid-reconcile still gets cleaned up. + if controllerutil.AddFinalizer(kubeVirtMachine, kubeVirtAgentFinalizer) { + if err := c.k8sClient.Update(ctx, kubeVirtMachine); err != nil { + return ctrl.Result{}, fmt.Errorf("failed to add finalizer to kubevirt machine: %w", err) + } + } + + infraClient, vmNamespace, err := c.infraCluster(ctx, kubeVirtMachine, machine) + if err != nil { + return ctrl.Result{}, err + } + + // The VM owns the Service, so the Service and its MetalLB address go away + // with the VM even if this controller's cleanup never runs. + vm := &unstructured.Unstructured{} + vm.SetAPIVersion(kubeVirtVMAPIVersion) + vm.SetKind(kubeVirtVMKind) + if err := infraClient.Get(ctx, client.ObjectKey{Namespace: vmNamespace, Name: kubeVirtMachine.GetName()}, vm); err != nil { + if apierrors.IsNotFound(err) { + logger.Info("Waiting for CAPK to create the VirtualMachine", "vmNamespace", vmNamespace) + return ctrl.Result{}, nil + } + return ctrl.Result{}, fmt.Errorf("failed to get VirtualMachine %s/%s: %w", vmNamespace, kubeVirtMachine.GetName(), err) + } + + service, err := c.buildService(kubeVirtMachine.GetName(), req.Namespace, nodeID, vmNamespace) + if err != nil { + return ctrl.Result{}, err + } + service.OwnerReferences = []metav1.OwnerReference{{ + APIVersion: kubeVirtVMAPIVersion, + Kind: kubeVirtVMKind, + Name: vm.GetName(), + UID: vm.GetUID(), + }} + if err := infraClient.Patch(ctx, service, client.Apply, + client.FieldOwner(constants.FieldManagerKubeVirtSpiffe), client.ForceOwnership); err != nil { + return ctrl.Result{}, fmt.Errorf("failed to apply node agent Service %s/%s: %w", service.Namespace, service.Name, err) + } + + if db.NodeAgentTokenSource(tokenSource) == db.NodeAgentTokenSourceMetadataService { + registration := c.buildClusterSPIFFEID(kubeVirtMachine.GetName(), req.Namespace, nodeID, vmNamespace) + if err := infraClient.Patch(ctx, registration, client.Apply, + client.FieldOwner(constants.FieldManagerKubeVirtSpiffe), client.ForceOwnership); err != nil { + return ctrl.Result{}, fmt.Errorf("failed to apply node agent ClusterSPIFFEID %s: %w", registration.Name, err) + } + } + + if err := infraClient.Get(ctx, client.ObjectKeyFromObject(service), service); err != nil { + return ctrl.Result{}, fmt.Errorf("failed to get node agent Service %s/%s: %w", service.Namespace, service.Name, err) + } + dialAddress := loadBalancerAddress(service) + if dialAddress == "" { + // The Service event that assigns the address arrives in the infra + // cluster, which this controller does not watch. + logger.Info("Waiting for a load balancer address", "service", service.Name) + return ctrl.Result{RequeueAfter: kubeVirtDialAddressRequeue}, nil + } + + return ctrl.Result{}, c.recordDialAddress(ctx, logger, machine, dialAddress) +} + +// reconcileDelete removes what this controller created in the infra cluster +// and drops the finalizer. A KubevirtMachine with no owner Machine left, or a +// cluster already gone, still has to release the finalizer. +func (c *KubeVirtSpiffeController) reconcileDelete( + ctx context.Context, logger *slog.Logger, kubeVirtMachine *unstructured.Unstructured, machine *clusterv1.Machine, +) error { + if !controllerutil.ContainsFinalizer(kubeVirtMachine, kubeVirtAgentFinalizer) { + return nil + } + if machine != nil { + if nodeID := keys.MachineHostID.Value(machine.GetAnnotations()); nodeID != "" { + infraClient, vmNamespace, err := c.infraCluster(ctx, kubeVirtMachine, machine) + if err != nil { + return err + } + name := kubeVirtAgentObjectName(nodeID) + objects := []client.Object{ + &corev1.Service{ObjectMeta: metav1.ObjectMeta{Name: name, Namespace: vmNamespace}}, + &spirev1alpha1.ClusterSPIFFEID{ObjectMeta: metav1.ObjectMeta{Name: name}}, + } + for _, obj := range objects { + if err := infraClient.Delete(ctx, obj); err != nil && !apierrors.IsNotFound(err) { + return fmt.Errorf("failed to delete node agent %T %s: %w", obj, obj.GetName(), err) + } + } + logger.Info("Deleted node agent endpoint", "nodeID", nodeID, "vmNamespace", vmNamespace) + } + } + controllerutil.RemoveFinalizer(kubeVirtMachine, kubeVirtAgentFinalizer) + if err := c.k8sClient.Update(ctx, kubeVirtMachine); err != nil { + return fmt.Errorf("failed to remove finalizer from kubevirt machine: %w", err) + } + return nil +} + +// recordDialAddress puts the address on the Machine for the provisioning +// workflow to copy onto the node record. +func (c *KubeVirtSpiffeController) recordDialAddress( + ctx context.Context, logger *slog.Logger, machine *clusterv1.Machine, dialAddress string, +) error { + if keys.MachineAgentDialAddress.Value(machine.GetAnnotations()) == dialAddress { + return nil + } + applyMachine := &clusterv1.Machine{ + TypeMeta: metav1.TypeMeta{ + APIVersion: clusterv1.GroupVersion.String(), + Kind: "Machine", + }, + ObjectMeta: metav1.ObjectMeta{ + Name: machine.Name, + Namespace: machine.Namespace, + Annotations: map[string]string{ + keys.MachineAgentDialAddress.String(): dialAddress, + }, + }, + } + logger.Info("Applying Machine annotation", "machineName", applyMachine.Name, + "annotation", keys.MachineAgentDialAddress.String(), "dialAddress", dialAddress) + if err := c.k8sClient.Patch(ctx, applyMachine, client.Apply, + client.FieldOwner(constants.FieldManagerKubeVirtSpiffe), client.ForceOwnership); err != nil { + return fmt.Errorf("failed to apply machine: %w", err) + } + return nil +} + +func loadBalancerAddress(service *corev1.Service) string { + for _, ingress := range service.Status.LoadBalancer.Ingress { + if ingress.IP != "" { + return ingress.IP + } + } + return "" +} + +// kubeVirtAgentObjectName must stay within the 63-character Service name limit. +func kubeVirtAgentObjectName(nodeID string) string { + return "nvke-node-agent-" + nodeID +} + +// podSelector selects the virt-launcher pod of this node's VM. CAPK's labels +// name the KubevirtMachine, whose name is the reusable node name, so the node +// ID is what keeps a recycled name from matching the previous node's pod. +func podSelector(machineName, machineNamespace, nodeID string) map[string]string { + return map[string]string{ + capiclient.KubeVirtMachineNameLabel: machineName, + capiclient.KubeVirtMachineNamespaceLabel: machineNamespace, + capiclient.NodeIDLabel: nodeID, + } +} + +func (c *KubeVirtSpiffeController) buildService(machineName, machineNamespace, nodeID, vmNamespace string) (*corev1.Service, error) { + port, err := strconv.ParseInt(c.cfg.NodeAgent.Port, 10, 32) + if err != nil { + return nil, fmt.Errorf("invalid node agent port %q: %w", c.cfg.NodeAgent.Port, err) + } + service := &corev1.Service{ + TypeMeta: metav1.TypeMeta{APIVersion: "v1", Kind: "Service"}, + ObjectMeta: metav1.ObjectMeta{ + Name: kubeVirtAgentObjectName(nodeID), + Namespace: vmNamespace, + Labels: map[string]string{capiclient.NodeIDLabel: nodeID}, + }, + Spec: corev1.ServiceSpec{ + Type: corev1.ServiceTypeLoadBalancer, + ExternalTrafficPolicy: corev1.ServiceExternalTrafficPolicyLocal, + Selector: podSelector(machineName, machineNamespace, nodeID), + Ports: []corev1.ServicePort{{ + Name: "node-agent", + Protocol: corev1.ProtocolTCP, + Port: int32(port), + TargetPort: intstr.FromInt32(int32(port)), + }}, + }, + } + if pool := c.cfg.NodeAgent.KubeVirt.AddressPool; pool != "" { + service.Annotations = map[string]string{metalLBAddressPoolAnnotation: pool} + } + return service, nil +} + +func (c *KubeVirtSpiffeController) buildClusterSPIFFEID( + machineName, machineNamespace, nodeID, vmNamespace string, +) *spirev1alpha1.ClusterSPIFFEID { + tlsJWT := c.cfg.NodeAgent.TLSJWT + selector := podSelector(machineName, machineNamespace, nodeID) + labels := map[string]string{capiclient.NodeIDLabel: nodeID} + return &spirev1alpha1.ClusterSPIFFEID{ + TypeMeta: metav1.TypeMeta{APIVersion: spirev1alpha1.SchemeGroupVersion.String(), Kind: "ClusterSPIFFEID"}, + ObjectMeta: metav1.ObjectMeta{ + Name: kubeVirtAgentObjectName(nodeID), + Labels: labels, + }, + Spec: spirev1alpha1.ClusterSPIFFEIDSpec{ + SPIFFEIDTemplate: fmt.Sprintf("spiffe://{{ .TrustDomain }}/tenant/%s/service/%s/vm/%s", + tlsJWT.SubjectTenant, tlsJWT.SubjectService, nodeID), + ClassName: c.cfg.NodeAgent.KubeVirt.SPIFFEIDClassName, + Hint: kubeVirtSVIDHint, + NamespaceSelector: &metav1.LabelSelector{MatchLabels: map[string]string{namespaceNameLabel: vmNamespace}}, + PodSelector: &metav1.LabelSelector{MatchLabels: selector}, + }, + } +} + +// infraCluster resolves the cluster and namespace CAPK creates the VMs in, the +// same way CAPK does: from the KubevirtCluster's infraClusterSecretRef, or the +// management cluster when it names none. The KubevirtMachine's VM template +// namespace wins over the Secret's namespace when it sets one. +func (c *KubeVirtSpiffeController) infraCluster( + ctx context.Context, kubeVirtMachine *unstructured.Unstructured, machine *clusterv1.Machine, +) (client.Client, string, error) { + infraClient := c.k8sClient + namespace := kubeVirtMachine.GetNamespace() + + ref, found, err := c.infraClusterSecretRef(ctx, machine) + if err != nil { + return nil, "", err + } + if found { + infraClient, namespace, err = c.connectInfraCluster(ctx, ref, kubeVirtMachine.GetNamespace()) + if err != nil { + return nil, "", err + } + } + + templateNamespace, _, err := unstructured.NestedString(kubeVirtMachine.Object, + "spec", "virtualMachineTemplate", "metadata", "namespace") + if err != nil { + return nil, "", fmt.Errorf("failed to read KubevirtMachine %s/%s VM template namespace: %w", + kubeVirtMachine.GetNamespace(), kubeVirtMachine.GetName(), err) + } + if templateNamespace != "" { + namespace = templateNamespace + } + return infraClient, namespace, nil +} + +// infraClusterSecretRef reads the Secret the Machine's KubevirtCluster names, +// reporting false when it names none and the VMs run in the management cluster. +func (c *KubeVirtSpiffeController) infraClusterSecretRef( + ctx context.Context, machine *clusterv1.Machine, +) (client.ObjectKey, bool, error) { + kubeVirtCluster := &unstructured.Unstructured{} + kubeVirtCluster.SetGroupVersionKind(schema.GroupVersionKind{ + Group: capiclient.KubeVirtInfraGroup, Version: capiclient.KubeVirtInfraAPIVersion, Kind: capiclient.KubeVirtClusterKind, + }) + key := client.ObjectKey{Namespace: machine.Namespace, Name: machine.Spec.ClusterName} + if err := c.k8sClient.Get(ctx, key, kubeVirtCluster); err != nil { + if apierrors.IsNotFound(err) { + return client.ObjectKey{}, false, nil + } + return client.ObjectKey{}, false, fmt.Errorf("failed to get KubevirtCluster %s: %w", key, err) + } + ref, found, err := unstructured.NestedStringMap(kubeVirtCluster.Object, "spec", "infraClusterSecretRef") + if err != nil { + return client.ObjectKey{}, false, fmt.Errorf("failed to read infraClusterSecretRef on %s: %w", key, err) + } + if !found || ref["name"] == "" { + return client.ObjectKey{}, false, nil + } + namespace := ref["namespace"] + if namespace == "" { + namespace = machine.Namespace + } + return client.ObjectKey{Namespace: namespace, Name: ref["name"]}, true, nil +} + +func (c *KubeVirtSpiffeController) connectInfraCluster( + ctx context.Context, ref client.ObjectKey, defaultNamespace string, +) (client.Client, string, error) { + secret := &corev1.Secret{} + if err := c.k8sClient.Get(ctx, ref, secret); err != nil { + return nil, "", fmt.Errorf("failed to get infra cluster kubeconfig Secret %s: %w", ref, err) + } + kubeconfig, ok := secret.Data[infraKubeconfigSecretKey] + if !ok { + return nil, "", fmt.Errorf("infra cluster Secret %s has no %q key", ref, infraKubeconfigSecretKey) + } + clientConfig, err := clientcmd.NewClientConfigFromBytes(kubeconfig) + if err != nil { + return nil, "", fmt.Errorf("failed to parse infra cluster kubeconfig: %w", err) + } + restConfig, err := clientConfig.ClientConfig() + if err != nil { + return nil, "", fmt.Errorf("failed to build infra cluster REST config: %w", err) + } + namespace, _, err := clientConfig.Namespace() + if err != nil { + return nil, "", fmt.Errorf("failed to resolve infra cluster namespace: %w", err) + } + if namespace == "" { + namespace = defaultNamespace + } + if ns, ok := secret.Data[infraNamespaceSecretKey]; ok { + namespace = strings.TrimSpace(string(ns)) + } + + scheme := runtime.NewScheme() + if err := errors.Join(clientgoscheme.AddToScheme(scheme), spirev1alpha1.AddToScheme(scheme)); err != nil { + return nil, "", fmt.Errorf("failed to build infra cluster client scheme: %w", err) + } + newClient := c.newInfraClient + if newClient == nil { + newClient = client.New + } + infraClient, err := newClient(restConfig, client.Options{Scheme: scheme}) + if err != nil { + return nil, "", fmt.Errorf("failed to create infra cluster client: %w", err) + } + return infraClient, namespace, nil +} diff --git a/controller/internal/controllers/capi/kubevirt_spiffe_controller_test.go b/controller/internal/controllers/capi/kubevirt_spiffe_controller_test.go new file mode 100644 index 0000000000..d709af2f23 --- /dev/null +++ b/controller/internal/controllers/capi/kubevirt_spiffe_controller_test.go @@ -0,0 +1,356 @@ +// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +// SPDX-License-Identifier: Apache-2.0 + +package capi + +import ( + "log/slog" + "testing" + + spirev1alpha1 "github.com/spiffe/spire-controller-manager/api/v1alpha1" + "github.com/stretchr/testify/require" + corev1 "k8s.io/api/core/v1" + apierrors "k8s.io/apimachinery/pkg/api/errors" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" + "k8s.io/apimachinery/pkg/runtime" + "k8s.io/apimachinery/pkg/types" + clientgoscheme "k8s.io/client-go/kubernetes/scheme" + clusterv1 "sigs.k8s.io/cluster-api/api/core/v1beta2" + ctrl "sigs.k8s.io/controller-runtime" + "sigs.k8s.io/controller-runtime/pkg/client" + "sigs.k8s.io/controller-runtime/pkg/client/fake" + "sigs.k8s.io/controller-runtime/pkg/reconcile" + + capiclient "github.com/dsx-ai-factory/nvke/controller/internal/clients/capi" + "github.com/dsx-ai-factory/nvke/controller/internal/config" + "github.com/dsx-ai-factory/nvke/controller/internal/db" + "github.com/dsx-ai-factory/nvke/controller/internal/keys" +) + +const ( + kubeVirtTestHostID = "3f2a9c11-4b7d-4a0e-8c3f-1d2e5a6b7c80" + kubeVirtTestDialAddress = "10.90.0.42" + kubeVirtTestVMNamespace = "vms" +) + +func TestUnit_KubeVirtSpiffeControllerReconcile(t *testing.T) { + t.Parallel() + + type parameters struct { + tokenSource db.NodeAgentTokenSource + noTokenSource bool + missingHostID bool + noOwnerRef bool + noVM bool + noLoadBalancer bool + wantRequeue bool + wantService bool + wantRegistration bool + wantDialAddress string + } + + tests := map[string]parameters{ + "publishes the agent endpoint and records its address": { + tokenSource: db.NodeAgentTokenSourceMetadataService, + wantService: true, wantRegistration: true, wantDialAddress: kubeVirtTestDialAddress, + }, + "registers no SPIFFE ID for a node that exchanges its own token": { + tokenSource: db.NodeAgentTokenSourceTokenExchange, + wantService: true, wantDialAddress: kubeVirtTestDialAddress, + }, + "requeues while the load balancer has no address": { + tokenSource: db.NodeAgentTokenSourceMetadataService, noLoadBalancer: true, + wantService: true, wantRegistration: true, wantRequeue: true, + }, + "waits for CAPK to create the VirtualMachine": { + tokenSource: db.NodeAgentTokenSourceMetadataService, noVM: true, + }, + "waits for the Machine owner reference": { + tokenSource: db.NodeAgentTokenSourceMetadataService, noOwnerRef: true, + }, + "waits for the token source annotation": { + noTokenSource: true, + }, + "skips a Machine without a host ID": { + tokenSource: db.NodeAgentTokenSourceMetadataService, missingHostID: true, + }, + } + + for name, params := range tests { + t.Run(name, func(t *testing.T) { + t.Parallel() + + machine := newMachineForKubeVirtSpiffeTest(params.tokenSource) + if params.noTokenSource { + keys.MachineAgentTokenSource.Delete(machine.Annotations) + } + if params.missingHostID { + keys.MachineHostID.Delete(machine.Annotations) + } + kubeVirtMachine := newKubeVirtMachineForSpiffeTest(!params.noOwnerRef) + + objects := []client.Object{machine, kubeVirtMachine} + if !params.noVM { + objects = append(objects, newVirtualMachineForSpiffeTest()) + } + // Seeded only where the controller is expected to get as far as + // reading an address, so the cases that want no Service can tell + // a Service the controller never created from one it did. + if params.wantService && !params.noLoadBalancer { + objects = append(objects, newAgentServiceForSpiffeTest(kubeVirtTestDialAddress)) + } + controller := newKubeVirtSpiffeControllerForTest(t, objects...) + + result, err := controller.Reconcile(t.Context(), ctrl.Request{ + NamespacedName: client.ObjectKeyFromObject(kubeVirtMachine), + }) + require.NoError(t, err) + if params.wantRequeue { + require.Equal(t, kubeVirtDialAddressRequeue, result.RequeueAfter) + } else { + require.Zero(t, result.RequeueAfter) + } + + service := &corev1.Service{} + serviceErr := controller.k8sClient.Get(t.Context(), types.NamespacedName{ + Namespace: kubeVirtTestVMNamespace, Name: kubeVirtAgentObjectName(kubeVirtTestHostID), + }, service) + if params.wantService { + require.NoError(t, serviceErr) + require.Equal(t, corev1.ServiceTypeLoadBalancer, service.Spec.Type) + } else { + require.True(t, apierrors.IsNotFound(serviceErr), "expected no Service, got %v", serviceErr) + } + + registration := &spirev1alpha1.ClusterSPIFFEID{} + registrationErr := controller.k8sClient.Get(t.Context(), types.NamespacedName{ + Name: kubeVirtAgentObjectName(kubeVirtTestHostID), + }, registration) + if params.wantRegistration { + require.NoError(t, registrationErr) + } else { + require.True(t, apierrors.IsNotFound(registrationErr), "expected no ClusterSPIFFEID, got %v", registrationErr) + } + + gotMachine := &clusterv1.Machine{} + require.NoError(t, controller.k8sClient.Get(t.Context(), client.ObjectKeyFromObject(machine), gotMachine)) + require.Equal(t, params.wantDialAddress, keys.MachineAgentDialAddress.Value(gotMachine.Annotations)) + }) + } +} + +// Node names are reused, so a Service selecting only CAPK's machine-name label +// would send one node's agent traffic to its predecessor's pod. +func TestUnit_KubeVirtSpiffeControllerSelectsThePodByNodeID(t *testing.T) { + t.Parallel() + kubeVirtMachine := newKubeVirtMachineForSpiffeTest(true) + controller := newKubeVirtSpiffeControllerForTest(t, + newMachineForKubeVirtSpiffeTest(db.NodeAgentTokenSourceMetadataService), + kubeVirtMachine, + newVirtualMachineForSpiffeTest(), + newAgentServiceForSpiffeTest(kubeVirtTestDialAddress), + ) + + _, err := controller.Reconcile(t.Context(), ctrl.Request{NamespacedName: client.ObjectKeyFromObject(kubeVirtMachine)}) + require.NoError(t, err) + + service := &corev1.Service{} + require.NoError(t, controller.k8sClient.Get(t.Context(), types.NamespacedName{ + Namespace: kubeVirtTestVMNamespace, Name: kubeVirtAgentObjectName(kubeVirtTestHostID), + }, service)) + require.Equal(t, kubeVirtTestHostID, service.Spec.Selector[capiclient.NodeIDLabel]) + + registration := &spirev1alpha1.ClusterSPIFFEID{} + require.NoError(t, controller.k8sClient.Get(t.Context(), types.NamespacedName{ + Name: kubeVirtAgentObjectName(kubeVirtTestHostID), + }, registration)) + require.Equal(t, kubeVirtTestHostID, registration.Spec.PodSelector.MatchLabels[capiclient.NodeIDLabel]) +} + +// The ClusterSPIFFEID is cluster-scoped and the Service lives in another +// cluster, so neither is reachable by owner reference from the KubevirtMachine. +func TestUnit_KubeVirtSpiffeControllerDeletesTheEndpointItCreated(t *testing.T) { + t.Parallel() + kubeVirtMachine := newKubeVirtMachineForSpiffeTest(true) + controller := newKubeVirtSpiffeControllerForTest(t, + newMachineForKubeVirtSpiffeTest(db.NodeAgentTokenSourceMetadataService), + kubeVirtMachine, + newVirtualMachineForSpiffeTest(), + newAgentServiceForSpiffeTest(kubeVirtTestDialAddress), + ) + request := ctrl.Request{NamespacedName: client.ObjectKeyFromObject(kubeVirtMachine)} + + _, err := controller.Reconcile(t.Context(), request) + require.NoError(t, err) + + // The finalizer must be in place, or deletion would complete before the + // controller could clean up. + require.NoError(t, controller.k8sClient.Get(t.Context(), request.NamespacedName, kubeVirtMachine)) + require.Contains(t, kubeVirtMachine.GetFinalizers(), kubeVirtAgentFinalizer) + + require.NoError(t, controller.k8sClient.Delete(t.Context(), kubeVirtMachine)) + _, err = controller.Reconcile(t.Context(), request) + require.NoError(t, err) + + require.True(t, apierrors.IsNotFound(controller.k8sClient.Get(t.Context(), types.NamespacedName{ + Namespace: kubeVirtTestVMNamespace, Name: kubeVirtAgentObjectName(kubeVirtTestHostID), + }, &corev1.Service{}))) + require.True(t, apierrors.IsNotFound(controller.k8sClient.Get(t.Context(), types.NamespacedName{ + Name: kubeVirtAgentObjectName(kubeVirtTestHostID), + }, &spirev1alpha1.ClusterSPIFFEID{}))) + // Dropping the finalizer lets the KubevirtMachine go. + require.True(t, apierrors.IsNotFound(controller.k8sClient.Get(t.Context(), request.NamespacedName, newKubeVirtMachine()))) +} + +func TestUnit_KubeVirtSpiffeControllerReconcileIgnoresMissingKubeVirtMachine(t *testing.T) { + t.Parallel() + controller := newKubeVirtSpiffeControllerForTest(t) + + _, err := controller.Reconcile(t.Context(), ctrl.Request{NamespacedName: types.NamespacedName{ + Namespace: "cluster-test", Name: "worker-gone", + }}) + + require.NoError(t, err) +} + +func TestUnit_KubeVirtSpiffeControllerMachineWatchMapping(t *testing.T) { + t.Parallel() + type parameters struct { + apiGroup string + kind string + name string + other bool + wantName string + } + tests := map[string]parameters{ + "routes a Machine to its KubevirtMachine infrastructure reference": { + apiGroup: capiclient.KubeVirtInfraGroup, kind: capiclient.KubeVirtMachineKind, + name: "kv-infra-1", wantName: "kv-infra-1", + }, + "ignores another infrastructure kind": { + apiGroup: capiclient.KubeVirtInfraGroup, kind: "NicoMachine", name: "nico-infra-1", + }, + "ignores another API group": { + apiGroup: "example.org", kind: capiclient.KubeVirtMachineKind, name: "kv-infra-1", + }, + "ignores a missing infrastructure name": { + apiGroup: capiclient.KubeVirtInfraGroup, kind: capiclient.KubeVirtMachineKind, + }, + "ignores a non-Machine object": {other: true}, + } + for name, params := range tests { + t.Run(name, func(t *testing.T) { + t.Parallel() + var obj client.Object = newMachineForKubeVirtSpiffeTest(db.NodeAgentTokenSourceMetadataService) + if params.other { + obj = newKubeVirtMachineForSpiffeTest(false) + } else { + obj.(*clusterv1.Machine).Spec.InfrastructureRef = clusterv1.ContractVersionedObjectReference{ + APIGroup: params.apiGroup, Kind: params.kind, Name: params.name, + } + } + requests := kubeVirtMachineRequestsForMachine(t.Context(), obj) + if params.wantName == "" { + require.Empty(t, requests) + return + } + require.Equal(t, []reconcile.Request{{NamespacedName: types.NamespacedName{ + Namespace: "cluster-test", Name: params.wantName, + }}}, requests) + }) + } +} + +func newMachineForKubeVirtSpiffeTest(tokenSource db.NodeAgentTokenSource) *clusterv1.Machine { + annotations := map[string]string{ + keys.MachineHostID.String(): kubeVirtTestHostID, + keys.MachineAgentConnection.String(): "spiffe", + keys.MachineSpiffeEnabled.String(): "true", + } + if tokenSource != "" { + annotations[keys.MachineAgentTokenSource.String()] = string(tokenSource) + } + return &clusterv1.Machine{ + TypeMeta: metav1.TypeMeta{APIVersion: clusterv1.GroupVersion.String(), Kind: "Machine"}, + ObjectMeta: metav1.ObjectMeta{Name: "worker-0", Namespace: "cluster-test", Annotations: annotations}, + Spec: clusterv1.MachineSpec{ + ClusterName: "tenant", + InfrastructureRef: clusterv1.ContractVersionedObjectReference{ + APIGroup: capiclient.KubeVirtInfraGroup, Kind: capiclient.KubeVirtMachineKind, Name: "worker-0", + }, + }, + } +} + +func newKubeVirtMachineForSpiffeTest(ownerRef bool) *unstructured.Unstructured { + kubeVirtMachine := newKubeVirtMachine() + kubeVirtMachine.SetNamespace("cluster-test") + kubeVirtMachine.SetName("worker-0") + require := map[string]any{"metadata": map[string]any{"namespace": kubeVirtTestVMNamespace}} + kubeVirtMachine.Object["spec"] = map[string]any{"virtualMachineTemplate": require} + if ownerRef { + isController := true + kubeVirtMachine.SetOwnerReferences([]metav1.OwnerReference{{ + APIVersion: clusterv1.GroupVersion.String(), + Kind: "Machine", + Name: "worker-0", + Controller: &isController, + }}) + } + return kubeVirtMachine +} + +func newVirtualMachineForSpiffeTest() *unstructured.Unstructured { + vm := &unstructured.Unstructured{Object: map[string]any{}} + vm.SetAPIVersion(kubeVirtVMAPIVersion) + vm.SetKind(kubeVirtVMKind) + vm.SetNamespace(kubeVirtTestVMNamespace) + vm.SetName("worker-0") + vm.SetUID("vm-uid-1") + return vm +} + +// newAgentServiceForSpiffeTest stands in for MetalLB, which assigns the +// address in a live cluster. +func newAgentServiceForSpiffeTest(address string) *corev1.Service { + return &corev1.Service{ + TypeMeta: metav1.TypeMeta{APIVersion: "v1", Kind: "Service"}, + ObjectMeta: metav1.ObjectMeta{ + Name: kubeVirtAgentObjectName(kubeVirtTestHostID), Namespace: kubeVirtTestVMNamespace, + }, + Status: corev1.ServiceStatus{ + LoadBalancer: corev1.LoadBalancerStatus{Ingress: []corev1.LoadBalancerIngress{{IP: address}}}, + }, + } +} + +// The VMs run in the management cluster, so the KubevirtCluster names no +// infra cluster Secret and the controller writes through its own client. +func newKubeVirtSpiffeControllerForTest(t *testing.T, objects ...client.Object) *KubeVirtSpiffeController { + t.Helper() + scheme := runtime.NewScheme() + require.NoError(t, clientgoscheme.AddToScheme(scheme)) + require.NoError(t, clusterv1.AddToScheme(scheme)) + require.NoError(t, spirev1alpha1.AddToScheme(scheme)) + + kubeVirtCluster := &unstructured.Unstructured{Object: map[string]any{}} + kubeVirtCluster.SetAPIVersion(capiclient.KubeVirtInfraGroup + "/" + capiclient.KubeVirtInfraAPIVersion) + kubeVirtCluster.SetKind(capiclient.KubeVirtClusterKind) + kubeVirtCluster.SetNamespace("cluster-test") + kubeVirtCluster.SetName("tenant") + + cfg := config.Config{} + cfg.NodeAgent.Port = "9000" + cfg.NodeAgent.KubeVirt.AddressPool = "vm-pool" + cfg.NodeAgent.KubeVirt.SPIFFEIDClassName = "spire" + cfg.NodeAgent.TLSJWT.SubjectTenant = "org-1" + cfg.NodeAgent.TLSJWT.SubjectService = "nvke" + + return &KubeVirtSpiffeController{ + k8sClient: fake.NewClientBuilder().WithScheme(scheme). + WithObjects(append(objects, kubeVirtCluster)...).Build(), + cfg: cfg, + logger: slog.New(slog.DiscardHandler), + } +} diff --git a/controller/internal/controllers/controlplane/scale.go b/controller/internal/controllers/controlplane/scale.go index 8d0c32d520..f350e7287e 100644 --- a/controller/internal/controllers/controlplane/scale.go +++ b/controller/internal/controllers/controlplane/scale.go @@ -114,6 +114,7 @@ func (r *reconciler) createPendingNode( }, } nodes.PinAgentProfile(&pendingNode, r.cfg) + pendingNode.NodeAgentTokenSource = cluster.ControlPlaneConfig.NodeAgentTokenSource() newNodeProvider.ApplyPlaceholderNodePayload(&pendingNode) diff --git a/controller/internal/controllers/controlplane/scale_test.go b/controller/internal/controllers/controlplane/scale_test.go index 8737dee002..6eb6966da1 100644 --- a/controller/internal/controllers/controlplane/scale_test.go +++ b/controller/internal/controllers/controlplane/scale_test.go @@ -77,6 +77,35 @@ func TestCreatePendingNodeSetsFailureDomainButLeavesInstanceTypeUnset(t *testing mockTx.AssertExpectations(t) } +func TestCreatePendingNode_PinsNodeAgentTokenSource(t *testing.T) { + t.Parallel() + + mockTx := &testutil.MockTx{} + mockTx.On("CreateNode", mock.Anything, mock.MatchedBy(func(node *db.Node) bool { + return node.NodeAgentTokenSource == db.NodeAgentTokenSourceMetadataService + })).Return(db.Node{}, nil).Once() + + r := &reconciler{db: mockTx, logger: slog.Default()} + cluster := db.Cluster{ + ID: uuid.New(), + Name: "test-cluster", + ProviderType: db.ProviderTypeCAPI, + ControlPlaneConfig: db.ControlPlaneConfig{ + ConfigurationID: uuid.New(), + ControlPlaneConfigSpec: db.ControlPlaneConfigSpec{ + Capi: &db.CAPIControlPlaneProvider{}, + NodeAgentConfig: db.NodeAgentConfig{TokenSource: db.NodeAgentTokenSourceMetadataService}, + }, + }, + } + newNodeProvider, err := clients.GetNewNodeProvider(cluster) + require.NoError(t, err) + + _, err = r.createPendingNode(context.Background(), cluster, nil, "", newNodeProvider) + require.NoError(t, err) + mockTx.AssertExpectations(t) +} + func TestCreatePendingNode_ProviderPayload(t *testing.T) { t.Parallel() diff --git a/controller/internal/controllers/machineannotations/controller.go b/controller/internal/controllers/machineannotations/controller.go index fbbae19797..17e6f1314c 100644 --- a/controller/internal/controllers/machineannotations/controller.go +++ b/controller/internal/controllers/machineannotations/controller.go @@ -117,5 +117,10 @@ func (c *Controller) Reconcile(ctx context.Context, key dbreconcile.Key) (reconc // ownedKeys returns the Machine annotations this controller keeps in step // with the node record. func ownedKeys() []keys.Key { - return []keys.Key{keys.MachineAgentConnection, keys.MachineSpireAttestationMethod, keys.MachineSpiffeEnabled} + return []keys.Key{ + keys.MachineAgentConnection, + keys.MachineSpireAttestationMethod, + keys.MachineSpiffeEnabled, + keys.MachineAgentTokenSource, + } } diff --git a/controller/internal/controllers/machineannotations/controller_test.go b/controller/internal/controllers/machineannotations/controller_test.go index 6d45e8eb86..f919ac67d8 100644 --- a/controller/internal/controllers/machineannotations/controller_test.go +++ b/controller/internal/controllers/machineannotations/controller_test.go @@ -119,6 +119,7 @@ func TestReconcileLeavesMachineUnchanged(t *testing.T) { keys.MachineAgentConnection.String(): "spiffe", keys.MachineSpireAttestationMethod.String(): "tpm", keys.MachineSpiffeEnabled.String(): "true", + keys.MachineAgentTokenSource.String(): "tokenExchange", }, }, "Machine without host-id predates the controller's Machine identity": { diff --git a/controller/internal/controllers/nodeagentreadiness/conditions.go b/controller/internal/controllers/nodeagentreadiness/conditions.go index 1c20bd12e5..cd69762b16 100644 --- a/controller/internal/controllers/nodeagentreadiness/conditions.go +++ b/controller/internal/controllers/nodeagentreadiness/conditions.go @@ -11,9 +11,9 @@ import ( ) const ( - // noAddressMessage is the nodeAgentReady message for a node that has no IP + // noAddressMessage is the nodeAgentReady message for a node that has no // address to dial. - noAddressMessage = "Node has no IP address" + noAddressMessage = "Node has no address to dial" ) type nodeAgentProbe struct { diff --git a/controller/internal/controllers/nodeagentreadiness/controller.go b/controller/internal/controllers/nodeagentreadiness/controller.go index 85dbad05ee..be22bb2af1 100644 --- a/controller/internal/controllers/nodeagentreadiness/controller.go +++ b/controller/internal/controllers/nodeagentreadiness/controller.go @@ -110,11 +110,11 @@ func (c *AgentReadinessController) Reconcile(ctx context.Context, key dbreconcil } // probeAgent checks node-agent reachability and reports the outcome as a -// nodeAgentProbe. A node with no IP address has nothing to dial: it is +// nodeAgentProbe. A node with no address to dial has nothing to probe: it is // reported unready without probing, so a pending node never dials localhost // and the probe metrics count real dials only. func (c *AgentReadinessController) probeAgent(ctx context.Context, node db.Node) (nodeAgentProbe, error) { - if node.IP == "" { + if node.AgentDialHost() == "" { return nodeAgentProbe{err: agent.ErrNoAddress}, nil } diff --git a/controller/internal/controllers/nodeagentreadiness/controller_test.go b/controller/internal/controllers/nodeagentreadiness/controller_test.go index 6fbb42909c..5c793d2ee1 100644 --- a/controller/internal/controllers/nodeagentreadiness/controller_test.go +++ b/controller/internal/controllers/nodeagentreadiness/controller_test.go @@ -169,6 +169,27 @@ func TestUnit_AgentProbeSkippedForNodeWithNoIP(t *testing.T) { tx.AssertExpectations(t) } +// A node reachable at a dial address is probed before it reports an IP, which +// is the state a node is in between getting an endpoint and registering. +func TestUnit_AgentProbeUsesAgentDialAddressBeforeNodeReportsIP(t *testing.T) { + nodeID := uuid.New() + node := db.Node{ + ID: nodeID, + Capi: &db.CAPINodeProvider{AgentDialAddress: "10.1.0.5"}, + Conditions: db.NodeConditions{NodeAgentReady: db.NewCondition(true, "Node agent is reachable")}, + } + database := &testutil.MockDB{} + database.On("GetNode", mock.Anything, nodeID).Return(node, nil).Once() + client := &countingAgentClient{} + c := NewAgentReadinessController(config.Config{}, slog.New(slog.DiscardHandler), dbwrapper.New(database, nil), client) + + result, err := c.Reconcile(t.Context(), dbreconcile.NodeKey(nodeID)) + require.NoError(t, err) + require.Equal(t, 2*time.Minute, result.RequeueAfter) + require.Equal(t, 1, client.getAgentVersionCalls) + database.AssertExpectations(t) +} + func TestUnit_AgentProbeNoIPConditionUnchangedSkipsWrite(t *testing.T) { nodeID := uuid.New() node := db.Node{ID: nodeID, Conditions: db.NodeConditions{ diff --git a/controller/internal/controllers/nodepool/controller.go b/controller/internal/controllers/nodepool/controller.go index de4034c83f..e08fa0ceed 100644 --- a/controller/internal/controllers/nodepool/controller.go +++ b/controller/internal/controllers/nodepool/controller.go @@ -257,6 +257,7 @@ func buildBaseNodeSet(nodePool db.NodePool) *db.NodeSet { SystemReservedMemory: nodePool.SystemReservedMemory, KubeReservedMemory: nodePool.KubeReservedMemory, TeleportEnabled: nodePool.TeleportEnabled, + NodeAgent: db.CloneNodeAgentSettings(nodePool.NodeAgent), } } diff --git a/controller/internal/controllers/nodeset/controller.go b/controller/internal/controllers/nodeset/controller.go index 2ece458353..e26efc9c84 100644 --- a/controller/internal/controllers/nodeset/controller.go +++ b/controller/internal/controllers/nodeset/controller.go @@ -248,6 +248,7 @@ func (c *Controller) createPendingNode(ctx context.Context, tx db.Tx, cluster db }, } nodes.PinAgentProfile(&dbNode, c.cfg) + dbNode.NodeAgentTokenSource = nodeSet.NodeAgentTokenSource() nodeProvider, err := clients.GetNewNodeProvider(cluster) if err != nil { return db.Node{}, err diff --git a/controller/internal/controllers/nodeset/controller_test.go b/controller/internal/controllers/nodeset/controller_test.go index c2d0bde797..9dbb178d9b 100644 --- a/controller/internal/controllers/nodeset/controller_test.go +++ b/controller/internal/controllers/nodeset/controller_test.go @@ -122,6 +122,33 @@ func TestUnit_Reconcile(t *testing.T) { mockDB.AssertNotCalled(t, "ListNodeSets", mock.Anything, mock.Anything) }, }, + "pins the node set's node-agent token source on a new node": { + nodeSet: func() db.NodeSet { + nodeSet := baseNodeSet + nodeSet.SetCapi(db.CAPINodePoolProvider{}) + nodeSet.NodeAgent = &db.NodeAgentSettings{TokenSource: db.NodeAgentTokenSourceMetadataService} + return nodeSet + }(), + cfg: config.Config{ + NodeAgentExternalMTLSEnabled: true, + NodeAgent: config.NodeAgentConfig{TLSJWT: config.TLSJWTConfig{Enabled: true}}, + }, + setup: func(mockDB *testutil.MockDB, mockTx *testutil.MockTx, nodeSet db.NodeSet) { + capiNodePool := baseNodePool + capiNodePool.SetCapi(db.CAPINodePoolProvider{}) + capiNodePool.NodeAgent = &db.NodeAgentSettings{TokenSource: db.NodeAgentTokenSourceMetadataService} + mockDB.MockTx = mockTx + mockDB.On("RunInTx", mock.Anything, mock.Anything).Return(nil) + mockTx.On("GetNodeSet", mock.Anything, nodeSet.ID).Return(nodeSet, nil) + mockTx.On("GetNodePool", mock.Anything, nodePoolID).Return(capiNodePool, nil) + mockTx.On("ListNodes", mock.Anything, db.NodeFilters{NodeSetID: &nodeSetID}).Return([]db.Node{}, nil).Once() + mockTx.On("GetCluster", mock.Anything, clusterID).Return(db.Cluster{ID: clusterID, Name: "c", ProviderType: db.ProviderTypeCAPI}, nil).Once() + mockTx.On("ListClusterNodeNames", mock.Anything, clusterID).Return([]string{}, nil).Once() + mockTx.On("CreateNode", mock.Anything, mock.MatchedBy(func(node *db.Node) bool { + return node.NodeAgentTokenSource == db.NodeAgentTokenSourceMetadataService + })).Return(db.Node{}, nil).Once() + }, + }, "deletes unclaimed pending node when above desired count": { nodeSet: db.NodeSet{ ID: nodeSetID, diff --git a/controller/internal/db/clusters.go b/controller/internal/db/clusters.go index 105dedf247..b5b99e7e76 100644 --- a/controller/internal/db/clusters.go +++ b/controller/internal/db/clusters.go @@ -242,6 +242,7 @@ func ControlPlaneConfigFromNodePool(np *NodePool) *ControlPlaneConfig { TeleportEnabled: np.TeleportEnabled, ProvisioningMonitorDisabled: np.ProvisioningMonitorDisabled, KubernetesVersion: np.KubernetesVersion, + NodeAgentConfig: NodeAgentConfig{TokenSource: np.NodeAgentTokenSource()}, }, } diff --git a/controller/internal/db/control_plane_configurations.go b/controller/internal/db/control_plane_configurations.go index db167a799d..14731bb1d1 100644 --- a/controller/internal/db/control_plane_configurations.go +++ b/controller/internal/db/control_plane_configurations.go @@ -21,6 +21,8 @@ import ( // NodeAgentConfig stores the exact desired agent release. type NodeAgentConfig struct { Version string `json:"version,omitempty"` + // TokenSource is fixed at creation and pinned onto each control-plane node. + TokenSource NodeAgentTokenSource `json:"token_source,omitempty"` } // ControlPlaneConfigSpec is the snapshot payload stored in @@ -111,6 +113,11 @@ func (c ControlPlaneConfigSpec) CAPIProvider() (CAPIControlPlaneProvider, error) return *cloneCAPIControlPlaneProvider(c.Capi), nil } +// NodeAgentTokenSource returns where new control-plane nodes' agents get their token. +func (c ControlPlaneConfigSpec) NodeAgentTokenSource() NodeAgentTokenSource { + return c.NodeAgentConfig.TokenSource +} + func (c ControlPlaneConfigSpec) LaunchLayerProvider() (LaunchLayerControlPlaneProvider, error) { if c.LaunchLayer == nil { return LaunchLayerControlPlaneProvider{}, fmt.Errorf("%w: control plane config launch_layer", ErrMissingProviderPayload) diff --git a/controller/internal/db/migrations/20261119120000_add_node_capi_and_node_agent_settings.go b/controller/internal/db/migrations/20261119120000_add_node_capi_and_node_agent_settings.go new file mode 100644 index 0000000000..63fc109eaf --- /dev/null +++ b/controller/internal/db/migrations/20261119120000_add_node_capi_and_node_agent_settings.go @@ -0,0 +1,34 @@ +// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +// SPDX-License-Identifier: Apache-2.0 + +package migrations + +import ( + "context" + "fmt" + + "github.com/uptrace/bun" +) + +//nolint:gochecknoinits // Bun registers migrations at package initialization. +func init() { + migrations.MustRegister(func(ctx context.Context, db *bun.DB) error { + if _, err := db.ExecContext(ctx, `ALTER TABLE nodes ADD COLUMN IF NOT EXISTS capi jsonb`); err != nil { + return fmt.Errorf("add nodes.capi: %w", err) + } + if _, err := db.ExecContext(ctx, `ALTER TABLE nodes ADD COLUMN IF NOT EXISTS node_agent_token_source text NOT NULL DEFAULT ''`); err != nil { + return fmt.Errorf("add nodes.node_agent_token_source: %w", err) + } + // node_agent holds the provider-independent node-agent settings a pool + // pins onto its nodes, so later settings need no further migration. + for _, table := range []string{"node_pools", "node_sets"} { + stmt := fmt.Sprintf(`ALTER TABLE %s ADD COLUMN IF NOT EXISTS node_agent jsonb`, table) + if _, err := db.ExecContext(ctx, stmt); err != nil { + return fmt.Errorf("add %s.node_agent: %w", table, err) + } + } + return nil + }, func(context.Context, *bun.DB) error { + return fmt.Errorf("down migration not supported") + }) +} diff --git a/controller/internal/db/node_pools.go b/controller/internal/db/node_pools.go index 90e3d325f4..473e48d060 100644 --- a/controller/internal/db/node_pools.go +++ b/controller/internal/db/node_pools.go @@ -33,6 +33,51 @@ const ( SpireAttestationMethodDSXIMDS SpireAttestationMethod = "dsxImds" ) +// NodeAgentTokenSource selects where a node's agent gets the token it +// authenticates to the controller with. Empty means +// NodeAgentTokenSourceTokenExchange. +type NodeAgentTokenSource string + +const ( + NodeAgentTokenSourceTokenExchange NodeAgentTokenSource = "tokenExchange" + NodeAgentTokenSourceMetadataService NodeAgentTokenSource = "metadataService" +) + +// Effective resolves the empty value to the default it stands for, so an +// omitted source and an explicit tokenExchange compare equal. +func (n NodeAgentTokenSource) Effective() NodeAgentTokenSource { + if n == "" { + return NodeAgentTokenSourceTokenExchange + } + return n +} + +// NodeAgentSettings holds the node-agent settings a node pool or control plane +// pins onto its nodes, independent of the infrastructure provider that creates +// them. +type NodeAgentSettings struct { + TokenSource NodeAgentTokenSource `json:"token_source,omitempty"` +} + +// tokenSource reads through a nil receiver, so an unset block and an explicit +// default compare equal. +func (n *NodeAgentSettings) tokenSource() NodeAgentTokenSource { + if n == nil { + return "" + } + return n.TokenSource +} + +// CloneNodeAgentSettings copies settings so callers in other packages can +// hand a pool's block to a node set without sharing it. +func CloneNodeAgentSettings(settings *NodeAgentSettings) *NodeAgentSettings { + if settings == nil { + return nil + } + clone := *settings + return &clone +} + type NicoNodePoolProvider struct { SubnetIDs []uuid.UUID `json:"subnet_ids,omitempty"` VpcPrefixIDs []uuid.UUID `json:"vpc_prefix_ids,omitempty"` @@ -210,6 +255,16 @@ type NodePool struct { MachineLabels map[string]string `bun:"type:jsonb,notnull,default:'{}'"` LaunchLayer *LaunchLayerNodePoolProvider `bun:"launch_layer,type:jsonb"` + + // NodeAgent is fixed at pool creation and pinned onto each node the pool + // creates. It is provider-independent, so it sits beside the provider + // payloads rather than inside one. + NodeAgent *NodeAgentSettings `bun:"node_agent,type:jsonb"` +} + +// NodeAgentTokenSource returns where the pool's nodes' agents get their token. +func (n *NodePool) NodeAgentTokenSource() NodeAgentTokenSource { + return n.NodeAgent.tokenSource() } // NodeTaint is a Kubernetes taint stored as the desired set for every node in a pool. diff --git a/controller/internal/db/node_sets.go b/controller/internal/db/node_sets.go index f7c9453423..6e2deefcd6 100644 --- a/controller/internal/db/node_sets.go +++ b/controller/internal/db/node_sets.go @@ -40,6 +40,9 @@ type NodeSet struct { Nico *NicoNodePoolProvider `bun:"nico,type:jsonb"` Capi *CAPINodePoolProvider `bun:"capi,type:jsonb"` LaunchLayer *LaunchLayerNodePoolProvider `bun:"launch_layer,type:jsonb"` + + // NodeAgent is the pool's node-agent settings as of this snapshot. + NodeAgent *NodeAgentSettings `bun:"node_agent,type:jsonb"` } // NodePoolNeedsNewNodeSet reports whether reconciling nodePool requires a replacement node set. @@ -84,6 +87,11 @@ func (n *NodeSet) CAPIProvider() (CAPINodePoolProvider, error) { return *cloneCAPINodePoolProvider(*n.Capi), nil } +// NodeAgentTokenSource returns where the node set's nodes' agents get their token. +func (n *NodeSet) NodeAgentTokenSource() NodeAgentTokenSource { + return n.NodeAgent.tokenSource() +} + func (n *NodeSet) LaunchLayerProvider() (LaunchLayerNodePoolProvider, error) { if n.LaunchLayer == nil { return LaunchLayerNodePoolProvider{}, fmt.Errorf("%w: node set %s launch_layer", ErrMissingProviderPayload, n.ID) diff --git a/controller/internal/db/nodes.go b/controller/internal/db/nodes.go index 565c1bf1f4..56fb69cafa 100644 --- a/controller/internal/db/nodes.go +++ b/controller/internal/db/nodes.go @@ -39,6 +39,7 @@ type Node struct { SpireAttestationMethod SpireAttestationMethod `bun:"type:text,notnull"` NodeAgentExternalMTLSEnabled bool `bun:"node_agent_external_mtls_enabled,type:boolean,notnull,default:false"` NodeAgentTLSJWTEnabled bool `bun:"node_agent_tls_jwt_enabled,type:boolean,notnull,default:false"` + NodeAgentTokenSource NodeAgentTokenSource `bun:"node_agent_token_source,type:text,notnull,default:''"` Conditions NodeConditions `bun:"type:jsonb"` AgentVersion string `bun:"type:text,notnull,default:''"` ControlPlaneConfigurationID uuid.UUID `bun:"configuration_id,type:uuid,nullzero"` @@ -52,6 +53,7 @@ type Node struct { Nico *NicoNodeProvider `bun:"nico,type:jsonb"` NodeAgentLifecycle *NodeAgentLifecycle `bun:"node_agent_lifecycle,type:jsonb"` LaunchLayer *LaunchLayerNodeProvider `bun:"launch_layer,type:jsonb"` + Capi *CAPINodeProvider `bun:"capi,type:jsonb"` // CertificateInspection retains read-only public observations independently of lifecycle conditions. CertificateInspection *CertificateInspection `bun:"type:jsonb,nullzero"` } @@ -73,6 +75,26 @@ type LaunchLayerNodeProvider struct { RackID string `json:"rack_id,omitempty"` } +// CAPINodeProvider records per-node state for infra (CAPI) provider nodes. +type CAPINodeProvider struct { + // AgentDialAddress overrides IP as the address the node agent is dialed at. + AgentDialAddress string `json:"agent_dial_address,omitempty"` +} + +// UsesMetadataServiceToken reports whether the node runs no SPIRE agent and +// its agent reads its token from the DSX metadata service. +func (n Node) UsesMetadataServiceToken() bool { + return n.NodeAgentTokenSource == NodeAgentTokenSourceMetadataService +} + +// AgentDialHost returns the host the controller dials the node agent at. +func (n Node) AgentDialHost() string { + if n.Capi != nil && n.Capi.AgentDialAddress != "" { + return n.Capi.AgentDialAddress + } + return n.IP +} + // ValidateSecurityProfile rejects node records whose immutable connection and // attestation settings were not selected at creation time. func (n Node) ValidateSecurityProfile() error { @@ -88,9 +110,32 @@ func (n Node) ValidateSecurityProfile() error { if n.NodeAgentTLSJWTEnabled && !n.SpiffeEnabled && !n.NodeAgentExternalMTLSEnabled { return fmt.Errorf("node %s requires a TLS transport for TLS/JWT", n.ID) } + if err := n.ValidateNodeAgentTokenSource(); err != nil { + return fmt.Errorf("node %s: %w", n.ID, err) + } return nil } +// ErrMetadataServiceTokenRequiresTLSJWT rejects a metadataService node whose +// agent could not authenticate. +var ErrMetadataServiceTokenRequiresTLSJWT = errors.New("metadataService token source requires TLS/JWT with external mTLS: the node runs no SPIRE agent") + +// ValidateNodeAgentTokenSource rejects a token source the node's agent +// settings cannot support. +func (n Node) ValidateNodeAgentTokenSource() error { + switch n.NodeAgentTokenSource { + case "", NodeAgentTokenSourceTokenExchange: + return nil + case NodeAgentTokenSourceMetadataService: + if !n.NodeAgentTLSJWTEnabled || !n.NodeAgentExternalMTLSEnabled { + return ErrMetadataServiceTokenRequiresTLSJWT + } + return nil + default: + return fmt.Errorf("invalid node agent token source %q", n.NodeAgentTokenSource) + } +} + // IsManagedByNodePool reports whether the node is managed by a node pool controller. func (n Node) IsManagedByNodePool() bool { return n.NodePoolID != uuid.Nil @@ -537,8 +582,8 @@ func (q *queriesImpl) CreateNode(ctx context.Context, node *Node) (Node, error) func (q *queriesImpl) UpdateNode(ctx context.Context, node *Node) (Node, error) { node.UpdatedAt = time.Now() res, err := q.db.NewUpdate().Model(node). - ExcludeColumn("spiffe_enabled", "spire_attestation_method", "node_agent_external_mtls_enabled", "node_agent_tls_jwt_enabled"). - WherePK().Returning("id, spiffe_enabled, spire_attestation_method, node_agent_external_mtls_enabled, node_agent_tls_jwt_enabled").Exec(ctx) + ExcludeColumn("spiffe_enabled", "spire_attestation_method", "node_agent_external_mtls_enabled", "node_agent_tls_jwt_enabled", "node_agent_token_source"). + WherePK().Returning("id, spiffe_enabled, spire_attestation_method, node_agent_external_mtls_enabled, node_agent_tls_jwt_enabled, node_agent_token_source").Exec(ctx) if err != nil { return Node{}, err } diff --git a/controller/internal/db/nodes_test.go b/controller/internal/db/nodes_test.go index 3e57ed8b7b..68be62a7b5 100644 --- a/controller/internal/db/nodes_test.go +++ b/controller/internal/db/nodes_test.go @@ -67,15 +67,18 @@ func TestUnit_UpdateNodePreservesSecurityProfile(t *testing.T) { created.SpireAttestationMethod = db.SpireAttestationMethodDSXIMDS created.NodeAgentExternalMTLSEnabled = true created.NodeAgentTLSJWTEnabled = true + created.NodeAgentTokenSource = db.NodeAgentTokenSourceMetadataService updated, err := database.UpdateNode(ctx, &created) require.NoError(t, err) require.Equal(t, db.SpireAttestationMethodTPM, updated.SpireAttestationMethod) require.False(t, updated.NodeAgentExternalMTLSEnabled) require.False(t, updated.NodeAgentTLSJWTEnabled) + require.Empty(t, updated.NodeAgentTokenSource) stored, err := database.GetNode(ctx, node.ID) require.NoError(t, err) require.Equal(t, updated.SpireAttestationMethod, stored.SpireAttestationMethod) + require.Empty(t, stored.NodeAgentTokenSource) } func TestUnit_NodeValidateSecurityProfile(t *testing.T) { @@ -96,6 +99,20 @@ func TestUnit_NodeValidateSecurityProfile(t *testing.T) { "TLS JWT without TLS": {node: db.Node{ SpireAttestationMethod: db.SpireAttestationMethodTPM, NodeAgentTLSJWTEnabled: true, }, wantErr: "requires a TLS transport"}, + "metadata service with external mTLS and TLS JWT": {node: db.Node{ + SpiffeEnabled: true, SpireAttestationMethod: db.SpireAttestationMethodDSXIMDS, + NodeAgentExternalMTLSEnabled: true, NodeAgentTLSJWTEnabled: true, NodeAgentTokenSource: db.NodeAgentTokenSourceMetadataService, + }}, + "metadata service without external mTLS": {node: db.Node{ + SpiffeEnabled: true, SpireAttestationMethod: db.SpireAttestationMethodDSXIMDS, + NodeAgentTLSJWTEnabled: true, NodeAgentTokenSource: db.NodeAgentTokenSourceMetadataService, + }, wantErr: "requires TLS/JWT with external mTLS"}, + "metadata service without TLS JWT": {node: db.Node{ + SpireAttestationMethod: db.SpireAttestationMethodTPM, NodeAgentExternalMTLSEnabled: true, NodeAgentTokenSource: db.NodeAgentTokenSourceMetadataService, + }, wantErr: "requires TLS/JWT with external mTLS"}, + "unknown token source": {node: db.Node{ + SpireAttestationMethod: db.SpireAttestationMethodTPM, NodeAgentTokenSource: "other", + }, wantErr: "invalid node agent token source"}, } for name, params := range tests { t.Run(name, func(t *testing.T) { diff --git a/controller/internal/keys/keys.go b/controller/internal/keys/keys.go index 7be566264c..f8f4a8233d 100644 --- a/controller/internal/keys/keys.go +++ b/controller/internal/keys/keys.go @@ -188,6 +188,17 @@ const ( MachineBootstrapIdentity Key = "bootstrap-identity" MachineExpectedNodeName Key = "expected-node-name" + // MachineAgentTokenSource mirrors the node's node-agent token source so a + // controller watching only Kubernetes objects can tell whether the node + // runs a SPIRE agent. Written by MachineAnnotationsController. + MachineAgentTokenSource Key = "agent-token-source" + + // MachineAgentDialAddress is the address the controller reaches the node's + // agent at when the node's own IP is not routable from here. Written by + // the provider controller that owns the address, read by the provisioning + // workflow, which copies it onto the node record. + MachineAgentDialAddress Key = "agent-dial-address" + // MachineAgentConnectionJWTSuffix ends the MachineAgentConnection value of a // node whose agent uses TLS-JWT, for example "spiffe-jwt". MachineAgentConnectionJWTSuffix = "-jwt" diff --git a/controller/internal/nodes/context.go b/controller/internal/nodes/context.go index 82638cf9c6..ad1b90ce37 100644 --- a/controller/internal/nodes/context.go +++ b/controller/internal/nodes/context.go @@ -65,6 +65,7 @@ func ControlPlaneConfigNodeContext(cluster db.Cluster, node db.Node, snapshotCfg KubeReservedMemory: snapshotCfg.KubeReservedMemory, KubernetesVersion: snapshotCfg.KubernetesVersion, TeleportEnabled: snapshotCfg.TeleportEnabled, + NodeAgent: controlPlaneNodeAgentSettings(snapshotCfg), } nodePool := db.NodePool{ ID: uuid.Nil, @@ -81,6 +82,7 @@ func ControlPlaneConfigNodeContext(cluster db.Cluster, node db.Node, snapshotCfg ProvisioningMonitorDisabled: snapshotCfg.ProvisioningMonitorDisabled, MachineAnnotations: db.CloneStringMap(snapshotCfg.MachineAnnotations), MachineLabels: db.CloneStringMap(snapshotCfg.MachineLabels), + NodeAgent: controlPlaneNodeAgentSettings(snapshotCfg), } provider, err := clients.GetControlPlaneConfigNodeProvider(cluster) @@ -91,3 +93,13 @@ func ControlPlaneConfigNodeContext(cluster db.Cluster, node db.Node, snapshotCfg return nodeSet, nodePool, nil } + +// controlPlaneNodeAgentSettings carries the control plane's node-agent +// settings onto the synthetic set and pool. They are provider-independent, so +// they are copied here rather than by each provider's payload builder. +func controlPlaneNodeAgentSettings(snapshotCfg db.ControlPlaneConfigSpec) *db.NodeAgentSettings { + if snapshotCfg.NodeAgentConfig.TokenSource == "" { + return nil + } + return &db.NodeAgentSettings{TokenSource: snapshotCfg.NodeAgentConfig.TokenSource} +} diff --git a/controller/internal/server/cluster_control_plane_config.go b/controller/internal/server/cluster_control_plane_config.go index c852179c32..7ffc485ac2 100644 --- a/controller/internal/server/cluster_control_plane_config.go +++ b/controller/internal/server/cluster_control_plane_config.go @@ -358,8 +358,11 @@ func controlPlaneConfigSpecFromCreateAPI( SchedulerExtraArgs: componentExtraArgsFromAPI(c.Scheduler), } - if c.NodeAgentConfig != nil && c.NodeAgentConfig.Version != nil { - spec.NodeAgentConfig.Version = *c.NodeAgentConfig.Version + if c.NodeAgentConfig != nil { + if c.NodeAgentConfig.Version != nil { + spec.NodeAgentConfig.Version = *c.NodeAgentConfig.Version + } + spec.NodeAgentConfig.TokenSource = dbNodeAgentTokenSourceFromAPI(c.NodeAgentConfig.TokenFrom) } switch providerType { case db.ProviderTypeNico: diff --git a/controller/internal/server/cluster_control_plane_config_test.go b/controller/internal/server/cluster_control_plane_config_test.go index 6ff82c4b8e..19b7ee2d2f 100644 --- a/controller/internal/server/cluster_control_plane_config_test.go +++ b/controller/internal/server/cluster_control_plane_config_test.go @@ -828,9 +828,11 @@ func TestControlPlaneConfigSpecFromCreateAPI_NestedProviders(t *testing.T) { }) t.Run("nested infra lands on the stored provider payload", func(t *testing.T) { + metadataService := api.NodeAgentTokenSourceMetadataService cfg := &api.CreateClusterControlPlaneConfig{ - DesiredCount: 3, - NodeLabels: map[string]string{"role": "cp"}, + DesiredCount: 3, + NodeLabels: map[string]string{"role": "cp"}, + NodeAgentConfig: &api.NodeAgentConfig{TokenFrom: &metadataService}, Infra: &api.InfraControlPlaneProvider{ MachineTemplate: tmpl, PreKubeadmCommands: []string{"prep"}, @@ -845,6 +847,8 @@ func TestControlPlaneConfigSpecFromCreateAPI_NestedProviders(t *testing.T) { assert.JSONEq(t, `{"kind":"DockerMachineTemplate"}`, string(spec.Capi.InfraMachineTemplatePreferences[0])) assert.Empty(t, spec.Capi.SpireAttestationMethod) assert.Equal(t, []string{"prep"}, spec.Capi.PreKubeadmCommands) + assert.Equal(t, db.NodeAgentTokenSourceMetadataService, spec.NodeAgentTokenSource()) + assert.Equal(t, &metadataService, apiNodeAgentConfigFromDB(spec.NodeAgentConfig).TokenFrom) }) } diff --git a/controller/internal/server/clusters.go b/controller/internal/server/clusters.go index dc9a132ab1..1f4cec5ace 100644 --- a/controller/internal/server/clusters.go +++ b/controller/internal/server/clusters.go @@ -30,6 +30,7 @@ import ( "github.com/dsx-ai-factory/nvke/controller/internal/db" "github.com/dsx-ai-factory/nvke/controller/internal/kubeadmconfig" "github.com/dsx-ai-factory/nvke/controller/internal/naming" + "github.com/dsx-ai-factory/nvke/controller/internal/nodes" "github.com/dsx-ai-factory/nvke/controller/internal/otelx" ) @@ -352,6 +353,12 @@ func (s *clusterService) preflightCheckCreateClusterRequest( // validateNodeAgentProfile rejects new nodes of nodePool that could never // join under this deployment's node-agent settings, profile. func validateNodeAgentProfile(profile db.Node, cluster db.Cluster, nodePool db.NodePool) error { + // The pool's token source is provider-independent, so it is checked here + // rather than by each provider's validator. + profile.NodeAgentTokenSource = nodePool.NodeAgentTokenSource() + if err := profile.ValidateNodeAgentTokenSource(); err != nil { + return fmt.Errorf("this deployment's node-agent settings do not support the pool's token source: %w", err) + } validator, err := clients.GetNodeAgentProfileValidator(cluster) if err != nil { return err @@ -366,13 +373,10 @@ func validateNodeAgentProfile(profile db.Node, cluster db.Cluster, nodePool db.N // control plane, whose nodes belong to the node pool the provider builds from // spec. func validateControlPlaneNodeAgentProfile(profile db.Node, cluster db.Cluster, spec db.ControlPlaneConfigSpec) error { - nodeProvider, err := clients.GetControlPlaneConfigNodeProvider(cluster) + _, nodePool, err := nodes.ControlPlaneConfigNodeContext(cluster, db.Node{}, spec) if err != nil { return err } - var nodeSet db.NodeSet - var nodePool db.NodePool - nodeProvider.ApplyControlPlaneConfigPayloads(db.Node{}, spec, &nodeSet, &nodePool) return validateNodeAgentProfile(profile, cluster, nodePool) } @@ -578,6 +582,7 @@ func (s *clusterService) createInitialNodePools(ctx context.Context, tx db.Tx, c ProvisioningMonitorDisabled: nodePoolConfig.ProvisioningMonitorDisabled, RecycleBudget: nodePoolConfig.RecycleBudget, TeleportEnabled: nodePoolConfig.TeleportEnabled, + NodeAgentConfig: nodePoolConfig.NodeAgentConfig, Nico: nodePoolConfig.Nico, Infra: nodePoolConfig.Infra, MachineAnnotations: nodePoolConfig.MachineAnnotations, @@ -1062,6 +1067,10 @@ func (s *clusterService) applyClusterLevelControlPlaneSpecUpdate( cluster.ControlPlaneConfig.DesiredCount = *req.DesiredCount } + if req.NodeAgentConfig != nil && req.NodeAgentConfig.TokenFrom != nil && + db.NodeAgentTokenSource(*req.NodeAgentConfig.TokenFrom).Effective() != spec.NodeAgentTokenSource().Effective() { + return newBadRequestErrorf("nodeAgentConfig.tokenFrom is set at creation and cannot be changed") + } if req.NodeAgentConfig != nil && req.NodeAgentConfig.Version != nil { version, err := canonicalNodeAgentVersion(*req.NodeAgentConfig.Version) if err != nil { @@ -1682,10 +1691,14 @@ func apiNodeAgentUpgradeFromDB(upgrade *db.NodeAgentUpgrade) *api.NodeAgentUpgra } func apiNodeAgentConfigFromDB(config db.NodeAgentConfig) *api.NodeAgentConfig { - if config.Version == "" { + if config.Version == "" && config.TokenSource == "" { return nil } - return &api.NodeAgentConfig{Version: &config.Version} + out := &api.NodeAgentConfig{TokenFrom: apiNodeAgentTokenSourceFromDB(config.TokenSource)} + if config.Version != "" { + out.Version = &config.Version + } + return out } func agentUpgradeBlocksMaintenance(cluster db.Cluster, request *api.UpdateClusterJSONRequestBody) bool { diff --git a/controller/internal/server/node_agent_settings.go b/controller/internal/server/node_agent_settings.go new file mode 100644 index 0000000000..d171d830af --- /dev/null +++ b/controller/internal/server/node_agent_settings.go @@ -0,0 +1,47 @@ +// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +// SPDX-License-Identifier: Apache-2.0 + +package server + +import ( + "github.com/dsx-ai-factory/nvke/controller/api" + "github.com/dsx-ai-factory/nvke/controller/internal/db" +) + +func dbNodeAgentSettingsFromAPI(settings *api.NodeAgentSettings) *db.NodeAgentSettings { + if settings == nil { + return nil + } + out := &db.NodeAgentSettings{} + if settings.TokenFrom != nil { + out.TokenSource = db.NodeAgentTokenSource(*settings.TokenFrom) + } + return out +} + +func apiNodeAgentSettingsFromDB(settings *db.NodeAgentSettings) *api.NodeAgentSettings { + if settings == nil { + return nil + } + out := &api.NodeAgentSettings{} + if settings.TokenSource != "" { + tokenFrom := api.NodeAgentTokenSource(settings.TokenSource) + out.TokenFrom = &tokenFrom + } + return out +} + +func dbNodeAgentTokenSourceFromAPI(tokenFrom *api.NodeAgentTokenSource) db.NodeAgentTokenSource { + if tokenFrom == nil { + return "" + } + return db.NodeAgentTokenSource(*tokenFrom) +} + +func apiNodeAgentTokenSourceFromDB(tokenSource db.NodeAgentTokenSource) *api.NodeAgentTokenSource { + if tokenSource == "" { + return nil + } + out := api.NodeAgentTokenSource(tokenSource) + return &out +} diff --git a/controller/internal/server/node_agent_version_test.go b/controller/internal/server/node_agent_version_test.go index 0679c0689a..c024460356 100644 --- a/controller/internal/server/node_agent_version_test.go +++ b/controller/internal/server/node_agent_version_test.go @@ -79,6 +79,51 @@ func TestNodeAgentVersionPatchPreservesOmittedAndClearsEmpty(t *testing.T) { require.Empty(t, spec.NodeAgentConfig.Version) } +// The update request shares the NodeAgentConfig schema with create, so a +// tokenFrom a caller cannot change still reaches this path. +func TestNodeAgentTokenSourceCannotBeChangedByAnUpdate(t *testing.T) { + service := clusterService{} + ctx := context.Background() + spec := db.ControlPlaneConfigSpec{ + NodeAgentConfig: db.NodeAgentConfig{TokenSource: db.NodeAgentTokenSourceMetadataService}, + } + cluster := db.Cluster{} + + unchanged := api.NodeAgentTokenSourceMetadataService + req := &api.UpdateClusterControlPlaneConfig{NodeAgentConfig: &api.NodeAgentConfig{TokenFrom: &unchanged}} + require.NoError(t, service.applyClusterLevelControlPlaneSpecUpdate(ctx, &cluster, req, &spec)) + require.Equal(t, db.NodeAgentTokenSourceMetadataService, spec.NodeAgentTokenSource()) + + changed := api.NodeAgentTokenSourceTokenExchange + req = &api.UpdateClusterControlPlaneConfig{NodeAgentConfig: &api.NodeAgentConfig{TokenFrom: &changed}} + err := service.applyClusterLevelControlPlaneSpecUpdate(ctx, &cluster, req, &spec) + require.ErrorContains(t, err, "set at creation and cannot be changed") + require.Equal(t, db.NodeAgentTokenSourceMetadataService, spec.NodeAgentTokenSource()) +} + +// A cluster created without a tokenFrom stores the empty value, which stands +// for tokenExchange, so resending the default is not a change and must not +// take the version update down with it. +func TestNodeAgentTokenSourceDefaultResentIsNotAChange(t *testing.T) { + service := clusterService{nodeAgentUpdateMethod: "apt"} + ctx := context.Background() + spec := db.ControlPlaneConfigSpec{} + cluster := db.Cluster{} + + tokenExchange := api.NodeAgentTokenSourceTokenExchange + version := "v1.2.3" + req := &api.UpdateClusterControlPlaneConfig{ + NodeAgentConfig: &api.NodeAgentConfig{TokenFrom: &tokenExchange, Version: &version}, + } + require.NoError(t, service.applyClusterLevelControlPlaneSpecUpdate(ctx, &cluster, req, &spec)) + require.Equal(t, "v1.2.3", spec.NodeAgentConfig.Version) + + metadataService := api.NodeAgentTokenSourceMetadataService + req = &api.UpdateClusterControlPlaneConfig{NodeAgentConfig: &api.NodeAgentConfig{TokenFrom: &metadataService}} + err := service.applyClusterLevelControlPlaneSpecUpdate(ctx, &cluster, req, &spec) + require.ErrorContains(t, err, "set at creation and cannot be changed") +} + func TestClusterDeletionLeavesAcceptedAgentUpgradeAlone(t *testing.T) { cluster := db.Cluster{ID: uuid.New(), NodeAgentUpgrade: &db.NodeAgentUpgrade{NodeID: uuid.New(), Phase: "Running"}} database := &testutil.MockDB{MockTx: &testutil.MockTx{}} diff --git a/controller/internal/server/node_pools.go b/controller/internal/server/node_pools.go index 99e044f133..c9cf1b5802 100644 --- a/controller/internal/server/node_pools.go +++ b/controller/internal/server/node_pools.go @@ -987,6 +987,7 @@ func apiNodePoolFromDB(dbNodePool *db.NodePool, count db.NodePoolCounts) api.Nod MaxSurge: maxSurge, CurrentNodeSetID: dbNodePool.CurrentNodeSetID, TeleportEnabled: &dbNodePool.TeleportEnabled, + NodeAgentConfig: apiNodeAgentSettingsFromDB(dbNodePool.NodeAgent), Nico: apiNicoNodePoolProviderFromDB(dbNodePool.Nico), Infra: apiInfraNodePoolProviderFromDB(dbNodePool.Capi), @@ -1148,6 +1149,7 @@ func dbNodePoolFromAPI( TeleportEnabled: teleportEnabled, MachineAnnotations: db.CloneStringMap(req.MachineAnnotations), MachineLabels: db.CloneStringMap(req.MachineLabels), + NodeAgent: dbNodeAgentSettingsFromAPI(req.NodeAgentConfig), } switch { diff --git a/controller/internal/server/node_pools_cloud_init_test.go b/controller/internal/server/node_pools_cloud_init_test.go index a9208104ba..cd39733c7b 100644 --- a/controller/internal/server/node_pools_cloud_init_test.go +++ b/controller/internal/server/node_pools_cloud_init_test.go @@ -218,11 +218,13 @@ func TestDbNodePoolFromAPI_EveryNestedNicoFieldReachesTheStoredPool(t *testing.T func TestDbNodePoolFromAPI_EveryNestedCapiFieldReachesTheStoredPool(t *testing.T) { tmpl := map[string]interface{}{"kind": "DockerMachineTemplate"} files := []api.CloudInitFile{{Path: "/tmp/a", Content: "x"}} + metadataService := api.NodeAgentTokenSourceMetadataService req := &api.CreateNodePoolRequest{ - ClusterID: uuid.New(), - Name: "worker", - NodeNamePrefix: "w", + ClusterID: uuid.New(), + Name: "worker", + NodeNamePrefix: "w", + NodeAgentConfig: &api.NodeAgentSettings{TokenFrom: &metadataService}, Infra: &api.InfraNodePoolProvider{ MachineTemplate: tmpl, BootstrapFiles: files, @@ -237,11 +239,13 @@ func TestDbNodePoolFromAPI_EveryNestedCapiFieldReachesTheStoredPool(t *testing.T assert.Empty(t, pool.Capi.SpireAttestationMethod) assert.Equal(t, []string{"echo hi"}, pool.Capi.PreKubeadmCommands) assert.Equal(t, []db.CloudInitFile{{Path: "/tmp/a", Content: "x"}}, pool.Capi.BootstrapFiles) + assert.Equal(t, db.NodeAgentTokenSourceMetadataService, pool.NodeAgentTokenSource()) got := apiNodePoolFromDB(&pool, db.NodePoolCounts{}) require.NotNil(t, got.Infra) assert.Equal(t, "DockerMachineTemplate", got.Infra.MachineTemplate["kind"]) assert.Equal(t, files, got.Infra.BootstrapFiles) + assert.Equal(t, &metadataService, got.NodeAgentConfig.TokenFrom) assert.Nil(t, got.Nico) } diff --git a/controller/internal/server/node_sets.go b/controller/internal/server/node_sets.go index ff86e10648..a040fa610a 100644 --- a/controller/internal/server/node_sets.go +++ b/controller/internal/server/node_sets.go @@ -97,6 +97,7 @@ func apiNodeSetFromDB(dbNodeSet *db.NodeSet) (api.NodeSet, error) { KubeReservedMemory: kubeReservedMemory, KubernetesVersion: dbNodeSet.KubernetesVersion, TeleportEnabled: &dbNodeSet.TeleportEnabled, + NodeAgentConfig: apiNodeAgentSettingsFromDB(dbNodeSet.NodeAgent), Nico: apiNicoNodeSetProviderFromDB(dbNodeSet.Nico), Infra: apiInfraNodeSetProviderFromDB(dbNodeSet.Capi), LaunchLayer: apiLaunchLayerNodeSetProviderFromDB(dbNodeSet.LaunchLayer), diff --git a/controller/internal/server/providers_test.go b/controller/internal/server/providers_test.go index 4128a53c1a..c68a6aec7b 100644 --- a/controller/internal/server/providers_test.go +++ b/controller/internal/server/providers_test.go @@ -60,6 +60,9 @@ func TestValidateNodeAgentProfile(t *testing.T) { spiffeDSXIMDS := db.Node{SpiffeEnabled: true, SpireAttestationMethod: db.SpireAttestationMethodDSXIMDS} var vmPool db.NodePool vmPool.SetLaunchLayer(db.LaunchLayerNodePoolProvider{InstanceType: "vm200", VMProfile: "ubuntu"}) + metadataServicePool := db.NodePool{ + NodeAgent: &db.NodeAgentSettings{TokenSource: db.NodeAgentTokenSourceMetadataService}, + } tests := map[string]struct { profile db.Node provider db.ProviderType @@ -96,6 +99,39 @@ func TestValidateNodeAgentProfile(t *testing.T) { profile: spiffeTPM, provider: db.ProviderTypeNico, }, + "metadataService pool without external mTLS is rejected": { + profile: db.Node{SpiffeEnabled: true, NodeAgentTLSJWTEnabled: true}, + provider: db.ProviderTypeCAPI, + nodePool: metadataServicePool, + wantErr: "this deployment's node-agent settings do not support the pool's token source: " + + "metadataService token source requires TLS/JWT with external mTLS: the node runs no SPIRE agent", + }, + "metadataService pool without TLS/JWT is rejected": { + profile: db.Node{SpiffeEnabled: true, NodeAgentExternalMTLSEnabled: true}, + provider: db.ProviderTypeCAPI, + nodePool: metadataServicePool, + wantErr: "this deployment's node-agent settings do not support the pool's token source: " + + "metadataService token source requires TLS/JWT with external mTLS: the node runs no SPIRE agent", + }, + "metadataService pool with TLS/JWT and external mTLS is accepted": { + profile: db.Node{SpiffeEnabled: true, NodeAgentExternalMTLSEnabled: true, NodeAgentTLSJWTEnabled: true}, + provider: db.ProviderTypeCAPI, + nodePool: metadataServicePool, + }, + // The token source is provider-independent, so a NICo pool is checked + // the same way an infra pool is. + "metadataService nico pool without TLS/JWT is rejected": { + profile: db.Node{SpiffeEnabled: true}, + provider: db.ProviderTypeNico, + nodePool: metadataServicePool, + wantErr: "this deployment's node-agent settings do not support the pool's token source: " + + "metadataService token source requires TLS/JWT with external mTLS: the node runs no SPIRE agent", + }, + "tokenExchange pool without external mTLS is accepted": { + profile: db.Node{SpiffeEnabled: true}, + provider: db.ProviderTypeCAPI, + nodePool: db.NodePool{NodeAgent: &db.NodeAgentSettings{TokenSource: db.NodeAgentTokenSourceTokenExchange}}, + }, } for name, tt := range tests { t.Run(name, func(t *testing.T) { diff --git a/controller/internal/temporal/activities/activities.go b/controller/internal/temporal/activities/activities.go index bbfcb1f297..fb864c8a1e 100644 --- a/controller/internal/temporal/activities/activities.go +++ b/controller/internal/temporal/activities/activities.go @@ -15,6 +15,7 @@ import ( "github.com/dsx-ai-factory/nvke/controller/internal/agent" "github.com/dsx-ai-factory/nvke/controller/internal/config" + "github.com/dsx-ai-factory/nvke/controller/internal/constants" "github.com/dsx-ai-factory/nvke/controller/internal/credentialaudit" "github.com/dsx-ai-factory/nvke/controller/internal/db" "github.com/dsx-ai-factory/nvke/controller/internal/metrics" @@ -80,7 +81,12 @@ func (a *Activities) nodeAgentBootstrapFiles(node db.Node) ([]db.CloudInitFile, args = append(args, "--nvke-controller-client-ca-bundle="+contracts.ControllerCABundlePath) } if node.NodeAgentTLSJWTEnabled { - args = append(args, "--grpc-auth-mode=tls-jwt", "--dsx-identity-exchange-url="+a.cfg.NodeAgent.TLSJWT.DSXIdentityExchangeURL) + args = append(args, "--grpc-auth-mode=tls-jwt") + if node.UsesMetadataServiceToken() { + args = append(args, "--dsx-identity-metadata-url="+constants.DSXMetadataServiceURL) + } else { + args = append(args, "--dsx-identity-exchange-url="+a.cfg.NodeAgent.TLSJWT.DSXIdentityExchangeURL) + } } files = append(files, db.CloudInitFile{ Path: contracts.EnvFilePath, diff --git a/controller/internal/temporal/activities/activities_test.go b/controller/internal/temporal/activities/activities_test.go index 3bc83e82d8..c0f54473a9 100644 --- a/controller/internal/temporal/activities/activities_test.go +++ b/controller/internal/temporal/activities/activities_test.go @@ -18,9 +18,10 @@ func TestUnit_NodeAgentBootstrapFiles(t *testing.T) { t.Parallel() type parameters struct { - tlsJWT bool - externalMTLS bool - wantArgs string + tlsJWT bool + externalMTLS bool + metadataService bool + wantArgs string } tests := map[string]parameters{ "SPIFFE without JWT": { @@ -39,6 +40,17 @@ func TestUnit_NodeAgentBootstrapFiles(t *testing.T) { externalMTLS: true, wantArgs: "AGENT_ARGS=\"--secure-server-port 15005 --nvke-controller-client-ca-bundle=/etc/nke/controller-ca.crt --grpc-auth-mode=tls-jwt --dsx-identity-exchange-url=https://identity.example.test/v1/exchange\"\n", }, + "metadata service identity with JWT": { + tlsJWT: true, + externalMTLS: true, + metadataService: true, + wantArgs: "AGENT_ARGS=\"--secure-server-port 15005 --nvke-controller-client-ca-bundle=/etc/nke/controller-ca.crt --grpc-auth-mode=tls-jwt --dsx-identity-metadata-url=http://169.254.169.254\"\n", + }, + "metadata service identity without JWT": { + externalMTLS: true, + metadataService: true, + wantArgs: "AGENT_ARGS=\"--secure-server-port 15005 --nvke-controller-client-ca-bundle=/etc/nke/controller-ca.crt\"\n", + }, } for name, params := range tests { @@ -54,10 +66,14 @@ func TestUnit_NodeAgentBootstrapFiles(t *testing.T) { }, controllerClientCABundle: "public-ca", } - files, err := activities.nodeAgentBootstrapFiles(db.Node{ + node := db.Node{ NodeAgentExternalMTLSEnabled: params.externalMTLS, NodeAgentTLSJWTEnabled: params.tlsJWT, - }) + } + if params.metadataService { + node.NodeAgentTokenSource = db.NodeAgentTokenSourceMetadataService + } + files, err := activities.nodeAgentBootstrapFiles(node) require.NoError(t, err) wantFileCount := 1 if params.externalMTLS { diff --git a/controller/internal/temporal/activities/capi_node_resources.go b/controller/internal/temporal/activities/capi_node_resources.go index c85b17ad91..a38db0929a 100644 --- a/controller/internal/temporal/activities/capi_node_resources.go +++ b/controller/internal/temporal/activities/capi_node_resources.go @@ -22,6 +22,7 @@ import ( "sigs.k8s.io/controller-runtime/pkg/client" "github.com/dsx-ai-factory/nvke/controller/internal/clients" + "github.com/dsx-ai-factory/nvke/controller/internal/clients/capi" "github.com/dsx-ai-factory/nvke/controller/internal/clients/shared" "github.com/dsx-ai-factory/nvke/controller/internal/constants" "github.com/dsx-ai-factory/nvke/controller/internal/db" @@ -284,6 +285,15 @@ func (a *Activities) waitForCAPIMachineReady(ctx context.Context, input WaitForC return "", fmt.Errorf("capi machine %s has no IP addresses in status or infrastructure ref", machine.Name) } + // A KubeVirt VM's IP is a pod IP, unroutable from here, so its agent is + // reached at the load balancer address KubeVirtSpiffeController publishes + // on the Machine. Retry until it does: without the address the node agent + // is unreachable and the node cannot join. + dialAddress := keys.MachineAgentDialAddress.Value(machine.Annotations) + if dialAddress == "" && capi.IsKubeVirtMachineRef(machine.Spec.InfrastructureRef) { + return "", fmt.Errorf("capi machine %s has no node agent dial address yet", machine.Name) + } + // Record the type the infra provider settled on for templateless Nico nodes // (which carry no controller-selected type). Only authoritative once ready, and must // never block provisioning; CAPD and template-backed nodes are unaffected. @@ -312,6 +322,14 @@ func (a *Activities) waitForCAPIMachineReady(ctx context.Context, input WaitForC return nonRetryableIfNotFound("failed to get node", err) } nodeForUpdate.IP = ipAddress + if dialAddress != "" { + capiProvider := db.CAPINodeProvider{} + if nodeForUpdate.Capi != nil { + capiProvider = *nodeForUpdate.Capi + } + capiProvider.AgentDialAddress = dialAddress + nodeForUpdate.Capi = &capiProvider + } // Sticky: only stamp the type when the node has no type yet, so we never // clobber a controller-selected (Forge) type or an already-recorded value. stampInstanceType := observedInstanceTypeID != uuid.Nil && nodeForUpdate.NicoInstanceTypeID() == uuid.Nil @@ -343,6 +361,7 @@ func (a *Activities) waitForCAPIMachineReady(ctx context.Context, input WaitForC "nodeID", input.NodeID, "nodeName", node.Name, "ip", ipAddress, + "dialAddress", dialAddress, ) return ipAddress, nil diff --git a/controller/internal/temporal/activities/capi_node_resources_test.go b/controller/internal/temporal/activities/capi_node_resources_test.go index 3b90d27923..dcba6935a1 100644 --- a/controller/internal/temporal/activities/capi_node_resources_test.go +++ b/controller/internal/temporal/activities/capi_node_resources_test.go @@ -27,6 +27,7 @@ import ( internalv1 "github.com/dsx-ai-factory/nvke/controller/k8s-apis/v1" + "github.com/dsx-ai-factory/nvke/controller/internal/clients/capi" "github.com/dsx-ai-factory/nvke/controller/internal/config" "github.com/dsx-ai-factory/nvke/controller/internal/constants" "github.com/dsx-ai-factory/nvke/controller/internal/db" @@ -808,6 +809,65 @@ func TestActivities_WaitForCAPIMachineReady_StampsLaunchLayerIdentity(t *testing mockTx.AssertExpectations(t) } +// A KubeVirt VM's agent is reached at the address KubeVirtSpiffeController +// publishes on the Machine, not at the VM's own unroutable pod IP. +func TestActivities_WaitForCAPIMachineReady_KubeVirtVMRecordsAgentDialAddress(t *testing.T) { + nodeID := uuid.MustParse("71000000-0000-0000-0000-000000000021") + clusterID := uuid.MustParse("71000000-0000-0000-0000-000000000022") + + for name, wantDialAddress := range map[string]string{ + "records the address the controller published": "10.90.0.42", + "retries until the controller publishes one": "", + } { + t.Run(name, func(t *testing.T) { + node := db.Node{ID: nodeID, ClusterID: clusterID, ControlPlane: true, Name: "worker-0"} + cluster := db.Cluster{ID: clusterID, Name: "cluster-a", ProviderType: db.ProviderTypeCAPI} + cluster.ControlPlaneConfig.KubernetesVersion = "1.32.1" + cluster.ControlPlaneConfig.SetCapi(db.CAPIControlPlaneProvider{}) + + machine := testCAPIMachineWithNicoInfraRef(clusterv1.MachineAddresses{{ + Type: clusterv1.MachineInternalIP, Address: "10.0.0.10", + }}) + machine.Spec.InfrastructureRef = clusterv1.ContractVersionedObjectReference{ + APIGroup: capi.KubeVirtInfraGroup, + Kind: capi.KubeVirtMachineKind, + Name: "worker-0", + } + if wantDialAddress != "" { + machine.Annotations = map[string]string{ + keys.MachineAgentDialAddress.String(): wantDialAddress, + } + } + k8sClient := newCAPIMachineReadyClient(t, machine) + + mockDB, mockTx := newCAPIMachineReadyDB(t, node, cluster) + mockDB.On("RunInTx", mock.Anything, mock.Anything).Return(nil).Maybe() + mockTx.On("GetNodeForUpdate", mock.Anything, node.ID).Return(node, nil).Maybe() + // The provisioning condition update, which runs before the IP is read. + mockTx.On("UpdateNode", mock.Anything, mock.MatchedBy(func(nodeForUpdate *db.Node) bool { + return nodeForUpdate.IP == "" + })).Return(node, nil).Maybe() + mockTx.On("UpdateNode", mock.Anything, mock.MatchedBy(func(nodeForUpdate *db.Node) bool { + return nodeForUpdate.IP == "10.0.0.10" && + nodeForUpdate.Capi != nil && + nodeForUpdate.Capi.AgentDialAddress == wantDialAddress + })).Return(node, nil).Maybe() + + a := &Activities{db: mockDB, k8sClient: k8sClient} + + ipAddress, err := executeWaitForCAPIMachineReadyActivity(t, a, WaitForCAPIMachineReadyInput{NodeID: nodeID}) + if wantDialAddress == "" { + require.ErrorContains(t, err, "no node agent dial address yet") + assert.Empty(t, ipAddress) + return + } + require.NoError(t, err) + assert.Equal(t, "10.0.0.10", ipAddress) + mockTx.AssertExpectations(t) + }) + } +} + func newCAPIMachineReadyClient(t *testing.T, objects ...client.Object) client.Client { t.Helper() diff --git a/controller/internal/temporal/workflows/update_spire_server.go b/controller/internal/temporal/workflows/update_spire_server.go index 07fa9e89b9..5b3c068834 100644 --- a/controller/internal/temporal/workflows/update_spire_server.go +++ b/controller/internal/temporal/workflows/update_spire_server.go @@ -16,6 +16,15 @@ import ( "github.com/dsx-ai-factory/nvke/controller/internal/temporal/activities" ) +const ( + // spireServerUpdateNodeSelectionChangeID gates which nodes the workflow + // schedules an update on: it skips nodes that take their identity from the + // metadata service, and reaches a node at its dial address rather than its + // IP. Histories recorded before it scheduled ReconfigureNodeSpireAgent on + // every SPIFFE-enabled node that had an IP, and failed the rest. + spireServerUpdateNodeSelectionChangeID = "spire-server-update-node-selection" +) + // UpdateSpireServerInput is the input the PATCH /clusters/{clusterID}/spire-server // handler enqueues. type UpdateSpireServerInput struct { @@ -67,6 +76,17 @@ func updateSpireServer(ctx workflow.Context, input UpdateSpireServerInput) error }, }) + // GetVersion checks workflow history, not the nodes it just listed. A + // workflow that recorded a schedule for a metadata-service node, or a + // failure for a node reachable only at a dial address, must replay that + // decision rather than make it again from this node selection. + selectsByNodeAgentTokenSourceAndDialHost := workflow.GetVersion( + ctx, + spireServerUpdateNodeSelectionChangeID, + workflow.DefaultVersion, + 1, + ) >= 1 + type pending struct { node db.Node future workflow.Future @@ -78,9 +98,17 @@ func updateSpireServer(ctx workflow.Context, input UpdateSpireServerInput) error logger.Info("skipping SPIRE server update on node without SPIFFE", "node", node.Name) continue } - if node.IP == "" { + if selectsByNodeAgentTokenSourceAndDialHost && node.UsesMetadataServiceToken() { + logger.Info("skipping SPIRE server update on node without a SPIRE agent", "node", node.Name) + continue + } + dialHost := node.IP + if selectsByNodeAgentTokenSourceAndDialHost { + dialHost = node.AgentDialHost() + } + if dialHost == "" { // It cannot be reached yet, so it still points at the old server. - logger.Error("SPIRE server update failed on node without an IP", "node", node.Name) + logger.Error("SPIRE server update failed on node without an address", "node", node.Name) failed = append(failed, node.Name) continue } diff --git a/controller/internal/temporal/workflows/update_spire_server_test.go b/controller/internal/temporal/workflows/update_spire_server_test.go index a2921c37de..7585e346b0 100644 --- a/controller/internal/temporal/workflows/update_spire_server_test.go +++ b/controller/internal/temporal/workflows/update_spire_server_test.go @@ -11,6 +11,7 @@ import ( "github.com/stretchr/testify/mock" "github.com/stretchr/testify/require" "go.temporal.io/sdk/testsuite" + "go.temporal.io/sdk/workflow" "github.com/dsx-ai-factory/nvke/controller/internal/db" "github.com/dsx-ai-factory/nvke/controller/internal/temporal/activities" @@ -22,14 +23,38 @@ func TestUpdateSpireServerWorkflow(t *testing.T) { nodeB := db.Node{ID: uuid.New(), Name: "b", IP: "10.0.0.2", SpiffeEnabled: true} noSpiffe := db.Node{ID: uuid.New(), Name: "no-spiffe", IP: "10.0.0.3"} noIP := db.Node{ID: uuid.New(), Name: "no-ip", SpiffeEnabled: true} + noSpireAgent := db.Node{ID: uuid.New(), Name: "no-spire-agent", IP: "10.0.0.4", SpiffeEnabled: true, NodeAgentTokenSource: db.NodeAgentTokenSourceMetadataService} + dialAddressOnly := db.Node{ + ID: uuid.New(), Name: "dial-address-only", SpiffeEnabled: true, + Capi: &db.CAPINodeProvider{AgentDialAddress: "10.1.0.5"}, + } tests := []struct { - name string - nodes []db.Node - failNode uuid.UUID - wantFailure string + name string + nodes []db.Node + // preMarkerHistory replays a history recorded before the workflow + // selected nodes by identity and dial host. + preMarkerHistory bool + failNode uuid.UUID + wantFailure string }{ {name: "all nodes succeed and the lock is cleared", nodes: []db.Node{nodeA, noSpiffe, nodeB}}, + {name: "a node without a SPIRE agent is skipped", nodes: []db.Node{nodeA, noSpireAgent, nodeB}}, + { + name: "a pre-marker history still updates a node without a SPIRE agent", + nodes: []db.Node{nodeA, noSpireAgent, nodeB}, + preMarkerHistory: true, + }, + { + name: "a node reachable at a dial address is updated before it reports an IP", + nodes: []db.Node{nodeA, dialAddressOnly, nodeB}, + }, + { + name: "a pre-marker history reports a dial-address node as failed", + nodes: []db.Node{nodeA, dialAddressOnly, nodeB}, + preMarkerHistory: true, + wantFailure: "SPIRE server update failed on nodes: dial-address-only", + }, { name: "one node fails and UpdateFailed names it", nodes: []db.Node{nodeA, noSpiffe, nodeB}, @@ -47,9 +72,34 @@ func TestUpdateSpireServerWorkflow(t *testing.T) { env := (&testsuite.WorkflowTestSuite{}).NewTestWorkflowEnvironment() var a *activities.Activities + markerVersion := workflow.Version(1) + if tt.preMarkerHistory { + markerVersion = workflow.DefaultVersion + } + env.OnGetVersion(spireServerUpdateNodeSelectionChangeID, workflow.DefaultVersion, 1). + Return(markerVersion).Once() + + // A node is updated when the workflow can reach it and it runs a + // SPIRE agent. A pre-marker history assumes every node runs one and + // reaches a node only at its IP. + updated := []db.Node{nodeA, nodeB} + skipped := []db.Node{noSpiffe, noIP} + for _, n := range tt.nodes { + switch { + case n.ID == noSpireAgent.ID && tt.preMarkerHistory: + updated = append(updated, n) + case n.ID == noSpireAgent.ID: + skipped = append(skipped, n) + case n.ID == dialAddressOnly.ID && tt.preMarkerHistory: + skipped = append(skipped, n) + case n.ID == dialAddressOnly.ID: + updated = append(updated, n) + } + } + env.OnActivity(a.ListNodes, mock.Anything, db.NodeFilters{ClusterID: &clusterID}). Return(tt.nodes, nil).Once() - for _, n := range []db.Node{nodeA, nodeB} { + for _, n := range updated { var err error if n.ID == tt.failNode { err = errors.New("no SVID") @@ -58,6 +108,15 @@ func TestUpdateSpireServerWorkflow(t *testing.T) { NodeID: n.ID, Address: "spire.example.test", Port: 8081, }).Return(activities.ReconfigureNodeSpireAgentResult{}, err) } + // A node the workflow must not reach gets an optional expectation + // that succeeds. Without one, scheduling it anyway fails the mock + // match, which the workflow reports as the very failure a skipped + // node is expected to produce. + for _, n := range skipped { + env.OnActivity(a.ReconfigureNodeSpireAgent, mock.Anything, activities.ReconfigureNodeSpireAgentInput{ + NodeID: n.ID, Address: "spire.example.test", Port: 8081, + }).Return(activities.ReconfigureNodeSpireAgentResult{}, nil).Maybe() + } env.OnActivity(a.ClearSpireServerUpdateInProgress, mock.Anything, activities.ClearSpireServerUpdateInProgressInput{ ClusterID: clusterID, FailureMessage: tt.wantFailure, }).Return(activities.ClearSpireServerUpdateInProgressResult{}, nil).Once() @@ -71,9 +130,9 @@ func TestUpdateSpireServerWorkflow(t *testing.T) { require.ErrorContains(t, env.GetWorkflowError(), tt.wantFailure) } env.AssertExpectations(t) - for _, skipped := range []db.Node{noSpiffe, noIP} { + for _, n := range skipped { env.AssertNotCalled(t, "ReconfigureNodeSpireAgent", mock.Anything, activities.ReconfigureNodeSpireAgentInput{ - NodeID: skipped.ID, Address: "spire.example.test", Port: 8081, + NodeID: n.ID, Address: "spire.example.test", Port: 8081, }) } }) diff --git a/controller/test/e2e/internal/nvke/request.go b/controller/test/e2e/internal/nvke/request.go index a5b66214dd..6fcdd570dd 100644 --- a/controller/test/e2e/internal/nvke/request.go +++ b/controller/test/e2e/internal/nvke/request.go @@ -829,6 +829,7 @@ func nodePoolRequest(clusterID uuid.UUID, pool api.NodePoolCreateConfig) api.Cre ProvisioningMonitorDisabled: pool.ProvisioningMonitorDisabled, RecycleBudget: pool.RecycleBudget, TeleportEnabled: pool.TeleportEnabled, + NodeAgentConfig: pool.NodeAgentConfig, } }