Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Update dbt-service-token-rotation-fns.ts

Daniel Hougaard8eec6b0e0a1d
diff --git a/backend/src/ee/services/secret-rotation-v2/dbt-service-token/dbt-service-token-rotation-fns.ts b/backend/src/ee/services/secret-rotation-v2/dbt-service-token/dbt-service-token-rotation-fns.ts
index f3bdff752e..eabd49c2bb 100644
--- a/backend/src/ee/services/secret-rotation-v2/dbt-service-token/dbt-service-token-rotation-fns.ts
+++ b/backend/src/ee/services/secret-rotation-v2/dbt-service-token/dbt-service-token-rotation-fns.ts
@@ -121,14 +121,14 @@ export const dbtServiceTokenRotationFactory: TRotationFactory<
};
/**
- * Revokes a client secret from the Okta app using its secretId.
- * First checks if the credential exists before attempting revocation.
+ * Revokes a service token from the DBT account using its tokenId.
+ * First checks if the service token exists before attempting revocation.
*/
const revokeCredential = async (tokenId: number) => {
// Check if credential exists before attempting revocation
const exists = await tokenExists(tokenId);
if (!exists) {
- return; // Credential doesn't exist, nothing to revoke
+ return; // Service token doesn't exist, nothing to revoke
}
const instanceUrl = await getDbtUrl(connection);