Skip to content

fix(ses): lockdown options should be kebob-case#2739

Merged
erights merged 2 commits into
masterfrom
markm-lockdown-options-kebob-case
Mar 12, 2025
Merged

fix(ses): lockdown options should be kebob-case#2739
erights merged 2 commits into
masterfrom
markm-lockdown-options-kebob-case

Conversation

@erights

@erights erights commented Mar 12, 2025

Copy link
Copy Markdown
Contributor

Closes: #XXXX
Refs: #961 #2690 #2723

Description

#961 deviated from our general convention that lockdown option values be kebob-case, instead adding evalTaming: option values safeEval, unsafeEval, noEval. (I approved #961 at the time, apparently without noticing this discrepancy.) This PR fixes those to be safe-eval, unsafe-eval, and no-eval. But to avoid breaking any old usage, this PR ensure the only names continue to work for now, but always commented in the code as "deprecated".

This PR does only that. Other changes to the relevant lockdown option or relevant lockdown options machinery are left to #2723 or #2690 respectively. I request that this PR go first, with those others adjusting to this one.

Security Considerations

none

Scaling Considerations

non

Documentation Considerations

This PR simply changes the documentation to use the new names without ever mentioning the deprecated old names. That seems like an appropriate simplification for the docs.

Testing Considerations

With a bit of duplication and renaming, we now test the new names and the old deprecated names.

Compatibility Considerations

To avoid breaking any old usage, this PR ensure the only names continue to work for now, but always commented in the code as "deprecated". It would be very nice to eventually be able to retire the deprecated names, but I find it hard to imagine how we'd test that it is safe to do so.

Upgrade Considerations

Nothing BREAKING, since the old deprecated names continue to work.

  • Update NEWS.md for user-facing changes.

@erights erights self-assigned this Mar 12, 2025
@erights erights force-pushed the markm-lockdown-options-kebob-case branch from 7714ec9 to 3545bfd Compare March 12, 2025 21:15
@erights erights marked this pull request as ready for review March 12, 2025 21:21
@erights erights requested a review from gibson042 March 12, 2025 21:38

@mhofman mhofman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Besides one extra rename, looks fine

Comment thread packages/ses/src/eval-scope.js Outdated
@erights erights enabled auto-merge (squash) March 12, 2025 23:05
@erights erights merged commit 85483c0 into master Mar 12, 2025
@erights erights deleted the markm-lockdown-options-kebob-case branch March 12, 2025 23:16
boneskull added a commit that referenced this pull request Mar 14, 2025
* master: (152 commits)
  fix(ses): lockdown options should be kebob-case (#2739)
  feat(import-bundle): Test bundle format #2719
  chore: Update yarn.lock
  refactor(ses): Compensate Hermes transform for Babel upgrade
  feat(bundle-source)!: Replace getExport and nestedEvaluate implementations with endoScript implementation
  refactor(evasive-transform): Relieve dependence on Rollup
  chore(evasive-transform): Update golden masters
  refactor(evasive-transform): Add sourceMap option, remove unmapLoc
  chore(evasive-transform): Update sourcemap test snapshot
  chore: yarn up @babel/generator
  refactor: Migrate from @agoric/babel-generator back to @babel/generator
  chore: Upgrade Babel
  fix: Update version management scripts
  refactor(module-source): More compact boilerplate
  refactor(module-source): Converge file naming convention
  feat(evasive-transform): Preserve format with Babel
  feat(module-source): Preserve format with Babel integration
  test(module-source): Add format preservation test
  chore(ses): add explicit devDependencies on Babel packages
  refactor(ses): compartmentImport without function.bind
  ...
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.

2 participants