Skip to content

feat(xtest): cover disabled KAO lookup and registry cache isolation - #606

Open
c-r33d wants to merge 10 commits into
mainfrom
codex/kao-registry-cache-tests
Open

c-r33d wants to merge 10 commits into
mainfrom
codex/kao-registry-cache-tests

Conversation

@c-r33d

@c-r33d c-r33d commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

Adds tests that verify decryption fails when KAO URI lookup is disabled and that cached keys with the same KID remain isolated across KAS registrations. Enables caching on km3 and fixes artifact names for platform branches containing /.

Validation: 61 offline tests and all static checks passed. Live validation is in progress against codex/kas-key-details.

Summary by CodeRabbit

  • Bug Fixes
    • Improved key-access-server resolution during decryption, including support for alternate server URIs.
    • Improved handling of cached keys across multiple key-access servers, including keys with matching identifiers.
    • Improved test-result, audit-log, and server-log artifact naming for platform variants.
  • Diagnostics
    • Added more detailed logging for key-access-server startup and key lookup operations.

@c-r33d
c-r33d requested review from a team as code owners September 16, 2026 18:42
@coderabbitai

coderabbitai Bot commented Sep 16, 2026

Copy link
Copy Markdown

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: 01d8268b-91fe-44fb-9cc8-a2e3a6b315be

📥 Commits

Reviewing files that changed from the base of the PR and between 18f67c6 and 96b2f15.

📒 Files selected for processing (2)
  • .github/workflows/xtest.yml
  • xtest/test_abac.py

Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review.


📝 Walkthrough

Walkthrough

The pull request updates the KM3 test workflow and adds ABAC tests for KAS URI resolution, disabled alternate registrations, and cache handling for identical key IDs across registries.

Changes

KAS resolution testing

Layer / File(s) Summary
Test workflow configuration
.github/workflows/xtest.yml
The KM3 action uses a newer commit with five-minute key-cache expiration and debug logging. Artifact uploads use sanitized platform tags.
ABAC KAS resolution and cache validation
xtest/test_abac.py
Tests record KAO-based lookups, reject alternate registrations when disabled, and validate cached keys with identical KIDs in different registries.

Priority: ⬇️ Low

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Other

Suggested reviewers: dmihalcik-virtru

Merge Risk: ⚪ Minimal · up to 96b2f

The workflow and test updates have no identified merge-blocking risk.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 6 functions across 1 files. (1 skipped: 1 …
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.
Title check ✅ Passed The title clearly and concisely describes the main changes: tests for disabled KAO lookup and cache isolation across KAS registries.
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

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

A rabbit reads each line,
The patch grows clear beneath the moon,
Small changes hop in place,
Tests guard the garden path,
Reviews bloom before the dawn.

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

Signed-off-by: Chris Reed <creed@virtru.com>
@github-actions

Copy link
Copy Markdown

X-Test Failure Report

@c-r33d c-r33d changed the title test(xtest): cover disabled KAO lookup and registry cache isolation feat(xtest): cover disabled KAO lookup and registry cache isolation Sep 17, 2026
Comment thread .github/workflows/xtest.yml
Signed-off-by: Chris Reed <creed@virtru.com>
Signed-off-by: Chris Reed <creed@virtru.com>
@github-actions

Copy link
Copy Markdown

Base automatically changed from test/kas-uri-from-kao to main September 17, 2026 18:03
@sonarqubecloud

Copy link
Copy Markdown

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