lodgeit-labs / accounts-assessor

This repository hosts a practical research into leveraging logic programming to solve accounting problems.
GNU Affero General Public License v3.0
7 stars 1 forks source link

(demo) server security #16

Closed koo5 closed 6 months ago

koo5 commented 4 years ago
koo5 commented 4 years ago

i dislike mod_wsgi: 1) it's still too much in development, and not a big team. It's C code, so vulnerabilities are likely. If we use the ubuntu packaged version, we are probably stuck with default ubuntu python version. alternative: proxying relevant uris through apache, django running standalone. Possibly single dedicated root uri, let's say request/.

koo5 commented 4 years ago

https://github.com/GrahamDumpleton/mod_wsgi-docker/issues/34 warpdriive seems to be alive. or: https://github.com/carlostighe/apache-flask

koo5 commented 4 years ago

i'm finding the docker stack/swarm/compose jungle rather suboptimal for managing deployment even just on my dev machine. But this is probably evolving in the right direction: https://www.docker.com/blog/simplifying-kubernetes-with-docker-compose-and-friends/ https://skaffold.dev/

otoh, the whole situation with security updates in docker, and the whole culture of maximally minimal images configured by tweaking lenghty bash command lines..meh https://news.ycombinator.com/item?id=10782897 https://github.com/docker-slim/docker-slim (not relevant but nice)

better way to run python webapps? : https://github.com/phusion/baseimage-docker#whats_inside https://github.com/phusion/passenger-docker

koo5 commented 3 years ago

also todo https://github.com/lodgeit-labs/accounts-assessor/issues/17

koo5 commented 3 years ago

to support trusted users

basicauth everything

to support untrusted users

dont trust swipl

use docker api to restart worker after every request

dont trust django dev server

use https://github.com/phusion/passenger-docker instead of django dev server

dont trust arelle

fix arelle etc issues (github issue)

koo5 commented 9 months ago

this issue is partly outdate but still a great overview.

some more points:

koo5 commented 9 months ago

summed up (WIP) and continued in wiki/Security.md

koo5 commented 6 months ago

done for now

koo5 commented 6 months ago

except the bit about security updates of services deployed via docker-compose etc, this is a general problem.