Commit Graph

183 Commits

Author SHA1 Message Date
Nicolas Maillat
d776d3d71b PHRAS-4022 setup optim (#4467)
* exclude www/thumbnails of chown

* Update entrypoint.sh
2024-02-02 18:27:59 +01:00
Aina Sitraka
d6c21faac0 PHRAS-4019: Session expires with the php default value (#4466)
* fix param in function

* docker - add session management variables

* docker - fix setup entrypoint error

---------

Co-authored-by: Moctar <diouf@alchemy.fr>
2024-02-02 16:02:06 +01:00
Aina Sitraka
71ef4bf1dd PHRAS-4011 : Moving cmd from console to setup - system:clear-cache system:clear-session (#4460)
* cmd clear cache in bin/setup

* Change maintenance state wording
2024-01-22 10:34:13 +01:00
moctardiouf
5c16396d98 PHRAS-3993-fix-maintenance-mode : set as function (#4453)
* PHRAS-3993-fix-maintenance-mode : set as function

* PHRAS-3993-fix-maintenance-mode : remove comments

* PHRAS-3993 add custom maintenace message

* PHRAS-3993 update env file

* PHRAS-3993 add maintenance message exemple to .env

* Update .env

* Update .env documentation

* Change http api error code

---------

Co-authored-by: Nicolas Maillat <maillat@alchemy.fr>
2024-01-04 17:49:30 +01:00
Nicolas Maillat
03d129a329 PHRAS-3997 clear cache before play upgrade (#4451)
* clear cache before play upgrade

* clear session
2023-12-21 15:38:00 +01:00
Nicolas Maillat
02b0445fb4 PHRAS-3991: pre upgrade backup WIP (#4445)
* PHRAS-3991: pre upgrade backup WIP

* wip

* gz option
2023-12-16 11:42:29 +01:00
Nicolas Maillat
0b9a3e01d6 PHRAS-3980 cmd container (#4440)
PHRAS-3980 cmd container for docker compose ready
2023-12-13 12:27:32 +01:00
Nicolas Maillat
9091cf7368 PHRAS-3980 custom worker (#4438)
* PHRAS-3980 removing Blackfire
2023-12-12 14:53:57 +01:00
Nicolas Maillat
670f8601a0 PHRAS-3945 download async config change (#4423)
* PHRAS-3945 change deployment for download async mode and pusher

* wip

* Missing var in setup container - WIP

* quiet option for sensitives values
2023-11-30 13:46:16 +01:00
jygaulier
148b17b9f7 PHRAS-3949_photo-editor-cant-save (#4411)
* add security policy to accept blob:

* leave only default values in gateway container

* wip

* Update entrypoint.sh

---------

Co-authored-by: Nicolas Maillat <maillat@alchemy.fr>
2023-11-17 11:09:42 +01:00
jygaulier
7d703b690f PHRAS-3928_download_async WIP ok to test (#4386)
* WIP/POC DO NOT MERGE
use "pusher" to wait for export-by-email worker to tell client that export is done.
nb: export worker is artificially delayed by 30s !

* WIP OK TO TEST ; DO NOT MERGE

* WIP/POC DO NOT MERGE
use "pusher" to wait for export-by-email worker to tell client that export is done.
nb: export worker is artificially delayed by 30s !

* WIP OK TO TEST ; DO NOT MERGE

* cleanup

* cleanup

* better conf & cleanup

* fix typo

* fix stamp transparency (bump imagine)
fix missing cgu for one file download
better cli feedback
add (re)download link on cli

* fix test

* fix missing js feedback (when worker publish before client subscribes)

* cleanup

* fix "remove stamp" choice

* add default conf

* WIP/POC DO NOT MERGE
use "pusher" to wait for export-by-email worker to tell client that export is done.
nb: export worker is artificially delayed by 30s !

* WIP OK TO TEST ; DO NOT MERGE

* WIP/POC DO NOT MERGE
use "pusher" to wait for export-by-email worker to tell client that export is done.
nb: export worker is artificially delayed by 30s !

* WIP OK TO TEST ; DO NOT MERGE

* cleanup

* cleanup

* better conf & cleanup

* fix typo

* fix stamp transparency (bump imagine)
fix missing cgu for one file download
better cli feedback
add (re)download link on cli

* fix test

* fix missing js feedback (when worker publish before client subscribes)

* cleanup

* fix "remove stamp" choice

* add default conf

* WIP OK TO TEST generates an excel report for async download.
define some env-vars for Pusher (todo: fix entrypoint to add during install)

* fix xl formating for tabs >1
add env_vars to config build

* fix test
2023-10-30 15:08:55 +01:00
moctardiouf
7d23b7613b PHRAS-3892 set content security policies (csp) as env vars (#4375)
* PHRAS-3892 set content security policies (csp) as env vars

* fix diff from master

* PHRAS-3892 update default scp add sources

---------
2023-09-15 21:00:57 +02:00
moctardiouf
4326bc7e3d PHRAS-3904 Add server port on fastcgi https conf (#4370)
* Update entrypoint.sh

* Update entrypoint.sh

* enhance GATEWAY_FASTCGI_HTTPS management script

---------

Co-authored-by: Gaspard Jacobson <52928254+gjacobjn@users.noreply.github.com>
2023-09-07 15:29:19 +02:00
moctardiouf
2c56cff4cd PHRAS-3387 php fpm optimization (#4364)
* set different variables for cli and fpm memory limit

* PHRAS-3387 set fpm variables for pm optimization
2023-08-10 16:10:59 +02:00
Nicolas Maillat
8886a3d548 PHRAS-3891 adding CSP (#4359)
* adding CSP

* csp S3 storage
2023-08-03 14:15:42 +02:00
Nicolas Maillat
d78203441b adding policies for matomo and newrelic (#4358) 2023-08-02 21:38:14 +02:00
Aina Sitraka
c79823a73c google analytics 4 (#4354) 2023-08-01 22:35:58 +02:00
Aina Sitraka
3354c0acb2 fix csp (#4339) 2023-07-20 10:05:56 +02:00
Nicolas Maillat
8d868c3297 PHRAS-3860 Sync phraseanet root account info (#4331)
* user edit command

* PHRAS-3859 set defaut fastcgi-https to off

* PHRAS-3859 fix typo and explain

* edit lastname, firstname, company

* fix

* sync Phraseanet root account

* Update entrypoint.sh

* fix test install

---------

Co-authored-by: aynsix <asr@esokia-webagency.com>
Co-authored-by: Moctar <diouf@alchemy.fr>
2023-07-07 09:42:01 +02:00
moctardiouf
1215f82c30 PHRAS-3859 increase security with headers (#4325)
* fix port value on nginx proxy case

* increase security using headers

* PHRAS-3859 add security set cookie httponly
2023-06-26 10:51:45 +02:00
moctardiouf
71d725e4a0 PHRAS-3859 add security headers : inital commit (#4324) 2023-06-22 17:28:34 +02:00
moctardiouf
86b4472b3c PHARS-3844 gateway container access restriction (#4323)
* PHRAS-3844 manager real ip on nginx

* PHRAS-3844 add restrictions on ip and/or password

* PHRAS-3844 add variable to helm

* PHRAS-3844 change variable names and force ssl

* fix https default value

* PHRAS-3844 fix deny on password usage case

* PHRAS-3844 fix deny on password usage case 2
2023-05-31 22:52:09 +02:00
moctardiouf
21c9747637 PHRAS-3843 change in php-cli and fpm exposition config value (#4313) 2023-05-11 00:00:51 +02:00
Aina Sitraka
de120780f6 PHRAS-3826 ci test (#4300)
switching docker build image and unit test run on github action
2023-04-29 22:13:08 +02:00
Nicolas Maillat
faf179681a chown ftp (#4287) 2023-03-24 20:43:53 +01:00
Nicolas Maillat
82e857aa15 PHRAS-3821 chown cache repo (#4274)
* chown cache for plugins
2023-03-16 08:21:29 +01:00
Nicolas Maillat
32ff2739ab PHRAS-382 delete cache content after plugin install (#4272)
Co-authored-by: Moctar <diouf@alchemy.fr>
2023-03-14 19:19:34 +01:00
Nicolas Maillat
1f1d3b901e PHRAS-3821 chown re-organistion between setup and fpm and worker- wip (#4261)
PHRAS-3821 : chown are now only executed by "setup" container
2023-03-08 17:30:33 +01:00
Aina Sitraka
0339fa1b78 PHRAS-3798 bin/setup - system:config set - return sensitive credential on stdout (#4247)
* system:config use quiet option

* remove -q from some properties

* remove debug auto-install.sh
2023-02-16 15:57:36 +01:00
moctardiouf
c95ae5158b PHRAS-3144 add plugin post install clean cache (#4238)
* PHRAS-3144 add plugin post install script on worker image

* PHRAS-3144 add plugin post install clean cache
2023-01-30 12:29:20 +01:00
moctardiouf
d04a3a0d6e PHRAS-3144 add plugin post install script on worker image (#4212) 2023-01-18 19:01:33 +01:00
Nicolas Maillat
0d43e4f4a2 PHRAS-3794 : populate order MODIFICATION_DATE by default (#4202)
* PHRAS-3794 : MODIFICATION_DATE by default

* Update auto-install.sh

* MODIFICATION_DATE in env file
2023-01-03 11:24:47 +01:00
moctardiouf
dcd0d92bd9 PHRAS-3780 enable opcache zend extension (#4172) 2022-11-07 16:36:03 +01:00
Nicolas Maillat
bd4bca437c - Publish message only when a worker failed (#4168)
- log tail optim
2022-11-01 17:04:07 +01:00
Aina Sitraka
19b4f6d06b task and scheduler log (#4158) 2022-10-25 22:22:26 +02:00
Aina Sitraka
43cd154c87 PHRAS-3760 logs file - remove date from name of current log file - worker (#4154) 2022-10-21 21:21:18 +02:00
Nicolas Maillat
42f44717c6 PHRAS-3736 fix chown on tmp, exit 1 when worker count is wrong (#4156) 2022-10-21 15:25:11 +02:00
moctardiouf
5643ee8912 PHRAS-3318 sp saml - Fix K8S service name on proxy nginx usage (#4149) 2022-10-10 10:17:00 +02:00
moctardiouf
9f349e063b PHRAS-3318 - Fix phraseanet-saml-sp for kubernets use (#4146) 2022-10-05 17:39:01 +02:00
Nicolas Maillat
ac08ec75bc PHRAS-3736: fix elastic index name , fix exit1 on worker count (#4141) 2022-09-29 16:55:35 +02:00
moctardiouf
41d0df432d PHRAS-3748 split dockerfile into multiple runs and fix elasticsearch (#4140)
* PHRAS-3748 split dockerfile into multiple runs and elasticsearch duplicated entry

* PHRAS-3748 add some verbose
2022-09-26 21:44:51 +02:00
moctardiouf
a3e35dbdcd PHRAS-3726 docker env change server_name to hostname and add scheme://hostname:port (#4133)
* PHRAS-3726 change server_name to hostname and add scheme://hostname:port

* PHRAS-3726 allow base url changing during setup
2022-09-16 19:58:47 +02:00
moctardiouf
a3f811546f PHRAS-3736 managed services variables (#4128)
* PHRAS-3736 setting phraseanet application cache for managed services

* PHRAS-3736 removing rabbitmq config from auto-install

* PHRAS-3736 setting elasticsearch params for managed services

* PHRAS-3736 setting elasticsearch params for managed services - fix variale

* PHRAS-3736 setting database params for managed services
2022-09-13 13:25:47 +02:00
moctardiouf
ba5eab7ae0 PHRAS-3734 add maintenance mode to stack (#4122) 2022-09-09 00:57:36 +02:00
moctardiouf
927affb455 PHRAS-3318 - saml service provider container (#4092) 2022-09-07 21:35:09 +02:00
moctardiouf
3d2a4c756b PHRAS-3657 Phraseanet Setup helm job (#4101)
* set upgrade and redis session variables [SKIP CI]

* set update readme [SKIP CI]

* update templates [SKIP CI]

* set imagepullsecrets default value to falsewq [SKIP CI]

* PHRAS-3657 fix missing config sub dirs [SKIP CI]

* Update readme
2022-07-21 19:11:34 +02:00
Nicolas Maillat
8e429493a2 PHRAS-3657 Move phraseanet install and setup (#4073)
* PHRAS-3657 Move phraseanet install and setup in a new container wip [SKIP CI]

* PHRAS-3657 add redis php configuration

* change restart mode for setup  [SKIP CI]

* .env update [SKIP CI]

* adding redis session service [SKIP CI]

Co-authored-by: Moctar <diouf@alchemy.fr>
2022-07-19 11:39:36 +02:00
Félix Noir
795f025f3a PHRAS-3683 : Support space in .env variables (#4050)
* PHRAS-3683: Add new "dc" function in README
* PHRAS-3683: Double quote some variables to prevent globbing and word splitting.
2022-06-10 11:36:29 +02:00
jygaulier
fbccec009e PHRAS-3602_shared-baskets-step1 WIP DO NOT MERGE (#3929)
* PHRAS-3602 : migrate validations to baskets
WIP [skip ci]

* PHRAS-3602 : migrate validations code to baskets code (wip)
WIP [skip ci]

* PHRAS-3602 : migrate validations to baskets
WIP [skip ci]

* PHRAS-3602 : migrate validations to baskets
WIP [skip ci]

* PHRAS-3602 : fake commit to run tests

* PHRAS-3602 : migrate validations to baskets
fix typo

* PHRAS-3602 : migrate validations to baskets
fixed (some) tests

* PHRAS-3602 : migrate validations to baskets
fixed (some) tests

* PHRAS-3602 : migrate validations to baskets
fixed (some) tests. need to remove method():return_type signature because of old phpunit which does not mock it

* PHRAS-3602 : migrate validations to baskets
fix

* PHRAS-3602 : migrate validations to baskets
fix err 500 when a "vote" (feedback) is deployed in wz

* PHRAS-3602 : migrate validations to baskets
fix missing votes for element+participant
fix update vote dates on basket

* PHRAS-3602 : ux
bump production-client to 34
WIP [skip ci]

* PHRAS-3602 : rebase (bump production-client to 37)
WIP [skip ci]

* PHRAS-3602 : refacto css/twig/templates/... ; replace many png's by fonts
WIP [skip ci]

* PHRAS-3602 : fix icon / css
WIP

* PHRAS-3602 : better icon align ; back button color
fix : save button after adding a user
WIP [skip ci]

* PHRAS-3602 : restore sharebasket controller
todo : implement modification right ; owner is participant ?
WIP [skip ci]

* PHRAS-3602 : set "canModifiy" ; cleanup
WIP [skip ci]

* PHRAS-3602 : respect "can_modify" on shared basket
WIP [skip ci]

* PHRAS-3602 : fix badge icon bg ; fix button css
WIP [skip ci]

* PHRAS-3602 : fix css & cleanup
WIP [skip ci]

* PHRAS-3602 : fix 500 on preview/feedback tab
WIP [skip ci]

* PHRAS-3602 : fix allow to display dlg without selection

* PHRAS-3602 : bump version to 4.1.6-rc1 ; prodclient=38
WIP [skip ci]

* PHRAS-3602 : factorize baskets menu (wip)
WIP [skip ci]

* PHRAS-3602 : modify already shared or feedback basket (general menu)
4th icon on badges (vote != modify)
quitshare option (todo back)
allow fa-icons in toolbar

WIP [skip ci]

* PHRAS-3602 : add share end-date (todo:db write)
add 4th general toggle button
fix badge selection bug
fix css badges zone (form position)
WIP [skip ci]

* PHRAS-3602 : big refacto to use "sharebasket" vocab.
fusion "feedback/sharebasket" removed "feedback"
adaptative ux: 1 "can_agree" ==> feedback display
bump production-client to v50
todo: save shr/fbk end-dates
todo: rename "pushXXX" to pushAndShare ?
WIP [skip ci]

* PHRAS-3602 : share / feedback expiration dates are saved in db
date pickers with delta menu
better adaptive ux
todo: move select general togglers
WIP [skip ci]

* PHRAS-3602 : revert validation* tables (remove "dead" rename)
drop all foreign keys from validation*
WIP [skip ci]

* PHRAS-3602 : restore deleted fields in validation, regenerate proxies
WIP [skip ci]

* PHRAS-3602 : fix initiator_id
WIP [skip ci]

* fix initiator_id-bis

* PHRAS-3602 : css for input-text with glued button
dynamic load of users-lists (left zone) = less duplicated code
fix : users-lists  works after refresh
WIP [skip ci]

* PHRAS-3602 : fix users-lists manager (orange) : go flex !

* PHRAS-3602 : empty dist to ease rebase
WIP [skip ci]

* PHRAS-3602 : rebase
WIP [skip ci]

* PHRAS-3602 : new ux for "owner"
feedback mode is an independent toggle
fix "missing mandatory parameter"
WIP [skip ci]

* PHRAS-3602 : fix css of owner badge
WIP [skip ci]

* PHRAS-3602 : fix handling of feedback initiator
WIP [skip ci]

* PHRAS-3602 : better wss to follow "skins"
full roboto
removed useless class "with-button"
WIP [skip ci]

* PHRAS-3602 : fix "a token require a validation"
temporary fix 500 due to send email to (null) vote-initiator for simple share
todo: send a specific email for simple share
WIP [skip ci]

* PHRAS-3602 : different emails depending if user can vote or not
WIP [skip ci]

* PHRAS-3602 : expired shared baskets removed from wz
WIP [skip ci]

* PHRAS-3602 : fix logic error on last sql
WIP [skip ci]

* PHRAS-3602 : fix missing shared baskets on wz
WIP [skip ci]

* PHRAS-3602 : fix blinking of wz/basket detail
now only the title:hover displays detail
WIP [skip ci]

* PHRAS-3602 : rebase
WIP [skip ci]

* PHRAS-3602 : update basket proxy
WIP [skip ci]

* PHRAS-3602 : fix forever "unread" basket
WIP [skip ci]

* PHRAS-3602 : fix display of unread basket ; sync "eye" icon with css change
WIP [skip ci]

* PHRAS-3602 : "quitshare" action works
WIP [skip ci]

* PHRAS-3602 : missing dist files
WIP [skip ci]

* PHRAS-3602 : cleanup & run ci

* PHRAS-3602 : disable failing unit test ; remove blue on onread basket

* PHRAS-3602 : separate "vote" & "share" emails templates & u-tests

* PHRAS-3602 : add 2 icons "stack" to icomoon set
WIP [skip ci]

* PHRAS-3602 : fix test

* PHRAS-3602 : fix test ; add test for simple share email notification

* PHRAS-3602 : changed proxy

* PHRAS-3602 : colored basket icons
WIP [skip ci]

* PHRAS-3602 : circle basket icons
WIP [skip ci]

* PHRAS-3602 : fix wz filters, add "share" filter.
todo: fix fr writing (new string)
WIP [skip ci]

* PHRAS-3602 : fix "share" dichotomy : use "shared" for wz filter
WIP [skip ci]

* PHRAS-3602 : fix PHRAS-3624 ; PHRAS-3623 ; now adding/removing a user from user list is immediate (no more save button)
WIP [skip ci]

* PHRAS-3602 : fix PHRAS-3647 ; shared basket are listed in api (for list and related record)

* PHRAS-3602 : fix due to failing test

* PHRAS-3602 : fix: can load a 1000 users list
todo : move slow code to worker

* PHRAS-3602 : fix due to failing test

* PHRAS-3468 : (fixed in 3602) fix basket content still visible when baskets are hidden (wz-filter)

* PHRAS-3602 : add "wip" baskets with notification & lock
todo : move slow code from message to worker

* PHRAS-3602 : fix tests due to accidental rename

* PHRAS-3602 : fix : menu closes when mouse out : bump to 4.1.6-rc3
todo : fast move to another basket makes the menu appear on top ?

* add shareBasket worker

* fix test

* PHRAS-3602 : fix : rights buttons on badges now works for users added from search (did work only from loading list)

* PHRAS-3590

Co-authored-by: aynsix <asr@esokia-webagency.com>
Co-authored-by: Nicolas Maillat <maillat@alchemy.fr>
2022-04-07 17:07:43 +02:00
nmaillat
9f714f7d7e Readme fix typo
Add schemes
[SKIP CI ]
2022-03-17 15:19:25 +01:00