Configure Cinder to require admin service tokens#30
Conversation
📝 WalkthroughWalkthroughTwo Cinder NixOS module templates are updated to enforce Keystone service token role validation. Both ChangesKeystone Service Token Role Enforcement
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 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 |
Required for some actions that nova needs to do at the cinder service Signed-off-by: Stefan Kober <stefan.kober@cyberus-technology.de> On-behalf-of: SAP stefan.kober@sap.com
3d19e87 to
a03ab81
Compare
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 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 `@modules/storage/cinder-storage-node.nix`:
- Around line 107-108: The Keystone service-token enforcement keys
(service_token_roles_required and service_token_roles) are currently only
applied to cinderConfNfs but not to cinderConfLvm, causing inconsistent
authentication behavior depending on which backend is selected. Add the same
service_token_roles_required = true and service_token_roles = admin
configuration to cinderConfLvm to ensure consistent Keystone service-token
enforcement across both the NFS and LVM backend options.
🪄 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: defaults
Review profile: CHILL
Plan: Pro
Run ID: 7005d505-b5be-4cb8-8b77-31738af216bc
📒 Files selected for processing (2)
modules/controller/cinder.nixmodules/storage/cinder-storage-node.nix
Configure Cinder to require admin token for certain actions.
Required for some actions Nova wants to do at Cinder.
Summary by CodeRabbit