Skip to content

Commit

Permalink
SM docs update (IBM-Cloud#5857)
Browse files Browse the repository at this point in the history
* SC addition

* SC addition

* SC addition

* update function updated

* SC unit tests added

* SC unit tests added

* d

* tests fixes

* tests fixes

* update sdk

* .secrets.baseline update

* .secrets.baseline update

* .secrets.baseline update

* Update sm_service_credentials_secret_metadata.html.markdown

* bugs fixes

* bugs fixes

* bugs fixes

* docs bugs fixes

* preferred_chain added for public cert lets encrypt configuration

* support for creating secret version for username password & version_custom_metadata for all

* support for creating secret version for username password & version_custom_metadata for all

* support for creating secret version for username password & version_custom_metadata for all

* support for creating secret version for username password & version_custom_metadata for all

* support for creating secret version for username password & version_custom_metadata for all

* support for creating secret version for username password & version_custom_metadata for all

* preferred chain docs update

* support for creating secret version for username password & version_custom_metadata for all

* support for creating secret version for username password & version_custom_metadata for all

* support for creating secret version for username password & version_custom_metadata for all

* fix public cert bug

* update docs

* reordering bug in alt_names

* name regex fix in docs

* imported cert bug fix

* crypto_key addition

* crypto_key addition

* crypto_key addition

* crypto_key addition

* rejections fixes

* rejections fixes

* rejections fixes

* rejections fixes

* rejections fixes

* test label name changed

* test label name changed

* error formating update

* go sdk version update

* update docs & descriptions for uuid

---------

Co-authored-by: Yonathan-Yellin <[email protected]>
Co-authored-by: Avi Ribchinsky <[email protected]>
Co-authored-by: Tatyana <[email protected]>
Co-authored-by: Idan Adar <[email protected]>
  • Loading branch information
5 people authored Dec 16, 2024
1 parent 78c03f4 commit b4c4301
Show file tree
Hide file tree
Showing 57 changed files with 106 additions and 106 deletions.
2 changes: 1 addition & 1 deletion examples/ibm-secrets-manager/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ data "sm_en_registration" "sm_en_registration_instance" {
| description | An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group. | `string` | false |
| expiration_date | The date a secret is expired. The date format follows RFC 3339. | `` | false |
| labels | Labels that you can use to search for secrets in your instance.Up to 30 labels can be created. | `list(string)` | false |
| secret_group_id | A v4 UUID identifier, or `default` secret group. | `string` | false |
| secret_group_id | A UUID identifier, or `default` secret group. | `string` | false |
| secret_type | The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials. | `string` | false |
| certificate | The PEM-encoded contents of your certificate. | `string` | false |
| intermediate | (Optional) The PEM-encoded intermediate certificate to associate with the root certificate. | `string` | false |
Expand Down
16 changes: 8 additions & 8 deletions examples/ibm-secrets-manager/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ variable "sm_imported_certificate_labels" {
default = [ "my-label" ]
}
variable "sm_imported_certificate_secret_group_id" {
description = "A v4 UUID identifier, or `default` secret group."
description = "A UUID identifier, or `default` secret group."
type = string
default = "default"
}
Expand Down Expand Up @@ -106,7 +106,7 @@ variable "sm_public_certificate_labels" {
default = [ "my-label" ]
}
variable "sm_public_certificate_secret_group_id" {
description = "A v4 UUID identifier, or `default` secret group."
description = "A UUID identifier, or `default` secret group."
type = string
default = "default"
}
Expand Down Expand Up @@ -140,7 +140,7 @@ variable "sm_kv_secret_labels" {
default = [ "my-label" ]
}
variable "sm_kv_secret_secret_group_id" {
description = "A v4 UUID identifier, or `default` secret group."
description = "A UUID identifier, or `default` secret group."
type = string
default = "default"
}
Expand Down Expand Up @@ -172,7 +172,7 @@ variable "sm_iam_credentials_secret_labels" {
default = [ "my-label" ]
}
variable "sm_iam_credentials_secret_secret_group_id" {
description = "A v4 UUID identifier, or `default` secret group."
description = "A UUID identifier, or `default` secret group."
type = string
default = "default"
}
Expand Down Expand Up @@ -214,7 +214,7 @@ variable "sm_service_credentials_secret_labels" {
default = [ "my-label" ]
}
variable "sm_service_credentials_secret_secret_group_id" {
description = "A v4 UUID identifier, or `default` secret group."
description = "A UUID identifier, or `default` secret group."
type = string
default = "default"
}
Expand Down Expand Up @@ -267,7 +267,7 @@ variable "sm_arbitrary_secret_labels" {
default = [ "my-label" ]
}
variable "sm_arbitrary_secret_secret_group_id" {
description = "A v4 UUID identifier, or `default` secret group."
description = "A UUID identifier, or `default` secret group."
type = string
default = "default"
}
Expand Down Expand Up @@ -304,7 +304,7 @@ variable "sm_username_password_secret_labels" {
default = [ "my-label" ]
}
variable "sm_username_password_secret_secret_group_id" {
description = "A v4 UUID identifier, or `default` secret group."
description = "A UUID identifier, or `default` secret group."
type = string
default = "default"
}
Expand Down Expand Up @@ -346,7 +346,7 @@ variable "sm_private_certificate_labels" {
default = [ "my-label" ]
}
variable "sm_private_certificate_secret_group_id" {
description = "A v4 UUID identifier, or `default` secret group."
description = "A UUID identifier, or `default` secret group."
type = string
default = "default"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func DataSourceIbmSmArbitrarySecret() *schema.Resource {
"secret_group_id": &schema.Schema{
Type: schema.TypeString,
Computed: true,
Description: "A v4 UUID identifier, or `default` secret group.",
Description: "A UUID identifier, or `default` secret group.",
},
"secret_group_name": &schema.Schema{
Type: schema.TypeString,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func DataSourceIbmSmArbitrarySecretMetadata() *schema.Resource {
"secret_group_id": &schema.Schema{
Type: schema.TypeString,
Computed: true,
Description: "A v4 UUID identifier, or `default` secret group.",
Description: "A UUID identifier, or `default` secret group.",
},
"secret_type": &schema.Schema{
Type: schema.TypeString,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func DataSourceIbmSmIamCredentialsSecret() *schema.Resource {
"secret_group_id": &schema.Schema{
Type: schema.TypeString,
Computed: true,
Description: "A v4 UUID identifier, or `default` secret group.",
Description: "A UUID identifier, or `default` secret group.",
},
"secret_group_name": &schema.Schema{
Type: schema.TypeString,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func DataSourceIbmSmIamCredentialsSecretMetadata() *schema.Resource {
"secret_group_id": &schema.Schema{
Type: schema.TypeString,
Computed: true,
Description: "A v4 UUID identifier, or `default` secret group.",
Description: "A UUID identifier, or `default` secret group.",
},
"secret_type": &schema.Schema{
Type: schema.TypeString,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func DataSourceIbmSmImportedCertificate() *schema.Resource {
"secret_group_id": &schema.Schema{
Type: schema.TypeString,
Computed: true,
Description: "A v4 UUID identifier, or `default` secret group.",
Description: "A UUID identifier, or `default` secret group.",
},
"secret_group_name": &schema.Schema{
Type: schema.TypeString,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func DataSourceIbmSmImportedCertificateMetadata() *schema.Resource {
"secret_group_id": &schema.Schema{
Type: schema.TypeString,
Computed: true,
Description: "A v4 UUID identifier, or `default` secret group.",
Description: "A UUID identifier, or `default` secret group.",
},
"secret_type": &schema.Schema{
Type: schema.TypeString,
Expand Down
2 changes: 1 addition & 1 deletion ibm/service/secretsmanager/data_source_ibm_sm_kv_secret.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func DataSourceIbmSmKvSecret() *schema.Resource {
"secret_group_id": &schema.Schema{
Type: schema.TypeString,
Computed: true,
Description: "A v4 UUID identifier, or `default` secret group.",
Description: "A UUID identifier, or `default` secret group.",
},
"secret_group_name": &schema.Schema{
Type: schema.TypeString,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func DataSourceIbmSmKvSecretMetadata() *schema.Resource {
"secret_group_id": &schema.Schema{
Type: schema.TypeString,
Computed: true,
Description: "A v4 UUID identifier, or `default` secret group.",
Description: "A UUID identifier, or `default` secret group.",
},
"secret_type": &schema.Schema{
Type: schema.TypeString,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func DataSourceIbmSmPrivateCertificate() *schema.Resource {
"secret_group_id": &schema.Schema{
Type: schema.TypeString,
Computed: true,
Description: "A v4 UUID identifier, or `default` secret group.",
Description: "A UUID identifier, or `default` secret group.",
},
"secret_group_name": &schema.Schema{
Type: schema.TypeString,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func DataSourceIbmSmPrivateCertificateMetadata() *schema.Resource {
"secret_group_id": &schema.Schema{
Type: schema.TypeString,
Computed: true,
Description: "A v4 UUID identifier, or `default` secret group.",
Description: "A UUID identifier, or `default` secret group.",
},
"secret_type": &schema.Schema{
Type: schema.TypeString,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func DataSourceIbmSmPublicCertificate() *schema.Resource {
"secret_group_id": &schema.Schema{
Type: schema.TypeString,
Computed: true,
Description: "A v4 UUID identifier, or `default` secret group.",
Description: "A UUID identifier, or `default` secret group.",
},
"secret_group_name": &schema.Schema{
Type: schema.TypeString,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func DataSourceIbmSmPublicCertificateMetadata() *schema.Resource {
"secret_group_id": &schema.Schema{
Type: schema.TypeString,
Computed: true,
Description: "A v4 UUID identifier, or `default` secret group.",
Description: "A UUID identifier, or `default` secret group.",
},
"secret_type": &schema.Schema{
Type: schema.TypeString,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func DataSourceIbmSmSecretGroups() *schema.Resource {
"id": &schema.Schema{
Type: schema.TypeString,
Computed: true,
Description: "A v4 UUID identifier.",
Description: "A UUID identifier.",
},
"name": &schema.Schema{
Type: schema.TypeString,
Expand Down
4 changes: 2 additions & 2 deletions ibm/service/secretsmanager/data_source_ibm_sm_secrets.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func DataSourceIbmSmSecrets() *schema.Resource {
"id": &schema.Schema{
Type: schema.TypeString,
Computed: true,
Description: "A v4 UUID identifier.",
Description: "A UUID identifier.",
},
"labels": &schema.Schema{
Type: schema.TypeList,
Expand All @@ -118,7 +118,7 @@ func DataSourceIbmSmSecrets() *schema.Resource {
"secret_group_id": &schema.Schema{
Type: schema.TypeString,
Computed: true,
Description: "A v4 UUID identifier, or `default` secret group.",
Description: "A UUID identifier, or `default` secret group.",
},
"secret_type": &schema.Schema{
Type: schema.TypeString,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func DataSourceIbmSmServiceCredentialsSecret() *schema.Resource {
Type: schema.TypeString,
Computed: true,
ForceNew: true,
Description: "A v4 UUID identifier, or `default` secret group.",
Description: "A UUID identifier, or `default` secret group.",
},
"secret_group_name": &schema.Schema{
Type: schema.TypeString,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func DataSourceIbmSmServiceCredentialsSecretMetadata() *schema.Resource {
Type: schema.TypeString,
Computed: true,
ForceNew: true,
Description: "A v4 UUID identifier, or `default` secret group.",
Description: "A UUID identifier, or `default` secret group.",
},
"secret_type": &schema.Schema{
Type: schema.TypeString,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func DataSourceIbmSmUsernamePasswordSecret() *schema.Resource {
"secret_group_id": &schema.Schema{
Type: schema.TypeString,
Computed: true,
Description: "A v4 UUID identifier, or `default` secret group.",
Description: "A UUID identifier, or `default` secret group.",
},
"secret_group_name": &schema.Schema{
Type: schema.TypeString,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func DataSourceIbmSmUsernamePasswordSecretMetadata() *schema.Resource {
"secret_group_id": &schema.Schema{
Type: schema.TypeString,
Computed: true,
Description: "A v4 UUID identifier, or `default` secret group.",
Description: "A UUID identifier, or `default` secret group.",
},
"secret_type": &schema.Schema{
Type: schema.TypeString,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func ResourceIbmSmArbitrarySecret() *schema.Resource {
Optional: true,
Computed: true,
ForceNew: true,
Description: "A v4 UUID identifier, or `default` secret group.",
Description: "A UUID identifier, or `default` secret group.",
},

"version_custom_metadata": &schema.Schema{
Expand Down Expand Up @@ -110,7 +110,7 @@ func ResourceIbmSmArbitrarySecret() *schema.Resource {
"secret_id": &schema.Schema{
Type: schema.TypeString,
Computed: true,
Description: "A v4 UUID identifier.",
Description: "A UUID identifier.",
},
"locks_total": &schema.Schema{
Type: schema.TypeInt,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func ResourceIbmSmIamCredentialsSecret() *schema.Resource {
Optional: true,
Computed: true,
ForceNew: true,
Description: "A v4 UUID identifier, or `default` secret group.",
Description: "A UUID identifier, or `default` secret group.",
},
"labels": &schema.Schema{
Type: schema.TypeList,
Expand Down Expand Up @@ -164,7 +164,7 @@ func ResourceIbmSmIamCredentialsSecret() *schema.Resource {
"secret_id": &schema.Schema{
Type: schema.TypeString,
Computed: true,
Description: "A v4 UUID identifier.",
Description: "A UUID identifier.",
},
"locks_total": &schema.Schema{
Type: schema.TypeInt,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,14 @@ func ResourceIbmSmImportedCertificate() *schema.Resource {
"secret_id": &schema.Schema{
Type: schema.TypeString,
Computed: true,
Description: "A v4 UUID identifier.",
Description: "A UUID identifier.",
},
"secret_group_id": &schema.Schema{
Type: schema.TypeString,
Optional: true,
Computed: true,
ForceNew: true,
Description: "A v4 UUID identifier, or `default` secret group.",
Description: "A UUID identifier, or `default` secret group.",
},
"secret_type": &schema.Schema{
Type: schema.TypeString,
Expand Down
4 changes: 2 additions & 2 deletions ibm/service/secretsmanager/resource_ibm_sm_kv_secret.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func ResourceIbmSmKvSecret() *schema.Resource {
Optional: true,
Computed: true,
ForceNew: true,
Description: "A v4 UUID identifier, or `default` secret group.",
Description: "A UUID identifier, or `default` secret group.",
},
"labels": &schema.Schema{
Type: schema.TypeList,
Expand Down Expand Up @@ -126,7 +126,7 @@ func ResourceIbmSmKvSecret() *schema.Resource {
"secret_id": &schema.Schema{
Type: schema.TypeString,
Computed: true,
Description: "A v4 UUID identifier.",
Description: "A UUID identifier.",
},
},
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func ResourceIbmSmPrivateCertificate() *schema.Resource {
ForceNew: true,
Optional: true,
Computed: true,
Description: "A v4 UUID identifier, or `default` secret group.",
Description: "A UUID identifier, or `default` secret group.",
},
"labels": &schema.Schema{
Type: schema.TypeList,
Expand Down Expand Up @@ -196,7 +196,7 @@ func ResourceIbmSmPrivateCertificate() *schema.Resource {
"secret_id": &schema.Schema{
Type: schema.TypeString,
Computed: true,
Description: "A v4 UUID identifier.",
Description: "A UUID identifier.",
},
"locks_total": &schema.Schema{
Type: schema.TypeInt,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func ResourceIbmSmPublicCertificate() *schema.Resource {
ForceNew: true,
Optional: true,
Computed: true,
Description: "A v4 UUID identifier, or `default` secret group.",
Description: "A UUID identifier, or `default` secret group.",
},
"labels": &schema.Schema{
Type: schema.TypeList,
Expand Down Expand Up @@ -237,7 +237,7 @@ func ResourceIbmSmPublicCertificate() *schema.Resource {
"secret_id": &schema.Schema{
Type: schema.TypeString,
Computed: true,
Description: "A v4 UUID identifier.",
Description: "A UUID identifier.",
},
"locks_total": &schema.Schema{
Type: schema.TypeInt,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func ResourceIbmSmPublicCertificateActionValidateManualDns() *schema.Resource {
"secret_id": &schema.Schema{
Type: schema.TypeString,
Required: true,
Description: "A v4 UUID identifier.",
Description: "A UUID identifier.",
ForceNew: true,
},
},
Expand Down
2 changes: 1 addition & 1 deletion ibm/service/secretsmanager/resource_ibm_sm_secret_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func ResourceIbmSmSecretGroup() *schema.Resource {
"secret_group_id": &schema.Schema{
Type: schema.TypeString,
Computed: true,
Description: "A v4 UUID identifier.",
Description: "A UUID identifier.",
},
"name": &schema.Schema{
Type: schema.TypeString,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func ResourceIbmSmServiceCredentialsSecret() *schema.Resource {
Optional: true,
Computed: true,
ForceNew: true,
Description: "A v4 UUID identifier, or `default` secret group.",
Description: "A UUID identifier, or `default` secret group.",
},
"labels": &schema.Schema{
Type: schema.TypeList,
Expand Down Expand Up @@ -298,7 +298,7 @@ func ResourceIbmSmServiceCredentialsSecret() *schema.Resource {
"secret_id": &schema.Schema{
Type: schema.TypeString,
Computed: true,
Description: "A v4 UUID identifier.",
Description: "A UUID identifier.",
},
},
}
Expand Down
Loading

0 comments on commit b4c4301

Please sign in to comment.