HNHacker News
TopNewBestAskShowJobs

whodev

76 karma · joined February 24, 2022

submissionscomments
whodev··on Ask HN: Running Untrusted Code as a Service?
Why not use https://any.run?
whodev··on Ask HN: Does Cloudflare block HN comments if you have code blocks in a reply?
I was kinda with you until you made this statement: > No, "defense in depth" is not a valid excuse to use a WAF anyway, because it provides no real defense!

I have to disagree here. You are making assumptions that every developer in an org will always do the correct thing and deploy code that won't be exploitable to SQL injections, XSS, file inclusion, etc... That's just not the case. I'm all for doing the correct thing, and not just performing security theater, but WAFs do offer some protection. You need multiple layers of security covering the holes that may left in other layers. And a WAF can be one of those layers of protection.

whodev··on Ask HN: Tech stack for small SaaS side projects as a solo developer?
I answered this before on a pretty similar question a few days ago, but my go to stack for my small SaaS "startup" has been the HAG (HTMX, AlpineJs, Go) stack.

With this you stack you have a dead simple web application that can be completely self contained in the executable with `go:embed`. That makes deployment an absolute breeze. Since I also attempt to use as few third party packages as possible and the ones I do use are pure Go, I can containerize my app and deploy it with Google's distroless base image. That helps in reducing my attack surface.

And while my app is a monolith using an embedded LibSQL database (SQlite), I can easily change my app configurations via environment variables to use a remote LibSQL server and then scale my app behind a load balancer with more servers.

It's honestly such a simple yet effective stack for development. My one web app handles both the api and web requests, I can easily scale, and building my app is fast.

Edit: I should also preface, that all the HTML/CSS/JS used by my website are (mostly) vanilla and developed by myself. So no use of a CSS library like Bootstrap, Bulma, or Tailwind. And also no use of JS libraries like JQuery. I do use HTMX and Alpine, but they are both being embedded into the executable like I stated above.

whodev··on Ask HN: What web stack would you use for startup, and why?
To be honest, while I have heard of Planetscale I never really looked into it. It does seem really interesting, but as you can probably gather from my answer I'm really into simplicity and ease of use. And since Turso is powered by LibSQL (SQLite fork) it is dead simple to use. Their pricing is also very predictable which and with a generous free tier.

HTMX + Go is such a great combo for those who don't necessarily enjoy JS/TS. I just want a good user experience and also a good dev experience. And for me, HTMX + Go is that. I can create reactive websites while working in my preferred language. I'm also shipping minimal amount of data to the user so and using as little CPU and memory as I can.

whodev··on Ask HN: What web stack would you use for startup, and why?
I've started using what I've dubbed the HAG (HTMX, AlpineJS, Go) stack for my "startup". It's really simple and easy to get into. I do try to minimize the use of third party packages/modules to reduce my attack surface.

For the rest of your questions,

- Auth: Auth0. Simple to get started, and depending on your plan you can enable SSO for business clients.

- Frontend: Plain ol' HTML, CSS, and minimal JS. This is where HTMX and AlpineJS comes into play. Elements can be updated without a whole page reload creating a better user experience.

- Backend: Go. A language I love to use. Fast, simple, and deployed very quickly.

- Database: Turso. Dead simple, easy to use, and with easy replication to different regions.

My app code is all contained in a monolith, which is deployed onto a dedicated web server. I can either update the server resources or using a load balancer I can deploy more servers running the application to increase scale (if necessary).

whodev··on Better HTTP server routing in Go 1.22
> // Middleware automatically routes "/Foo" to FooController

I don't know why, but I truly do not like this. So if I create a "HelloController" class does the middleware just start automatically routing "/hello" to it?

whodev··on Swing VPN app is a DDoS botnet
I was legit about to say how are they at minimum not using `checkip.amazonaws.com`
whodev··on I Like Powershell
What do you mean with #3? A command like below runs perfectly fine with no PS* specific junk.

``` > Get-Process | Select -Last 5 Name,ProcessName,Company,Path | ConvertTo-Json [ { "Name": "winlogon", "ProcessName": "winlogon", "Company": null, "Path": null }, { "Name": "WmiPrvSE", "ProcessName": "WmiPrvSE", "Company": null, "Path": null }, { "Name": "WMIRegistrationService", "ProcessName": "WMIRegistrationService", "Company": null, "Path": null }, { "Name": "Zoom", "ProcessName": "Zoom", "Company": "Zoom Video Communications, Inc.", "Path": "C:\\Users\\user\\AppData\\Roaming\\Zoom\\bin\\Zoom.exe" }, { "Name": "Zoom", "ProcessName": "Zoom", "Company": "Zoom Video Communications, Inc.", "Path": "C:\\Users\\user\\AppData\\Roaming\\Zoom\\bin\\Zoom.exe" } ] ```

And when you say "Just the common '|fl XXX' expression will trigger this" does that mean you are doing this `<command> | fl X | ConvertTo-Json`? Because if so, that's why your getting all the PS specific junk.

whodev··on Don't use Win32_product to find installed software (2020)
I've had to have this argument so many times when I was working as a desktop tech.
whodev··on Microsoft is preparing to add ChatGPT to Bing
I like bouncing my code problems off ChatGPT, it can give me an answer and I don't feel bad if I forgot something simple. The issue is I've had it give me completely wrong code only for it to be like "I'm sorry" and provide a second incorrect response.
whodev··on WordPress sites under attack from newly found Linux trojan
It's to defang the IP addresses https://defang.me/why.php
whodev··on “Privacy”.com–Yeah Right
I absolutely love Privacy.com for the service they provide. It's fantastic to be able to create a one time use card for a web purchase. I even have one connected to my Walmart app that allows me to pay in store via the QR code.
whodev··on Show HN: IPDetective – An API for IP bot detection
No it's from my VPN. That's what is making me wonder about the data you used. If other intel sources say it's a clean IP not used for bots, I want to know what makes your service say otherwise. Are you labeling all IPs from specific ASN's as bots?
whodev··on Show HN: IPDetective – An API for IP bot detection
I wonder where you get your data from. I checked the dedicated IP I use against other services and they all come back as clean, but yours labelled it as a bot.
whodev··on Bore: A simple CLI tool for making tunnels to localhost
You have to explicitly tell bore which server to serve your client on. At no point do you have to use 'bore.pub'. That is being provided by the developer as a public place if you choose not to run your own bore server.
whodev··on An enhancement request I submitted to Bugzilla 15 years ago was just closed
This reminds me of a GCP issue that was opened in 2011 for users not being able to remove themselves from projects. It affects me still, I got an invite from a friend for a little hobby project he was working and he lost access to his Google and now I can't remove it from my GCP.

https://issuetracker.google.com/issues/35889152?pli=1

← PreviousPage 2 of 2