Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add AccessControlDefaultAdminRules #220

Merged
merged 2 commits into from
Sep 1, 2023
Merged

Add AccessControlDefaultAdminRules #220

merged 2 commits into from
Sep 1, 2023

Conversation

rya-sge
Copy link
Collaborator

@rya-sge rya-sge commented Aug 31, 2023

Use AccessControlDefaultAdminRules inside the Authorization module
This contract implements the following risk mitigations on top of AccessControl:

  • Only one account holds the DEFAULT_ADMIN_ROLE since deployment until it’s potentially renounced.

  • Enforces a 2-step process to transfer the DEFAULT_ADMIN_ROLE to another account.

  • Enforces a configurable delay between the two steps, with the ability to cancel before the transfer is accepted.

The delay can be changed by scheduling, see changeDefaultAdminDelay.

It is not possible to use another role to manage the DEFAULT_ADMIN_ROLE.
see https://docs.openzeppelin.com

closes #192

@rya-sge rya-sge changed the title Add admin rule Add AccessControlDefaultAdminRules Aug 31, 2023
@rya-sge rya-sge requested a review from veorq August 31, 2023 13:39
@rya-sge rya-sge added Security enhancement New feature or request labels Aug 31, 2023
@rya-sge rya-sge merged commit 41edba6 into dev Sep 1, 2023
1 check passed
@rya-sge rya-sge mentioned this pull request Sep 4, 2023
10 tasks
Copy link
Collaborator

@veorq veorq left a comment

Choose a reason for hiding this comment

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

ok

@rya-sge rya-sge deleted the add-admin-rule branch September 26, 2023 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Security
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants