From 8c26b23cd58a5e05247b2059355227ee78ad0f96 Mon Sep 17 00:00:00 2001 From: Muse Mulatu Date: Fri, 13 Dec 2024 09:49:12 -0700 Subject: [PATCH] fix: pass CF_ORIGIN_CA_ISSUER_API_TOKEN to API --- internal/utilities/utilities.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/internal/utilities/utilities.go b/internal/utilities/utilities.go index ddf212977..77b8c5137 100644 --- a/internal/utilities/utilities.go +++ b/internal/utilities/utilities.go @@ -96,7 +96,8 @@ func CreateClusterRecordFromRaw( PrivateKey: viper.GetString("kbot.private-key"), }, CloudflareAuth: apiTypes.CloudflareAuth{ - Token: os.Getenv("CF_API_TOKEN"), + APIToken: os.Getenv("CF_API_TOKEN"), + OriginCaIssuerKey: os.Getenv("CF_ORIGIN_CA_ISSUER_API_TOKEN"), }, } @@ -176,7 +177,8 @@ func CreateClusterDefinitionRecordFromRaw(gitAuth apiTypes.GitAuth, cliFlags typ PrivateKey: viper.GetString("kbot.private-key"), }, CloudflareAuth: apiTypes.CloudflareAuth{ - APIToken: os.Getenv("CF_API_TOKEN"), + APIToken: os.Getenv("CF_API_TOKEN"), + OriginCaIssuerKey: os.Getenv("CF_ORIGIN_CA_ISSUER_API_TOKEN"), }, AzureDNSZoneResourceGroup: cliFlags.DNSAzureRG, }