Skip to content

chore(xtest): Enables pqc on platform checkouts"#484

Open
dmihalcik-virtru wants to merge 4 commits into
mainfrom
DSPX-3499-pqcrun
Open

chore(xtest): Enables pqc on platform checkouts"#484
dmihalcik-virtru wants to merge 4 commits into
mainfrom
DSPX-3499-pqcrun

Conversation

@dmihalcik-virtru
Copy link
Copy Markdown
Member

@dmihalcik-virtru dmihalcik-virtru commented Jun 5, 2026

  • Enables preview support for hybrid post-quantum/traditional TDF in key management services.
  • Updated test workflows to use pinned PQC-enabled action versions for platform initialization and key server management.

@dmihalcik-virtru dmihalcik-virtru requested review from a team as code owners June 5, 2026 17:34
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Jun 5, 2026

Review Change Stack

Warning

Review limit reached

@dmihalcik-virtru, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 33 minutes and 21 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 6c77dfe5-9b87-4f7c-aea8-2815a18d50b0

📥 Commits

Reviewing files that changed from the base of the PR and between 67d3b32 and 5019885.

📒 Files selected for processing (2)
  • .github/workflows/vulnerability.yml
  • .github/workflows/xtest.yml
📝 Walkthrough

Walkthrough

This PR enables Post-Quantum Cryptography (PQC) and hybrid TDF testing by pinning platform startup actions to PQC-enabled commits, configuring KAS instances with PQC support, enabling the hybrid TDF preview flag in the KAS service, and documenting acceptance criteria.

Changes

PQC and Hybrid TDF Test Infrastructure

Layer / File(s) Summary
Feature specification for PQC and hybrid TDF tests
spec/DSPX-3499.md
Introduces a new draft specification with ticket metadata and scaffolded sections describing the problem, proposed solution, contracts, and acceptance criteria for PQC/hybrid pq/t test behavior.
Hybrid TDF service configuration
otdf-local/src/otdf_local/services/kas.py
Adds services.kas.preview.hybrid_tdf_enabled = True to the KAS service configuration when is_key_management is true, enabling the hybrid TDF feature for key management KAS instances.
Test infrastructure setup for PQC
.github/workflows/vulnerability.yml, .github/workflows/xtest.yml
Pins platform startup actions to PQC-enabled commit SHAs in both vulnerability and xtest workflows, adds explicit pqc-enabled: true inputs to all platform and KAS startup steps, and wires root-key to all KAS instances including km2.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Possibly related PRs

  • opentdf/tests#443: Both PRs modify .github/workflows/xtest.yml to enable PQC test setup in CI via action pinning and pqc-enabled inputs alongside PQC test execution.
  • opentdf/tests#464: Both PRs address PQC test execution in xtest workflows, coordinating platform startup configuration with PQC test matrix changes.

Suggested reviewers

  • pflynn-virtru
  • jakedoublev

Poem

🐰 Post-quantum paths now paved with care,
Hybrid TDF blooms in workflows fair,
KAS sings with enabled flags so true,
Tests now dance in PQC's debut! 🎉

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title 'chore(xtest): Enables pqc on platform checkouts' accurately reflects the main changes - enabling PQC functionality in the xtest workflow through platform action pinning and configuration updates.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch DSPX-3499-pqcrun

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request enables the hybrid_tdf_enabled preview setting in the local KAS service configuration when key management is active. It also adds a draft specification document (spec/DSPX-3499.md) for handling pqc and hybrid pq/t tests. However, the specification document currently contains placeholder text for several key sections that should be fully documented before merging.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread spec/DSPX-3499.md
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 5, 2026

X-Test Failure Report

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
otdf-local/src/otdf_local/services/kas.py (1)

1-229: ⚠️ Potential issue | 🟠 Major

Run Python quality gates for otdf-local (ruff + pyright) before merge: the attempted checks didn’t run because uv wasn’t available (uv: command not found). From otdf-local/, run:

  • uv run ruff check .
  • uv run ruff format . (and re-stage any changes)
  • uv run pyright
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@otdf-local/src/otdf_local/services/kas.py` around lines 1 - 229, The
CI-quality checks for this module failed because the repo-level task runner "uv"
was not available; from the otdf-local root run the requested linters and type
checks (uv run ruff check ., uv run ruff format . then re-stage, and uv run
pyright); if "uv" is not installed on your environment, run ruff and pyright
directly (ruff check ., ruff format . then git add any formatted files, and
pyright) and fix any reported issues in this file (look for KASService,
KASManager, and get_kas_manager) before re-running the checks.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.github/workflows/vulnerability.yml:
- Around line 39-42: The workflow startup step that invokes the action
"opentdf/platform/test/start-up-with-containers@626ce47dd662cb8ff16898e3b6727001a4753d92"
currently doesn't pass the pqc-enabled input; update that action invocation (the
step using that "uses" string) to include the input kv pair pqc-enabled: true
under its with: block so the startup runs with PQC explicitly enabled.

---

Outside diff comments:
In `@otdf-local/src/otdf_local/services/kas.py`:
- Around line 1-229: The CI-quality checks for this module failed because the
repo-level task runner "uv" was not available; from the otdf-local root run the
requested linters and type checks (uv run ruff check ., uv run ruff format .
then re-stage, and uv run pyright); if "uv" is not installed on your
environment, run ruff and pyright directly (ruff check ., ruff format . then git
add any formatted files, and pyright) and fix any reported issues in this file
(look for KASService, KASManager, and get_kas_manager) before re-running the
checks.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: c822ec94-7fc8-4e60-8cbb-13d7313d26eb

📥 Commits

Reviewing files that changed from the base of the PR and between d9d34b0 and 67d3b32.

📒 Files selected for processing (4)
  • .github/workflows/vulnerability.yml
  • .github/workflows/xtest.yml
  • otdf-local/src/otdf_local/services/kas.py
  • spec/DSPX-3499.md

Comment thread .github/workflows/vulnerability.yml Outdated
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…al-kas

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Jun 5, 2026

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.

1 participant