If a user attempts to download a Job Binary from the UI, or /data end-point, while using the proxy domain for Swift access, the operation will fail with an error about requiring a username and password. The exact error text is: "Error: Unable to fetch job binary: Authorization Failure. A username and password or token is required."
Steps to reproduce:
1. create a Swift object
2. create a Job Binary from the Swift object
3. download the Job Binary using the UI or a GET on the /data endpoint
This is caused by there being no proxy user created to authenticate with Swift. This is an issue with the nature of when proxy users are created. Currently they are only created during job execution.
A possible solution is to create a proxy user when a download is requested, but this could create other issues with regards to creating/deleting proxy users with high frequency. Another solution could be to create a token based on the current user to access the binary.
I don't think we need proxy user for each download. If it is possible to create token based on the current user - this should be right way to solve issue.