BUG FIX: Only allow workspace authors to update the dl_config - #1468
Merged
Conversation
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. |
Contributor
|
OK after further discussion with Dan:
|
Contributor
|
(err, the above is just a discussion suggestion, not "will happen") |
Contributor
Author
|
okay - so a bit confused here, we good with the current approach or do we want to rework it? |
Contributor
|
We're good with this approach! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 theget_workspaceendpoint.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