Stripe Query Authentication Guide
This is a step-by-step guide to acquiring a Stripe API key to authorize the Stripe Query component.
Authorizing the Stripe Query component involves four steps:
- Obtain an API key from the Stripe developer portal.
- Create a secret to store the Stripe API key.
- Add a secret definition to the Your projects menu.
- Use the API Key property drop-down in the Stripe Query component to select the API key you have created by this process.
Obtain an API key
- Log in to the Stripe developer dashboard.
- Click Developers in the upper-right of the dashboard.
- Click the API keys tab.
- In the Standard keys section, locate the Publishable key and click the key's Token to copy it, as this Stripe API key will be required when creating the secret.
Create a secret
You must create a secret to store your Stripe API key. How this secret is stored depends on your Data Productivity Cloud deployment model:
- In a Full SaaS deployment model, you must add a secret to the internal managed vault service that is hosted in Matillion's own AWS infrastructure. Read Secrets and secret definitions for details.
- In a Hybrid SaaS deployment model, you must add a secret to either AWS Secrets Manager or Azure Key Vault in your own cloud infrastructure, as described below.
- In a Hybrid SaaS deployment model using Matillion Agent for Snowflake, read Secrets in Matillion Agent for Snowflake for details of how to store the secret in a Snowflake schema.
AWS Secrets Manager
- Log in to the AWS account that houses your agent. This must be in the same AWS Region as the agent selected when the project was created.
- In the search bar search for Secrets Manager to access the Secrets page.
- Click Store a new secret.
- Select Other type of secret and create a Key/value pair with the following details:
- Key: Enter a label you will use to identify the token.
- Value: Enter the Stripe API key code you copied earlier.
- Click Next and on the next page enter a Secret name. This is the name that will appear in the Secret definitions list in Your projects.
- The remainder of the details aren't needed, so click Next and Next again, then Store to complete the creation of the secret.
Azure Key Vault
- Log in to the Azure account that houses your agent. This must be in the same Azure Region as the agent selected when the project was created.
- Click Key vaults and click the name of the key vault you want to reference. If there is only one, then this will be the [Default] key vault configured in the agent.
- Click Objects and then click Secrets.
- Click + Generate/Import.
- On the Create a secret screen enter the following:
- Upload options: Select Manual.
- Name: Type a name for the secret. The secret name must be unique within a key vault. For more information on naming, read Key Vault objects, identifiers, and versioning.
- Secret value: Enter the Stripe API key code you copied earlier.
- Click Create.
Add a secret definition
Follow the steps in Secrets and secret definitions.
Return to Designer
- Return to the Stripe Query component in Designer.
- Click into the API Key property.
- Select your new secret definition representing your Stripe API key.
- Click Save.
Got feedback or spotted something we can improve?
We'd love to hear from you. Join the conversation in the Documentation forum!