Skip to content

Commit

Permalink
Add a note about the changes in gosnowflake
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-jmichalak committed Feb 7, 2025
1 parent 8dcf909 commit b59ef5f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ provider "snowflake" {

**Warning: these values are passed directly to the gosnowflake library, which may not work exactly the way you expect. See the [gosnowflake docs](https://godoc.org/github.com/snowflakedb/gosnowflake#hdr-Connection_Parameters) for more.**

--> **Note: In Go Snowflake driver 1.21 ([release notes](https://docs.snowflake.com/en/release-notes/clients-drivers/golang-2024#version-1-12-1-december-05-2024)), configuration field `InsecureMode` has been deprecated in favor of `DisableOCSPChecks`. This field is not available in the provider yet. Please use `InsecureMode` instead, which has the same behavior. We are planning to support this new field and deprecate the old one.

<!-- schema generated by tfplugindocs -->
## Schema

Expand Down
3 changes: 2 additions & 1 deletion pkg/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,8 @@ func Provider() *schema.Provider {
DefaultFunc: schema.EnvDefaultFunc(snowflakeenvs.DisableConsoleLogin, resources.BooleanDefault),
ValidateDiagFunc: validators.ValidateBooleanStringWithDefault,
},
// TODO(SNOW-1761318): handle DisableSamlURLCheck after upgrading the driver to at least 1.10.1
// TODO(SNOW-1761318): Add DisableSamlURLCheck.
// TODO(SNOW-1917271): Add DisableOCSPChecks.
"profile": {
Type: schema.TypeString,
// TODO(SNOW-1754364): Note that a default file path is already filled on sdk side.
Expand Down
2 changes: 2 additions & 0 deletions templates/index.md.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ This is an example configuration of the provider in `main.tf` in a configuration

**Warning: these values are passed directly to the gosnowflake library, which may not work exactly the way you expect. See the [gosnowflake docs](https://godoc.org/github.com/snowflakedb/gosnowflake#hdr-Connection_Parameters) for more.**

--> **Note: In Go Snowflake driver 1.12.1 ([release notes](https://docs.snowflake.com/en/release-notes/clients-drivers/golang-2024#version-1-12-1-december-05-2024)), configuration field `InsecureMode` has been deprecated in favor of `DisableOCSPChecks`. This field is not available in the provider yet. Please use `InsecureMode` instead, which has the same behavior. We are planning to support this new field and deprecate the old one.

{{ .SchemaMarkdown | trimspace }}

## Authentication
Expand Down

0 comments on commit b59ef5f

Please sign in to comment.