temporary JSON file for visualisation plugin - where to save?
1
0
Entering edit mode
8.5 years ago

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?

json visualisation temporary files • 1.6k views
ADD COMMENT
0
Entering edit mode
8.5 years ago
igor 13k

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 COMMENT

Login before adding your answer.

Traffic: 2352 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6