| 06:24 | * | andifi[m] is now known as andifi[m] |
| 09:01 | * | friedrich[m]1 has quit (Quit: Idle for 30+ days) |
| 15:20 | tool172[m] | symbioquine: It always has CVS vulnerabilities on BSD usually including SQL injection techniques. |
| 15:26 | symbioquine[m] | Specifically on BSD? |
| 15:27 | tool172[m] | yes sir. I run a Freebsd home server on a xeon backbone. |
| 15:27 | tool172[m] | Nas, nextlcoud, webserver, mediaserver, etc |
| 15:27 | tool172[m] | parts are open to the internet |
| 15:28 | symbioquine[m] | No, I mean it's surprising to me that the vulnerbilities would be specific to BSD. |
| 15:28 | tool172[m] | unless they cleaned it up |
| 15:28 | tool172[m] | last two updates i did had open cvs |
| 15:28 | tool172[m] | most likely to all |
| 15:28 | tool172[m] | it's the web server that's the problem |
| 15:30 | tool172[m] | correction, the php scripting in the web serving |
| 15:30 | tool172[m] | sorry, i'm updating my dev environment right now |
| 15:30 | symbioquine[m] | But phpmyadmin doesn't include a web server (unless you choose a docker container or something) the vulnerbilities which phpmyadmin would be specifically responsible for would be at the php implementation layer. |
| 15:31 | symbioquine[m] | Don't get me wrong, there definitely is a steady stream of issues; www.cvedetails.com/vulnerability-list/ve |
| 15:32 | tool172[m] | i hear ya |
| 15:32 | tool172[m] | i just turn it on and shut it off on my apache server as needed |
| 15:32 | symbioquine[m] | But I think it may require a bit more nuanced evaluation since many large php projects have similar vulnerability history; |
| 15:32 | symbioquine[m] | * Drupal: www.cvedetails.com/vulnerability-list/ve |
| 15:32 | symbioquine[m] | * Wordpress: www.cvedetails.com/vulnerability-list/ve |
| 15:37 | mstenta[m] | my two cents (FWIW): i stopped using phpmyadmin because it's just another thing to stay on top of with updates, increases attack surface, etc - when there are alternatives (eg: pure client apps like MySQL Workbench) that obviate the need for it entirely |
| 15:38 | mstenta[m] | but to each their own! i know a lot of folks just run it in dev too |
| 15:38 | mstenta[m] | i am curious to try the PHPStorm db features, since i'm already using PHPStorm, and MySQL Workbench isn't always super stable :-) |
| 15:39 | tool172[m] | i'm about to plugin with it today |
| 15:39 | tool172[m] | once i get my docker updated |
| 15:39 | mstenta[m] | also fwiw: i'm going to try to make postgresql the default for farmOS 2.x |
| 15:40 | mstenta[m] | MySQL Workbench does not support postgresql |
| 15:40 | mstenta[m] | there is an equivalent to phpmyadmin for postgresql |
| 15:40 | mstenta[m] | but i may just make the switch to using PHPStorm since it support postgresql as well |
| 15:40 | symbioquine[m] | But postgre has a great "workbench" tool |
| 15:40 | mstenta[m] | * but i may just make the switch to using PHPStorm since it supports postgresql as well |
| 15:40 | symbioquine[m] | *postgres |
| 15:40 | tool172[m] | it'll be fine |
| 15:41 | mstenta[m] | yea it looks great! i played with it a bit |
| 15:41 | tool172[m] | postgres i'm very familiar with from college |
| 15:41 | mstenta[m] | but i come back to: i want something i can use in dev and prod |
| 15:41 | tool172[m] | that was in 06' |
| 15:41 | mstenta[m] | and i don't want to install that on prod |
| 15:41 | mstenta[m] | just easier to have a consistent solution in both envs |
| 15:42 | symbioquine[m] | It's a good point about the attack surface area... my current mitigation is that I just bind the port only to localhost and use an SSH tunnel when I need to access it... |
| 15:42 | mstenta[m] | ah yea that works |
| 15:42 | tool172[m] | i literally enable and disable it as needed |
| 15:42 | tool172[m] | from the http.conf |
| 15:43 | mstenta[m] | still - i really like the idea of only running a client on my laptop - keeps the prod deployment simpler |
| 15:43 | symbioquine[m] | yeah |
| 15:43 | mstenta[m] | i wonder if either of them can connect to remote dbs? |
| 15:43 | mstenta[m] | if so you could run phpmyadmin in dockre locally |
| 15:43 | symbioquine[m] | Why not? Just forward the port with SSH... |
| 15:44 | mstenta[m] | true |
| 15:44 | symbioquine[m] | You could even use github.com/jnovack/docker-autossh to persistently expose the tunnel within a docker-compose stack... |
| 15:45 | mstenta[m] | near |
| 15:45 | mstenta[m] | * neat |
| 15:46 | mstenta[m] | i guess the other thing that would need to do, though, is tunnel through ssh... so you don't actually expose the db to the public at all |
| 15:46 | mstenta[m] | (or maybe that's what you meant) |
| 15:46 | symbioquine[m] | Yep, exactly. |
| 15:46 | tool172[m] | i use vpn and ssh |
| 15:46 | symbioquine[m] | I can't think of a reason I would ever expose the DB port beyond localhost. |
| 15:47 | mstenta[m] | i generally put DB on another server, with firewall rules so only the web server can access it |
| 15:47 | symbioquine[m] | well, at least not within a single-host environment |
| 15:47 | symbioquine[m] | Totally different situation once you start scaling up with multiple hosts. |
| 15:47 | tool172[m] | i use bsd users and groups to limit that |
| 15:47 | mstenta[m] | yea |
| 15:47 | tool172[m] | then run jails or vms with differnt ips and ports |
| 15:47 | tool172[m] | to limit access |
| 15:48 | tool172[m] | overhead is having mulitple mysql installs |
| 15:48 | tool172[m] | but data is cheap, and if they hacked the account, it's highest directory is the vm |
| 15:50 | symbioquine[m] | Once you have multiple hosts, firewall and/or some sort of network isolation is the way to go for sure. |
| 15:50 | tool172[m] | i use a software one on the server and my router |
| 15:50 | tool172[m] | i have like 5 pages on config notes |
| 16:11 | tool172[m] | in docker for the dev site what is the database location db@localhost? |
| 16:12 | tool172[m] | i'm trying to connect it to my phpstorm |
| 16:12 | mstenta[m] | `farm@db` |
| 16:12 | mstenta[m] | db name is `farm` |
| 16:12 | mstenta[m] | db host is `db` |
| 16:13 | mstenta[m] | (assuming you use the `docker-compose.development.yml` example |
| 16:13 | mstenta[m] | * (assuming you use the `docker-compose.development.yml` example) |
| 16:13 | mstenta[m] | farmos.org/development/docker/#database- |
| 16:13 | tool172[m] | thanks. i'm going to refill my joe |
| 16:14 | * | sent a long message: < matrix.org/_matrix/media/r0/download/mat > |
| 16:14 | * | sent a long message: < matrix.org/_matrix/media/r0/download/mat > |
| 16:14 | mstenta[m] | gotta run - talk to you all later! |
| 16:15 | mstenta[m] | good luck tool172 ! |
| 16:15 | tool172[m] | later |
| 16:23 | paul121[m] | tool172: you prob figured this out, in PHPStorm the host is `localhost` not `db` - I believe `db` is only recognized in the docker containers? |
| 16:24 | tool172[m] | i'm having to rebuild all since i forgot my last creds |
| 16:24 | tool172[m] | i'll get back to that in a bit |
| 16:25 | mstenta[m] | Yes that's true! Good point "paul121" (matrix.to/#/@paul121:matrix.org) |
| 16:25 | mstenta[m] | And that's assuming you have 3306 opened from the container |
| 16:59 | tool172[m] | it's opened by the docker yml |
| 17:14 | * | harry[m]2 has joined |
| 20:06 | * | kader[m] has joined |
| 20:51 | * | brent[m]2 has joined |
| 23:43 | * | JustTB has joined |