-
Notifications
You must be signed in to change notification settings - Fork 77
fix(ses): align with XS property censorship agreement #1718
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
Conversation
1a67747
to
825bdc6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a breaking change to the extent that anyone relied on the old behavior. My feeling is that the old behavior sufficiently deterred relying upon the old behavior that this is not a breaking change. But, if you wish to play it safe, we can bump the 0.minor version and you’ll need a conventional commit to that effect.
Otherwise, this just needs an entry in NEWS.md
under # Next release
and an update to the docs, particularly the doc that outlines the differences in the Hardened JavaScript realm and compartment.
825bdc6
to
48fc4c9
Compare
Based on this, I just changed from |
There are indeed stale *.md files that need updating. Working on it. By "docs", do you mean anything besides *.md files in the endo repo? |
Correct, just *.md in the ses package. I think just docs/reference.md and docs/guide.md. There are other stale docs that are out of scope. |
Yes, we can treat this as non-breaking, unless you can think of a realistic working program that would break because of these changes. |
a754d0a
to
8910e93
Compare
Done. The second commit has these. A lot more than either of us expected. PTAL. |
8910e93
to
b02d145
Compare
b02d145
to
e4be709
Compare
Closes: #XXXX Refs: #910 (comment) #1718 #2354 #910 ## Description While investigating #2354 , I just tried it locally by visiting file:///.../endojs/endo/packages/ses/demos/console/index.html and file:///.../endojs/endo/packages/ses/demos/challenge/index.html in my browser. The first is the SES demo console, which worked just fine. The second is the SES Escape Room, which still relied on the disabled `Date.now()` not throwing. Indeed, before #1718 a disabled (secure mode) `Date.now()` returned `NaN`. But #1718 changed it to throw. What's strange is that in #1718 I revise endojs/endo/packages/ses/demos/challenge/index.html to adjust the text to say that `Date.now()` is "disabled" rather than "NaN". But I didn't fix the escape room code. Although I found this while investigating #2354 , this is a completely distinct bug that is unrelated to #2354 . This PR itself does nothing to fix #2354 . ### Security Considerations none ### Scaling Considerations none ### Documentation Considerations All our docs that link to an explain the Escape Room challenge need to be revisited, especially once #2354 is fixed. For example, https://agoric.com/blog/technology/a-taxonomy-of-security-issues , which I just verified links to the broken page reported at #2354 ### Testing Considerations It is frustrating that the Escape Room is broken at least since #1718 , and also broken by #2354 for an undetermined period of time, without anyone noticing until now. It would be good to bring that site under some kind of automated testing. ### Compatibility Considerations none ### Upgrade Considerations none
Fixes #910
@phoddie, I seem unable to add you as an official reviewer, but please consider yourself one anyway. I'm eager for your comments.
Technically this is a compat break, which I currently mark with a
fix(ses)!:
. Reviewers, please let me know whether you consider this change a compat break, or whether I should demote it tofix(ses):
. Thanks.