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 perimission checks to object #14582

Open
wants to merge 1 commit into
base: 09-04-add_permission_check_to_account
Choose a base branch
from

Conversation

runtian-zhou
Copy link
Contributor

@runtian-zhou runtian-zhou commented Sep 10, 2024

Description

Adds permissioned signer support for object transfers and token/collection mutations in the Aptos Framework. This change introduces new permission types and validation checks to ensure only authorized signers can perform transfers and mutations on objects, tokens and collections.

Type of Change

  • New feature
  • Aptos Framework

Which Components or Systems Does This Change Impact?

  • Move/Aptos Virtual Machine
  • Aptos Framework

How Has This Been Tested?

Added new test cases in object.move and aptos_token.move to verify permissioned signer functionality for transfers and mutations.

Key Areas to Review

  • New permission types added: TransferPermission, TokenUpdatePermission, CollectionUpdatePermission
  • Permission validation checks in transfer and mutation operations
  • Integration with existing permissioned_signer module
  • Authorization and revocation flows for token/collection mutations

Checklist

  • I have read and followed the CONTRIBUTING doc
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I identified and added all stakeholders and component owners affected by this change as reviewers
  • I tested both happy and unhappy path of the functionality
  • I have made corresponding changes to the documentation

Copy link

trunk-io bot commented Sep 10, 2024

⏱️ 1h 39m total CI duration on this PR
Slowest 15 Jobs Cumulative Duration Recent Runs
rust-move-unit-coverage 18m 🟩
rust-move-unit-coverage 14m 🟩
rust-move-unit-coverage 14m 🟩
rust-move-tests 10m 🟥
rust-move-tests 9m 🟥
general-lints 7m 🟩🟩🟩🟩
rust-cargo-deny 7m 🟩🟩🟩🟩
rust-move-tests 5m
rust-move-unit-coverage 5m
check-dynamic-deps 3m 🟩🟩🟩🟩
rust-move-tests 3m 🟥
semgrep/ci 2m 🟩🟩🟩🟩🟩 (+1 more)
file_change_determinator 48s 🟩🟩🟩🟩
file_change_determinator 43s 🟩🟩🟩🟩
permission-check 15s 🟩🟩🟩🟩

settingsfeedbackdocs ⋅ learn more about trunk.io

Copy link
Contributor Author

runtian-zhou commented Sep 10, 2024

@runtian-zhou runtian-zhou force-pushed the 09-04-add_permission_check_to_account branch from da28781 to 006ad4c Compare September 10, 2024 17:29
@runtian-zhou runtian-zhou force-pushed the 09-09-add_perimission_checks_to_object branch from 381be20 to 6a1fe6d Compare September 10, 2024 17:30
Copy link

codecov bot commented Sep 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 59.4%. Comparing base (0161bbf) to head (2431b7b).

Additional details and impacted files
@@                          Coverage Diff                           @@
##           09-04-add_permission_check_to_account   #14582   +/-   ##
======================================================================
  Coverage                                   59.4%    59.4%           
======================================================================
  Files                                        857      857           
  Lines                                     210762   210762           
======================================================================
  Hits                                      125197   125197           
  Misses                                     85565    85565           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@runtian-zhou runtian-zhou force-pushed the 09-04-add_permission_check_to_account branch from 006ad4c to ef7abd3 Compare September 12, 2024 01:50
@runtian-zhou runtian-zhou force-pushed the 09-09-add_perimission_checks_to_object branch from 6a1fe6d to 9037ce3 Compare September 12, 2024 01:50
@runtian-zhou runtian-zhou force-pushed the 09-04-add_permission_check_to_account branch from ef7abd3 to c38c2dd Compare September 17, 2024 05:09
@runtian-zhou runtian-zhou force-pushed the 09-09-add_perimission_checks_to_object branch from 9037ce3 to 843150a Compare September 17, 2024 05:09
@runtian-zhou runtian-zhou force-pushed the 09-04-add_permission_check_to_account branch from c38c2dd to 95b6704 Compare September 17, 2024 21:23
@runtian-zhou runtian-zhou force-pushed the 09-09-add_perimission_checks_to_object branch from 843150a to 33a73d7 Compare September 17, 2024 21:23
@runtian-zhou runtian-zhou force-pushed the 09-04-add_permission_check_to_account branch from 95b6704 to 7394967 Compare September 18, 2024 06:23
@runtian-zhou runtian-zhou force-pushed the 09-09-add_perimission_checks_to_object branch from 33a73d7 to 9123ceb Compare September 18, 2024 06:23
@runtian-zhou runtian-zhou force-pushed the 09-04-add_permission_check_to_account branch from 7394967 to a091794 Compare September 18, 2024 17:52
@runtian-zhou runtian-zhou force-pushed the 09-09-add_perimission_checks_to_object branch from 9123ceb to 206e782 Compare September 18, 2024 17:52
@runtian-zhou runtian-zhou force-pushed the 09-04-add_permission_check_to_account branch from a091794 to 67163ae Compare September 19, 2024 00:35
@runtian-zhou runtian-zhou force-pushed the 09-09-add_perimission_checks_to_object branch from 206e782 to 9c81c83 Compare September 19, 2024 00:35
@runtian-zhou runtian-zhou force-pushed the 09-04-add_permission_check_to_account branch from 67163ae to f10a3b3 Compare September 19, 2024 08:09
@runtian-zhou runtian-zhou force-pushed the 09-09-add_perimission_checks_to_object branch from 9c81c83 to 75362c4 Compare September 19, 2024 08:09
@runtian-zhou runtian-zhou force-pushed the 09-04-add_permission_check_to_account branch from f10a3b3 to 5c9396f Compare October 4, 2024 20:56
@runtian-zhou runtian-zhou force-pushed the 09-09-add_perimission_checks_to_object branch from 75362c4 to 86c07b1 Compare October 4, 2024 20:57
@runtian-zhou runtian-zhou force-pushed the 09-04-add_permission_check_to_account branch from 5c9396f to 9935539 Compare October 5, 2024 01:54
@runtian-zhou runtian-zhou force-pushed the 09-09-add_perimission_checks_to_object branch from 86c07b1 to 0573a7b Compare October 5, 2024 01:54
@runtian-zhou runtian-zhou force-pushed the 09-04-add_permission_check_to_account branch from 9935539 to b927c02 Compare October 5, 2024 02:25
@runtian-zhou runtian-zhou force-pushed the 09-09-add_perimission_checks_to_object branch from 0573a7b to 6a446be Compare October 5, 2024 02:25
@runtian-zhou runtian-zhou force-pushed the 09-09-add_perimission_checks_to_object branch from 1e81ef4 to db21dee Compare November 27, 2024 08:40
@runtian-zhou runtian-zhou force-pushed the 09-04-add_permission_check_to_account branch from f1841c6 to da2d989 Compare December 2, 2024 02:40
@runtian-zhou runtian-zhou force-pushed the 09-09-add_perimission_checks_to_object branch from db21dee to 9cab1df Compare December 2, 2024 02:40
@runtian-zhou runtian-zhou force-pushed the 09-04-add_permission_check_to_account branch from da2d989 to c124e6c Compare December 2, 2024 02:43
@runtian-zhou runtian-zhou force-pushed the 09-09-add_perimission_checks_to_object branch from 9cab1df to bac9d91 Compare December 2, 2024 02:44
@runtian-zhou runtian-zhou force-pushed the 09-04-add_permission_check_to_account branch from c124e6c to 304e1e6 Compare December 2, 2024 10:07
@runtian-zhou runtian-zhou force-pushed the 09-09-add_perimission_checks_to_object branch from bac9d91 to 253e2f2 Compare December 2, 2024 10:07
@runtian-zhou runtian-zhou force-pushed the 09-04-add_permission_check_to_account branch from 304e1e6 to 3cd3d85 Compare December 4, 2024 06:14
@runtian-zhou runtian-zhou force-pushed the 09-09-add_perimission_checks_to_object branch from 253e2f2 to 9bc9130 Compare December 4, 2024 06:15
@runtian-zhou runtian-zhou force-pushed the 09-04-add_permission_check_to_account branch from 3cd3d85 to 5aae08b Compare December 5, 2024 02:22
@runtian-zhou runtian-zhou force-pushed the 09-09-add_perimission_checks_to_object branch from 9bc9130 to a471067 Compare December 5, 2024 02:23
@runtian-zhou runtian-zhou marked this pull request as ready for review December 14, 2024 15:26
@runtian-zhou runtian-zhou force-pushed the 09-04-add_permission_check_to_account branch from 5aae08b to f15f9e1 Compare December 14, 2024 18:00
@runtian-zhou runtian-zhou requested review from alinush and a team as code owners December 14, 2024 18:00
@runtian-zhou runtian-zhou force-pushed the 09-09-add_perimission_checks_to_object branch from a471067 to 0e65f1b Compare December 14, 2024 18:00
@runtian-zhou runtian-zhou force-pushed the 09-04-add_permission_check_to_account branch from f15f9e1 to 5ed6a9c Compare December 16, 2024 09:16
@runtian-zhou runtian-zhou force-pushed the 09-09-add_perimission_checks_to_object branch from 0e65f1b to 925457f Compare December 16, 2024 09:16
@runtian-zhou runtian-zhou force-pushed the 09-09-add_perimission_checks_to_object branch from 925457f to 6851ffb Compare December 16, 2024 09:28
@runtian-zhou runtian-zhou force-pushed the 09-04-add_permission_check_to_account branch from 5ed6a9c to 895df9e Compare December 17, 2024 02:27
@runtian-zhou runtian-zhou force-pushed the 09-09-add_perimission_checks_to_object branch from 6851ffb to d4a929c Compare December 17, 2024 02:27
@runtian-zhou runtian-zhou force-pushed the 09-04-add_permission_check_to_account branch from 895df9e to 65c5737 Compare December 17, 2024 12:01
@runtian-zhou runtian-zhou force-pushed the 09-09-add_perimission_checks_to_object branch from d4a929c to 6fd4575 Compare December 17, 2024 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants