terraform-provider-oci icon indicating copy to clipboard operation
terraform-provider-oci copied to clipboard

Is oci_vault_secret resource supported?

Open JBAnderson5 opened this issue 2 years ago • 6 comments

The documentation for the oci_vault_secret resource says

This operation is not supported by the Oracle Cloud Infrastructure Terraform Provider.

However, the page goes on to define the resource with an example usage and argument/attribute reference. So, is this an error in the documentation or is there some features/limitations that the terraform provider cannot do?

https://github.com/oracle/terraform-provider-oci/blob/c8d3fea9310ae6e9309889afebceb538a5ef5c6a/website/docs/r/vault_secret.html.markdown

JBAnderson5 avatar Mar 16 '22 21:03 JBAnderson5

where do you see that document? I think it is a document error, please point to that location so we can make the fix. The office document should be here https://registry.terraform.io/providers/oracle/oci/latest/docs/resources/vault_secret

jotruon avatar Mar 16 '22 21:03 jotruon

@jotruon It's on that page that you linked in the official documentation on the third line of intro section. I just linked the git repo markdown page that generates the official documentation.

I also noticed in the argument reference section, in the secret content sub-block that the 'content_type' variable has the same description as the 'content' variable. From my terraform engine error, content_type should be 'BASE64'

secret_content - (Required) (Updatable) The content of the secret and metadata to help identify it. content - (Optional) (Updatable) The base64-encoded content of the secret. content_type - (Required) (Updatable) The base64-encoded content of the secret.

Error for content_type indicating it only supports BASE64 encoding Error: expected secret_content.0.content_type to be one of [BASE64], got SGVsbG9Xb3JsZA==

JBAnderson5 avatar Mar 16 '22 21:03 JBAnderson5

right, let me open a ticket to fix document

jotruon avatar Mar 16 '22 21:03 jotruon

@jotruon we need some clarification on this. Are creating secrets via Terraform fully supported now?

OCI is supposed to be an enterprise product, and you support Terraform as that's what the resource manager uses. We need enterprise level documentation, without statements that introduce confusion such as "not supported."

et304383 avatar Apr 01 '22 15:04 et304383

let me follow up with the service team to fix the document

jotruon avatar Apr 01 '22 16:04 jotruon

@jotruon can you fix the docs? And also, key_id is a required field yet it's listed as optional.

et304383 avatar Apr 14 '22 16:04 et304383

Jumping on this. content (under secret_content) is shown as Optional, however this is required.

FF186 avatar Dec 16 '22 13:12 FF186

@jotruon @ravinitp what’s happening with this? Hit the required: key_id, secret_content.content items while playing around.

josephholsten avatar Apr 26 '23 00:04 josephholsten