Skip to main content

Prerequisites

Create a DBT Service Token Rotation in Infisical

  1. Navigate to your Secret Manager Project’s Dashboard and select Add Secret Rotation from the actions dropdown. Secret Manager Dashboard
  2. Select the DBT Service Token option. Select DBT Service Token
  3. Configure the rotation behavior, then click Next. Rotation Configuration
  • DBT Connection - the connection that will perform the rotation of the specified service token.
  • Rotation Interval - the interval, in days, that once elapsed will trigger a rotation.
  • Rotate At - the local time of day when rotation should occur once the interval has elapsed.
  • Auto-Rotation Enabled - whether secrets should automatically be rotated once the rotation interval has elapsed. Disable this option to manually rotate secrets or pause secret rotation.
Note that it’s important that the DBT connection being used has permissions to create service tokens. Groups such as Owner or Security Admin are sufficient.
  1. Select the parameters for the DBT service token rotation. Then click Next.
  • Service Token Name: The name of the service token to be created.
  • Permission Grants: The permission grants to apply to the service token.
    • Permission Set: The permission set to apply to the service token.
    • Projects: The projects to apply the permission set to. Select “All Projects” for the permission set to be applied to all projects. Rotation Parameters
  1. Specify the secret names that the service token should be mapped to. Then click Next. Rotation Secrets Mapping
  • Service Token - the name of the secret that the service token will be mapped to.
  1. Give your rotation a name and description (optional). Then click Next. Rotation Details
  • Name - the name of the secret rotation configuration. Must be slug-friendly.
  • Description (optional) - a description of this rotation configuration.
  1. Review your configuration, then click Create Secret Rotation. Rotation Review
  2. Your DBT Service Token credentials are now available for use via the mapped secrets. Rotation Created