this post was submitted on 22 Oct 2023
1 points (100.0% liked)

Self-Hosted Main

504 readers
1 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

For Example

We welcome posts that include suggestions for good self-hosted alternatives to popular online services, how they are better, or how they give back control of your data. Also include hints and tips for less technical readers.

Useful Lists

founded 1 year ago
MODERATORS
 

Hello guys, I'm have little to no experience when i have to deal with networking or cybersecurity.

I recently created a backend RESTful API on my Ubuntu VM on my personal desktop and dockerized the app, connecting it to a bridge network named 'tunnel.' I also have the Cloudflare Docker hosted in the same 'tunnel' network, which allows my local RESTful API Docker to be accessible via my domain and exposed to the internet.

Can anyone help me understand if this setup poses any security risks to my home network?

If so, what should I do to help reduce the risk? I have read that firewall helps, but does a restful api container developed with golang requires it?

you are viewing a single comment's thread
view the rest of the comments
[–] Sheeesssshhhhhh@alien.top 1 points 1 year ago (2 children)

My APIs require just a simple api key to be placed in a json header to make a request.

It is just some personal android apps connected to these APIs to interact with certain databases. While there's no sensitive data involved, I am more concerned about specifically, if there's a possibility that an attacker could use this to gain access to my personal computer or other devices connected to my home network.

Should I create a sub network and get a raspberry pi to host these apps?

[–] Simon-RedditAccount@alien.top 1 points 1 year ago (2 children)

A DMZ is always recommended in such cases.

> Should I create a sub network and get a raspberry pi to host these apps?

Yes, it's always better. However, Pi may be overpriced now. Take a look at NUC-sized miniPCs, for roughly the same price you'll get much more computing power.

[–] porksandwich9113@alien.top 1 points 1 year ago (1 children)

Pi's have been regularly in stock for months now at MSRP.

https://rpilocator.com/?country=US

[–] weeklygamingrecap@alien.top 1 points 1 year ago

This new wave of "buy a core i7 4th gen USFF PC instead of a Pi" is wild. It's really case by case of what you are doing but lots of people seem to push "proxmox and tons of VMs! or GTFO" on everyone.

[–] Sheeesssshhhhhh@alien.top 1 points 1 year ago

But ya, i mentioned in the other comment that I placed an order this morning.

After a light research on the comparison, I guess I will cancel the order for it. Is there any particular model that you recommend for several dockerized golang apps?

[–] homemediajunky@alien.top 1 points 1 year ago

Just curious, what kind of custom app are you developing?