feat(ci): configure additional KAS key cache expiration - #4064
Conversation
Signed-off-by: Chris Reed <creed@virtru.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe additional KAS action now accepts an optional Go duration for private-key caching. It forwards non-empty values to the generated KAS configuration and documents inheritance, disabling, validation, and configuration scope. ChangesAdditional KAS cache configuration
Priority: ⬇️ Low Estimated code review effort: 1 (Trivial) | ~5 minutes Change: Feature Suggested reviewers: Merge Risk: ⚪ Minimal · up to The optional cache setting is documented and scoped to the generated additional KAS configuration; no merge-blocking risk remains. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ 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. A rabbit checks the cache at dawn Comment |
Signed-off-by: Chris Reed <creed@virtru.com>
X-Test Failure Reportgovulncheck-failure-8 |
Benchmark results, click to expandBenchmark authorization.GetDecisions Results:
Benchmark authorization.v2.GetMultiResourceDecision Results:
Benchmark Statistics
Bulk Benchmark Results
TDF3 Benchmark Results:
|
Benchmark results, click to expandBenchmark authorization.GetDecisions Results:
Benchmark authorization.v2.GetMultiResourceDecision Results:
Benchmark Statistics
Bulk Benchmark Results
TDF3 Benchmark Results:
|
|
Proposed Changes
Allow callers of
test/start-additional-kasto configure private-key caching per KAS throughkey-cache-expiration. For example,5menables a five-minute cache and0disables it. An omitted or empty input preserves the inherited configuration. Only the generated additional-KAS configuration changes.This supports the same-KID registry cache test in opentdf/tests#606. That PR now pins this action revision and uses the input instead of editing the shared platform configuration.
Checklist
Testing Instructions
Executed the action's actual configuration-generation script with a stubbed server launcher for five cases: omitted setting, inherited setting, explicit override, cache disabled with
0, and a compound duration. Verified generated values, preserved key-management/root-key configuration, and an unchanged source configuration in every case. Shell syntax, YAML parsing, actionlint, and whitespace validation passed.Live cross-SDK validation is running through opentdf/tests#606 with this action revision pinned and
key-cache-expiration: 5mon KM3.Summary by CodeRabbit
5m.0disables caching.