Skip to content

Commit 1929d46

Browse files
authored
fix: documentation and variable description updates (#8)
1 parent affc8fb commit 1929d46

File tree

6 files changed

+32
-32
lines changed

6 files changed

+32
-32
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!-- Update the title -->
2-
# Terraform IBM S2S Auth
2+
# Terraform IBM Service-to-service authorization module
33

44
<!--
55
Update status and "latest release" badges:
@@ -12,7 +12,7 @@ Update status and "latest release" badges:
1212
[![Renovate enabled](https://img.shields.io/badge/renovate-enabled-brightgreen.svg)](https://renovatebot.com/)
1313
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
1414

15-
This module is responsible for generating authorization policies and CBR rules that enable access permissions and restrictions between a source service and a target service
15+
This module generates authorization policies and context-based restriction (CBR) rules to enable access and restrictions between a source service and a target service.
1616

1717
<!-- Below content is automatically populated via pre-commit hook -->
1818
<!-- BEGIN OVERVIEW HOOK -->
@@ -109,11 +109,11 @@ You need the following permissions to run this module.
109109

110110
| Name | Description | Type | Default | Required |
111111
|------|-------------|------|---------|:--------:|
112-
| <a name="input_cbr_target_service_details"></a> [cbr\_target\_service\_details](#input\_cbr\_target\_service\_details) | Details of the target service for which the rule has to be created | <pre>list(object({<br> target_service_name = string<br> target_rg = optional(string)<br> enforcement_mode = string<br> tags = optional(list(string))<br> }))</pre> | `[]` | no |
113-
| <a name="input_prefix"></a> [prefix](#input\_prefix) | Prefix to append when creating CBR zones and CBR rules | `string` | `null` | no |
114-
| <a name="input_service_map"></a> [service\_map](#input\_service\_map) | Map of source service and the corresponding target service details | <pre>list(object({<br> source_service_name = string<br> target_service_name = string<br> roles = list(string)<br> description = optional(string, null)<br> source_resource_instance_id = optional(string, null)<br> target_resource_instance_id = optional(string, null)<br> source_resource_group_id = optional(string, null)<br> target_resource_group_id = optional(string, null)<br> }))</pre> | `[]` | no |
115-
| <a name="input_zone_service_ref_list"></a> [zone\_service\_ref\_list](#input\_zone\_service\_ref\_list) | Service reference for the zone creation | `list(string)` | `[]` | no |
116-
| <a name="input_zone_vpc_crn_list"></a> [zone\_vpc\_crn\_list](#input\_zone\_vpc\_crn\_list) | VPC CRN for the zones | `list(string)` | `[]` | no |
112+
| <a name="input_cbr_target_service_details"></a> [cbr\_target\_service\_details](#input\_cbr\_target\_service\_details) | Details of the target service for which the rule has to be created. | <pre>list(object({<br> target_service_name = string<br> target_rg = optional(string)<br> enforcement_mode = string<br> tags = optional(list(string))<br> }))</pre> | `[]` | no |
113+
| <a name="input_prefix"></a> [prefix](#input\_prefix) | Prefix for new CBR zones and rules. | `string` | `null` | no |
114+
| <a name="input_service_map"></a> [service\_map](#input\_service\_map) | Map of source service and the corresponding target service details. | <pre>list(object({<br> source_service_name = string<br> target_service_name = string<br> roles = list(string)<br> description = optional(string, null)<br> source_resource_instance_id = optional(string, null)<br> target_resource_instance_id = optional(string, null)<br> source_resource_group_id = optional(string, null)<br> target_resource_group_id = optional(string, null)<br> }))</pre> | `[]` | no |
115+
| <a name="input_zone_service_ref_list"></a> [zone\_service\_ref\_list](#input\_zone\_service\_ref\_list) | Service reference for the zone creation. | `list(string)` | `[]` | no |
116+
| <a name="input_zone_vpc_crn_list"></a> [zone\_vpc\_crn\_list](#input\_zone\_vpc\_crn\_list) | CRN of the VPC for the zones. | `list(string)` | `[]` | no |
117117

118118
### Outputs
119119

examples/basic/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ Note, there is a pre-commit hook that will take the title of each example and in
66
The text below should describe exactly what resources are provisioned / configured by the example.
77
-->
88

9-
An end-to-end basic example that will provision the following:
9+
An end-to-end basic example that provisions the following resources:
1010

11-
- A new resource group if one is not passed in.
12-
- An authorization policy for databases-for-postgresql -> kms.
13-
- A cbr rule for kms in the resource group.
11+
- A new resource group, if one is not passed in.
12+
- An authorization policy between the IBM Cloud Databases for PostgreSQL and Key Protect services.
13+
- A context-based restriction (CBR) rule for Key Protect in the resource group.

examples/basic/variables.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,24 @@
44

55
variable "ibmcloud_api_key" {
66
type = string
7-
description = "The IBM Cloud API Key"
7+
description = "An IBM Cloud API key."
88
sensitive = true
99
}
1010

1111
variable "region" {
1212
type = string
13-
description = "Region to provision all resources created by this example"
13+
description = "The region to provision all resources created by this example."
1414
default = "us-south"
1515
}
1616

1717
variable "prefix" {
1818
type = string
19-
description = "Prefix to append to all resources created by this example"
19+
description = "The prefix for the resources created by this example."
2020
default = "basic-s2s"
2121
}
2222

2323
variable "resource_group" {
2424
type = string
25-
description = "The name of an existing resource group to provision resources in to. If not set a new resource group will be created using the prefix variable"
25+
description = "The name of an existing resource group to provision the resources in. If not set, a resource group is created with the prefix variable."
2626
default = null
2727
}

examples/complete/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
<!-- There is a pre-commit hook that will take the title of each example add include it in the repos main README.md -->
44
<!-- Add text below should describe exactly what resources are provisioned / configured by the example -->
55

6-
An example that creates authentication policies and context based restrictions
6+
An example that creates authentication policies and context-based restriction (CBR) rules.
77

8-
This example uses the IBM Cloud terraform provider to:
8+
This example uses the IBM Cloud terraform provider to provision the following resources:
99

10-
- Create resource groups if not provided
11-
- Create a Cloud Object Storage and Key protect instance instance
12-
- Create auth policies and CBR rules for the newly created services
10+
- Create resource groups, if not provided.
11+
- Create instances of the Cloud Object Storage and Key Protect services.
12+
- Create authorization policies and CBR rules for the newly created services.

examples/complete/variables.tf

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
11
variable "ibmcloud_api_key" {
22
type = string
3-
description = "The IBM Cloud API Key"
3+
description = "An IBM Cloud API key."
44
sensitive = true
55
}
66

77
variable "region" {
88
type = string
9-
description = "Region to provision all resources created by this example"
9+
description = "The region to provision all resources created by this example."
1010
default = "us-south"
1111
}
1212

1313
variable "prefix" {
1414
type = string
15-
description = "Prefix to append to all resources created by this example"
15+
description = "The prefix for the resources created by this example."
1616
default = "complete-s2s"
1717
}
1818

1919
variable "resource_group" {
2020
type = string
21-
description = "An existing resource group name to use for this example, if unset a new resource group will be created"
21+
description = "The name of an existing resource group to provision the resources in. If not set, a resource group is created with the prefix variable."
2222
default = null
2323
}
2424

2525
variable "resource_tags" {
2626
type = list(string)
27-
description = "Optional list of tags to be added to created resources"
27+
description = "Optional list of tags to add to new resources"
2828
default = []
2929
}
3030

3131
variable "enforcement_mode" {
3232
type = string
33-
description = "The rule enforcement mode"
33+
description = "The CBR rule enforcement mode."
3434
default = "report"
3535
}

variables.tf

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44

55
variable "prefix" {
66
type = string
7-
description = "Prefix to append when creating CBR zones and CBR rules"
7+
description = "Prefix for new CBR zones and rules."
88
default = null
99
}
1010

1111
variable "service_map" {
12-
description = "Map of source service and the corresponding target service details"
12+
description = "Map of source service and the corresponding target service details."
1313
type = list(object({
1414
source_service_name = string
1515
target_service_name = string
@@ -47,7 +47,7 @@ variable "service_map" {
4747
"kms", "internet-svcs", "atracker", "sql-query", "hs-crypto", "server-protect"],
4848
service.target_service_name)
4949
])
50-
error_message = "Provide a valid service for auth policy creation"
50+
error_message = "Provide a valid service for authorization policy creation."
5151
}
5252

5353
validation {
@@ -76,18 +76,18 @@ variable "cbr_target_service_details" {
7676
enforcement_mode = string
7777
tags = optional(list(string))
7878
}))
79-
description = "Details of the target service for which the rule has to be created"
79+
description = "Details of the target service for which the rule has to be created."
8080
default = []
8181
}
8282

8383
variable "zone_service_ref_list" {
8484
type = list(string)
8585
default = []
86-
description = "Service reference for the zone creation"
86+
description = "Service reference for the zone creation."
8787
}
8888

8989
variable "zone_vpc_crn_list" {
9090
type = list(string)
9191
default = []
92-
description = "VPC CRN for the zones"
92+
description = "CRN of the VPC for the zones."
9393
}

0 commit comments

Comments
 (0)