feat(S3 Node): Add support for self signed SSL certificates (#9269)

This commit is contained in:
Ria Scholz 2024-05-02 11:08:36 +02:00 committed by GitHub
parent 41ce178491
commit ddff80416d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 0 deletions

View file

@ -41,5 +41,12 @@ export class S3 implements ICredentialType {
type: 'boolean',
default: false,
},
{
displayName: 'Ignore SSL Issues',
name: 'ignoreSSLIssues',
type: 'boolean',
default: false,
description: 'Whether to connect even if SSL certificate validation is not possible',
},
];
}

View file

@ -83,6 +83,7 @@ export async function s3ApiRequest(
qs: query,
uri: endpoint.toString(),
body: signOpts.body,
rejectUnauthorized: !credentials.ignoreSSLIssues as boolean,
};
if (Object.keys(option).length !== 0) {