Skip to content

Commit

Permalink
schema/backend: Reflect 1.4 changes in http (#226)
Browse files Browse the repository at this point in the history
  • Loading branch information
radeksimko authored May 31, 2023
1 parent da6b8f7 commit b8753cb
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions internal/schema/backends/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,5 +87,24 @@ func httpBackend(v *version.Version) *schema.BodySchema {
}
}

if v.GreaterThanOrEqual(v1_4_0) {
// https://github.com/hashicorp/terraform/commit/75e5ae27
bodySchema.Attributes["client_ca_certificate_pem"] = &schema.AttributeSchema{
Constraint: schema.LiteralType{Type: cty.String},
IsOptional: true,
Description: lang.Markdown("A PEM-encoded CA certificate chain used by the client to verify server certificates during TLS authentication."),
}
bodySchema.Attributes["client_certificate_pem"] = &schema.AttributeSchema{
Constraint: schema.LiteralType{Type: cty.String},
IsOptional: true,
Description: lang.Markdown("A PEM-encoded certificate used by the server to verify the client during mutual TLS (mTLS) authentication."),
}
bodySchema.Attributes["client_private_key_pem"] = &schema.AttributeSchema{
Constraint: schema.LiteralType{Type: cty.String},
IsOptional: true,
Description: lang.Markdown("A PEM-encoded private key, required if client_certificate_pem is specified."),
}
}

return bodySchema
}

0 comments on commit b8753cb

Please sign in to comment.