- Update change log for release
- Update build scripts and rule table of contents
This commit is contained in:
Bernie White 2019-06-12 13:48:32 +10:00 коммит произвёл GitHub
Родитель 413094311f
Коммит 99d97ea936
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
4 изменённых файлов: 11 добавлений и 11 удалений

Просмотреть файл

@ -1,6 +1,8 @@
## Unreleased
## v0.1.0-B190624 (pre-release)
- Added rule to check if allow access to Azure services enabled for MySQL. [#4](https://github.com/BernieWhite/PSRule.Rules.Azure/issues/4)
- Added rule to count the number of database server firewall rules for MySQL. [#2](https://github.com/BernieWhite/PSRule.Rules.Azure/issues/2)
- Added rule to check if allow access to Azure services enabled for PostgreSQL. [#50](https://github.com/BernieWhite/PSRule.Rules.Azure/issues/50)

Просмотреть файл

@ -2,10 +2,6 @@
Document 'Azure' {
Title 'Azure rules'
Metadata @{
'generated-by' = 'PSDocs'
}
Get-PSRule -WarningAction SilentlyContinue | Table -Property @{ Name = 'RuleName'; Expression = {
"[$($_.RuleName)]($($_.RuleName).md)"
}}, Description

Просмотреть файл

@ -1,7 +1,3 @@
---
generated-by: PSDocs
---
# Azure rules
RuleName | Description
@ -17,6 +13,11 @@ RuleName | Description
[Azure.AppService.UseHTTPS](Azure.AppService.UseHTTPS.md) | Use HTTPS only
[Azure.DataFactory.Version](Azure.DataFactory.Version.md) | Consider migrating to DataFactory v2
[Azure.MySQL.UseSSL](Azure.MySQL.UseSSL.md) | Use encrypted MySQL connections
[Azure.MySQL.FirewallRuleCount](Azure.MySQL.FirewallRuleCount.md) | Determine if there is an excessive number of firewall rules
[Azure.MySQL.AllowAzureAccess](Azure.MySQL.AllowAzureAccess.md) | Determine if access from Azure services is required
[Azure.PostgreSQL.UseSSL](Azure.PostgreSQL.UseSSL.md) | Use encrypted PostgreSQL connections
[Azure.PostgreSQL.FirewallRuleCount](Azure.PostgreSQL.FirewallRuleCount.md) | Determine if there is an excessive number of firewall rules
[Azure.PostgreSQL.AllowAzureAccess](Azure.PostgreSQL.AllowAzureAccess.md) | Determine if access from Azure services is required
[Azure.PublicIP.IsAttached](Azure.PublicIP.IsAttached.md) | Public IP addresses should be attached or cleaned up if not in use
[Azure.Redis.NonSslPort](Azure.Redis.NonSslPort.md) | Redis Cache should only accept secure connections
[Azure.Redis.MinTLS](Azure.Redis.MinTLS.md) | Redis Cache should reject TLS versions older then 1.2

Просмотреть файл

@ -225,9 +225,10 @@ task Analyze Build, PSScriptAnalyzer, {
}
# Synopsis: Build table of content for rules
task BuildRuleDocs PSRule, PSDocs, {
Invoke-PSDocument -Name Azure -OutputPath .\docs\rules\en-US\ -Path .\RuleToc.Doc.ps1;
$rules = Import-Module out/modules/PSRule.Rules.Azure -Force;
task BuildRuleDocs Build, PSRule, PSDocs, {
Import-Module (Join-Path -Path $PWD -ChildPath out/modules/PSRule.Rules.Azure) -Force;
$Null = Invoke-PSDocument -Name Azure -OutputPath .\docs\rules\en-US\ -Path .\RuleToc.Doc.ps1;
$rules = Get-PSRule -Module 'PSRule.Rules.Azure';
$rules | ForEach-Object -Process {
Invoke-PSDocument -Path .\RuleHelp.Doc.ps1 -OutputPath .\docs\rules\en-US\ -InstanceName $_.Info.Name -inputObject $_;
}