feat(secret-rotation): added db ssl option in test function

This commit is contained in:
Akhil Mohan
2023-11-01 22:21:31 +05:30
parent c9c40521b2
commit 9248f36edb
3 changed files with 7 additions and 5 deletions
@@ -69,6 +69,7 @@ export const MYSQL_TEMPLATE = {
host: "${inputs.host}", host: "${inputs.host}",
database: "${inputs.database}", database: "${inputs.database}",
port: "${inputs.port}", port: "${inputs.port}",
ca: "${inputs.ca}",
query: "SELECT NOW()" query: "SELECT NOW()"
} }
} }
@@ -68,6 +68,7 @@ export const POSTGRES_TEMPLATE = {
host: "${inputs.host}", host: "${inputs.host}",
database: "${inputs.database}", database: "${inputs.database}",
port: "${inputs.port}", port: "${inputs.port}",
ca: "${inputs.ca}",
query: "SELECT NOW()" query: "SELECT NOW()"
} }
} }
@@ -163,10 +163,10 @@ export const SecretRotationPage = withProjectPermission(
}; };
const handleCreateRotation = async (provider: TSecretRotationProvider) => { const handleCreateRotation = async (provider: TSecretRotationProvider) => {
// if (subscription && !subscription?.secretRotation) { if (subscription && !subscription?.secretRotation) {
// handlePopUpOpen("upgradePlan"); handlePopUpOpen("upgradePlan");
// return; return;
// } }
if (!canCreateRotation) { if (!canCreateRotation) {
createNotification({ type: "error", text: "Access permission denied!!" }); createNotification({ type: "error", text: "Access permission denied!!" });
return; return;
@@ -392,7 +392,7 @@ export const SecretRotationPage = withProjectPermission(
title="Are you sure want to delete this rotation?" title="Are you sure want to delete this rotation?"
subTitle="This will stop the rotation from dynamically changing. Secret won't be deleted" subTitle="This will stop the rotation from dynamically changing. Secret won't be deleted"
onChange={(isOpen) => handlePopUpToggle("deleteRotation", isOpen)} onChange={(isOpen) => handlePopUpToggle("deleteRotation", isOpen)}
deleteKey="confirm" deleteKey="delete"
onDeleteApproved={handleDeleteRotation} onDeleteApproved={handleDeleteRotation}
/> />
<UpgradePlanModal <UpgradePlanModal