Skip to content

Security Architecture, RBAC & Segregation of Duties

Document Control: * Owner & Publisher: CPL Real Rewards Team * Technical Maintenance: Systems Developer * Target Audience: Security Officers, Internal Auditors, System Administrators * Applicable Environments: Staging & Production * Standard Version: v2.7.0 * Effective Date: October 2026 * Document Status: Production Certified


1. Role-Based Access Control (RBAC) Matrix

To uphold corporate governance and financial integrity, access privileges in CPL Real Rewards are strictly partitioned into four hierarchical security groups:

graph TD
    SysAdmin["System Administrator (base.group_system)<br/>Full Infrastructure & Module Control"] --> Admin["Loyalty Admin (group_real_rewards_admin)<br/>Catalog, Tags & Reporting Master"]
    Admin --> Checker["Loyalty Checker (group_loyalty_checker)<br/>Dual-Control Approval, Card Blocking"]
    Checker --> Maker["Branch Maker (group_loyalty_maker)<br/>Member Search, Request Draft & Submission"]

Permission Matrix by User Role:

Functional Capability Branch Maker Head Office Checker Loyalty Admin System Administrator
Member Search & Lookup Allowed (Read) Allowed (Read) Allowed (Read) Full Access
Draft Demographic Change Request Allowed (Create) Prohibited Allowed (Create) Full Access
Submit Quarantined Card Claim Allowed (Create) Prohibited Allowed (Create) Full Access
Manual Points Adjustment Prohibited Dual Control Full Access Full Access
Claim Unclaimed Orphaned Account Prohibited Dual Control Full Access Full Access
Approve / Reject Change Requests Prohibited Approve/Reject Approve/Reject Full Access
Block / Unblock Member Cards Prohibited Block/Unblock Block/Unblock Full Access
Manage Rewards Catalog Prohibited Read Only Full Access Full Access
Manage Member Tags Prohibited Read Only Full Access Full Access
Run Ephemeral Module Upgrades Prohibited Prohibited Prohibited Full Access
Reset User TOTP 2FA Credentials Prohibited Prohibited Prohibited Full Access

2. Segregation of Duties Enforcement

  1. Zero Self-Approval:
  2. In real.rewards.profile.change.request, the approval method checks: if request.create_uid == env.user: raise UserError("Dual Control Violation: You cannot approve a request you submitted.")
  3. Permanent Chatter Audit Lineage:
  4. Every state transition logs the user ID, timestamp, and IP address.
  5. Deleted records are strictly forbidden on financial and membership models (delete="false" enforced in XML views).

3. Authentication & Session Hardening

  • Mandatory Two-Factor Authentication (2FA TOTP): Enforced for all administrative and checker accounts using RFC 6238 TOTP algorithms.
  • Session Lifetime & Invalidation: Inactive sessions expire after 30 minutes.
  • Brute-Force Lockout: IP-based rate limiting via Nginx limits failed login attempts to 5 per minute before temporary lockouts.