Skip to content

Conversation

ZedLi
Copy link
Collaborator

@ZedLi ZedLi commented Sep 5, 2025

Description

If we are using the in memory DB for sqlite (due to not being in a secure context), it's possible for requests to come in after the worker has been setup but before the DB has been setup. With the shared service context, we would wait for the setup to finish but with the in memory db, we used an async IIFE (due to issues using top level await) which was not being awaited before the worker is done initializing.

It's likely this bug was introduced after removing indexed db as that was adding the extra time needed for sqlite to properly setup.

Screenshots (if appropriate)

How to Test

Setup the branch in an http environment that's not localhost.
You could do this using enos or using a tool like ngrok. If using ngrok, you'd need to force the scheme to be http with something like ngrok http --scheme=http 4200. Your browser might also try and force you onto HTTPS with ngrok's urls. For Firefox, I had to set network.stricttransportsecurity.preloadlist to false in about:config.

If you already have an entry in your hosts file for boundary that points to localhost as shown in this comment, you could also use that.

Checklist

  • [ ] I have added before and after screenshots for UI changes
  • [ ] I have added JSON response output for API changes
  • [ ] I have added steps to reproduce and test for bug fixes in the description
  • [ ] I have commented on my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • [ ] I have added tests that prove my fix is effective or that my feature works
  • [ ] I have added a11y-tests label to run a11y audit tests if needed

PCI review checklist

  • I have documented a clear reason for, and description of, the change I am making.
  • If applicable, I've documented a plan to revert these changes if they require more than reverting the pull request.
  • If applicable, I've documented the impact of any changes to security controls.
    Examples of changes to security controls include using new access control methods, adding or removing logging pipelines, etc.

@ZedLi ZedLi self-assigned this Sep 5, 2025
Copy link

vercel bot commented Sep 5, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
boundary-ui Ready Ready Preview Comment Sep 5, 2025 10:18pm
boundary-ui-desktop Ready Ready Preview Comment Sep 5, 2025 10:18pm

Copy link
Collaborator

@lisbet-alvarez lisbet-alvarez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for speedy fix! Tested and works great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants