Skip to content

Commit 1951c3a

Browse files
authored
Merge pull request #93959 from bscott-rh/OSDOCS-13798-default
OSDOCS-13798 Modifying azure identity params with new default behavior
2 parents f1733e5 + deca39a commit 1951c3a

File tree

2 files changed

+101
-0
lines changed

2 files changed

+101
-0
lines changed

modules/installation-configuration-parameters.adoc

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1471,6 +1471,30 @@ within link:https://azure.microsoft.com/en-us/global-infrastructure/regions[a re
14711471
|The version number of the image SKU. If you use `compute.platform.azure.osImage.publisher`, this field is required.
14721472
|String. The version of the image to use.
14731473

1474+
|compute:
1475+
platform:
1476+
azure:
1477+
identity:
1478+
type:
1479+
|The type of identity used for compute virtual machines.
1480+
The `UserAssigned` identity is a standalone Azure resource provided by the user and assigned to compute virtual machines.
1481+
If you specify `identity.type` as `UserAssigned`, but do not provide a user-assigned identity, the installation program creates the identity.
1482+
If you provide a user-assigned identity, the Azure account that you use to create the identity must have either the "User Access Administrator" or "RBAC Access Admin" roles.
1483+
|`UserAssigned` or `None`. If you do not specify a value, the installation program generates a user-assigned identity.
1484+
1485+
|compute:
1486+
platform:
1487+
azure:
1488+
identity:
1489+
userAssignedIdentities:
1490+
- name:
1491+
resourceGroup:
1492+
subscription:
1493+
|A group of parameters that specify the name of the user-assigned identity, and the resource group and subscription that contain the identity. All three values must be provided to specify a user-assigned identity.
1494+
Only one user-assigned identity can be supplied.
1495+
Supplying more than one user-assigned identity is an experimental feature, which may be enabled with the `MachineAPIMigration` feature gate.
1496+
|Array of strings.
1497+
14741498
|compute:
14751499
platform:
14761500
azure:
@@ -1549,6 +1573,30 @@ within link:https://azure.microsoft.com/en-us/global-infrastructure/regions[a re
15491573
|Enables the encryption of the virtual machine guest state for compute nodes. This parameter can only be used if you use Confidential VMs.
15501574
|`VMGuestStateOnly` is the only supported value.
15511575

1576+
|controlPlane:
1577+
platform:
1578+
azure:
1579+
identity:
1580+
type:
1581+
|The type of identity used for control plane virtual machines.
1582+
The `UserAssigned` identity is a standalone Azure resource provided by the user and assigned to control plane virtual machines.
1583+
If you specify `identity.type` as `UserAssigned`, but do not provide a user-assigned identity, the installation program creates the identity.
1584+
If you provide a user-assigned identity, the Azure account that you use to create the identity must have either the "User Access Administrator" or "RBAC Access Admin" roles.
1585+
|`UserAssigned` or `None`. If you do not specify a value, the installation program generates a user-assigned identity.
1586+
1587+
|controlPlane:
1588+
platform:
1589+
azure:
1590+
identity:
1591+
userAssignedIdentities:
1592+
- name:
1593+
resourceGroup:
1594+
subscription:
1595+
|A group of parameters that specify the name of the user-assigned identity, and the resource group and subscription that contain the identity. All three values must be provided to specify a user-assigned identity.
1596+
Only one user-assigned identity can be supplied.
1597+
Supplying more than one user-assigned identity is an experimental feature, which may be enabled with the `MachineAPIMigration` feature gate.
1598+
|Array of strings.
1599+
15521600
|controlPlane:
15531601
platform:
15541602
azure:
@@ -1668,6 +1716,30 @@ within link:https://azure.microsoft.com/en-us/global-infrastructure/regions[a re
16681716
|Enables the vTPM feature on all nodes if you are using trusted launch.
16691717
|`Enabled` or `Disabled`. The default is `Disabled`.
16701718

1719+
|platform:
1720+
azure:
1721+
defaultMachinePlatform:
1722+
identity:
1723+
type:
1724+
|The type of identity used for all virtual machines.
1725+
The `UserAssigned` identity is a standalone Azure resource provided by the user and assigned to all virtual machines.
1726+
If you specify `identity.type` as `UserAssigned`, but do not provide a user-assigned identity, the installation program creates the identity.
1727+
If you provide a user-assigned identity, the Azure account that you use to create the identity must have either the "User Access Administrator" or "RBAC Access Admin" roles.
1728+
|`UserAssigned` or `None`. If you do not specify a value, the installation program generates a user-assigned identity.
1729+
1730+
|platform:
1731+
azure:
1732+
defaultMachinePlatform:
1733+
identity:
1734+
userAssignedIdentities:
1735+
- name:
1736+
resourceGroup:
1737+
subscription:
1738+
|A group of parameters that specify the name of the user-assigned identity, and the resource group and subscription that contain the identity. All three values must be provided to specify a user-assigned identity.
1739+
Only one user-assigned identity can be supplied.
1740+
Supplying more than one user-assigned identity is an experimental feature, which may be enabled with the `MachineAPIMigration` feature gate.
1741+
|Array of strings.
1742+
16711743
|platform:
16721744
azure:
16731745
defaultMachinePlatform:

modules/minimum-required-permissions-ipi-azure.adoc

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ The following options are available to you:
1212

1313
* You can assign the identity the `Contributor` and `User Access Administrator` roles, which grant all of the required permissions.
1414
+
15+
If you set `identity.type` to `None` in the `install-config.yaml` file, you do not need to assign the `User Access Administrator` role to the service principal.
16+
+
1517
For more information about assigning roles, see the Azure documentation for link:https://docs.microsoft.com/en-us/azure/role-based-access-control/role-assignments-portal[managing access to Azure resources using the Azure portal].
1618
1719
* If the security policies of your organization require a more restrictive set of permissions, you can create a link:https://learn.microsoft.com/en-us/azure/role-based-access-control/custom-roles[custom role] with the necessary permissions.
@@ -27,6 +29,26 @@ The following permissions are required for creating an {product-title} cluster o
2729
* `Microsoft.Authorization/roleAssignments/write`
2830
====
2931
32+
[IMPORTANT]
33+
====
34+
The following permissions are not required if you set `identity.type` to `None` in the `install-config.yaml` file:
35+
36+
* `Microsoft.Authorization/roleAssignments/read`
37+
* `Microsoft.Authorization/roleAssignments/write`
38+
* `Microsoft.ManagedIdentity/userAssignedIdentities/assign/action`
39+
* `Microsoft.ManagedIdentity/userAssignedIdentities/read`
40+
* `Microsoft.ManagedIdentity/userAssignedIdentities/write`
41+
* `Microsoft.Authorization/roleAssignments/delete`
42+
43+
The following permissions are not required if you set `identity.type` to `UserAssigned` in the `install-config.yaml` file and provide a user-assigned identity:
44+
45+
* `Microsoft.Authorization/roleAssignments/read`
46+
* `Microsoft.Authorization/roleAssignments/write`
47+
* `Microsoft.ManagedIdentity/userAssignedIdentities/write`
48+
* `Microsoft.Authorization/roleAssignments/delete`
49+
50+
====
51+
3052
.Required permissions for creating compute resources
3153
[%collapsible]
3254
====
@@ -134,6 +156,13 @@ The following permissions are not required to create the private {product-title}
134156
* `Microsoft.Resources/subscriptions/resourcegroups/write`
135157
====
136158
159+
.Optional permissions for attaching an existing user-assigned identity to a node
160+
[%collapsible]
161+
====
162+
* `Microsoft.ManagedIdentity/userAssignedIdentities/assign/action`
163+
* `Microsoft.ManagedIdentity/userAssignedIdentities/read`
164+
====
165+
137166
.Required permissions for creating resource tags
138167
[%collapsible]
139168
====

0 commit comments

Comments
 (0)