Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into grant-app-role
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-jmichalak committed May 8, 2024
2 parents 10917e5 + 57ee66b commit 94833d7
Show file tree
Hide file tree
Showing 7 changed files with 72 additions and 26 deletions.
3 changes: 1 addition & 2 deletions .github/ISSUE_TEMPLATE/01-bug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ labels: ["bug"]
body:
- type: markdown
attributes:
# TODO(SNOW-1003360): Link doc how to submit issues and FAQ
# - [Frequently Asked Questions](https://github.com/Snowflake-Labs/)
value: |
# Thank you for raising a bug report!
Expand All @@ -16,6 +14,7 @@ body:
If you would like to contribute to the project, please let us know and refer to the [contribution guide](https://github.com/Snowflake-Labs/terraform-provider-snowflake/blob/main/CONTRIBUTING.md) for tips on getting started.
Here's a list of useful links that may help you with your issue:
- [Guide on creating issues + FAQ + Commonly Known Issues](https://github.com/Snowflake-Labs/terraform-provider-snowflake/blob/main/CREATING_ISSUES.md) - If you would like to create a GitHub issue, please read our guide first. It contains useful links, FAQ, and commonly known issues with solutions that may already solve your case.
- [Migration Guide](https://github.com/Snowflake-Labs/terraform-provider-snowflake/blob/main/MIGRATION_GUIDE.md) - when introducing breaking changes, we note them in the migration guide and describe how to upgrade to the next version. If you recently upgraded the provider version, please check if you applied all the needed changes.
- type: markdown
Expand Down
3 changes: 1 addition & 2 deletions .github/ISSUE_TEMPLATE/02-general-usage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ labels: ["general-usage"]
body:
- type: markdown
attributes:
# TODO(SNOW-1003360): Link doc how to submit issues and FAQ
# - [Frequently Asked Questions](https://github.com/Snowflake-Labs/)
value: |
# Thank you for raising an issue!
Expand All @@ -20,6 +18,7 @@ body:
This helps to keep all relevant information in one place, including any potential workarounds.
Here's a list of useful links that may help you with your issue:
- [Guide on creating issues + FAQ + Commonly Known Issues](https://github.com/Snowflake-Labs/terraform-provider-snowflake/blob/main/CREATING_ISSUES.md) - If you would like to create a GitHub issue, please read our guide first. It contains useful links, FAQ, and commonly known issues with solutions that may already solve your case.
- [Migration Guide](https://github.com/Snowflake-Labs/terraform-provider-snowflake/blob/main/MIGRATION_GUIDE.md) - when introducing breaking changes, we note them in the migration guide and describe how to upgrade to the next version. If you recently upgraded the provider version, please check if you applied all the needed changes.
- type: markdown
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/03-documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ description: Issues or feature requests for the documentation.
title: "[Docs]: "
labels: ["docs"]
body:
# TODO(SNOW-1003360): Link doc how to submit issues and FAQ
- type: markdown
attributes:
value: |
# Thank you for raising a documentation issue!
This form is meant to alert the maintainers to an issue with any of documentation connected with the provider, especially in:
- [Guide on creating issues + FAQ + Commonly Known Issues](https://github.com/Snowflake-Labs/terraform-provider-snowflake/blob/main/CREATING_ISSUES.md) - If you would like to create a GitHub issue, please read our guide first. It contains useful links, FAQ, and commonly known issues with solutions that may already solve your case.
- [Terraform Registry](https://registry.terraform.io/providers/hashicorp/snowflake/latest) (such as resource and data source documentation, guides and examples).
- [Project README](https://github.com/Snowflake-Labs/terraform-provider-snowflake/blob/main/README.md).
- [Contribution Guide](https://github.com/Snowflake-Labs/terraform-provider-snowflake/blob/main/CONTRIBUTING.md).
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/04-feature-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ description: Something is missing or could be improved.
title: "[Feature]: "
labels: ["feature-request"]
body:
# TODO(SNOW-1003360): Link doc how to submit issues and FAQ
- type: markdown
attributes:
value: |
Expand All @@ -17,6 +16,7 @@ body:
If you would like to contribute to the project, please let us know and refer to the [contribution guide](https://github.com/Snowflake-Labs/terraform-provider-snowflake/blob/main/CONTRIBUTING.md) for tips on getting started.
Here's a list of useful links that may answer your question:
- [Guide on creating issues + FAQ + Commonly Known Issues](https://github.com/Snowflake-Labs/terraform-provider-snowflake/blob/main/CREATING_ISSUES.md) - If you would like to create a GitHub issue, please read our guide first. It contains useful links, FAQ, and commonly known issues with solutions that may already solve your case.
- [Provider Roadmap](https://github.com/Snowflake-Labs/terraform-provider-snowflake/blob/main/ROADMAP.md)
- id: use-case
Expand Down
11 changes: 7 additions & 4 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ contact_links:
url: https://github.com/Snowflake-Labs/terraform-provider-snowflake/blob/main/MIGRATION_GUIDE.md
about: Migration Guide that presents breaking changes between the versions with actions needed during upgrading.

# TODO(SNOW-1003360): Link FAQ
#- name: Frequently Asked Questions / Common issues with solutions
# url: https://github.com/Snowflake-Labs/terraform-provider-snowflake/
# about: A list of common provider question and issues with workarounds or solutions for them.
- name: Migrating from deprecated resources
url: https://github.com/Snowflake-Labs/terraform-provider-snowflake/blob/main/docs/technical-documentation/resource_migration.md
about: This guide may help you with migrating your deprecated resources to the newer counter-parts. It also presents different strategies on importing already existing Snowflake infrastructure into Terraform.

- name: Guide on creating issues + FAQ + Commonly Known Issues
url: https://github.com/Snowflake-Labs/terraform-provider-snowflake/blob/main/CREATING_ISSUES.md
about: If you would like to create a GitHub issue, please read our guide first. It contains useful links, FAQ, and commonly known issues with solutions that may already solve your case.
38 changes: 38 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,43 @@
# Changelog

## [0.90.0](https://github.com/Snowflake-Labs/terraform-provider-snowflake/compare/v0.89.0...v0.90.0) (2024-05-08)


### 🎉 **What's new:**

* Adjust owner_role_type and schema_evolution_record columns ([#2740](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2740)) ([424e393](https://github.com/Snowflake-Labs/terraform-provider-snowflake/commit/424e393813b1c0d668250937bf04487fb323b9f0))


### 🔧 **Misc**

* Add a guide on creating issues ([#2758](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2758)) ([2b006aa](https://github.com/Snowflake-Labs/terraform-provider-snowflake/commit/2b006aa12d0d0b0fae72ae295cb82404262288be))
* Add missing documentation ([#2781](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2781)) ([cc0a6a7](https://github.com/Snowflake-Labs/terraform-provider-snowflake/commit/cc0a6a7e605735d83e3247c27b75679f45142659))
* Add scripts to close issues from Pre Snowflake bucket ([#2762](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2762)) ([44c0c37](https://github.com/Snowflake-Labs/terraform-provider-snowflake/commit/44c0c37047ee15cd2856056270a1fb708473c4d6))
* Add small adjustments ([#2783](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2783)) ([e5b0b4b](https://github.com/Snowflake-Labs/terraform-provider-snowflake/commit/e5b0b4b95bde9e0d29c0066278393a572dccd825))
* Adjust issue templates ([#2748](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2748)) ([64ab76d](https://github.com/Snowflake-Labs/terraform-provider-snowflake/commit/64ab76d82662b8e21679e887d5b3df8d15cfaf3a))
* Cleanup helpers part 3 ([#2730](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2730)) ([eb7bee4](https://github.com/Snowflake-Labs/terraform-provider-snowflake/commit/eb7bee400f6a5ec94b6a142eaeed78dbc349fc00))
* Cleanup helpers part 5 ([#2744](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2744)) ([1f165bf](https://github.com/Snowflake-Labs/terraform-provider-snowflake/commit/1f165bf72e29d1a9135d2e5e8bf3f46a0ffdddb6))
* Cleanup helpers part4 ([#2741](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2741)) ([9475e35](https://github.com/Snowflake-Labs/terraform-provider-snowflake/commit/9475e35dfca2c15876ee14ace0a6f17c7225d615))
* Cleanup helpers part6 ([#2745](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2745)) ([eba3029](https://github.com/Snowflake-Labs/terraform-provider-snowflake/commit/eba3029bd2b6def28901c47df7e142a417d6ba3a))
* Cleanup helpers poc ([#2724](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2724)) ([70b99fb](https://github.com/Snowflake-Labs/terraform-provider-snowflake/commit/70b99fb19be76bff673e4ba7740d07b9a131ca4f))
* Helpers cleanup continuation ([#2726](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2726)) ([a70d1af](https://github.com/Snowflake-Labs/terraform-provider-snowflake/commit/a70d1afc607c5e9501762448a96a11c22efca3d4))
* Prepare new roadmap entry ([#2773](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2773)) ([b0bf28f](https://github.com/Snowflake-Labs/terraform-provider-snowflake/commit/b0bf28f4e08f36a5aee74bba21ec2cf2d1d1179b))
* Prepare parallel builds ([#2737](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2737)) ([6974e25](https://github.com/Snowflake-Labs/terraform-provider-snowflake/commit/6974e255ebdd772f18b164943c82aab2f19708d6))
* Update the contribution guidelines (and small fixes) ([#2753](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2753)) ([aafdc72](https://github.com/Snowflake-Labs/terraform-provider-snowflake/commit/aafdc72f21314f809f1ab1f7e4f00d5b2df5e0f5))


### 🐛 **Bug fixes:**

* Fix issue templates ([#2760](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2760)) ([d0d5048](https://github.com/Snowflake-Labs/terraform-provider-snowflake/commit/d0d504868b0dda15e3a779e94969d7742253160c))
* Fix setup for two tests ([#2757](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2757)) ([df025b0](https://github.com/Snowflake-Labs/terraform-provider-snowflake/commit/df025b0c4dce30554eaf15b29031357aababe192))
* Fix Test (wrong order of arguments) ([#2780](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2780)) ([02f467e](https://github.com/Snowflake-Labs/terraform-provider-snowflake/commit/02f467ebe230e077ce0f67ae1d1025d9219f65ed))
* Fix/prove issues [#2733](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2733) [#2735](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2735) [#2763](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2763) [#2767](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2767) ([#2777](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2777)) ([7b1c67e](https://github.com/Snowflake-Labs/terraform-provider-snowflake/commit/7b1c67e115f3dddeed796ae00f160efeeb64f85b))
* Prove problems with procedure resource data types ([#2782](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2782)) ([68d0318](https://github.com/Snowflake-Labs/terraform-provider-snowflake/commit/68d03184047ebe6891fbcebb1524377e10fb82fd))
* read after create ([#2718](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2718)) ([2e9b68f](https://github.com/Snowflake-Labs/terraform-provider-snowflake/commit/2e9b68f9da09150c5976d175a225ff368f37f2d2))
* UNSET and empty SET in network policies ([#2759](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2759)) ([3eacb0b](https://github.com/Snowflake-Labs/terraform-provider-snowflake/commit/3eacb0bd869bc073be756dca9337b69e07bb52f4))
* unset network policy should not have single quotes ([#2584](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2584)) ([8f2a363](https://github.com/Snowflake-Labs/terraform-provider-snowflake/commit/8f2a363db7ea0bcc747ef7c3576d24255f4bf208))
* Update failover group allowed integration types ([#2776](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2776)) ([efde48d](https://github.com/Snowflake-Labs/terraform-provider-snowflake/commit/efde48db07a9eb47c34a5febf1b4de6e4f0671f9))

## [0.89.0](https://github.com/Snowflake-Labs/terraform-provider-snowflake/compare/v0.88.0...v0.89.0) (2024-04-18)


Expand Down
39 changes: 23 additions & 16 deletions pkg/sdk/privileges.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ const (
GlobalPrivilegeCreateUser GlobalPrivilege = "CREATE USER"
GlobalPrivilegeCreateWarehouse GlobalPrivilege = "CREATE WAREHOUSE"

GlobalPrivilegeAttachPolicy GlobalPrivilege = "ATTACH POLICY"
GlobalPrivilegeAudit GlobalPrivilege = "AUDIT"
GlobalPrivilegeBindServiceEndpoint GlobalPrivilege = "BIND SERVICE ENDPOINT"

GlobalPrivilegeApplyAggregationPolicy GlobalPrivilege = "APPLY AGGREGATION POLICY"
GlobalPrivilegeApplyAuthenticationPolicy GlobalPrivilege = "APPLY AUTHENTICATION POLICY"
GlobalPrivilegeApplyMaskingPolicy GlobalPrivilege = "APPLY MASKING POLICY"
Expand All @@ -27,18 +31,18 @@ const (
GlobalPrivilegeApplySessionPolicy GlobalPrivilege = "APPLY SESSION POLICY"
GlobalPrivilegeApplyTag GlobalPrivilege = "APPLY TAG"

GlobalPrivilegeAttachPolicy GlobalPrivilege = "ATTACH POLICY"
GlobalPrivilegeAudit GlobalPrivilege = "AUDIT"
GlobalPrivilegeBindServiceEndpoint GlobalPrivilege = "BIND SERVICE ENDPOINT"

GlobalPrivilegeExecuteAlert GlobalPrivilege = "EXECUTE ALERT"
GlobalPrivilegeExecuteTask GlobalPrivilege = "EXECUTE TASK"
GlobalPrivilegeExecuteAlert GlobalPrivilege = "EXECUTE ALERT"
GlobalPrivilegeExecuteDataMetricFunction GlobalPrivilege = "EXECUTE DATA METRIC FUNCTION"
GlobalPrivilegeExecuteTask GlobalPrivilege = "EXECUTE TASK"

GlobalPrivilegeImportShare GlobalPrivilege = "IMPORT SHARE"

GlobalPrivilegeManageGrants GlobalPrivilege = "MANAGE GRANTS"
GlobalPrivilegeManageListingAutoFulfillment GlobalPrivilege = "MANAGE LISTING AUTO FULFILLMENT"
GlobalPrivilegeManageWarehouses GlobalPrivilege = "MANAGE WAREHOUSES"
GlobalPrivilegeManageAccountSupportCases GlobalPrivilege = "MANAGE ACCOUNT SUPPORT CASES"
GlobalPrivilegeManageGrants GlobalPrivilege = "MANAGE GRANTS"
GlobalPrivilegeManageListingAutoFulfillment GlobalPrivilege = "MANAGE LISTING AUTO FULFILLMENT"
GlobalPrivilegeManageOrganizationSupportCases GlobalPrivilege = "MANAGE ORGANIZATION SUPPORT CASES"
GlobalPrivilegeManageUserSupportCases GlobalPrivilege = "MANAGE USER SUPPORT CASES"
GlobalPrivilegeManageWarehouses GlobalPrivilege = "MANAGE WAREHOUSES"

GlobalPrivilegeModifyLogLevel GlobalPrivilege = "MODIFY LOG LEVEL"
GlobalPrivilegeModifyTraceLevel GlobalPrivilege = "MODIFY TRACE LEVEL"
Expand Down Expand Up @@ -119,14 +123,10 @@ const (
SchemaPrivilegeAddSearchOptimization SchemaPrivilege = "ADD SEARCH OPTIMIZATION"
SchemaPrivilegeApplyBudget SchemaPrivilege = "APPLYBUDGET"
SchemaPrivilegeCreateAlert SchemaPrivilege = "CREATE ALERT"
SchemaPrivilegeCreateDynamicTable SchemaPrivilege = "CREATE DYNAMIC TABLE"
SchemaPrivilegeCreateExternalTable SchemaPrivilege = "CREATE EXTERNAL TABLE"
SchemaPrivilegeCreateFileFormat SchemaPrivilege = "CREATE FILE FORMAT"
SchemaPrivilegeCreateFunction SchemaPrivilege = "CREATE FUNCTION"
SchemaPrivilegeCreateHybridTable SchemaPrivilege = "CREATE HYBRID TABLE"
SchemaPrivilegeCreateGitRepository SchemaPrivilege = "CREATE GIT REPOSITORY"
SchemaPrivilegeCreateImageRepository SchemaPrivilege = "CREATE IMAGE REPOSITORY"
SchemaPrivilegeCreateIcebergTable SchemaPrivilege = "CREATE ICEBERG TABLE"
SchemaPrivilegeCreateMaterializedView SchemaPrivilege = "CREATE MATERIALIZED VIEW"
SchemaPrivilegeCreateModel SchemaPrivilege = "CREATE MODEL"
SchemaPrivilegeCreateNetworkRule SchemaPrivilege = "CREATE NETWORK RULE"
SchemaPrivilegeCreatePipe SchemaPrivilege = "CREATE PIPE"
Expand All @@ -139,22 +139,29 @@ const (
SchemaPrivilegeCreateProjectionPolicy SchemaPrivilege = "CREATE PROJECTION POLICY"
SchemaPrivilegeCreateRowAccessPolicy SchemaPrivilege = "CREATE ROW ACCESS POLICY"
SchemaPrivilegeCreateSessionPolicy SchemaPrivilege = "CREATE SESSION POLICY"
SchemaPrivilegeCreateService SchemaPrivilege = "CREATE SERVICE"
SchemaPrivilegeCreateSecret SchemaPrivilege = "CREATE SECRET"
SchemaPrivilegeCreateSequence SchemaPrivilege = "CREATE SEQUENCE"
SchemaPrivilegeCreateService SchemaPrivilege = "CREATE SERVICE"
SchemaPrivilegeCreateSnapshot SchemaPrivilege = "CREATE SNAPSHOT"
SchemaPrivilegeCreateStage SchemaPrivilege = "CREATE STAGE"
SchemaPrivilegeCreateStream SchemaPrivilege = "CREATE STREAM"
SchemaPrivilegeCreateStreamlit SchemaPrivilege = "CREATE STREAMLIT"
SchemaPrivilegeCreateSnowflakeCoreBudget SchemaPrivilege = "CREATE SNOWFLAKE.CORE.BUDGET"
SchemaPrivilegeCreateSnowflakeMlAnomalyDetection SchemaPrivilege = "CREATE SNOWFLAKE.ML.ANOMALY_DETECTION"
SchemaPrivilegeCreateSnowflakeMlForecast SchemaPrivilege = "CREATE SNOWFLAKE.ML.FORECAST"
SchemaPrivilegeCreateTag SchemaPrivilege = "CREATE TAG"
SchemaPrivilegeCreateDynamicTable SchemaPrivilege = "CREATE DYNAMIC TABLE"
SchemaPrivilegeCreateExternalTable SchemaPrivilege = "CREATE EXTERNAL TABLE"
SchemaPrivilegeCreateHybridTable SchemaPrivilege = "CREATE HYBRID TABLE"
SchemaPrivilegeCreateIcebergTable SchemaPrivilege = "CREATE ICEBERG TABLE"
SchemaPrivilegeCreateTable SchemaPrivilege = "CREATE TABLE"
SchemaPrivilegeCreateTag SchemaPrivilege = "CREATE TAG"
SchemaPrivilegeCreateTask SchemaPrivilege = "CREATE TASK"
SchemaPrivilegeCreateMaterializedView SchemaPrivilege = "CREATE MATERIALIZED VIEW"
SchemaPrivilegeCreateView SchemaPrivilege = "CREATE VIEW"
SchemaPrivilegeModify SchemaPrivilege = "MODIFY"
SchemaPrivilegeMonitor SchemaPrivilege = "MONITOR"
SchemaPrivilegeUsage SchemaPrivilege = "USAGE"
SchemaPrivilegeCreateNotebook SchemaPrivilege = "CREATE NOTEBOOK"
)

func (p SchemaPrivilege) String() string {
Expand Down

0 comments on commit 94833d7

Please sign in to comment.