You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That is a recursive glob, starting at Path.cwd(), looking for .j2 files. If that code hits a large number of files (such as Facade) then it will take an immense amount of time to process. Worse, it may actually find j2 files from outside Augur and load them, which is potentially a security risk.
As far as I can tell, the only j2 files are in augur/templates, so we should drop the recursive glob and just look there.
The text was updated successfully, but these errors were encountered:
Description:
Having Facade data mounted inside the Augur tree (which is true in Docker) will cause Augur to hang on a large install
How to reproduce:
The culprit is here:
https://github.com/chaoss/augur/blob/a31a04cc9e22dbd157a01b3a3a498cd01cc44788/augur/api/gunicorn_conf.py#L22C1-L22C71
That is a recursive glob, starting at Path.cwd(), looking for .j2 files. If that code hits a large number of files (such as Facade) then it will take an immense amount of time to process. Worse, it may actually find j2 files from outside Augur and load them, which is potentially a security risk.
As far as I can tell, the only j2 files are in
augur/templates
, so we should drop the recursive glob and just look there.The text was updated successfully, but these errors were encountered: