Skip to content

Commit 1df608a

Browse files
Wesley HofflerWesley Hoffler
authored andcommitted
updates to README, use 'report' as default for enforcement_mode
1 parent 2b9b0da commit 1df608a

File tree

8 files changed

+12
-12
lines changed

8 files changed

+12
-12
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ unless real values don't help users know what to change.
2929
```hcl
3030
module "ibm_cbr" "zone" {
3131
# replace master with version
32-
source = "git::https://github.com/terraform-ibm-modules/terraform-ibm-cbr//cbr-zone-module?ref=master"
32+
source = "git::https://github.com/terraform-ibm-modules/terraform-ibm-cbr//cbr-zone-module?ref=main"
3333
name = "zone_for_pg_access"
3434
account_id = data.ibm_iam_account_settings.iam_account_settings.account_id
3535
zone_description = "Zone created from terraform"
@@ -38,7 +38,7 @@ module "ibm_cbr" "zone" {
3838
3939
module "ibm_cbr" "rule" {
4040
# replace master with version
41-
source = "git::https://github.com/terraform-ibm-modules/terraform-ibm-cbr//cbr-rule-module?ref=master"
41+
source = "git::https://github.com/terraform-ibm-modules/terraform-ibm-cbr//cbr-rule-module?ref=main"
4242
name = "rule_for_pg_access"
4343
rule_description = "rule from terraform"
4444
enforcement_mode = "enabled"
@@ -94,7 +94,7 @@ You need the following permissions to run this module.
9494
| Name | Description | Type | Default | Required |
9595
|------|-------------|------|---------|:--------:|
9696
| <a name="input_addresses"></a> [addresses](#input\_addresses) | (List) The list of addresses in the zone | <pre>list(object({<br> type = optional(string)<br> value = optional(string)<br> ref = optional(object({<br> account_id = string<br> location = optional(string)<br> service_instance = optional(string)<br> service_name = optional(string)<br> service_type = optional(string)<br> }))<br> }))</pre> | `[]` | no |
97-
| <a name="input_enforcement_mode"></a> [enforcement\_mode](#input\_enforcement\_mode) | (String) The rule enforcement mode | `string` | `"enabled"` | no |
97+
| <a name="input_enforcement_mode"></a> [enforcement\_mode](#input\_enforcement\_mode) | (String) The rule enforcement mode | `string` | `"report"` | no |
9898
| <a name="input_excluded_addresses"></a> [excluded\_addresses](#input\_excluded\_addresses) | (Optional, List) The list of excluded addresses in the zone | <pre>list(object({<br> type = optional(string)<br> value = optional(string)<br> }))</pre> | `[]` | no |
9999
| <a name="input_name"></a> [name](#input\_name) | (Optional, String) The name of the zone | `string` | `null` | no |
100100
| <a name="input_operations"></a> [operations](#input\_operations) | (Optional, List) The operations this rule applies to | <pre>list(object({<br> api_types = list(object({<br> api_type_id = string<br> }))<br> }))</pre> | `[]` | no |

cbr-rule-module/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# Default example
1+
# CBR Rule Module
22

3-
Example to create a zone for Context Based Restrictions
3+
Creates a rule for Context Based Restrictions

cbr-rule-module/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ variable "rule_contexts" {
4848
variable "enforcement_mode" {
4949
type = string
5050
description = "(String) The rule enforcement mode"
51-
default = "enabled"
51+
default = "report" # As part of the best practices, mode should be in report only mode for 30 days before the rules is enabled.
5252
validation {
5353
condition = anytrue([
5454
var.enforcement_mode == "enabled",

cbr-zone-module/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# Default example
1+
# CBR Zone Module
22

3-
Example to create a zone for Context Based Restrictions
3+
Creates a zone for Context Based Restrictions

examples/multizone-rule/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,5 @@ variable "rule_description" {
4141
variable "enforcement_mode" {
4242
type = string
4343
description = "(String) The rule enforcement mode"
44-
default = "enabled"
44+
default = "report" # As part of the best practices, mode should be in report only mode for 30 days before the rules is enabled.
4545
}

module-metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"name": "enforcement_mode",
1919
"type": "string",
2020
"description": "(String) The rule enforcement mode",
21-
"default": "enabled",
21+
"default": "report",
2222
"source": [
2323
"module.cbr_rule.ibm_cbr_rule.cbr_rule.enforcement_mode"
2424
],

tests/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# Tests
44

5-
For information about how to create and run tests, see [Validation tests](https://github.ibm.com/GoldenEye/documentation/blob/master/tests.md) in the project documentation.
5+
For information about how to create and run tests, see [Validation tests](https://terraform-ibm-modules.github.io/documentation/#/tests) in the project documentation.
66

77
<!-- Add any more steps that are specific to testing this module and that are not in the docs. -->
88
<!-- END TESTS HOOK -->

variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ variable "rule_contexts" {
6868
variable "enforcement_mode" {
6969
type = string
7070
description = "(String) The rule enforcement mode"
71-
default = "enabled"
71+
default = "report" # As part of the best practices, mode should be in report only mode for 30 days before the rules is enabled.
7272
}
7373

7474
variable "resources" {

0 commit comments

Comments
 (0)