feat(platform): add KAS_PUBLIC_KEY_ALG_ENUM_MLKEM_768 to proto (DSPX-2399)#3485
feat(platform): add KAS_PUBLIC_KEY_ALG_ENUM_MLKEM_768 to proto (DSPX-2399)#3485dmihalcik-virtru wants to merge 1 commit into
Conversation
…2399) Add ML-KEM-768 post-quantum KEM algorithm enum value (= 13) to KasPublicKeyAlgEnum in service/policy/objects.proto and regenerate all Go/OpenAPI stubs via buf generate. Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: Dave Mihalcik <dmihalcik@virtru.com>
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: ASSERTIVE Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request introduces support for the ML-KEM-768 post-quantum key encapsulation mechanism by defining the necessary constant in the service protocol buffers and updating the associated documentation. This change serves as the foundational step for implementing post-quantum security features across the platform. Highlights
New Features🧠 You can now enable Memory (public preview) to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Ignored Files
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize the Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counterproductive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. New keys for the quantum age, / ML-KEM on the center stage. / With bits and bytes we define the way, / To keep the future safe today. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request adds the ML-KEM-768 algorithm to the KasPublicKeyAlgEnum in the policy objects protobuf and updates the associated documentation. The reviewer pointed out that the modified enum is part of a deprecated structure and recommended adding the algorithm to the modern Algorithm enum to ensure it is supported by current platform components.
| KAS_PUBLIC_KEY_ALG_ENUM_EC_SECP384R1 = 6; | ||
| KAS_PUBLIC_KEY_ALG_ENUM_EC_SECP521R1 = 7; | ||
|
|
||
| KAS_PUBLIC_KEY_ALG_ENUM_MLKEM_768 = 13; |
There was a problem hiding this comment.
The KasPublicKeyAlgEnum is part of the KasPublicKey message, which is explicitly marked as deprecated at line 398. Modern components of the platform, such as AsymmetricKey (line 619) and SimpleKasPublicKey (line 10), utilize the Algorithm enum (defined at line 559) instead. To ensure that the new ML-KEM-768 algorithm is supported across the platform's current cryptographic definitions and not just legacy structures, it should also be added to the Algorithm enum.
Benchmark results, click to expandBenchmark authorization.GetDecisions Results:
Benchmark authorization.v2.GetMultiResourceDecision Results:
Benchmark Statistics
Bulk Benchmark Results
TDF3 Benchmark Results:
|
|
Summary
KAS_PUBLIC_KEY_ALG_ENUM_MLKEM_768 = 13toKasPublicKeyAlgEnuminservice/policy/objects.protobuf generateContext
Part of the ML-KEM-768 post-quantum key encapsulation mechanism feature.
Jira: https://virtru.atlassian.net/browse/DSPX-2399
Test scenario:
xtest/scenarios/mechanism-mlkem.yamlDepends on
Nothing — this is the proto-only cell. Downstream cells (
platform-service,platform-go-sdk,java-sdk,web-sdk) depend on this PR.