-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dd819c5
commit bf3144e
Showing
7 changed files
with
82 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1 @@ | ||
oauth.sql | ||
policies.sql | ||
users.sql | ||
synapse_setup.sql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
!set variable_substitution=true; --noqa: PRS | ||
|
||
USE ROLE account_admin; | ||
|
||
-- * Integration to prod (SNOW-14) | ||
CREATE STORAGE INTEGRATION IF NOT EXISTS synapse_prod_warehouse_s3 | ||
TYPE = EXTERNAL_STAGE | ||
STORAGE_PROVIDER = 'S3' | ||
ENABLED = TRUE | ||
STORAGE_AWS_ROLE_ARN = 'arn:aws:iam::325565585839:role/snowflake-accesss-SnowflakeServiceRole-HL66JOP7K4BT' | ||
STORAGE_ALLOWED_LOCATIONS = ('s3://prod.datawarehouse.sagebase.org'); | ||
|
||
-- DESC INTEGRATION synapse_prod_warehouse_s3; | ||
CREATE STORAGE INTEGRATION IF NOT EXISTS synapse_dev_warehouse_s3 | ||
TYPE = EXTERNAL_STAGE | ||
STORAGE_PROVIDER = 'S3' | ||
ENABLED = TRUE | ||
STORAGE_AWS_ROLE_ARN = 'arn:aws:iam::449435941126:role/test-snowflake-access-SnowflakeServiceRole-1LXZYAMMKTHJY' | ||
STORAGE_ALLOWED_LOCATIONS = ('s3://dev.datawarehouse.sagebase.org'); | ||
-- DESC INTEGRATION synapse_dev_warehouse_s3; | ||
|
||
-- RECOVER dev integration | ||
CREATE STORAGE INTEGRATION IF NOT EXISTS recover_dev_s3 | ||
TYPE = EXTERNAL_STAGE | ||
STORAGE_PROVIDER = 'S3' | ||
ENABLED = TRUE | ||
STORAGE_AWS_ROLE_ARN = 'arn:aws:iam::914833433684:role/snowflake_access' | ||
STORAGE_ALLOWED_LOCATIONS = ('s3://recover-dev-processed-data', 's3://recover-dev-intermediate-data'); | ||
|
||
-- https://docs.snowflake.com/en/user-guide/oauth-partner | ||
-- Integration with tableau | ||
CREATE SECURITY INTEGRATION IF NOT EXISTS ts_oauth_int2 | ||
TYPE = OAUTH | ||
ENABLED = TRUE | ||
OAUTH_CLIENT = TABLEAU_SERVER | ||
OAUTH_REFRESH_TOKEN_VALIDITY = 86400; | ||
|
||
CREATE SECURITY INTEGRATION IF NOT EXISTS td_oauth_int2 | ||
TYPE = OAUTH | ||
ENABLED = TRUE | ||
OAUTH_REFRESH_TOKEN_VALIDITY = 36000 | ||
OAUTH_CLIENT = TABLEAU_DESKTOP; | ||
|
||
-- DESC SECURITY INTEGRATION ts_oauth_int2; | ||
// Used these instructions to create google SAML integration | ||
// https://community.snowflake.com/s/article/configuring-g-suite-as-an-identity-provider | ||
create security integration IF NOT EXISTS GOOGLE_SSO | ||
type = saml2 | ||
enabled = true | ||
saml2_issuer = '&saml2_issuer' | ||
saml2_sso_url = '&saml2_sso_url' | ||
saml2_provider = 'custom' | ||
saml2_x509_cert='&saml2_x509_cert' | ||
saml2_sp_initiated_login_page_label = 'GOOGLE_SSO' | ||
saml2_enable_sp_initiated = true | ||
SAML2_SIGN_REQUEST = true | ||
SAML2_SNOWFLAKE_ACS_URL = 'https://mqzfhld-vp00034.snowflakecomputing.com/fed/login' | ||
SAML2_SNOWFLAKE_ISSUER_URL = 'https://mqzfhld-vp00034.snowflakecomputing.com'; | ||
|
||
-- DESC security integration GOOGLE_SSO; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,3 @@ | ||
!set variable_substitution=true; | ||
|
||
// SAML integration | ||
use role accountadmin; | ||
// Used these instructions to create google SAML integration | ||
// https://community.snowflake.com/s/article/configuring-g-suite-as-an-identity-provider | ||
create security integration IF NOT EXISTS GOOGLE_SSO | ||
type = saml2 | ||
enabled = true | ||
saml2_issuer = '&saml2_issuer' | ||
saml2_sso_url = '&saml2_sso_url' | ||
saml2_provider = 'custom' | ||
saml2_x509_cert='&saml2_x509_cert' | ||
saml2_sp_initiated_login_page_label = 'GOOGLE_SSO' | ||
saml2_enable_sp_initiated = true | ||
SAML2_SIGN_REQUEST = true | ||
SAML2_SNOWFLAKE_ACS_URL = 'https://mqzfhld-vp00034.snowflakecomputing.com/fed/login' | ||
SAML2_SNOWFLAKE_ISSUER_URL = 'https://mqzfhld-vp00034.snowflakecomputing.com'; | ||
|
||
-- DESC security integration GOOGLE_SSO; | ||
USE ROLE USERADMIN; | ||
CREATE USER IF NOT EXISTS "[email protected]"; | ||
CREATE USER IF NOT EXISTS "[email protected]"; | ||
|