-
Notifications
You must be signed in to change notification settings - Fork 248
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #744 from Azure/519-clarify-spns-least-privilege-a…
…nd-environments-for-cicd
- Loading branch information
Showing
11 changed files
with
165 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"$schema": "https://raw.githubusercontent.com/Azure/enterprise-azure-policy-as-code/main/Schemas/global-settings-schema.json", | ||
"pacOwnerId": "bd715eb8-36d2-4d33-8db0-505e04c0e4aa", | ||
"pacEnvironments": [ | ||
{ | ||
"pacSelector": "EPAC-DEV", | ||
"cloud": "AzureCloud", | ||
"tenantId": "4df7a0a2-1b2f-4a43-b48f-bed4b04a4f91", | ||
"deploymentRootScope": "/providers/Microsoft.Management/managementGroups/4df7a0a2-1b2f-4a43-b48f-bed4b04a4f91", | ||
"desiredState": { // [optional] | ||
"strategy": "ownedOnly", // default full | ||
"keepDfcSecurityAssignments": true, // default false | ||
"doNotDisableDeprecatedPolicies": false | ||
}, | ||
"globalNotScopes": [], | ||
"managedIdentityLocation": "eastus2" | ||
}, | ||
{ | ||
"pacSelector": "EPAC-PROD", | ||
"cloud": "AzureCloud", | ||
"tenantId": "3385800d-0197-4981-92e4-12a04898f862", | ||
"deploymentRootScope": "/providers/Microsoft.Management/managementGroups/3385800d-0197-4981-92e4-12a04898f862", | ||
"desiredState": { // [optional] | ||
"strategy": "full", // default full | ||
"keepDfcSecurityAssignments": true, // default false // default full | ||
"doNotDisableDeprecatedPolicies": false | ||
}, | ||
"globalNotScopes": [], | ||
"managedIdentityLocation": "eastus2" | ||
} | ||
] | ||
} |
26 changes: 26 additions & 0 deletions
26
StarterKit/Definitions-Common/policyAssignments/allowed-locations-assignments.jsonc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"$schema": "https://raw.githubusercontent.com/Azure/enterprise-azure-policy-as-code/main/Schemas/policy-assignment-schema.json", | ||
"nodeName": "/Loc/", | ||
"assignment": { | ||
"name": "allowed-locations", | ||
"displayName": "Allowed Locations", | ||
"description": "Sets the allowed locations" | ||
}, | ||
"definitionEntry": { | ||
"policySetName": "e14e5d7c-9551-4ae2-b8fa-b5d6b9b3c677", | ||
"displayName": "Allowed Locations Initiative" | ||
}, | ||
"parameters": { | ||
"AllowedLocations": [ | ||
"eastus2" | ||
] | ||
}, | ||
"scope": { | ||
"epac-dev": [ | ||
"/providers/Microsoft.Management/managementGroups/mg-epac-dev" | ||
], | ||
"tenant": [ | ||
"/providers/Microsoft.Management/managementGroups/mg-enterprise" | ||
] | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
StarterKit/Definitions-Common/policyDocumentations/document-all-assignments.jsonc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"documentAssignments": { | ||
"documentAllAssignments": [ | ||
{ | ||
"enabled": true, | ||
"pacEnvironment": "EPAC-PROD", | ||
"fileNameStemPrefix": "Production", | ||
"skipPolicyAssignments": [], | ||
"skipPolicyDefinitions": [ | ||
"/providers/microsoft.authorization/policysetdefinitions/1f3afdf9-d0c9-4c3d-847f-89da613e70a8" // Azure Security Benchmark v3 | ||
], | ||
"overrideEnvironmentCategory": {} | ||
} | ||
], | ||
"documentationSpecifications": [ | ||
{ | ||
"fileNameStem": "Azure-Policy-Assignments", | ||
"environmentCategories": [], | ||
"title": "Current list of Azure Policies deployed", | ||
"markdownAdoWiki": true, | ||
"markdownAdoWikiConfig": [ | ||
{ | ||
"adoOrganization": "EPAC", | ||
"adoProject": "EPAC", | ||
"adoWiki": "EPAC" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
StarterKit/Definitions-Common/policyExemptions/active-exemptions.jsonc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"exemptions": [ | ||
{ | ||
"name": "short-name", | ||
"displayName": "Descriptive name displayed on portal", | ||
"description": "More details", | ||
"exemptionCategory": "Waiver", | ||
"scopes": [ | ||
"/subscriptions/11111111-2222-3333-4444-555555555555", | ||
"/subscriptions/11111111-2222-3333-4444-555555555556/resourceGroups/resourceGroupName1", | ||
], | ||
"policyDefinitionId": "/providers/microsoft.authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", | ||
} | ||
] | ||
} |