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

Use SecureRandom.uuid to generate Javabuilder session ID #45253

Merged
merged 1 commit into from Mar 11, 2022

Conversation

sanchitmalhotra126
Copy link
Contributor

Uses SecureRandom.uuid instead of SecureRandom.hex(18) to generate the Javabuilder session ID to guarantee uniqueness (the previous method was also basically unique, but since we are now using the Javabuilder session ID to lookup project data on every invocation, we could potentially run into collisions).

Links

Testing story

Tested on localhost against prod and local Javabuilder. Verified that the session ID is generated correctly and used to lookup objects in S3 successfully.

Deployment strategy

Follow-up work

Privacy

Security

Caching

PR Checklist:

  • Tests provide adequate coverage
  • Privacy and Security impacts have been assessed
  • Code is well-commented
  • New features are translatable or updates will not break translations
  • Relevant documentation has been added or updated
  • User impact is well-understood and desirable
  • Pull Request is labeled appropriately
  • Follow-up work items (including potential tech debt) are tracked and linked

@sanchitmalhotra126 sanchitmalhotra126 requested a review from a team March 10, 2022 21:01
@sanchitmalhotra126 sanchitmalhotra126 merged commit db9c6ad into staging Mar 11, 2022
@sanchitmalhotra126 sanchitmalhotra126 deleted the javalab-uuid branch March 11, 2022 19:01
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.

None yet

2 participants