diff --git a/internal/utilities/utilities.go b/internal/utilities/utilities.go index ddf21297..77b8c513 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, }