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

feat: add migrate piece auth check #1109

Merged
merged 8 commits into from
Sep 18, 2023
Merged

feat: add migrate piece auth check #1109

merged 8 commits into from
Sep 18, 2023

Conversation

BarryTong65
Copy link
Contributor

@BarryTong65 BarryTong65 commented Sep 5, 2023

Description

Add migrate piece auth check.

Rationale

Every migration piece request includes an ECDSA signature which source SP can parse out a destination SP identity information that cannot be forged.The source SP needs to verify whether the destination SP has permission to perform the migration action.

Example

N/A.

Changes

Notable changes:

  • Metadata support VerifyMigrateGVGPermission.
  • Add migrate piece auth workflow.

@BarryTong65 BarryTong65 added the r4r Ready for review label Sep 5, 2023
@will-2012 will-2012 added wip Working in process and removed r4r Ready for review labels Sep 6, 2023
@will-2012 will-2012 changed the title feat: verify gvg permission feat: add migrate piece auth check Sep 7, 2023
@will-2012 will-2012 marked this pull request as draft September 7, 2023 14:44
@will-2012 will-2012 added r4r Ready for review and removed wip Working in process labels Sep 11, 2023
@will-2012 will-2012 marked this pull request as ready for review September 11, 2023 03:44
@@ -6,10 +6,10 @@ export CGO_CFLAGS_ALLOW="-O -D__BLST_PORTABLE__"
workspace=${GITHUB_WORKSPACE}

# some constants
GREENFIELD_REPO_TAG="v0.2.5-alpha.1"
GREENFIELD_TAG="v0.2.5-alpha.1"
Copy link
Collaborator

Choose a reason for hiding this comment

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

it is now v0.2.5-alpha.2

Copy link
Collaborator

Choose a reason for hiding this comment

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

Fixed to v0.2.5-hf.1.

@@ -139,15 +162,15 @@ func (e *ExecuteModular) doObjectMigration(ctx context.Context, task coretask.Mi
migratePieceTask := &gfsptask.GfSpMigratePieceTask{
Copy link
Collaborator

Choose a reason for hiding this comment

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

if Signature field is never used in GfSpMigratePieceTask, should we consider to remove it?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Fixed, redundant fields and logic have been removed. The current proto is not used, so incompatible adjustments can be made.

@will-2012 will-2012 force-pushed the feat-verifyGVG branch 4 times, most recently from e22f923 to 6f149a5 Compare September 15, 2023 15:08
@unclezoro unclezoro added this pull request to the merge queue Sep 18, 2023
Merged via the queue into develop with commit 630ac8a Sep 18, 2023
12 checks passed
@unclezoro unclezoro deleted the feat-verifyGVG branch September 18, 2023 01:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
r4r Ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants