Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Policy (Azure Web Apps): Web apps should have basic local authentication methods disabled for FTP deployments #434

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"name": "d15c0177-f092-4797-82ef-cb2ec89cf527",
"type": "Microsoft.Authorization/policyDefinitions",
"properties": {
"displayName": "App services should have local authentication methods disabled for FTP deployments",
"description": "Disabling local authentication methods for FTP deployments improves security by ensuring that App Service apps exclusively require Microsoft Entra identities for authentication. Learn more at: https://aka.ms/app-service-disable-basic-auth.",
"metadata": {
"version": "1.0.0",
"category": "App Service"
},
"mode": "All",
"parameters": {
"effect": {
"type": "String",
"metadata": {
"displayName": "Effect",
"description": "AuditIfNotExists or Disabled the execution of the Policy"
},
"allowedValues": [
"AuditIfNotExists",
"Disabled"
],
"defaultValue": "AuditIfNotExists"
}
},
"policyRule": {
"if": {
"allOf": [
{
"field": "type",
"equals": "Microsoft.Web/sites"
},
{
"field": "kind",
"notContains": "functionapp"
}
]
},
"then": {
"effect": "[parameters('effect')]",
"details": {
"name": "ftp",
"type": "Microsoft.Web/sites/basicPublishingCredentialsPolicies",
"existenceCondition": {
"field": "Microsoft.Web/sites/basicPublishingCredentialsPolicies/allow",
"equals": "false"
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"effect": {
"type": "String",
"metadata": {
"displayName": "Effect",
"description": "AuditIfNotExists or Disabled the execution of the Policy"
},
"allowedValues": [
"AuditIfNotExists",
"Disabled"
],
"defaultValue": "AuditIfNotExists"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"if": {
"allOf": [
{
"field": "type",
"equals": "Microsoft.Web/sites"
},
{
"field": "kind",
"notContains": "functionapp"
}
]
},
"then": {
"effect": "[parameters('effect')]",
"details": {
"name": "ftp",
"type": "Microsoft.Web/sites/basicPublishingCredentialsPolicies",
"existenceCondition": {
"field": "Microsoft.Web/sites/basicPublishingCredentialsPolicies/allow",
"equals": "false"
}
}
}
}
Loading