Skip to content
This repository has been archived by the owner on Apr 30, 2024. It is now read-only.

Enhance Security by Adding Owner Restriction to Permissions #104

Merged
merged 4 commits into from
Feb 17, 2024

Conversation

kingster-will
Copy link
Contributor

Overview

This PR introduces an enhancement to AccessControl by appending an [ipAccountOwner] field to the existing permission record. This change aims to mitigate the risks associated with the delegation of permissions, particularly in scenarios where the ipAccount might be transferred to a new owner, potentially leading to malicious misuse.

Changes

The permission record has been updated to include an [ipAccountOwner] field. This ensures that a permission is considered valid only if the ipAccount is still owned by the specified [ipAccountOwner].

Test Coverage

The PR includes comprehensive tests covering both positive and negative scenarios to ensure the robustness of the new permission field.

@kingster-will kingster-will self-assigned this Feb 17, 2024
@kingster-will kingster-will requested a review from a team February 17, 2024 02:51
@LeoHChen LeoHChen merged commit 069d3eb into storyprotocol:main Feb 17, 2024
1 check passed
@kingster-will kingster-will deleted the fix-access branch February 17, 2024 06:02
kingster-will referenced this pull request in kingster-will/protocol-core-v1-dev Mar 19, 2024
…tocol#104)

* initial impl
* check ipAccount Owner
* add more comments
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants