Skip to content
Draft
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
2 changes: 1 addition & 1 deletion examples/default/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ This example uses the IBM Cloud terraform provider to:
- Create a new resource group if one is not passed in.
- Create a new secrets manager if one is not passed in.
- Create a new secrets manager group and private secret engine if existing secrets manager is not passed in.
- Create a new private certifcate inside a secrets manager.
- Create a new private certificate inside a secrets manager.

<!-- Add your example and link to it from the module's main readme file. -->
2 changes: 1 addition & 1 deletion examples/private/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ This example uses the IBM Cloud terraform provider to:
- Create a new resource group if one is not passed in.
- Create a new secrets manager if one is not passed in.
- Create a new secrets manager group and private secret engine if existing secrets manager is not passed in.
- Create a new private certifcate inside a secrets manager.
- Create a new private certificate inside a secrets manager.

<!-- Add your example and link to it from the module's main readme file. -->
81 changes: 72 additions & 9 deletions ibm_catalog.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,25 @@
},
{
"key": "existing_secrets_manager_crn",
"required": true
"required": true,
"value_constraints": [
{
"type": "regex",
"description": "The value provided for 'existing_secrets_manager_crn' is not valid.",
"value": "^__NULL__$|^crn:(.*:){3}secrets-manager:(.*:){2}[0-9a-fA-F]{8}(?:-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}::$"
}
]
},
{
"key": "prefix",
"required": true
"required": true,
"value_constraints": [
{
"type": "regex",
"description": "Prefix must begin with a lowercase letter and may contain only lowercase letters, digits, and hyphens '-'. It must not end with a hyphen('-'), and cannot contain consecutive hyphens ('--'). It should not exceed 16 characters.",
"value": "^$|^__NULL__$|^[a-z](?!.*--)(?:[a-z0-9-]{0,14}[a-z0-9])?$"
}
]
},
{
"key": "secrets_manager_region",
Expand Down Expand Up @@ -166,24 +180,66 @@
},
{
"key": "cert_name",
"required": true
"required": true,
"value_constraints": [
{
"type": "regex",
"description": "cert_name must be 2 to 256 chars, start and end with alphanumeric or underscore, and only contain word characters, dots, or dashes.",
"value": "^\\w[\\w\\-.]{0,254}\\w$"
}
]
},
{
"key": "cert_description"
"key": "cert_description",
"value_constraints": [
{
"type": "regex",
"description": "The value provided for 'cert_description' is not valid.",
"value": "^(?:$|__NULL__|.{1,1024})$"
}
]
},
{
"key": "cert_secrets_group_id"
"key": "cert_secrets_group_id",
"value_constraints": [
{
"type": "regex",
"description": "The value provided for 'cert_secrets_group_id' is not valid.",
"value": "^$|^__NULL__$|^(?:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|default)$"
}
]
},
{
"key": "cert_template",
"required": true
"required": true,
"value_constraints": [
{
"type": "regex",
"description": "The value provided for 'cert_template' is not valid.",
"value": "^(?:$|__NULL__|(?=.{2,128}$)[A-Za-z0-9][A-Za-z0-9]*(?:_?-?\\.?[A-Za-z0-9]+)*)$"
}
]
},
{
"key": "cert_csr"
"key": "cert_csr",
"value_constraints": [
{
"type": "regex",
"description": "The value provided for 'cert_csr' is not valid.",
"value": "^__NULL__$|^(-{5}BEGIN.+?-{5}[\\s\\S]+-{5}END.+?-{5})$"
}
]
},
{
"key": "cert_common_name",
"required": true
"required": true,
"value_constraints": [
{
"type": "regex",
"description": "The value provided for 'cert_common_name' is not valid.",
"value": "^__NULL__$|^(?=.{4,128}$).+$"
}
]
},
{
"key": "cert_alt_names"
Expand Down Expand Up @@ -246,7 +302,14 @@
]
},
{
"key": "cert_ttl"
"key": "cert_ttl",
"value_constraints": [
{
"type": "regex",
"description": "The value provided for 'cert_ttl' is not valid.",
"value": "^__NULL__$|^[0-9]+[s,m,h,d]{0,1}$"
}
]
},
{
"key": "cert_other_sans"
Expand Down