Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added note for default cipher values #3915

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions examples/ibm-cis/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,17 @@ resource "ibm_cis_domain_settings" "web_domain" {
brotli = "on"
}

#Domain settings for IBM CIS instance for TLS v1.3
resource "ibm_cis_domain_settings" "web_domain_tls_v1.3" {
cis_id = ibm_cis.web_domain.id
domain_id = ibm_cis_domain.web_domain.id
waf = "on"
ssl = "full"
min_tls_version = "1.3"
brotli = "on"
cipher = []
}

#Adding valid Domain for IBM CIS instance
resource "ibm_cis_domain" "web_domain" {
cis_id = ibm_cis.web_domain.id
Expand Down
67 changes: 64 additions & 3 deletions website/docs/r/cis_domain_settings.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ description: |-

Customize the IBM Cloud Internet Services domain settings. For more information, about Internet Services domain settings, see [adding domains to your CIS instance](https://cloud.ibm.com/docs/cis?topic=cis-multi-domain-support).

## Example usage
## Example usage 1

```terraform
resource "ibm_cis_domain_settings" "test_domain_settings" {
Expand Down Expand Up @@ -72,6 +72,67 @@ resource "ibm_cis_domain_settings" "test" {
}
```

## Example usage 2 : For TLS v1.3

```terraform
resource "ibm_cis_domain_settings" "test_domain_settings" {
cis_id = data.ibm_cis.cis.id
domain_id = data.ibm_cis_domain.cis_domain.domain_id
dnssec = "disabled"
waf = "off"
ssl = "flexible"
min_tls_version = "1.2"
cname_flattening = "flatten_all"
opportunistic_encryption = "off"
automatic_https_rewrites = "on"
always_use_https = "off"
ipv6 = "off"
browser_check = "off"
hotlink_protection = "off"
http2 = "on"
image_load_optimization = "off"
image_size_optimization = "lossless"
ip_geolocation = "off"
origin_error_page_pass_thru = "off"
brotli = "off"
pseudo_ipv4 = "off"
prefetch_preload = "off"
response_buffering = "off"
script_load_optimization = "off"
server_side_exclude = "off"
tls_client_auth = "off"
true_client_ip_header = "off"
websockets = "off"
challenge_ttl = 31536000
max_upload = 300
cipher = []
minify {
css = "off"
js = "off"
html = "off"
}
security_header {
enabled = false
include_subdomains = false
max_age = 0
nosniff = false
}
mobile_redirect {
status = "on"
mobile_subdomain = "m.domain.com"
strip_uri = true
}
}

resource "ibm_cis_domain_settings" "test" {
cis_id = ibm_cis.instance.id
domain_id = ibm_cis_domain.example.id
waf = "on"
ssl = "full"
min_tls_version = "1.3"
}
```

## Argument reference
Review the argument references that you can specify for your resource.

Expand All @@ -80,7 +141,7 @@ Review the argument references that you can specify for your resource.
- `browser_check` - (Optional, String) Enable a client browser check to look for common HTTP headers that are used by malicious users. If HTTP headers are found, access to your website is blocked. Supported values are `off` and `on`.
- `brotli` - (Optional, String) Supported values are `off` and `on`.
- `challenge_ttl` - (Optional, String) Challenge TTL values are `300`, `900`, `1800`, `2700`, `3600`, `7200`, `10800`, `14400`, `28800`, `57600`, `86400`, `604800`, `2592000`, and `31536000`.
- `cipher` - (Optional, String) Cipher setting values are `ECDHE-ECDSA-AES128-GCM-SHA256`, `ECDHE-ECDSA-CHACHA20-POLY1305`,`ECDHE-RSA-AES128-GCM-SHA256`, `ECDHE-RSA-CHACHA20-POLY1305`, `ECDHE-ECDSA-AES128-SHA256`, `ECDHE-ECDSA-AES128-SHA`, `ECDHE-RSA-AES128-SHA256`, `ECDHE-RSA-AES128-SHA`, `AES128-GCM-SHA256`, `AES128-SHA256`, `AES128-SHA`, `ECDHE-ECDSA-AES256-GCM-SHA384`, `ECDHE-ECDSA-AES256-SHA384`, `ECDHE-RSA-AES256-GCM-SHA384`, `ECDHE-RSA-AES256-SHA384`, `ECDHE-RSA-AES256-SHA`, `AES256-GCM-SHA384`, `AES256-SHA256`, `AES256-SHA`, `DES-CBC3-SHA`, `AEAD-AES128-GCM-SHA256`, `AEAD-AES256-GCM-SHA384`, `AEAD-CHACHA20-POLY1305-SHA256`.
- `cipher` - (Optional, List) Cipher setting values are `ECDHE-ECDSA-AES128-GCM-SHA256`, `ECDHE-ECDSA-CHACHA20-POLY1305`,`ECDHE-RSA-AES128-GCM-SHA256`, `ECDHE-RSA-CHACHA20-POLY1305`, `ECDHE-ECDSA-AES128-SHA256`, `ECDHE-ECDSA-AES128-SHA`, `ECDHE-RSA-AES128-SHA256`, `ECDHE-RSA-AES128-SHA`, `AES128-GCM-SHA256`, `AES128-SHA256`, `AES128-SHA`, `ECDHE-ECDSA-AES256-GCM-SHA384`, `ECDHE-ECDSA-AES256-SHA384`, `ECDHE-RSA-AES256-GCM-SHA384`, `ECDHE-RSA-AES256-SHA384`, `ECDHE-RSA-AES256-SHA`, `AES256-GCM-SHA384`, `AES256-SHA256`, `AES256-SHA`, `DES-CBC3-SHA`. To use default cipher value, pass empty list `[]`.
- `cis_id` - (Required, String) The ID of the IBM Cloud Internet Services instance.
- `cname_flattening` - (Optional, String) Supported values are `flatten_at_root`, `flatten_all`, and `flatten_none`.
- `domain_id` - (Required, String) The ID of the domain that you want to customize.
Expand All @@ -92,7 +153,7 @@ Review the argument references that you can specify for your resource.
- `ipv6` - (Optional, String) Supported values are `off` and `on`.
- `ip_geolocation` - (Optional, String) Supported values are `off` and `on`.
- `max_upload` - (Optional, String) Maximum upload values are `100`, `125`, `150`, `175`, `200`, `225`, `250`, `275`, `300`, `325`, `350`, `375`, `400`, `425`, `450`, `475`, and `500`.
- `min_tls_version` - (Optional, String) The minimum TLS version that you want to allow. Allowed values are `1.1`, `1.2`, or `1.3`.
- `min_tls_version` - (Optional, String) The minimum TLS version that you want to allow. Allowed values are `1.1`, `1.2`, or `1.3`. `Note: When we set min_tls_version as 1.3 we can't customize which ciphers to use. The cipher needs to be set to empty list`.
- `minify` (Optional, List) Minify the setting as stated.

Nested scheme for `minify`:
Expand Down