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
The operator part of docs/researchers/spe-with-weskit.md (restored in #194) has these problems, found by Sourcery on #194:
It gives all authorized users read access to one shared results bucket, so researchers can read the results of every run, including runs they are not permitted to see.
The script releases results.csv whenever plots/quals.svg exists, without an operator-controlled release step.
The script itself has bugs: it marks upload_token on the parent directory rather than per run, so later runs are skipped; it leaves $dir unquoted; it has no Bash shebang although cron runs POSIX sh; it hard-codes localhost:9000; the same basename in different parents gives the same object key; and concurrent cron runs aren't locked.
Proposal
Scope access per run (one bucket or prefix per run, with a policy for that run's researchers). Add an explicit release step, or state plainly that the script is a demo and that release decisions belong to the data controller. Fix the script bugs: per-run token, quoting, shebang, configurable S3 endpoint, unique keys, a flock lock.
Activity