Skip to content

[apex] ApexCrudViolation: Recommend USER MODE, discourage WITH SECURITY ENFORCED #4368

@pozil

Description

@pozil

Rule: ApexCRUDViolation

Let's consider the following improvements (quoting @rsoesemann here):

  • Change CRUD/FLS rules in Dml and SQOL to recommend USER MODE over all the suboptimal old solutions
  • Discourage the use of WITH_SECURITY ENFORCED as Daniel Ballinger and Chris Peterson said on TDX23
  • Check what else is missing in PMD regarding Security (e.g.with inherited sharing is also not parsed correctly)

Metadata

Metadata

Assignees

No one assigned

    Labels

    an:enhancementAn improvement on existing features / rules

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions