Skip to content

Commit

Permalink
fix brainfarts
Browse files Browse the repository at this point in the history
  • Loading branch information
ludoo committed Jan 17, 2025
1 parent 8171268 commit 93aa1a1
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 17 deletions.
12 changes: 12 additions & 0 deletions fast/addons/2-networking-ngfw/variables-fast.tf
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,18 @@ variable "automation" {
})
}

variable "certificate_authority_pools" {
# tfdoc:variable:source 2-security
description = "Certificate authority pools."
type = map(object({
id = string
ca_ids = map(string)
location = string
}))
nullable = false
default = {}
}

variable "organization" {
# tfdoc:variable:source 0-globals
description = "Organization details."
Expand Down
9 changes: 4 additions & 5 deletions fast/addons/2-networking-swp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,19 +156,18 @@ terraform apply
| [certificate_authority](variables.tf#L17) | Optional Certificate Authority Service pool and CA used by SWP. | <code title="object&#40;&#123;&#10; iam &#61; optional&#40;map&#40;list&#40;string&#41;&#41;, &#123;&#125;&#41;&#10; iam_bindings &#61; optional&#40;map&#40;any&#41;, &#123;&#125;&#41;&#10; iam_bindings_additive &#61; optional&#40;map&#40;any&#41;, &#123;&#125;&#41;&#10; iam_by_principals &#61; optional&#40;map&#40;list&#40;string&#41;&#41;, &#123;&#125;&#41;&#10; ca_configs &#61; map&#40;object&#40;&#123;&#10; deletion_protection &#61; optional&#40;string, true&#41;&#10; type &#61; optional&#40;string, &#34;SELF_SIGNED&#34;&#41;&#10; is_ca &#61; optional&#40;bool, true&#41;&#10; lifetime &#61; optional&#40;string, null&#41;&#10; pem_ca_certificate &#61; optional&#40;string, null&#41;&#10; ignore_active_certificates_on_deletion &#61; optional&#40;bool, false&#41;&#10; skip_grace_period &#61; optional&#40;bool, true&#41;&#10; labels &#61; optional&#40;map&#40;string&#41;, null&#41;&#10; gcs_bucket &#61; optional&#40;string, null&#41;&#10; key_spec &#61; optional&#40;object&#40;&#123;&#10; algorithm &#61; optional&#40;string, &#34;RSA_PKCS1_2048_SHA256&#34;&#41;&#10; kms_key_id &#61; optional&#40;string, null&#41;&#10; &#125;&#41;, &#123;&#125;&#41;&#10; key_usage &#61; optional&#40;object&#40;&#123;&#10; cert_sign &#61; optional&#40;bool, true&#41;&#10; client_auth &#61; optional&#40;bool, false&#41;&#10; code_signing &#61; optional&#40;bool, false&#41;&#10; content_commitment &#61; optional&#40;bool, false&#41;&#10; crl_sign &#61; optional&#40;bool, true&#41;&#10; data_encipherment &#61; optional&#40;bool, false&#41;&#10; decipher_only &#61; optional&#40;bool, false&#41;&#10; digital_signature &#61; optional&#40;bool, false&#41;&#10; email_protection &#61; optional&#40;bool, false&#41;&#10; encipher_only &#61; optional&#40;bool, false&#41;&#10; key_agreement &#61; optional&#40;bool, false&#41;&#10; key_encipherment &#61; optional&#40;bool, true&#41;&#10; ocsp_signing &#61; optional&#40;bool, false&#41;&#10; server_auth &#61; optional&#40;bool, true&#41;&#10; time_stamping &#61; optional&#40;bool, false&#41;&#10; &#125;&#41;, &#123;&#125;&#41;&#10; subject &#61; optional&#40;&#10; object&#40;&#123;&#10; common_name &#61; string&#10; organization &#61; string&#10; country_code &#61; optional&#40;string&#41;&#10; locality &#61; optional&#40;string&#41;&#10; organizational_unit &#61; optional&#40;string&#41;&#10; postal_code &#61; optional&#40;string&#41;&#10; province &#61; optional&#40;string&#41;&#10; street_address &#61; optional&#40;string&#41;&#10; &#125;&#41;,&#10; &#123;&#10; common_name &#61; &#34;test.example.com&#34;&#10; organization &#61; &#34;Test Example&#34;&#10; &#125;&#10; &#41;&#10; subject_alt_name &#61; optional&#40;object&#40;&#123;&#10; dns_names &#61; optional&#40;list&#40;string&#41;, null&#41;&#10; email_addresses &#61; optional&#40;list&#40;string&#41;, null&#41;&#10; ip_addresses &#61; optional&#40;list&#40;string&#41;, null&#41;&#10; uris &#61; optional&#40;list&#40;string&#41;, null&#41;&#10; &#125;&#41;, null&#41;&#10; subordinate_config &#61; optional&#40;object&#40;&#123;&#10; root_ca_id &#61; optional&#40;string&#41;&#10; pem_issuer_certificates &#61; optional&#40;list&#40;string&#41;&#41;&#10; &#125;&#41;, null&#41;&#10; &#125;&#41;&#41;&#10; ca_pool_config &#61; optional&#40;object&#40;&#123;&#10; create_pool &#61; optional&#40;object&#40;&#123;&#10; name &#61; optional&#40;string&#41;&#10; tier &#61; optional&#40;string, &#34;DEVOPS&#34;&#41;&#10; &#125;&#41;&#41;&#10; use_pool &#61; optional&#40;object&#40;&#123;&#10; id &#61; string&#10; &#125;&#41;&#41;&#10; &#125;&#41;&#41;&#10;&#125;&#41;">object&#40;&#123;&#8230;&#125;&#41;</code> | ✓ | | |
| [project_id](variables.tf#L143) | Project where the resources will be created. | <code>string</code> || | |
| [_fast_debug](variables-fast.tf#L19) | Internal FAST variable used for testing and debugging. Do not use. | <code title="object&#40;&#123;&#10; skip_datasources &#61; optional&#40;bool, false&#41;&#10;&#125;&#41;">object&#40;&#123;&#8230;&#125;&#41;</code> | | <code>&#123;&#125;</code> | |
| [certificate_authority_pools](variables-fast.tf#L36) | Certificate authority pools. | <code title="map&#40;object&#40;&#123;&#10; id &#61; string&#10; ca_ids &#61; map&#40;string&#41;&#10; location &#61; string&#10;&#125;&#41;&#41;">map&#40;object&#40;&#123;&#8230;&#125;&#41;&#41;</code> | | <code>&#123;&#125;</code> | <code>2-security</code> |
| [enable_services](variables.tf#L95) | Configure project by enabling services required for this add-on. | <code>bool</code> | | <code>false</code> | |
| [factories_config](variables.tf#L102) | SWP factories configuration paths. Keys in the `swp_configs` variable will be appended to derive individual SWP factory paths. | <code title="object&#40;&#123;&#10; policy_rules &#61; optional&#40;string, &#34;data&#47;policy-rules&#34;&#41;&#10; url_lists &#61; optional&#40;string, &#34;data&#47;url-lists&#34;&#41;&#10;&#125;&#41;">object&#40;&#123;&#8230;&#125;&#41;</code> | | <code>&#123;&#125;</code> | |
| [host_project_ids](variables-fast.tf#L48) | Networking stage host project id aliases. | <code>map&#40;string&#41;</code> | | <code>&#123;&#125;</code> | <code>2-networking</code> |
| [host_project_ids](variables-fast.tf#L36) | Networking stage host project id aliases. | <code>map&#40;string&#41;</code> | | <code>&#123;&#125;</code> | <code>2-networking</code> |
| [locations](variables.tf#L112) | Regions where the resources will be created. Keys are used as short names appended to resource names. Interpolation with FAST region names is supported. | <code>map&#40;string&#41;</code> | | <code>&#123;&#125;</code> | |
| [name](variables.tf#L119) | Name used for resource names. | <code>string</code> | | <code>&#34;swp&#34;</code> | |
| [outputs_location](variables.tf#L126) | Path where providers and tfvars files for the following stages are written. Leave empty to disable. | <code>string</code> | | <code>null</code> | |
| [policy_rules_contexts](variables.tf#L132) | Replacement contexts for policy rules matcher arguments. | <code title="object&#40;&#123;&#10; secure_tags &#61; optional&#40;map&#40;string&#41;, &#123;&#125;&#41;&#10; service_accounts &#61; optional&#40;map&#40;string&#41;, &#123;&#125;&#41;&#10; url_lists &#61; optional&#40;map&#40;string&#41;, &#123;&#125;&#41;&#10;&#125;&#41;">object&#40;&#123;&#8230;&#125;&#41;</code> | | <code>&#123;&#125;</code> | |
| [regions](variables-fast.tf#L56) | Networking stage region aliases. | <code>map&#40;string&#41;</code> | | <code>&#123;&#125;</code> | <code>2-networking</code> |
| [subnet_self_links](variables-fast.tf#L64) | VPC subnetwork self links. | <code>map&#40;map&#40;string&#41;&#41;</code> | | <code>&#123;&#125;</code> | <code>2-networking</code> |
| [regions](variables-fast.tf#L44) | Networking stage region aliases. | <code>map&#40;string&#41;</code> | | <code>&#123;&#125;</code> | <code>2-networking</code> |
| [subnet_self_links](variables-fast.tf#L52) | VPC subnetwork self links. | <code>map&#40;map&#40;string&#41;&#41;</code> | | <code>&#123;&#125;</code> | <code>2-networking</code> |
| [swp_configs](variables.tf#L149) | Secure Web Proxy configuration, one per region. | <code title="map&#40;object&#40;&#123;&#10; network_id &#61; string&#10; subnetwork_id &#61; string&#10; certificates &#61; optional&#40;list&#40;string&#41;, &#91;&#93;&#41;&#10; tls_inspection_policy_id &#61; optional&#40;string, null&#41;&#10; gateway_config &#61; optional&#40;object&#40;&#123;&#10; addresses &#61; optional&#40;list&#40;string&#41;, &#91;&#93;&#41;&#10; delete_router_on_destroy &#61; optional&#40;bool, true&#41;&#10; labels &#61; optional&#40;map&#40;string&#41;, &#123;&#125;&#41;&#10; next_hop_routing_mode &#61; optional&#40;bool, false&#41;&#10; ports &#61; optional&#40;list&#40;string&#41;, &#91;443&#93;&#41;&#10; scope &#61; optional&#40;string&#41;&#10; &#125;&#41;, &#123;&#125;&#41;&#10; service_attachment &#61; optional&#40;object&#40;&#123;&#10; nat_subnets &#61; list&#40;string&#41;&#10; automatic_connection &#61; optional&#40;bool, false&#41;&#10; consumer_accept_lists &#61; optional&#40;map&#40;string&#41;, &#123;&#125;&#41;&#10; consumer_reject_lists &#61; optional&#40;list&#40;string&#41;&#41;&#10; description &#61; optional&#40;string&#41;&#10; domain_name &#61; optional&#40;string&#41;&#10; enable_proxy_protocol &#61; optional&#40;bool, false&#41;&#10; reconcile_connections &#61; optional&#40;bool&#41;&#10; &#125;&#41;&#41;&#10;&#125;&#41;&#41;">map&#40;object&#40;&#123;&#8230;&#125;&#41;&#41;</code> | | <code>&#123;&#125;</code> | |
| [tls_inspection_policy](variables.tf#L179) | TLS inspection policy configuration. If a CA pool is not specified a local one must be created via the `certificate_authority` variable. | <code title="object&#40;&#123;&#10; ca_pool_id &#61; optional&#40;string&#41;&#10; exclude_public_ca_set &#61; optional&#40;bool&#41;&#10; tls &#61; optional&#40;object&#40;&#123;&#10; custom_features &#61; optional&#40;list&#40;string&#41;&#41;&#10; feature_profile &#61; optional&#40;string&#41;&#10; min_version &#61; optional&#40;string&#41;&#10; &#125;&#41;&#41;&#10;&#125;&#41;">object&#40;&#123;&#8230;&#125;&#41;</code> | | <code>null</code> | |
| [vpc_self_links](variables-fast.tf#L72) | VPC network self links. | <code>map&#40;string&#41;</code> | | <code>&#123;&#125;</code> | <code>2-networking</code> |
| [vpc_self_links](variables-fast.tf#L60) | VPC network self links. | <code>map&#40;string&#41;</code> | | <code>&#123;&#125;</code> | <code>2-networking</code> |

## Outputs

Expand Down
12 changes: 0 additions & 12 deletions fast/addons/2-networking-swp/variables-fast.tf
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,6 @@ variable "automation" {
})
}

variable "certificate_authority_pools" {
# tfdoc:variable:source 2-security
description = "Certificate authority pools."
type = map(object({
id = string
ca_ids = map(string)
location = string
}))
nullable = false
default = {}
}

variable "host_project_ids" {
# tfdoc:variable:source 2-networking
description = "Networking stage host project id aliases."
Expand Down

0 comments on commit 93aa1a1

Please sign in to comment.