Skip to content

docs: harden the SPE results copy script #195

Backlog

Description

@uniqueg

Problem

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

  1. added
    priority: medium
    status: triage
    type: docs
    workload: hours
    on Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: mediumstatus: triagetype: docsworkload: hours

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions