Skip to content

Commit

Permalink
Pre-release v0.1.0-B190624 (#55)
Browse files Browse the repository at this point in the history
- Update change log for release
- Update build scripts and rule table of contents
  • Loading branch information
BernieWhite authored Jun 12, 2019
1 parent 4130943 commit 99d97ea
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
4 changes: 0 additions & 4 deletions RuleToc.Doc.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 5 additions & 4 deletions docs/rules/en-US/Azure.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
---
generated-by: PSDocs
---

# Azure rules

RuleName | Description
Expand All @@ -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
Expand Down
7 changes: 4 additions & 3 deletions pipeline.build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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 $_;
}
Expand Down

0 comments on commit 99d97ea

Please sign in to comment.