Skip to content

crypto: add core crypto infrastructure (mz-ore crypto module) - #35940

Closed
jasonhernandez wants to merge 2 commits into
mainfrom
worktree-agent-ab55bf4b
Closed

jasonhernandez wants to merge 2 commits into
mainfrom
worktree-agent-ab55bf4b

Conversation

@jasonhernandez

@jasonhernandez jasonhernandez commented Apr 10, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Add rustls/aws-lc-rs workspace dependencies (alongside existing OpenSSL deps)
  • Add crypto feature to mz-ore with #[ctor::ctor] auto-install of aws-lc-rs CryptoProvider
  • Add fork overrides for azure-sdk and launchdarkly-sdk-transport (rustls-compatible forks)
  • Remove rustls ban from deny.toml (migration in progress)

Part 1 of 7 in the crypto migration from native-tls/OpenSSL to rustls/aws-lc-rs.

Test plan

  • cargo check --workspace passes
  • cargo check -p mz-ore --features crypto passes
  • cargo deny check licenses passes
  • cargo deny check bans passes
  • No existing deps removed — fully additive

🤖 Generated with Claude Code

@github-actions

Copy link
Copy Markdown
Contributor

Thanks for opening this PR! Here are a few tips to help make the review process smooth for everyone.

PR title guidelines

  • Use imperative mood: "Fix X" not "Fixed X" or "Fixes X"
  • Be specific: "Fix panic in catalog sync when controller restarts" not "Fix bug" or "Update catalog code"
  • Prefix with area if helpful: compute: , storage: , adapter: , sql:

Pre-merge checklist

  • The PR title is descriptive and will make sense in the git log.
  • This PR has adequate test coverage / QA involvement has been duly considered. (trigger-ci for additional test/nightly runs)
  • If this PR includes major user-facing behavior changes, I have pinged the relevant PM to schedule a changelog post.
  • This PR has an associated up-to-date design doc, is a design doc (template), or is sufficiently small to not require a design.
  • If this PR evolves an existing $T ⇔ Proto$T mapping (possibly in a backwards-incompatible way), then it is tagged with a T-proto label.
  • If this PR will require changes to cloud orchestration or tests, there is a companion cloud PR to account for those changes that is tagged with the release-blocker label (example).

@jasonhernandez
jasonhernandez force-pushed the worktree-agent-ab55bf4b branch from 56101d3 to 246f9ba Compare April 10, 2026 19:16
This was referenced Apr 10, 2026
@jasonhernandez
jasonhernandez force-pushed the worktree-agent-ab55bf4b branch from 246f9ba to 07dc000 Compare April 15, 2026 03:28
Add rustls, aws-lc-rs, hyper-rustls, rcgen, tokio-rustls workspace deps
and the mz-ore `crypto` feature with FIPS-aware CryptoProvider helpers.
Azure SDK forks patched to support reqwest-rustls-no-provider.
Removes the rustls ban from deny.toml.

Does NOT bump LaunchDarkly SDK (deferred to end of migration).

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@jasonhernandez
jasonhernandez force-pushed the worktree-agent-ab55bf4b branch from 07dc000 to fb15fd2 Compare April 15, 2026 03:31
Removed reference to migration documentation for rustls.
@jasonhernandez
jasonhernandez marked this pull request as ready for review April 15, 2026 03:43
@jasonhernandez
jasonhernandez requested review from antiguru and def- April 15, 2026 03:44

@antiguru antiguru left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Seems fine, but I don't have the full context. Left some comments!

Comment thread Cargo.toml
Comment on lines +612 to +616
azure_core = { git = "https://github.com/MaterializeInc/azure-sdk-for-rust.git", branch = "mz/enable-reqwest-rustls-no-provider" }
azure_identity = { git = "https://github.com/MaterializeInc/azure-sdk-for-rust.git", branch = "mz/enable-reqwest-rustls-no-provider" }
azure_storage = { git = "https://github.com/MaterializeInc/azure-sdk-for-rust.git", branch = "mz/enable-reqwest-rustls-no-provider" }
azure_storage_blobs = { git = "https://github.com/MaterializeInc/azure-sdk-for-rust.git", branch = "mz/enable-reqwest-rustls-no-provider" }
azure_svc_blobstorage = { git = "https://github.com/MaterializeInc/azure-sdk-for-rust.git", branch = "mz/enable-reqwest-rustls-no-provider" }

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please pin a specific commit. Branches tend to be deleted over time which makes bisecting very hard.

Comment thread Cargo.toml Resolved
Comment thread src/ore/src/crypto.rs Resolved
Comment thread Cargo.toml Resolved
Comment thread src/ore/Cargo.toml Resolved
@jasonhernandez

Copy link
Copy Markdown
Contributor Author

Azure/azure-sdk-for-rust#4190 opens up a much better approach, so I'm closing this PR and will upgrade to the newer Azure crate.

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.

3 participants