[Code]: re-enable all certificate checks (#39634)

This commit is contained in:
Fuyao Zhao 2019-06-25 23:00:38 -07:00 committed by GitHub
parent 3ded411527
commit a555e676eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 6 deletions

View file

@ -28,7 +28,7 @@ describe('repository service test', () => {
after(() => {
return rimraf.sync(baseDir);
});
const service = new RepositoryService(repoDir, credsDir, log, false /* enableGitCertCheck */);
const service = new RepositoryService(repoDir, credsDir, log, true);
it('can not clone a repo by ssh without a key', async () => {
const repo = RepositoryUtils.buildRepository(

View file

@ -75,7 +75,7 @@ test('Execute delete job.', async () => {
esClient as EsClient,
{
security: {
enableGitCertCheck: false,
enableGitCertCheck: true,
},
} as ServerOptions,
{} as GitOperations,

View file

@ -57,7 +57,7 @@ test('Execute update job', async () => {
esClient as EsClient,
{
security: {
enableGitCertCheck: false,
enableGitCertCheck: true,
},
} as ServerOptions,
{} as GitOperations,
@ -97,7 +97,7 @@ test('On update job completed because of cancellation ', async () => {
esClient as EsClient,
{
security: {
enableGitCertCheck: false,
enableGitCertCheck: true,
},
} as ServerOptions,
{} as GitOperations,

View file

@ -32,7 +32,7 @@ const TEST_OPTIONS = {
enableMavenImport: true,
enableGradleImport: true,
installNodeDependency: true,
enableGitCertCheck: false,
enableGitCertCheck: true,
gitProtocolWhitelist: ['ssh', 'https', 'git'],
},
repos: [],

View file

@ -199,7 +199,6 @@ export default async function ({ readConfigFile }) {
'--stats.maximumWaitTimeForAllCollectorsInS=1',
'--xpack.security.encryptionKey="wuGNaIhoMpk5sO4UBxgr3NyW1sFcLgIf"', // server restarts should not invalidate active sessions
'--xpack.encrypted_saved_objects.encryptionKey="DkdXazszSCYexXqz4YktBGHCRkV6hyNK"',
'--xpack.code.security.enableGitCertCheck=false', // Disable git certificate check
'--timelion.ui.enabled=true',
],
},