←back to thread

2093 points pabs3 | 2 comments | | HN request time: 0.424s | source
Show context
BatmansMom ◴[] No.42141598[source]
>Since the physical device was satisfactory, the next step was writing a simple website that could drive the display.

>A Compose page my siblings and I write messages and save them to be displayed.

Is there a risk of a malicious actor discovering the website and writing in their own messages? I would think building user authentication in to the MomBoard website might be a bit heavyweight. Whats the best way to do this?

replies(1): >>42141929 #
1. S04dKHzrKT ◴[] No.42141929[source]
When you have a site with a fixed, tiny amount of users, I'd opt for HTTP basic auth (via HTTPS). Whether you're using nginx, Traefik, Caddy, etc..., it's very easy to setup. If you're using something like Cloudflare Pages, I would guess you could setup a worker to handle it for you (though I'm not familiar enough with workers to be sure).
replies(1): >>42142716 #
2. Normal_gaussian ◴[] No.42142716[source]
You're right; its easy enough with Cloudflare Workers. They have a sample that is pretty decent:

https://developers.cloudflare.com/workers/examples/basic-aut...