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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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',

View file

@ -133,6 +133,15 @@ async function onActionDropdownClick(id: string) {
</span>
</n8n-text>
</div>
<div v-if="provider.name === 'infisical'">
<font-awesome-icon
:class="$style['warningTriangle']"
icon="exclamation-triangle"
></font-awesome-icon>
<N8nBadge class="mr-xs" theme="tertiary" bold data-test-id="card-badge">
{{ i18n.baseText('settings.externalSecrets.card.deprecated') }}
</N8nBadge>
</div>
<div v-if="canConnect" :class="$style.cardActions">
<ExternalSecretsProviderConnectionSwitch
:provider="provider"
@ -183,4 +192,9 @@ async function onActionDropdownClick(id: string) {
align-items: center;
margin-left: var(--spacing-s);
}
.warningTriangle {
color: var(--color-warning);
margin-right: var(--spacing-2xs);
}
</style>

View file

@ -1761,6 +1761,7 @@
"settings.externalSecrets.actionBox.description.link": "More info",
"settings.externalSecrets.actionBox.buttonText": "See plans",
"settings.externalSecrets.card.setUp": "Set Up",
"settings.externalSecrets.card.deprecated": "deprecated",
"settings.externalSecrets.card.secretsCount": "{count} secrets",
"settings.externalSecrets.card.connectedAt": "Connected {date}",
"settings.externalSecrets.card.connected": "Enabled",