-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
feat: always use latest apollo sandbox #2686
feat: always use latest apollo sandbox #2686
Conversation
See #2581 for the history of this Apollo Sandbox playground feature. The url https://embeddable-sandbox.cdn.apollographql.com/ will allow you to list the contents of the S3 bucket. I made a dumb script to figure out the latest one from the S3 bucket and calculate the Subresource Integrity. This script is https://gist.github.com/StevenACoffman/2f15cd2e64f107d1a9a5f10f9748e1b0 and when I run it:
So instead of setting it to "_latest" and having to forego the subresource integrity check, let's just update both to that and now we can try to remember to periodically run this dumb script and update it. Ok? |
…date both url and integrity to latest
perhaps something that could help is a GitHub Action to run the script and issue a PR on a cronjob schedule. I've not personally done this but a quick search shows GitHub has a 1st-class action for it. |
Thanks for this PR! Looking forward to your next PR. |
I am not sure whether there are any securiy concerns regarding loading latest apollo sanbox by default. For me, it makes sense to auto load the latest version.
I have: