Open Richard-Barrett opened 1 month ago
Hey @Richard-Barrett 👋 Are all of the requested functionality possible to run within the worksheet with SQL? Right now, we're only using SQL and the gosnowflake driver for our communication with Snowflake. Currently, we are working on preparing resources for v1, so we have to put this aside for a while, but we are open to contributions if you would like to add it yourself (with our guidance and help of course). You can see our contribution guideline just in case.
Hey @Richard-Barrett 👋 Are all of the requested functionality possible to run within the worksheet with SQL? Right now, we're only using SQL and the gosnowflake driver for our communication with Snowflake. Currently, we are working on preparing resources for v1, so we have to put this aside for a while, but we are open to contributions if you would like to add it yourself (with our guidance and help of course). You can see our contribution guideline just in case.
@sfc-gh-jcieslak I cannot directly enable Snowflake's Security Trust Center using a SQL query in a Snowflake SQL worksheet, as it is not a feature or object you can control via SQL commands. The Security Trust Center is a platform provided by Snowflake to showcase compliance certifications, audit reports, and security features, and it's accessible via a web interface, not through SQL.
Furthermore, I don't think it's able to be set programmatically with Golang just using the gosnowflake driver. If we wanted to really control this, we would probably have to start expanding to using other Golang libraries to make http calls to the API endpoint that sets it up like net/http, which seems to go against the thought of just using the gosnowflake library.
Hey, Thanks for the quick response. You're right that a non-SQL interface would be something new for the provider and would require more work in other areas (like provider configuration) than just new resources to make it work. Also, some research on the usability of the API and potential discussions with other teams would be needed. I'll document this issue and categorize it with similar ones because I believe that's not the first case of a non-SQL feature that could be utilized by the provider. Unfortunately, that's not something we can pick up, even in the near future, as currently, we are focusing on tasks essential for V1 and have plans for some post-V1 work. That being said, It has to wait more than just a bit, but we'll get to it eventually.
No worries, I was just asked to put our Trust Center into Terraform by my organization, and I was like it's impossible at the moment. So no worries.
Use Cases or Problem Statement
We would like to be able to control the enablement of the security trust center withing Terraform using the Snowflake Provider. However, this functionality is not available at this time and is not available within the SDK. As such there is a need for it to be controlled based on the account layer and we need to be able to enable and/or disable it at will. We also want to have granular control over the scanners implemented and the schedule. It would also be nice to implement custom scanners with our own embedded SQL as an option so maybe calling a stored_procedure resource and/or a snowflake_function.
Category
category:resource
Object type(s)
No response
Proposal
A simple terraform resource that allows us to set up and configure security trust center per account with a specific set of roles and rules we can enable as well as the scanner resources.