Wykres commitów

69 Commity (d0b64db08d05f6d6d539da95e40ef39141b1a550)

Autor SHA1 Wiadomość Data
Florian Mickler 2317916f93 fix file upload in selinux enabled environments
docker-compose.yml:
	 :z on volume mounts relabels the directory to enable access for all docker container
	 :Z on volume mounts relabels the directory to enable access for this specific docker container
	Some background:
		https://www.projectatomic.io/blog/2015/06/using-volumes-with-docker-can-cause-problems-with-selinux/
		https://docs.docker.com/release-notes/docker-compose/ (-> Syntax introduced in v1.4.0 from 2015-08-04)

	Since these volumes are designed only for use by webodm a relabeling to allow docker containers to have access seems resonable.

webodm/settings.py:
	The change in webodm/settings.py is necessary, because else the webapp will create big upload files in /tmp and move them to the final destination afterwards. Which means they will have container specific MCS context selinux labels applied to them. If the tmp files are created under MEDIA_ROOT, which has the :z labels applied to it, the files will get a label that is accessible from all docker containers.

	Some background:
		https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/selinux_users_and_administrators_guide/sect-security-enhanced_linux-working_with_selinux-selinux_contexts_labeling_files
2020-01-30 23:10:41 +01:00
Piero Toffanin 5577115008 Make CORS settings relaxed again (broken due to Django 2.1 update) 2019-07-12 23:03:01 -04:00
Piero Toffanin 8bc15e4562 WO_DEV tweaks 2019-07-01 12:02:31 -04:00
nchamo 94ba5257d5 Now plugins are watched in dev mode 2019-07-01 10:57:52 -03:00
Piero Toffanin 7e1705017d Removed copy to clipboard, better save to text 2019-06-25 15:46:40 -04:00
Piero Toffanin 0fca052900 Upgraded Django to 2.1 2019-01-16 10:47:35 -05:00
Piero Toffanin 83fd1e9336 Skip boot code while migrating (speed-up, permission issue fix) 2018-09-12 10:42:09 -04:00
Piero Toffanin 572abd8db9 Added unit tests for grass engine 2018-05-13 13:30:44 -04:00
Piero Toffanin e619f82173 Removed task result expiries key 2018-04-22 15:00:16 -04:00
Piero Toffanin 8317283b87 Faster timeout on update_node_info(), oom preferences 2018-04-22 14:49:20 -04:00
Piero Toffanin 480a20d9c7 Added max-tasks-per-child to workers 2018-04-19 14:55:09 -04:00
Piero Toffanin 38c8db0037 Changed DEBUG default, added restart on failure on all services 2018-04-19 14:45:33 -04:00
Piero Toffanin 3a55dea1b3 CORS update, Safari text mime fix 2018-03-31 13:08:56 -04:00
Piero Toffanin ae0a0cbf67 Volume measurements! Processing done in celery, updated README 2018-03-29 17:28:15 -04:00
Piero Toffanin b1fbf61fcc Deprecation changes, package updates 2018-03-11 10:51:55 -04:00
Piero Toffanin 4fea36fc7e posm-gcpi integration, django template inclusion, minor refactoring 2018-03-01 16:29:23 -05:00
Piero Toffanin 2735942409 Added support for server resize, in-browser resize, or no resize 2018-02-19 15:50:26 -05:00
Piero Toffanin 510b1db237 Fixed unit tests 2018-02-17 12:35:03 -05:00
Piero Toffanin d9f1e7a154 Fixed some unit tests 2018-02-16 17:05:09 -05:00
Piero Toffanin 1aedfd5c7a Worker unit tests, changed version number 2018-02-16 15:07:53 -05:00
Piero Toffanin 22c3e66c02 Removed scheduler code, background decorator, added Celery workers, migrated code, added SharedTestWatch 2018-02-15 16:23:29 -05:00
Piero Toffanin e03e884ffc minWebodmVersion check in plugins 2018-02-09 13:46:45 -05:00
Piero Toffanin ab0f1f8d76 Changed iframe code, removed x-frame headers, js undefined reference error 2017-12-05 15:18:01 -05:00
Piero Toffanin 9c40f2d31b Updated readme, django debug and ssl settings 2017-11-18 10:55:22 -05:00
Piero Toffanin cf76258abf More CSS tweaks 2017-11-09 12:37:04 -05:00
Piero Toffanin d3ca3a53be Last CSS changes, colors look OK 2017-11-09 11:31:17 -05:00
Piero Toffanin c7793368cd CSS changes for theme support 2017-11-08 15:13:35 -05:00
Piero Toffanin 026d93cb79 SCSS theme file online compilation 2017-11-07 16:48:27 -05:00
Piero Toffanin c4484ef317 Added HTML insertion tags, CSS fixes 2017-11-07 13:40:12 -05:00
Piero Toffanin 913dccb8cf CodeMirror widget, CSS/HTML fields 2017-11-06 17:43:47 -05:00
Piero Toffanin b255fa8d6e Started adding the possibility to customize colors, app name 2017-11-06 13:45:14 -05:00
Philipp Wesner e41f400ded save generated secret key when first time generated 2017-07-28 16:57:50 +02:00
Piero Toffanin d376a1e779 Allow more files to be handled (now bound mostly by the amount of RAM available) 2017-07-10 17:41:37 -04:00
Piero Toffanin 913c8fe777 Avoid resending auto_processing_node param for each image, disable limit on DATA_UPLOAD_MAX_NUMBER_FIELDS 2017-07-10 15:13:23 -04:00
Piero Toffanin 874d2cbcb3 Turned DEBUG=True by default for ease of error reporting 2017-07-10 14:21:59 -04:00
Piero Toffanin 40d3a03fa5 Automatically generate SECRET_KEY on first startup 2017-07-10 13:28:06 -04:00
Piero Toffanin f08517bab9 Increased FILE_UPLOAD_MAX_MEMORY_SIZE 2017-07-10 12:38:32 -04:00
Piero Toffanin 405cc5cb20 Upgraded to django 1.11.1 (fix GDALClose warning), upgraded django rest framework, django filters, breaking API changes for upgrades 2017-05-21 14:18:56 -04:00
Piero Toffanin 197a993d9e Added gunicorn, nginx, modified code to build static assets, check debug settings, apscheduler sync 2017-05-19 16:15:26 -04:00
Piero Toffanin 3c74bf8bba Added JWT token passing via querystring 2017-04-10 17:19:04 -04:00
Piero Toffanin 8fe49d16fa Added CORS module to Django 2017-03-21 16:45:14 -04:00
Piero Toffanin b21050340f Merge pull request #111 from pierotofy/docs
Cumulative update that mainly takes care of writing an initial complete documentation for WebODM's API.
2017-03-03 08:40:31 -05:00
Piero Toffanin 2461e0701c Removed swagger api viewer 2017-03-01 12:46:01 -05:00
Piero Toffanin 61d3d1c55b Update settings.py
Changed ALLOWED_HOSTS to be very permissive
2017-02-11 10:25:00 -05:00
Piero Toffanin 75153c18f6 Test access tokens, lengthened expiration time 2017-02-08 14:14:24 -05:00
Piero Toffanin 199ffbbfdf Added JWT auth, fixed processing lock issue wiof removal of tasks from nodes that are offline 2017-02-08 12:30:11 -05:00
Piero Toffanin 209a1b5603 TestWatch class to monitor and intercept on demand multithreaded calls, changed location of assets during testing 2017-02-07 11:43:17 -05:00
Piero Toffanin dcdf69feb9 from_pgraster and to_pgraster out-of-db support 2016-12-10 13:28:34 -05:00
Piero Toffanin 2d1bda4017 Added swagger viewer 2016-11-16 15:37:35 -05:00
Piero Toffanin 84541569bf Fixed a performance issue with django's ORM 2016-11-10 12:26:04 -05:00