mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 06:28:11 +00:00
feat(secret-rotation): added db ssl option in test function
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user