oracle / terraform-provider-oci

Terraform Oracle Cloud Infrastructure provider
https://www.terraform.io/docs/providers/oci/
Mozilla Public License 2.0
758 stars 676 forks source link

oci_vault_secret does not support plain-text secret #1912

Open adil-jeel opened 1 year ago

adil-jeel commented 1 year ago

Description

The oci_vault_secret resource in the Oracle Cloud Infrastructure (OCI) provider currently does not support creating secrets with plain-text content. However, it is possible to create plain-text secrets using the UI provided by OCI.

Currently, the only workaround to create plain-text secrets using Terraform is to use the content_type attribute set to "BASE64", which requires encoding the secret value in Base64 format.

It would be beneficial to enhance the oci_vault_secret resource to support plain-text secrets directly, allowing users to create secrets without the need for manual encoding or decoding.

Terraform Version and Provider Version

Terraform v1.5.0
on darwin_amd64
+ provider registry.terraform.io/oracle/oci v5.3.0

Affected Resource(s)

oci_vault_secret

Expected Behavior

When using the oci_vault_secret resource, it should allow the creation of plain-text secrets by providing the secret value directly without requiring Base64 encoding.

Current Workaround

The current workaround is to use the content_type attribute set to "BASE64" and encode the secret value in Base64 format. However, this adds an extra step and complexity to managing secrets.

Thank you.

tf-oci-pub commented 1 year ago

Thank you for reporting the issue. We have raised an internal ticket to track this. Our service engineers will get back to you.