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

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

Merged
merged 2 commits into from
Mar 12, 2025

Conversation

erights
Copy link
Contributor

@erights erights commented Mar 12, 2025

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
Copy link
Contributor

@mhofman mhofman left a comment

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

@erights erights enabled auto-merge (squash) March 12, 2025 23:05
@erights erights merged commit 85483c0 into master Mar 12, 2025
16 checks passed
@erights erights deleted the markm-lockdown-options-kebob-case branch March 12, 2025 23:16
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