Eliminate the use of long lived secrets by rotating Twilio SendGrid API keys with Infisical.

Prerequisite

You will need a valid SendGrid admin key with the necessary scope to create additional API keys.

Follow the SendGrid Docs to create an admin api key.

How it works

Using the provided admin API key, Infisical will attempt to create child API keys with the specified permissions. New keys will ge generated every time a rotation occurs. Behind the scenes, Infisical uses the SendGrid API to generate new API keys.

Rotation Configuration

1

Open Secret Rotation Page

Head over to Secret Rotation configuration page of your project by clicking on Secret Rotation in the left side bar

2

Click on Twilio SendGrid Card

3

Provide the inputs

Admin API Key
string
required

SendGrid admin API key with permission to create child scoped API keys.

Admin API Key
array
required

The permissions that the newly generated API keys will have. To view possible permissions, visit this documentation. Permissions must be entered as a list of strings.

Example: ["user.profile.read", "user.profile.update"]

4

Configure the output secret mapping

When a secret rotation is successful, the updated values needs to be saved to an existing key(s) in your project.

Environment
string
required

The environment where the rotated credentials should be mapped to.

Secret Path
string
required

The secret path where the rotated credentials should be mapped to.

Interval
number
required

What interval should the credentials be rotated in days.

API KEY
string
required

Select an existing select key where the newly rotated API key will get saved to.

Now your output mapped secret value will be replaced periodically by SendGrid.