Openflow Connector for Confluence Data Center: Set up Snowflake¶
Note
The connector is subject to the Snowflake Connector Terms.
This topic describes the steps required to configure Snowflake to support the Openflow Connector for Confluence Data Center.
As a Snowflake administrator, perform the following tasks:
Note
The connector uses a Snowflake role to read from and write to Snowflake. Runtimes on Openflow Snowflake deployments use a role assigned when the role is created.
For BYOC deployment runtimes, create a new role or identify an existing role with the following privileges to read from, write to, and create objects in the schema in which you intend to store your Confluence data. See example below.
For BYOC deployment runtimes, create a new Snowflake service user or use an existing one. The service user is used to operate the connector. Configure with key-pair auth.
Create a role to manage the connector and the associated data. Grant it to the Snowflake service user.
If you are using Cortex search:
Create a role for read access to the Cortex Search service created by this connector. This role should be granted to any role that uses the service.
Create or identify an existing database in Snowflake.
Create the schema the data will be stored in. Grant the necessary database privileges to the role created in the first step for BYOC runtimes or the “runtime” role for Openflow - Snowflake Deployment runtimes to the connector admin role:
If using the Cortex use case:
Note
The following block is for the Cortex use case ONLY.
Grant the Cortex read-only role access to the database and schema.
If you haven’t already set up Openflow with a secrets manager such as AWS, Azure, or HashiCorp, configure it now. Then store your public and private keys in the secret store. For more information, see Set up Openflow - BYOC.
Note
If you don’t use a secrets manager, then you are responsible for safeguarding public key and private key files used for key-pair authentication according to the security policies of your organization.
Once the secrets manager is configured, determine how you will authenticate to it. On AWS, you should use the EC2 instance role associated with Openflow, as this way no other secrets have to be persisted.
In Openflow, configure a parameter provider associated with this secrets manager:
From the menu in the upper right, select Controller Settings.
Select the Parameter providers tab.
Fetch the parameter values.
When using a secrets manager, all credentials can be referenced with the associated parameter paths and no sensitive values need to be persisted within Openflow.
Optional: If any other Snowflake users or roles require access to the documents ingested and tables created by the connector, then grant those users or roles the role created in a previous step.
Create a warehouse for the connector or use an existing one. Start with the smallest warehouse size, then experiment with size depending on the number of documents being replicated and the amount of data transferred. Large document numbers typically scale better with multi-cluster warehouses, rather than larger warehouse sizes. Grant the warehouse access to the role created or identified previously.
Create an external access integration to enable network access outside of Snowflake.
Important
If your runtime executes in Openflow - BYOC, you do not need to create an External Access Integration (EAI). Instead, configure your cloud network egress to allow access to your Confluence site URL.
To allow the connector to access the Confluence site from a Snowflake-hosted runtime, you must create a network rule and an external access integration (EAI). Then, grant the Snowflake role usage privileges on the EAI.
To create the external access integration and network rule and grant access, perform the following steps:
Create a network rule to all the connector to access the required REST APIs:
Create an External Access Integration that references the network rule:
Grant your Snowflake Role USAGE on the integration:
Next steps¶
After setting up Snowflake, continue with Set up a connector.