-
Notifications
You must be signed in to change notification settings - Fork 259
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 #114 from Azure-Samples/tls_minimums
Improve security on templates.
- Loading branch information
Showing
4 changed files
with
43 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
@description('API Management DB account name') | ||
param apimName string | ||
param appInsightsName string | ||
@secure() | ||
param appInsightsInstrumentationKey string | ||
param resourceTags object | ||
|
||
|
@@ -22,7 +23,7 @@ var location = resourceGroup().location | |
var publisherEmail = '[email protected]' | ||
var publisherName = 'Company Name' | ||
|
||
resource apiManagement 'Microsoft.ApiManagement/service@2021-01-01-preview' = { | ||
resource apiManagement 'Microsoft.ApiManagement/service@2021-08-01' = { | ||
name: apimName | ||
location: location | ||
tags: resourceTags | ||
|
@@ -33,6 +34,23 @@ resource apiManagement 'Microsoft.ApiManagement/service@2021-01-01-preview' = { | |
properties: { | ||
publisherEmail: publisherEmail | ||
publisherName: publisherName | ||
customProperties: { | ||
'Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10': 'False' | ||
'Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11': 'False' | ||
'Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Ssl30': 'False' | ||
'Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls10': 'False' | ||
'Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls11': 'False' | ||
'Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Ssl30': 'False' | ||
'Microsoft.WindowsAzure.ApiManagement.Gateway.Protocols.Server.Http2': 'True' | ||
'Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TripleDes168': 'False' | ||
'Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TLS_RSA_WITH_AES_128_CBC_SHA': 'False' | ||
'Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TLS_RSA_WITH_AES_256_CBC_SHA': 'False' | ||
'Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TLS_RSA_WITH_AES_128_CBC_SHA256': 'False' | ||
'Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA': 'False' | ||
'Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TLS_RSA_WITH_AES_256_CBC_SHA256': 'False' | ||
'Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA': 'False' | ||
'Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TLS_RSA_WITH_AES_128_GCM_SHA256': 'False' | ||
} | ||
} | ||
identity: { | ||
type: 'SystemAssigned' | ||
|
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