Skip to content

Commit

Permalink
adjust cloudflare integration
Browse files Browse the repository at this point in the history
fix refresh on save
  • Loading branch information
JohnDuprey committed Feb 8, 2025
1 parent ca8bb4c commit ce38565
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const CippIntegrationSettings = ({ children }) => {
<>
{integrations.isSuccess && extension ? (
<CippFormSection
queryKey={"Integrations"}
relatedQueryKeys={"Integrations"}
formControl={formControl}
formPageType="Integration"
title={extension.name}
Expand Down
28 changes: 19 additions & 9 deletions src/data/Extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,17 @@
"type": "switch",
"name": "Hudu.MonitorDomains",
"label": "Monitor domains in Hudu"
},
{
"_comment": "I have added this switch as a logic check for the Hudu integration script to check against when CIPP first connects to the Hudu Instance via Connect-HuduAPI.ps1",
"type": "switch",
"name": "Hudu.CFEnabled",
"label": "Connect to HUDU through CloudFlare Tunnel with the Service Account credentials.",
"condition": {
"field": "CFZTNA.Enabled",
"compareType": "is",
"compareValue": true
}
}
],
"mappingRequired": true,
Expand Down Expand Up @@ -459,7 +470,7 @@
},
{
"name": "CloudFlare ZTNA Tunnel",
"id": "CTZTNA",
"id": "CFZTNA",
"type": "ztna",
"cat": "Zero Trust Network Tunnel",
"logo": "/assets/integrations/cloudflare.png",
Expand All @@ -478,21 +489,20 @@
}
],
"SettingOptions": [
{
"type": "switch",
"name": "CFZTNA.Enabled",
"label": "Enable Integration"
},
{
"type": "password",
"name": "CloudFlareClientID.APIKey",
"name": "CFZTNA.ClientID",
"label": "CloudFlare Tunnel Service Account Client ID"
},
{
"type": "password",
"name": "CloudFlareAPIKey.APIKey",
"name": "CFZTNA.APIKey",
"label": "CloudFlare Tunnel Service Account Client Secret"
},
{
"_comment": "I have added this switch as a logic check for the Hudu integration script to check against when CIPP first connects to the Hudu Instance via Connect-HuduAPI.ps1",
"type": "switch",
"name": "Hudu.CFEnabled",
"label": " Connect to HUDU through CloudFlare Tunnel with the above Service Account credentials."
}
],
"mappingRequired": false
Expand Down

0 comments on commit ce38565

Please sign in to comment.