From b68d9885df9f9e2900b00bf357b6fcf10b2ec851 Mon Sep 17 00:00:00 2001 From: Muse Mulatu Date: Wed, 4 Dec 2024 21:19:41 -0700 Subject: [PATCH] feat: read cloudflare origin issuer token --- 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..05f2ce829 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"), + Token: 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, }