Skip to content

[ENG-7287] fix onedrive auth headers for download/upload requests#415

Closed
felliott wants to merge 2 commits intodevelopfrom
feature/onedrive-auth-headers
Closed

[ENG-7287] fix onedrive auth headers for download/upload requests#415
felliott wants to merge 2 commits intodevelopfrom
feature/onedrive-auth-headers

Conversation

@felliott
Copy link
Member

Ticket

https://openscience.atlassian.net/browse/ENG-7287

Purpose

Fix some downloads and uploads to OneDrive. Depending on the host that serves the request, some OD requests get mad if you include an Authorization header with a signed request and return a 401. Stop doing that.

Changes

  • Don't send auth headers for download and chunked upload onedrive requests
  • Update WB's GitHub Actions to use cache@v4. cache@v2 is deprecated and will stop working on March 1, 2025.

Side effects

Hopefully no?

QA Notes

Dev tested on staging!

Deployment Notes

Nope.

 * Some OneDrive endpoints return a 401 error if the `Authorization`
   header is included with a signed request. This depends on the
   individual host serving the request, but we'll go ahead and turn it
   off for all. Context:

   * MS API documentation for chunked_upload requests:

     https://learn.microsoft.com/en-us/graph/api/driveitem-createuploadsession?view=graph-rest-1.0#remarks

   * Rclone fix for the upload endpoint:

     rclone/rclone@dedad9f

   * Rclone fix for the download endpoint:

     rclone/rclone@aee8d90

  [ENG-7287]
 * Replace with `actions/cache@v4`. No other changes needed?
@coveralls
Copy link

Coverage Status

coverage: 88.944% (+0.02%) from 88.925%
when pulling 70f38df on feature/onedrive-auth-headers
into 1e7df8a on develop.

@felliott felliott closed this in aabe8be Feb 21, 2025
@felliott
Copy link
Member Author

Not sure why this is showing as closed, rather than merged, but it has been merged. 70f38df and ceaf712 are both in develop now.

@felliott felliott deleted the feature/onedrive-auth-headers branch February 21, 2025 16:07
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