feat(docs): Add namespaced policy option to configuration docs#3303
feat(docs): Add namespaced policy option to configuration docs#3303elizabethhealy merged 2 commits intomainfrom
Conversation
|
Warning Rate limit exceeded
Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 46 minutes and 41 seconds. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the 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 have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Repository UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughAdded documentation for the new Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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 updates the project documentation to include information regarding the namespaced policy feature flag. It clarifies the purpose of this setting and provides an updated configuration example to assist users in implementing this change. Highlights
🧠 New Feature in Public Preview: You can now enable Memory 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. 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 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 counter productive. 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. The docs were thin and lacked the word, / Of namespaces that were preferred. / A line was added, clear and bright, / To guide the user through the night. Footnotes
|
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@docs/Configuring.md`:
- Line 543: Clarify the behavior when `namespaced_policy` is false: explicitly
state that with `namespaced_policy` = false the system treats namespace fields
as legacy/un-namespaced (not enforced), that NULL `namespace_id` is
intentionally valid legacy behavior, and that namespaces will only become
required/enforced once the `NamespacedPolicy` feature is enabled; update the
`namespaced_policy` table entry (referencing `namespaced_policy`,
`NamespacedPolicy`, and `namespace_id`) to include this note so rollout
expectations are unambiguous.
🪄 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: Repository UI
Review profile: ASSERTIVE
Plan: Pro
Run ID: 4f189f8f-fd21-4752-8636-a502762574cf
📒 Files selected for processing (1)
docs/Configuring.md
There was a problem hiding this comment.
Code Review
This pull request updates the documentation in docs/Configuring.md to include a new configuration option, namespaced_policy, under the policy service settings. This option, which defaults to false, mandates namespaces for new actions, subject mappings, subject condition sets, and registered resources when enabled. I have no feedback to provide.
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
Checklist
Testing Instructions
Summary by CodeRabbit
namespaced_policyconfiguration option, which enables namespace requirements for newly created actions, subject mappings, subject condition sets, and registered resources. Non-namespaced variants are now marked as deprecated.