1
1
mirror of https://github.com/n8n-io/n8n.git synced 2024-11-12 18:26:16 +03:00

refactor(core): apply lint rule cred-class-field-unobscured-sensitive-input (#4495)

* ⬆️ Upgrade linter

* 📦 Update `package-lock.json`

* 👕 Enable rule

* 👕 Apply rule

* 📦 Re-update `package-lock.json`
This commit is contained in:
Iván Ovejero 2022-11-01 17:41:45 +01:00 committed by GitHub
parent cf034c015f
commit 1c229a7b52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
124 changed files with 8064 additions and 14699 deletions

22638
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -72,6 +72,7 @@ module.exports = {
'n8n-nodes-base/cred-class-field-name-missing-oauth2': 'error',
'n8n-nodes-base/cred-class-field-name-unsuffixed': 'error',
'n8n-nodes-base/cred-class-field-name-uppercase-first-char': 'error',
'n8n-nodes-base/cred-class-field-unobscured-sensitive-input': 'error',
'n8n-nodes-base/cred-class-name-missing-oauth2-suffix': 'error',
'n8n-nodes-base/cred-class-name-unsuffixed': 'error',
'n8n-nodes-base/cred-filename-against-convention': 'error',

View File

@ -15,6 +15,7 @@ export class ActionNetworkApi implements ICredentialType {
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
default: '',
},
];

View File

@ -20,6 +20,7 @@ export class ActiveCampaignApi implements ICredentialType {
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
default: '',
},
];

View File

@ -15,6 +15,7 @@ export class AcuitySchedulingApi implements ICredentialType {
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
default: '',
},
];

View File

@ -9,6 +9,7 @@ export class AdaloApi implements ICredentialType {
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
default: '',
description:
'The Adalo API is available on paid Adalo plans, find more information <a href="https://help.adalo.com/integrations/the-adalo-api" target="_blank">here</a>',

View File

@ -9,6 +9,7 @@ export class AffinityApi implements ICredentialType {
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
default: '',
},
];

View File

@ -16,6 +16,7 @@ export class AgileCrmApi implements ICredentialType {
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
default: '',
},
{

View File

@ -9,6 +9,7 @@ export class AirtableApi implements ICredentialType {
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
default: '',
},
];

View File

@ -14,6 +14,7 @@ export class ApiTemplateIoApi implements ICredentialType {
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
default: '',
},
];

View File

@ -9,6 +9,7 @@ export class AsanaApi implements ICredentialType {
displayName: 'Access Token',
name: 'accessToken',
type: 'string',
typeOptions: { password: true },
default: '',
},
];

View File

@ -9,6 +9,7 @@ export class AutopilotApi implements ICredentialType {
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
default: '',
},
];

View File

@ -15,6 +15,7 @@ export class BambooHrApi implements ICredentialType {
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
default: '',
},
];

View File

@ -9,6 +9,7 @@ export class BannerbearApi implements ICredentialType {
displayName: 'Project API Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
default: '',
},
];

View File

@ -9,6 +9,7 @@ export class BitlyApi implements ICredentialType {
displayName: 'Access Token',
name: 'accessToken',
type: 'string',
typeOptions: { password: true },
default: '',
},
];

View File

@ -9,6 +9,7 @@ export class BrandfetchApi implements ICredentialType {
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
default: '',
},
];

View File

@ -14,6 +14,7 @@ export class CalApi implements ICredentialType {
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
default: '',
},
{

View File

@ -17,6 +17,7 @@ export class CalendlyApi implements ICredentialType {
displayName: 'API Key or Personal Access Token',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
default: '',
},
];

View File

@ -15,6 +15,7 @@ export class ChargebeeApi implements ICredentialType {
displayName: 'Api Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
default: '',
},
];

View File

@ -9,6 +9,7 @@ export class CircleCiApi implements ICredentialType {
displayName: 'Personal API Token',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
default: '',
},
];

View File

@ -9,6 +9,7 @@ export class ClearbitApi implements ICredentialType {
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
default: '',
},
];

View File

@ -14,6 +14,7 @@ export class ClickUpApi implements ICredentialType {
displayName: 'Access Token',
name: 'accessToken',
type: 'string',
typeOptions: { password: true },
default: '',
},
];

View File

@ -14,6 +14,7 @@ export class ClockifyApi implements ICredentialType {
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
default: '',
},
];

View File

@ -16,6 +16,7 @@ export class CockpitApi implements ICredentialType {
displayName: 'Access Token',
name: 'accessToken',
type: 'string',
typeOptions: { password: true },
default: '',
},
];

View File

@ -9,6 +9,7 @@ export class CodaApi implements ICredentialType {
displayName: 'Access Token',
name: 'accessToken',
type: 'string',
typeOptions: { password: true },
default: '',
},
];

View File

@ -10,6 +10,7 @@ export class CopperApi implements ICredentialType {
name: 'apiKey',
required: true,
type: 'string',
typeOptions: { password: true },
default: '',
},
{

View File

@ -14,6 +14,7 @@ export class DeepLApi implements ICredentialType {
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
default: '',
},
{

View File

@ -9,6 +9,7 @@ export class DemioApi implements ICredentialType {
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
default: '',
},
{

View File

@ -9,6 +9,7 @@ export class DhlApi implements ICredentialType {
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
default: '',
},
];

View File

@ -23,6 +23,7 @@ export class DiscourseApi implements ICredentialType {
name: 'apiKey',
required: true,
type: 'string',
typeOptions: { password: true },
default: '',
},
{

View File

@ -9,6 +9,7 @@ export class DisqusApi implements ICredentialType {
displayName: 'Access Token',
name: 'accessToken',
type: 'string',
typeOptions: { password: true },
default: '',
description:
'Visit your account details page, and grab the Access Token. See <a href="https://disqus.com/api/docs/auth/">Disqus auth</a>.',

View File

@ -9,6 +9,7 @@ export class DriftApi implements ICredentialType {
displayName: 'Personal Access Token',
name: 'accessToken',
type: 'string',
typeOptions: { password: true },
default: '',
description:
'Visit your account details page, and grab the Access Token. See <a href="https://devdocs.drift.com/docs/quick-start">Drift auth</a>.',

View File

@ -15,6 +15,7 @@ export class DropboxApi implements ICredentialType {
displayName: 'Access Token',
name: 'accessToken',
type: 'string',
typeOptions: { password: true },
default: '',
},
{

View File

@ -14,6 +14,7 @@ export class ERPNextApi implements ICredentialType {
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
default: '',
},
{

View File

@ -12,6 +12,7 @@ export class EgoiApi implements ICredentialType {
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
default: '',
},
];

View File

@ -9,6 +9,7 @@ export class EmeliaApi implements ICredentialType {
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
default: '',
},
];

View File

@ -9,6 +9,7 @@ export class EventbriteApi implements ICredentialType {
displayName: 'Private Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
default: '',
},
];

View File

@ -14,6 +14,7 @@ export class FacebookGraphApi implements ICredentialType {
displayName: 'Access Token',
name: 'accessToken',
type: 'string',
typeOptions: { password: true },
default: '',
},
];

View File

@ -9,6 +9,7 @@ export class FigmaApi implements ICredentialType {
displayName: 'Access Token',
name: 'accessToken',
type: 'string',
typeOptions: { password: true },
default: '',
},
];

View File

@ -15,6 +15,7 @@ export class FlowApi implements ICredentialType {
displayName: 'Access Token',
name: 'accessToken',
type: 'string',
typeOptions: { password: true },
default: '',
},
];

View File

@ -9,6 +9,7 @@ export class FormstackApi implements ICredentialType {
displayName: 'Access Token',
name: 'accessToken',
type: 'string',
typeOptions: { password: true },
default: '',
},
];

View File

@ -9,6 +9,7 @@ export class FreshdeskApi implements ICredentialType {
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
default: '',
},
{

View File

@ -9,6 +9,7 @@ export class FreshserviceApi implements ICredentialType {
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
default: '',
placeholder: 'atuH3AbeH9HsKvgHuxg',
},

View File

@ -14,6 +14,7 @@ export class FreshworksCrmApi implements ICredentialType {
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
default: '',
placeholder: 'BDsTn15vHezBlt_XGp3Tig',
},

View File

@ -14,6 +14,7 @@ export class GetResponseApi implements ICredentialType {
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
default: '',
},
];

View File

@ -23,6 +23,7 @@ export class GhostAdminApi implements ICredentialType {
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
default: '',
},
];

View File

@ -22,6 +22,7 @@ export class GhostContentApi implements ICredentialType {
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
default: '',
},
];

View File

@ -27,6 +27,7 @@ export class GithubApi implements ICredentialType {
displayName: 'Access Token',
name: 'accessToken',
type: 'string',
typeOptions: { password: true },
default: '',
},
];

View File

@ -20,6 +20,7 @@ export class GitlabApi implements ICredentialType {
displayName: 'Access Token',
name: 'accessToken',
type: 'string',
typeOptions: { password: true },
default: '',
},
];

View File

@ -14,6 +14,7 @@ export class GrafanaApi implements ICredentialType {
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
default: '',
required: true,
},

View File

@ -9,6 +9,7 @@ export class GristApi implements ICredentialType {
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
default: '',
required: true,
},

View File

@ -9,6 +9,7 @@ export class GumroadApi implements ICredentialType {
displayName: 'Access Token',
name: 'accessToken',
type: 'string',
typeOptions: { password: true },
default: '',
},
];

View File

@ -9,6 +9,7 @@ export class HarvestApi implements ICredentialType {
displayName: 'Access Token',
name: 'accessToken',
type: 'string',
typeOptions: { password: true },
default: '',
description:
'Visit your account details page, and grab the Access Token. See <a href="https://help.getharvest.com/api-v2/authentication-api/authentication/authentication/">Harvest Personal Access Tokens</a>.',

View File

@ -27,6 +27,7 @@ export class HomeAssistantApi implements ICredentialType {
displayName: 'Access Token',
name: 'accessToken',
type: 'string',
typeOptions: { password: true },
default: '',
},
];

View File

@ -9,6 +9,7 @@ export class HubspotApi implements ICredentialType {
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
default: '',
},
];

View File

@ -54,6 +54,7 @@ export class HubspotDeveloperApi implements ICredentialType {
displayName: 'Developer API Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
default: '',
},
{

View File

@ -9,6 +9,7 @@ export class HumanticAiApi implements ICredentialType {
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
default: '',
},
];

View File

@ -9,6 +9,7 @@ export class HunterApi implements ICredentialType {
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
default: '',
},
];

View File

@ -9,6 +9,7 @@ export class IntercomApi implements ICredentialType {
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
default: '',
},
];

View File

@ -9,6 +9,7 @@ export class IterableApi implements ICredentialType {
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
default: '',
},
];

View File

@ -15,6 +15,7 @@ export class JenkinsApi implements ICredentialType {
displayName: 'Personal API Token',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
default: '',
},
{

View File

@ -9,6 +9,7 @@ export class JotFormApi implements ICredentialType {
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
default: '',
},
{

View File

@ -15,6 +15,7 @@ export class LemlistApi implements ICredentialType {
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
default: '',
},
];

View File

@ -9,6 +9,7 @@ export class LinearApi implements ICredentialType {
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
default: '',
},
];

View File

@ -9,6 +9,7 @@ export class LingvaNexApi implements ICredentialType {
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
default: '',
},
];

View File

@ -20,6 +20,7 @@ export class Magento2Api implements ICredentialType {
displayName: 'Access Token',
name: 'accessToken',
type: 'string',
typeOptions: { password: true },
default: '',
},
];

View File

@ -9,6 +9,7 @@ export class MailcheckApi implements ICredentialType {
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
default: '',
},
];

View File

@ -15,6 +15,7 @@ export class MailchimpApi implements ICredentialType {
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
default: '',
},
];

View File

@ -9,6 +9,7 @@ export class MailerLiteApi implements ICredentialType {
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
default: '',
},
];

View File

@ -37,6 +37,7 @@ export class MailgunApi implements ICredentialType {
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
default: '',
},
];

View File

@ -14,6 +14,7 @@ export class MailjetEmailApi implements ICredentialType {
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
default: '',
},
{

View File

@ -9,6 +9,7 @@ export class MandrillApi implements ICredentialType {
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
default: '',
},
];

View File

@ -9,6 +9,7 @@ export class MarketstackApi implements ICredentialType {
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
default: '',
},
{

View File

@ -9,6 +9,7 @@ export class MatrixApi implements ICredentialType {
displayName: 'Access Token',
name: 'accessToken',
type: 'string',
typeOptions: { password: true },
default: '',
},
{

View File

@ -16,6 +16,7 @@ export class MattermostApi implements ICredentialType {
displayName: 'Access Token',
name: 'accessToken',
type: 'string',
typeOptions: { password: true },
default: '',
},
{

View File

@ -9,6 +9,7 @@ export class MediumApi implements ICredentialType {
displayName: 'Access Token',
name: 'accessToken',
type: 'string',
typeOptions: { password: true },
default: '',
},
];

View File

@ -14,6 +14,7 @@ export class MindeeInvoiceApi implements ICredentialType {
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
default: '',
},
];

View File

@ -14,6 +14,7 @@ export class MindeeReceiptApi implements ICredentialType {
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
default: '',
},
];

View File

@ -9,6 +9,7 @@ export class MispApi implements ICredentialType {
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
default: '',
},
{

View File

@ -14,6 +14,7 @@ export class N8nApi implements ICredentialType {
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
default: '',
description: 'The API key for the n8n instance',
},

View File

@ -28,6 +28,7 @@ export class NextCloudApi implements ICredentialType {
displayName: 'Password',
name: 'password',
type: 'string',
typeOptions: { password: true },
default: '',
},
];

View File

@ -14,6 +14,7 @@ export class NotionApi implements ICredentialType {
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
default: '',
},
];

View File

@ -9,6 +9,7 @@ export class OpenWeatherMapApi implements ICredentialType {
displayName: 'Access Token',
name: 'accessToken',
type: 'string',
typeOptions: { password: true },
default: '',
},
];

View File

@ -9,6 +9,7 @@ export class OrbitApi implements ICredentialType {
displayName: 'API Token',
name: 'accessToken',
type: 'string',
typeOptions: { password: true },
default: '',
},
];

View File

@ -9,6 +9,7 @@ export class OuraApi implements ICredentialType {
displayName: 'Personal Access Token',
name: 'accessToken',
type: 'string',
typeOptions: { password: true },
default: '',
},
];

View File

@ -9,6 +9,7 @@ export class PeekalinkApi implements ICredentialType {
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
default: '',
},
];

View File

@ -14,6 +14,7 @@ export class PhantombusterApi implements ICredentialType {
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
default: '',
},
];

View File

@ -15,6 +15,7 @@ export class PostHogApi implements ICredentialType {
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
default: '',
},
];

View File

@ -9,6 +9,7 @@ export class ProfitWellApi implements ICredentialType {
displayName: 'API Token',
name: 'accessToken',
type: 'string',
typeOptions: { password: true },
default: '',
description: 'Your Private Token',
},

View File

@ -9,6 +9,7 @@ export class PushcutApi implements ICredentialType {
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
default: '',
},
];

View File

@ -15,6 +15,7 @@ export class PushoverApi implements ICredentialType {
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
default: '',
},
];

View File

@ -9,6 +9,7 @@ export class SecurityScorecardApi implements ICredentialType {
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
default: '',
required: true,
},

View File

@ -14,6 +14,7 @@ export class SendGridApi implements ICredentialType {
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
default: '',
},
];

View File

@ -14,6 +14,7 @@ export class SendInBlueApi implements ICredentialType {
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
default: '',
},
];

View File

@ -16,6 +16,7 @@ export class SendyApi implements ICredentialType {
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
default: '',
},
];

View File

@ -23,6 +23,7 @@ export class ShopifyAccessTokenApi implements ICredentialType {
name: 'accessToken',
required: true,
type: 'string',
typeOptions: { password: true },
default: '',
},
{

View File

@ -18,6 +18,7 @@ export class ShopifyApi implements ICredentialType {
name: 'apiKey',
required: true,
type: 'string',
typeOptions: { password: true },
default: '',
},
{
@ -25,6 +26,7 @@ export class ShopifyApi implements ICredentialType {
name: 'password',
required: true,
type: 'string',
typeOptions: { password: true },
default: '',
},
{

View File

@ -14,6 +14,7 @@ export class SlackApi implements ICredentialType {
displayName: 'Access Token',
name: 'accessToken',
type: 'string',
typeOptions: { password: true },
default: '',
required: true,
},

View File

@ -14,6 +14,7 @@ export class Sms77Api implements ICredentialType {
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
default: '',
},
];

View File

@ -9,6 +9,7 @@ export class SpontitApi implements ICredentialType {
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
default: '',
},
{

Some files were not shown because too many files have changed in this diff Show More