Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport of Raft Snapshot Download Bug into release/1.12.x #17782

Conversation

hc-github-team-secure-vault-core
Copy link
Collaborator

Backport

This PR is auto-generated from #17769 to be assessed for backporting due to the inclusion of the label backport/1.12.x.

WARNING automatic cherry-pick of commits failed. Commits will require human attention.

merge conflict error: POST https://api.github.com/repos/hashicorp/vault/merges: 409 Merge conflict []

The below text is copied from the body of the original PR.


An uncaught error was causing the service worker to hang when attempting to download a raft snapshot which would eventually result in a permission denied response since the token was not provided to the fetch request.

In the service-worker-authenticated-download in-repo addon the service-worker-registration is attempting to import from @ember/application/namespace. In the generated sw-registration.js script this results in that module being accessed from the Ember global which has been removed and is undefined.

Screencast.from.2022-11-01.03.27.11.PM.webm

This seems to be an issue with ember-auto-import (or babel or webpack by extension) but I just couldn't figure out how to get that import working. I decided to move the event listener to the raft-storage-overview component in the parent application which is already doing a check for the service worker registration and where the download action lives.


Overview of commits

@hc-github-team-secure-vault-core hc-github-team-secure-vault-core force-pushed the backport/ui/VAULT-7701/raft-snapshot-download-bug/badly-equal-liger branch from f054d1e to 1f79b47 Compare November 2, 2022 19:23
@hashicorp-cla
Copy link

hashicorp-cla commented Nov 2, 2022

CLA assistant check

Thank you for your submission! We require that all contributors sign our Contributor License Agreement ("CLA") before we can accept the contribution. Read and sign the agreement

Learn more about why HashiCorp requires a CLA and what the CLA includes


1 out of 2 committers have signed the CLA.

  • zofskeez
  • temp

temp seems not to be a GitHub user.
You need a GitHub account to be able to sign the CLA. If you already have a GitHub account, please add the email address used for this commit to your account.

Have you signed the CLA already but the status is still pending? Recheck it.

* moves service worker message event listener from addon to raft-storage-overview component

* adds changelog entry

* adds raft-storage-overview test for downloading snapshot via service worker
@zofskeez zofskeez marked this pull request as ready for review November 2, 2022 19:27
@zofskeez zofskeez enabled auto-merge (squash) November 2, 2022 19:29
@zofskeez
Copy link
Contributor

zofskeez commented Nov 2, 2022

Opening manual backport #17787

@zofskeez zofskeez closed this Nov 2, 2022
@zofskeez zofskeez deleted the backport/ui/VAULT-7701/raft-snapshot-download-bug/badly-equal-liger branch November 2, 2022 20:50
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.

None yet

3 participants