Skip to content

security(spp_encryption): group_crypto_manager implies group_spp_admin but has no key-model ACLs [Severity: Low] #332

Description

@gonzalesedwin1123

Follow-up discovered while fixing the Key Management Admin privilege escalation (PR #329).

Severity: Low (least-privilege / correctness inconsistency)

Problem

spp_encryption/security/groups.xml links group_crypto_manager ("Full cryptographic administration including key generation and deletion. HIGHEST RISK") into spp_security.group_spp_admin — expressing the intent that OpenSPP admins hold a key-control role. But group_crypto_manager has no ACL rows on spp.encryption.key or spp.asymmetric.key (spp_key_management/security/ir.model.access.csv). So the role is non-functional at the data layer: the key-generation flow in spp_encryption/models/encryption_provider.py creates asymmetric keys in user context and therefore only ever worked for users who were also system administrators.

This surfaced during PR #329: a pure Key Management Admin previously reached spp_encryption provider configuration only via the covert group_key_admin → base.group_system → group_spp_admin → group_crypto_manager chain. With the escalation removed, that path is gone — exposing that the crypto-manager role never carried real key access on its own.

Decision needed

Either:

Pick one so intent and effect agree.

Related: #329.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions