Skip to content

Commit

Permalink
reuse cloudflare token for dns challenge
Browse files Browse the repository at this point in the history
  • Loading branch information
aktech committed Feb 12, 2025
1 parent 09e2b3f commit dd97d27
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/_nebari/stages/kubernetes_ingress/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,16 +195,16 @@ def input_vars(self, stage_outputs: Dict[str, Dict[str, Any]]):
)
if self.config.certificate.acme_challenge_type == AcmeChallengeType.dns.value:
if None in {
os.environ.get("CLOUDFLARE_DNS_API_TOKEN"),
os.environ.get("CLOUDFLARE_TOKEN"),
os.environ.get("CLOUDFLARE_EMAIL"),
}:
raise ValueError(
"Environment variables 'CLOUDFLARE_DNS_API_TOKEN' and 'CLOUDFLARE_EMAIL' "
"Environment variables 'CLOUDFLARE_TOKEN' and 'CLOUDFLARE_EMAIL' "
"must be set for DNS challenge type ('acme_challenge_type: dns')"
)
else:
cert_details["cloudflare-dns-api-token"] = os.environ.get(
"CLOUDFLARE_DNS_API_TOKEN"
"CLOUDFLARE_TOKEN"
)
cert_details["cloudflare-email"] = os.environ.get("CLOUDFLARE_EMAIL")
return {
Expand Down

0 comments on commit dd97d27

Please sign in to comment.