Skip to content

Handle sensitive properties in the Management API#15936

Merged
kjac merged 2 commits intov14/devfrom
v14/feature/sensitive-properties
Mar 25, 2024
Merged

Handle sensitive properties in the Management API#15936
kjac merged 2 commits intov14/devfrom
v14/feature/sensitive-properties

Conversation

@kjac
Copy link
Contributor

@kjac kjac commented Mar 22, 2024

Prerequisites

  • I have added steps to test this contribution in the description below

Description

This PR adds sensitive property handling to the Management API.

Testing this PR

Create members with sensitive properties. You'll need a V13 to do this - and a subsequent migration of the V13 database to test the rest.

As a user with the "Sensitive data" user group assigned, the sensitive properties should be visible and editable through the Management API.

As a user without the "Sensitive data" user group assigned, the sensitive properties should not be visible nor editable through the Management API. In fact, the API should yield an error if attempts are made to hack the API (read: pass in property aliases that match a sensitive property)

Copy link
Contributor

@Migaroez Migaroez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Redid the tests and one thing to consider about code location.
Works as described 🚀

@kjac kjac merged commit 4dca749 into v14/dev Mar 25, 2024
@kjac kjac deleted the v14/feature/sensitive-properties branch March 25, 2024 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants