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 41m 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 4m 🟩🟩🟩🟩🟩 (+1 more)
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-04-add_permission_check_to_account branch from 9e7f4f6 to 0dbe54f Compare January 10, 2025 18:47
@runtian-zhou runtian-zhou force-pushed the 09-09-add_perimission_checks_to_object branch from f71fcf3 to 87e4a68 Compare January 10, 2025 18:48
@runtian-zhou runtian-zhou force-pushed the 09-04-add_permission_check_to_account branch from 0dbe54f to 83a4fb3 Compare January 10, 2025 22:50
@runtian-zhou runtian-zhou force-pushed the 09-09-add_perimission_checks_to_object branch from 87e4a68 to 121e5bf Compare January 10, 2025 22:50
@runtian-zhou runtian-zhou force-pushed the 09-04-add_permission_check_to_account branch from 83a4fb3 to a748b50 Compare January 10, 2025 22:59
@runtian-zhou runtian-zhou force-pushed the 09-09-add_perimission_checks_to_object branch from 121e5bf to cac0462 Compare January 10, 2025 22:59
@runtian-zhou runtian-zhou force-pushed the 09-04-add_permission_check_to_account branch from a748b50 to 1055b09 Compare January 10, 2025 23:33
@runtian-zhou runtian-zhou force-pushed the 09-09-add_perimission_checks_to_object branch from cac0462 to 05a7b6a Compare January 10, 2025 23:33
@runtian-zhou runtian-zhou force-pushed the 09-04-add_permission_check_to_account branch from 1055b09 to bfcb703 Compare January 10, 2025 23:52
@runtian-zhou runtian-zhou force-pushed the 09-09-add_perimission_checks_to_object branch from 05a7b6a to 6883b74 Compare January 10, 2025 23:52
@runtian-zhou runtian-zhou force-pushed the 09-04-add_permission_check_to_account branch from bfcb703 to 54048a4 Compare January 11, 2025 00:22
@runtian-zhou runtian-zhou force-pushed the 09-09-add_perimission_checks_to_object branch from 6883b74 to ab57192 Compare January 11, 2025 00:22
@runtian-zhou runtian-zhou force-pushed the 09-04-add_permission_check_to_account branch from 54048a4 to 850cead Compare January 11, 2025 01:23
@runtian-zhou runtian-zhou force-pushed the 09-09-add_perimission_checks_to_object branch from ab57192 to 3001b5b Compare January 11, 2025 01:23
@runtian-zhou runtian-zhou force-pushed the 09-04-add_permission_check_to_account branch from 850cead to afca06b Compare January 11, 2025 01:57
@runtian-zhou runtian-zhou force-pushed the 09-09-add_perimission_checks_to_object branch from 3001b5b to f4a7c9e Compare January 11, 2025 01:57
@runtian-zhou runtian-zhou force-pushed the 09-04-add_permission_check_to_account branch from afca06b to a39fa56 Compare January 11, 2025 03:42
@runtian-zhou runtian-zhou force-pushed the 09-09-add_perimission_checks_to_object branch 2 times, most recently from 6b37447 to a6c5811 Compare January 11, 2025 05:07
@runtian-zhou runtian-zhou force-pushed the 09-04-add_permission_check_to_account branch from a39fa56 to d8c3907 Compare January 12, 2025 23:48
@runtian-zhou runtian-zhou force-pushed the 09-09-add_perimission_checks_to_object branch from a6c5811 to fc9f850 Compare January 12, 2025 23:48
@runtian-zhou runtian-zhou force-pushed the 09-04-add_permission_check_to_account branch from d8c3907 to 5dd22a8 Compare January 13, 2025 04:36
@runtian-zhou runtian-zhou force-pushed the 09-09-add_perimission_checks_to_object branch from fc9f850 to 39105b5 Compare January 13, 2025 04:37
@runtian-zhou runtian-zhou force-pushed the 09-04-add_permission_check_to_account branch from 5dd22a8 to 3f48b76 Compare January 13, 2025 04:40
@runtian-zhou runtian-zhou force-pushed the 09-09-add_perimission_checks_to_object branch from 39105b5 to f0d0ba9 Compare January 13, 2025 04:40
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.

3 participants