Skip to content

BUG FIX: Only allow workspace authors to update the dl_config - #1468

Merged
amadeovezz merged 2 commits into
masterfrom
vulcan-token-fix
Mar 5, 2026
Merged

BUG FIX: Only allow workspace authors to update the dl_config#1468
amadeovezz merged 2 commits into
masterfrom
vulcan-token-fix

Conversation

@amadeovezz

Copy link
Copy Markdown
Contributor

Problem

There was a security issue where dl_config.yaml (which contains the user's task token) was being updated every time any user viewed a workspace via the get_workspace endpoint.

This is mainly a permission problem: If user A creates a workspace, then user B views it, the workspace would run with user B's token/permissions instead of user A's

@amadeovezz amadeovezz changed the title Only allow workspace authors to update the dl_config BUG FIX: Only allow workspace authors to update the dl_config Feb 17, 2026
@graft

graft commented Feb 17, 2026

Copy link
Copy Markdown
Contributor

Is it possible to inject these values into the environment, rather than into a file in the filesystem? It would be equally accessible to Snakemake and would be less persistent.

I'd also favor issuing the task token to etna-agent rather than a specific user; since the task token is so stripped-down (one project with a very specific permission) the user is immaterial, except maybe for showing up in the event log.

@graft

graft commented Feb 17, 2026

Copy link
Copy Markdown
Contributor

OK after further discussion with Dan:

  • Makes sense to maintain the workspace author as the only person that can run the workspace, since we want workspace privacy for noodling
  • Task Token permissions will work as follows:
    • Workspace may be configured as "restricted" (default: off)
      • If it is, access to the workspace requires 'restricted' bit to run
      • If it is not, the task token permission cannot include "restricted"
    • Workspace may be configured as "read-only" (default: off)
      • If it is, the task token permission is degraded to "viewer", and any client requests within the workflow making library changes will fail
      • If it is not, the task token permission will be set to 'editor'

@graft

graft commented Feb 17, 2026

Copy link
Copy Markdown
Contributor

(err, the above is just a discussion suggestion, not "will happen")

@amadeovezz

Copy link
Copy Markdown
Contributor Author

okay - so a bit confused here, we good with the current approach or do we want to rework it?

@dtm2451

dtm2451 commented Mar 5, 2026

Copy link
Copy Markdown
Contributor

We're good with this approach!

@amadeovezz
amadeovezz merged commit 2e80c4f into master Mar 5, 2026
10 checks passed
@amadeovezz
amadeovezz deleted the vulcan-token-fix branch March 5, 2026 01:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants