[WRONG BRANCH] config: fail-closed on OpenAI-tier migration backup ACL hardening - #57
[WRONG BRANCH] config: fail-closed on OpenAI-tier migration backup ACL hardening#57luvs01 wants to merge 1 commit into
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
⏳ DRAFT
What to do
Its title has been prefixed with |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughOpenAI backup snapshots now require successful Windows ACL hardening before publication. An integration test verifies that ACL failures abort creation and leave no backup or temporary files. ChangesOpenAI backup hardening
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
|
✅ Deterministic PR hygiene checks passed. |
Motivation
.pre-openai-tiers-v2.baksnapshot but soft-failed Windows NTFS ACL hardening, which could publish a backup containing API keys and other secrets with inherited broad ACLs.Description
hardenSecretPath(..., { required: true })in thebackupConfigBeforeOpenAiTierMigrationdefault IO harden callback insrc/config.tsso the snapshot is not published when hardening fails.tests/openai-provider-option-startup.test.tsthat simulates anicaclsaccess-denied failure and verifiesbackupConfigBeforeOpenAiTierMigrationthrows, no.pre-openai-tiers-v2.bakis created, and no temp residuals leak.src/config.tsandtests/openai-provider-option-startup.test.ts.Testing
bun test tests/openai-provider-option-startup.test.tsand the targeted test file passed (including the new failure-case test).bun run typecheck(bun x tsc --noEmit) and it passed.bun run privacy:scanand it passed.bun run testduring verification where unrelated long-suite timeouts and environment-specific failures appeared in other tests (these failures are pre-existing / environment-bound and are unrelated to the backup ACL change).Codex Task
Summary by CodeRabbit
Bug Fixes
Tests