Cloudflare's secrets functionality & Mailjet?

Trying to authenticate with Mailjet and finding send mail errors. API key and secret are correct and have the necessary permissions on Mailjet's side. If everything seems correct but Mailjet rejects it. Also trying Mailgun. Cloudflare Worker global encrypted keys sent as a base64 authorization header, the authorization header is formatted correctly. Is the secret functionality a bug in Workers?
kurtleblanc44d ago
If secret values are not visible within Wrangler or Cloudflare dashboard after you define them. This means that sensitive data, including passwords or API tokens, should always be encrypted to prevent data leaks. Sounds like this means even when formatted correctly will always be encrypted even at the Mailjet endpoint? While I'm new to Workers. Currently learning about Worker Environments and setting up environment variables and environment application keys. This might be helpful to investigate as to why I'm having failure issues. I've not yet tried using --env production at the end of my wrangler secret put commands.
Chaika43d ago
I'm not sure I fully understand your question but secrets can be accessed the same as normal environment variables in Workers, that is they're in plaintext inside of a Worker. The only difference is you can't see them in the dashboard/wrangler and they're not needed to be set in the .toml for --remote dev or live workers. For local testing you'd want them in .dev.vars
kurtleblanc43d ago
Secrets sent from worker to endpoint for auth failed. I thought I was in a prod env but maybe not? I'm building a serverless form handler environment variable works fine until I encrypt it. Then the error: ReferenceError: "SECRET_KEY" is not defined. Okay found that this worked --> wrangler secret put SECRET_KEY --env production
Want results from more Discord servers?
Add your server
More Posts
Where to find API endpoints to create internal/external hostnames?I have a Cloudflare tunnel setup to my home network for some personal self-hosted services. While lethird party github option for cloudflare pagesIs there a way I could have cf pages pull from forgejo?After clearing all caches, the svg images of 3 URLs cannot be opened.After clicking to clear all caches on cloudflare, the svg images of 3 URLs cannot be opened. Does anHelp setting up worker for discord botHello, I wanted to host a discord bot that embeds tiktok links in my friends server. I found this reRedirect not working when transforming via Workers onError eventHi folks, I have a worker that resizes images; everything works well except when the animated GIF ican i run --force here ?can i run --force here ?Workers KV get throws TypeError: Cannot read properties of undefined (reading 'get')My wrangler.toml file looks like this: ``` kv_namespaces = [ { binding = "BH_API_KEYS", id = "xxxPaid for the Services.Paid for support, my site is under DDOs attacks I would like a dev to help me resolve this issue. passh over cloudlare tunnel with iPhoneHi, I successfully got an ssh connection through a cloudflare tunnel on windows but it worked becausView bandwidth usage by pages website?Is there any way to see how much bandwidth a pages project has used?Exporting WAF Logs on Business planIs it possible to use the API to export the WAF logs and then i can parse and import it to an externWorker Loop and error because or External rendering serviceI face an issue... I use a worker that loads a page on an external site but I see a strange Loop comContacting by chat impossible or nightmare?The support system is not showing any option accessing to the live chat.... Can someone help me or gFeature Request: Route Zone LinkA small dashboard feature that would make things a bit more seamless would be adding a link to the rpricing of web3?Hi guys, I am trying to find the pricing of the ethereum web3 gateway. Since it's a usage-based billWebsite domain stuck at verifying but subdomains workingI have a Pages project and I'm trying to add a domain to it. So the site has been added under Websit