mackenzie
mackenzie
CDCloudflare Developers
Created by mackenzie on 2/29/2024 in #pages-help
Crosspost of question on Pages app with ZeroTrust/Access protection
2 replies
CDCloudflare Developers
Created by mackenzie on 2/28/2024 in #general-help
Cloudflare pages app behind ZeroTrust/Access
I have a working Pages app on Cloudflare that I would now like to protect using ZeroTrust Access. I have set it up, and connected to my Google Workspace, created an Access Group with rules etc. Reading the Docs I have three questions 1) a Pages app I deploy qualifies as a "self-host" app, right? 2) in the "Add an application" page of Zero Trust UI the "self-hosted" option is greyed out and the tooltip says "...can be added one I have an active Zone on cloudflare" - how do I create an active zone? (doc link?) 3) Then I can use the methods & functions described in https://developers.cloudflare.com/pages/functions/plugins/cloudflare-access/ for my Pages app to get GroupId, etc, right?
16 replies
CDCloudflare Developers
Created by mackenzie on 2/20/2024 in #workers-help
Is it possible to receive UDP packets in a worker?
I'm looking at having some very small IoT devices send a UDP packet with some sensor data, and wondered if there is a way to receive that (and respond) in a worker (in rust if possible would be great)
6 replies
CDCloudflare Developers
Created by mackenzie on 2/6/2024 in #workers-help
Example rust workers-rs code for sending email
I'm following this blog post to send email from a worker, written in rust using workers-rs crate: https://blog.cloudflare.com/sending-email-from-workers-with-mailchannels I wondered if there is any example rust code for doing the same, as my own attempt is looking very messy and wanted to find a more canonical example. Thanks
1 replies
CDCloudflare Developers
Created by mackenzie on 1/19/2024 in #pages-help
Pages project (with functions) written in rust
I would like to continuing using rust in the front-end aspect of my project (using workers and DO already via workers-rs), and I am interested in using Pages, with Functions. Does anyone know how much can be done using any rust-based web framework, or workers-rs to write functions, etc? I'm just trying to understand any "rustiness" available in Pages with Functions before getting started, as otherwise I might go with a different option (e.g. a rust web project deployed elsewhere).
10 replies
CDCloudflare Developers
Created by mackenzie on 1/19/2024 in #pages-help
wrangler or C3
I want to start my first Pages project. The guide here:; https://developers.cloudflare.com/pages/get-started/guide/ says "There are three ways to set up a Pages project: Connecting your Git provider to Pages. Deploying your prebuilt assets right to Pages with Direct Upload. Using Wrangler from the command line." but then in the content of that page, it lists: - Guide - C3 - DirectUpload and no mention of wrangler. Question: - Can I use wrangler and ignore the C3 docs - Are there any docs on using wrangler for Pages projects (I will search)
5 replies
CDCloudflare Developers
Created by mackenzie on 12/13/2023 in #workers-help
Looking for "design input" on a worker (my first) I'm writing.
The worker receive a message regularly from a client/device. I would like to detect (in the worker) when the client ceases to send the message (or it's significantly overdue). So, it's like a snitch or a watchdog. There will be multiple clients, reporting at different times and periods. I receive a message and it tells me when to expect the next one. What would be a design to detect that a client is overdue? So far, my only thought is: - when receiving a message, store in KV the time the next one is expected. - trigger a worker via cron/timer at a period close to the shortest period of clients - and check if any times in the KV store are earlier than now Any better way to do this?
16 replies