mirror of https://github.com/portainer/portainer
Revert "fix(stacks): confirm enable tls verification [EE-5410]" (#8972)
parent
0dba9b709d
commit
64d481ae2f
|
@ -4,7 +4,6 @@ import { buildConfirmButton } from '@@/modals/utils';
|
|||
import { ModalType } from '@@/modals';
|
||||
import { parseAutoUpdateResponse } from '@/react/portainer/gitops/AutoUpdateFieldset/utils';
|
||||
import { baseStackWebhookUrl, createWebhookId } from '@/portainer/helpers/webhookHelper';
|
||||
import { confirmEnableTLSVerify } from '@/react/portainer/gitops/utils';
|
||||
|
||||
class KubernetesRedeployAppGitFormController {
|
||||
/* @ngInject */
|
||||
|
@ -72,13 +71,6 @@ class KubernetesRedeployAppGitFormController {
|
|||
|
||||
onChangeTLSSkipVerify(value) {
|
||||
return this.$async(async () => {
|
||||
if (this.stack.GitConfig.TLSSkipVerify && !value) {
|
||||
const confirmed = await confirmEnableTLSVerify();
|
||||
|
||||
if (!confirmed) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
this.onChange({ TLSSkipVerify: value });
|
||||
});
|
||||
}
|
||||
|
|
|
@ -4,7 +4,6 @@ import { confirmStackUpdate } from '@/react/docker/stacks/common/confirm-stack-u
|
|||
|
||||
import { parseAutoUpdateResponse } from '@/react/portainer/gitops/AutoUpdateFieldset/utils';
|
||||
import { baseStackWebhookUrl, createWebhookId } from '@/portainer/helpers/webhookHelper';
|
||||
import { confirmEnableTLSVerify } from '@/react/portainer/gitops/utils';
|
||||
|
||||
class StackRedeployGitFormController {
|
||||
/* @ngInject */
|
||||
|
@ -96,17 +95,8 @@ class StackRedeployGitFormController {
|
|||
this.onChange({ Env: value });
|
||||
}
|
||||
|
||||
async onChangeTLSSkipVerify(value) {
|
||||
return this.$async(async () => {
|
||||
if (this.model.TLSSkipVerify && !value) {
|
||||
const confirmed = await confirmEnableTLSVerify();
|
||||
|
||||
if (!confirmed) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
this.onChange({ TLSSkipVerify: value });
|
||||
});
|
||||
onChangeTLSSkipVerify(value) {
|
||||
this.onChange({ TLSSkipVerify: value });
|
||||
}
|
||||
|
||||
onChangeOption(values) {
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
import { confirm } from '@@/modals/confirm';
|
||||
|
||||
import { GitFormModel } from './types';
|
||||
|
||||
export function getAuthentication(
|
||||
|
@ -20,11 +18,3 @@ export function getAuthentication(
|
|||
password: model.RepositoryPassword,
|
||||
};
|
||||
}
|
||||
|
||||
export function confirmEnableTLSVerify() {
|
||||
return confirm({
|
||||
title: 'Enable TLS Verification?',
|
||||
message:
|
||||
'Enabling the verification of TLS certificates without ensuring the correct configuration of your Certificate Authority (CA) for self-signed certificates can result in deployment failures.',
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue