cuddly-jelly-27016
05/26/2025, 12:10 AMpyflyte run --remote workflow.py test_input --infile test.txt
### Expected behavior
As described here, Flyte should store data separately from metadata.
[Screenshot 2024-03-13 at 1 30 51 PM](https://private-user-images.githubusercontent.com/16709018/312612756-db32e961-79cb-41ea-a49f-f8cd72f00876.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NDgyMTg1MDYsIm5iZiI6MTc0ODIxODIwNiwicGF0aCI6Ii8xNjcwOTAxOC8zMTI2MTI3NTYtZGIzMmU5NjEtNzljYi00MWVhLWE0OWYtZjhjZDcyZjAwODc2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTA1MjYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwNTI2VDAwMTAwNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWIxYmM1YzYwY2U3NDQyNjFjMjY3NTU1YzEyOTg1N2FhYjM1YTE4NThkYzQyYmY4MDk0NGIyNWIzY2MxZTVlODkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0._ZZWqsQY2Ut6bj8OH-H7CCmLPKO2zMrz5FrStFmz-HU)
### Additional context to reproduce
While data coming directly as outputs from tasks is correctly stored in the data bucket, inputs from workflow registration are stored in the metadata bucket. I was able to reproduce this using a command like
pyflyte run --remote workflow.py test_input --infile test.txt
In this case I am using a very simple workflow with a single task that takes as input a infile: FlyteFile
This issue here seems to be that flyte conflates code, which is stored in the metadata bucket in <project>/<domain>/<version>/script_mode.tar.gz, and inputs from the workflow invocation, which are stored in the same path under the input filename.
It seems like the CreateUploadLocation endpoint that flyteadmin offers to create signed url's isn't well suited to handling uploading this input data, as the Flyte architecture aims to prevent control plane components like flyteadmin from accessing data buckets. There likely needs to be a different way for clients to upload input data that assumes the client already has permissions to upload to the data bucket.
Additional context in this slack thread
### Screenshots
No response
### Are you sure this issue hasn't been raised already?
• Yes
### Have you read the Code of Conduct?
• Yes
flyteorg/flytecuddly-jelly-27016
05/26/2025, 12:10 AM