Skip to content

Commit 73fad58

Browse files
committed
fix(privateca): configure pathLen: 0 constrain correctly
For the terraform provider to configure the `pathLen` constrain correctly to the value `0`, and not omit it completely, it's required to explicitly set `zero_max_issuer_path_length = true`. Signed-off-by: Sven Höxter <[email protected]>
1 parent 6e0a556 commit 73fad58

File tree

1 file changed

+5
-2
lines changed
  • privateca/certificate_authority_subordinate

1 file changed

+5
-2
lines changed

privateca/certificate_authority_subordinate/main.tf

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,11 @@ resource "google_privateca_certificate_authority" "sub_ca" {
7373
x509_config {
7474
ca_options {
7575
is_ca = true
76-
# Force the sub CA to only issue leaf certs
77-
max_issuer_path_length = 0
76+
# Force the sub CA to only issue leaf certs.
77+
# Use e.g.
78+
# max_issuer_path_length = 1
79+
# if you need to chain more subordinates.
80+
zero_max_issuer_path_length = true
7881
}
7982
key_usage {
8083
base_key_usage {

0 commit comments

Comments
 (0)