refactor(editor): Add Infisical deprecation notice (#10191)

This commit is contained in:
Iván Ovejero
2024-07-26 14:38:41 +02:00
committed by GitHub
parent 44728d7242
commit cd74f4312b
3 changed files with 24 additions and 2 deletions

View File

@@ -3,7 +3,7 @@ import InfisicalClient from 'infisical-node';
import { populateClientWorkspaceConfigsHelper } from 'infisical-node/lib/helpers/key';
import { getServiceTokenData } from 'infisical-node/lib/api/serviceTokenData';
import { ApplicationError, type IDataObject, type INodeProperties } from 'n8n-workflow';
import { DOCS_HELP_NOTICE, EXTERNAL_SECRETS_NAME_REGEX } from '../constants';
import { EXTERNAL_SECRETS_NAME_REGEX } from '../constants';
export interface InfisicalSettings {
token: string;
@@ -24,7 +24,14 @@ interface InfisicalServiceToken {
export class InfisicalProvider implements SecretsProvider {
properties: INodeProperties[] = [
DOCS_HELP_NOTICE,
{
displayName:
'<h2>Important information about our infisical integration</h2><br>From the <b>30th July, 2024</b>, we will no longer be supporting new connections to inifiscal secrets vault using service tokens. Existing service tokens will remain usable until <b>July, 2025</b>. After that period, we will be removing support for Infisical from our external secrets integrations. You can find out more information about this change on <a href="https://docs.n8n.io/external-secrets/#connect-n8n-to-your-secrets-store" target="_blank">our docs</a>',
name: 'notice',
type: 'notice',
default: '',
noDataExpression: true,
},
{
displayName: 'Service Token',
name: 'token',