Skip to content

intent: role-scoped field visibility enforced in REST serialization (hiddenFor) #6550

Description

@delchev

Problem

sensitive: true strips a field on the generated PERSONAL surface. There is no role-scoped equivalent on the main surface: a salary/rate/margin field is visible to every user with access to the entity. Hiding it in the UI alone would be cosmetic security — the REST response still carries the value.

Ask

A field-level hiddenFor: [role] (or inverse visibleTo:), enforced in the generated REST serialization: the field is stripped from responses and ignored on writes unless the caller holds the role; the generated UI hides the column/input consistently. Same server-side allow-list principle as the personal surface's sensitive: handling.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions