[Bug]: oauth_scopes Parameter Incorrectly Marked as Required for snowflake_secret_with_client_credentials Resource #3272
Labels
bug
Used to mark issues with provider's incorrect behavior
category:snowflake
resource:secret_with_client_credentials
Terraform CLI Version
1.7.0
Terraform Provider Version
0.99.0
Company Name
No response
Terraform Configuration
Category
category:resource
Object type(s)
resource:api_integration
Expected Behavior
According to the Snowflake SQL documentation, the oauth_scopes parameter is optional when creating secrets with client credentials. Therefore, when using the Terraform provider to manage such secrets, specifying oauth_scopes should also be optional. Users should be able to omit oauth_scopes entirely if it’s not needed.
Actual Behavior
In the current Terraform provider implementation for snowflake_secret_with_client_credentials, oauth_scopes is treated as a required parameter. Even if the underlying Snowflake configuration considers it optional, the Terraform provider forces the user to provide a value. As a result, users cannot create a secret resource without explicitly specifying oauth_scopes, which contradicts the optional nature described in the Snowflake SQL reference.
Steps to Reproduce
Create api_authentication_integration and snowflake_secret_with_client_credentials as follows: snowflake_secret_with_client_credentials auth_ scopes of snowflake_secret_with_client_credentials can be reproduced by setting it to empty.
How much impact is this issue causing?
Medium
Logs
No response
Additional Information
No response
Would you like to implement a fix?
The text was updated successfully, but these errors were encountered: