Biostar Beta. Not for public use.
temporary JSON file for visualisation plugin - where to save?
0
Entering edit mode
19 months ago
Sri Lanka

In my web visualisation plugin, from mako file I call web api and from there I generate 3 JSON files(by executing a java library) for visualisation in my web visualisation plugin. For the time being, i have saved them in the same directory of the plugin.(eg: galaxy/config/plugins/visualizations/mypluginname/static/data). Currently this is working since I am the only user. but how or where should i save these temporary files that the logged in user can access, but not others can access them?

ADD COMMENTlink
0
Entering edit mode
2.0 years ago
igor 7.7k
United States

You can generate random filenames every time. That way, only the right user knows which files are theirs.

Technically, this isn't fully secure, since you can brute-force discover the files, but if the random part is sufficiently long, it's essentially impossible in a reasonable timeframe.

ADD COMMENTlink

Login before adding your answer.

Similar Posts
Loading Similar Posts
Powered by the version 2.3.1