mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
Add DNS made easy for PKI type
This commit is contained in:
@@ -176,7 +176,8 @@ const PKI_APP_CONNECTIONS = [
|
|||||||
AppConnection.Cloudflare,
|
AppConnection.Cloudflare,
|
||||||
AppConnection.AzureADCS,
|
AppConnection.AzureADCS,
|
||||||
AppConnection.AzureKeyVault,
|
AppConnection.AzureKeyVault,
|
||||||
AppConnection.Chef
|
AppConnection.Chef,
|
||||||
|
AppConnection.DNSMadeEasy
|
||||||
];
|
];
|
||||||
|
|
||||||
export const listAppConnectionOptions = (projectType?: ProjectType) => {
|
export const listAppConnectionOptions = (projectType?: ProjectType) => {
|
||||||
@@ -223,8 +224,7 @@ export const listAppConnectionOptions = (projectType?: ProjectType) => {
|
|||||||
getNorthflankConnectionListItem(),
|
getNorthflankConnectionListItem(),
|
||||||
getOktaConnectionListItem(),
|
getOktaConnectionListItem(),
|
||||||
getRedisConnectionListItem(),
|
getRedisConnectionListItem(),
|
||||||
getChefConnectionListItem(),
|
getChefConnectionListItem()
|
||||||
getDNSMadeEasyConnectionListItem()
|
|
||||||
]
|
]
|
||||||
.filter((option) => {
|
.filter((option) => {
|
||||||
switch (projectType) {
|
switch (projectType) {
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ export const dnsMadeEasyInsertTxtRecord = async (
|
|||||||
credentials: { apiKey, secretKey }
|
credentials: { apiKey, secretKey }
|
||||||
} = connection;
|
} = connection;
|
||||||
|
|
||||||
logger.info({ hostedZoneId, domain, value }, "Inserting TXT record for DNS Made Easy");
|
logger.info({ hostedZoneId, domain }, "Inserting TXT record for DNS Made Easy");
|
||||||
try {
|
try {
|
||||||
await request.post(
|
await request.post(
|
||||||
getDNSMadeEasyUrl(`/V2.0/dns/managed/${encodeURIComponent(hostedZoneId)}/records`),
|
getDNSMadeEasyUrl(`/V2.0/dns/managed/${encodeURIComponent(hostedZoneId)}/records`),
|
||||||
@@ -65,7 +65,7 @@ export const dnsMadeEasyDeleteTxtRecord = async (
|
|||||||
credentials: { apiKey, secretKey }
|
credentials: { apiKey, secretKey }
|
||||||
} = connection;
|
} = connection;
|
||||||
|
|
||||||
logger.info({ hostedZoneId, domain, value }, "Deleting TXT record for DNS Made Easy");
|
logger.info({ hostedZoneId, domain }, "Deleting TXT record for DNS Made Easy");
|
||||||
try {
|
try {
|
||||||
// First, list records to find the record ID
|
// First, list records to find the record ID
|
||||||
const listRecordsResponse = await request.get<{
|
const listRecordsResponse = await request.get<{
|
||||||
|
|||||||
Reference in New Issue
Block a user